blob: 403ed47e093099ca4f370c5c6f15263bf6a97553 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000695UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000697SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000699RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700RMDelegate
701RLEEncodeDelegate
702PSDelegate
703POVDelegate
704PGPDecodeDelegate
705PCLDelegate
706MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000707MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708MPEGEncodeDelegate
709MPEGDecodeDelegate
710MANDelegate
711LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000712LPRDelegate
713LPDelegate
714ILBMEncodeDelegate
715ILBMDecodeDelegate
716HTMLDecodeDelegate
717HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718GnuplotDecodeDelegate
719MogrifyDelegate
720DisplayDelegate
721ConvertDelegate
722FIGDecodeDelegate
723EditorDelegate
724EchoDelegate
725DVIDecodeDelegate
726GVCDecodeDelegate
727DNGDecodeDelegate
728CatDelegate
729CGMDecodeDelegate
730BrowseDelegate
731BZIPDelegate
732BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000733AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000734SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000735SHAREARCH_RELATIVE_PATH
736SHAREARCH_DIRNAME
737SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000738SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000739CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000740DOCUMENTATION_PATH
741FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000742FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000743CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744CODER_DIRNAME
745MODULES_PATH
746MODULES_RELATIVE_PATH
747MODULES_DIRNAME
748MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000749LIB_BIN_DIR_PATH
750LIB_BIN_DIR_RELATIVE_PATH
751LIB_BIN_DIR
752LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000753LIBRARY_PATH
754EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000755INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000756INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000757PERLMAINCC
758XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000759XML_DELEGATE_FALSE
760XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000761xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000762WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000763WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000764WMF_DELEGATE_FALSE
765WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000766WEBP_LIBS
767WEBP_DELEGATE_FALSE
768WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000769TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000770TIFF_DELEGATE_FALSE
771TIFF_DELEGATE_TRUE
772CAIRO_DELEGATE_FALSE
773CAIRO_DELEGATE_TRUE
774RSVG_DELEGATE_FALSE
775RSVG_DELEGATE_TRUE
776CAIRO_SVG_LIBS
777CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000778RSVG_LIBS
779RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000780PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000781PNG_DELEGATE_FALSE
782PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000783PANGOCAIRO_DELEGATE_FALSE
784PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000785PANGO_DELEGATE_FALSE
786PANGO_DELEGATE_TRUE
787PANGO_LIBS
788PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000789OPENEXR_DELEGATE_FALSE
790OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000791OPENEXR_LIBS
792OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000793LZMA_DELEGATE_FALSE
794LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000795LZMA_LIBS
796LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000797LQR_DELEGATE_FALSE
798LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799LQR_LIBS
800LQR_CFLAGS
801LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000802LCMS_DELEGATE_FALSE
803LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805JP2_DELEGATE_FALSE
806JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000808JPEG_DELEGATE_FALSE
809JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811JBIG_DELEGATE_FALSE
812JBIG_DELEGATE_TRUE
813GVC_DELEGATE_FALSE
814GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815GVC_LIBS
816GVC_CFLAGS
817GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000818GS_DELEGATE_FALSE
819GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000820FREETYPE_DELEGATE_FALSE
821FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000822FREETYPE_LIBS
823FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000824FONTCONFIG_DELEGATE_FALSE
825FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826FONTCONFIG_LIBS
827FONTCONFIG_CFLAGS
828FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000829FPX_DELEGATE_FALSE
830FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000831FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832FFTW_DELEGATE_FALSE
833FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000835DJVU_DELEGATE_FALSE
836DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000837DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838DPS_DELEGATE_FALSE
839DPS_DELEGATE_TRUE
840AUTOTRACE_DELEGATE_FALSE
841AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000842AUTOTRACE_LIBS
843AUTOTRACE_CFLAGS
844LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000845WITH_LTDL_FALSE
846WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000847ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000848ZLIB_DELEGATE_FALSE
849ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850XEXT_LIBS
851X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000852X11_DELEGATE_FALSE
853X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000854X_EXTRA_LIBS
855X_LIBS
856X_PRE_LIBS
857X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000858XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000859BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000860BZLIB_DELEGATE_FALSE
861BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862CCMALLOCDelegate
863UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000864HasUMEM_FALSE
865HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000866THREAD_LIBS
867GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000868WITH_MAGICK_PLUS_PLUS_FALSE
869WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000870OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000871MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000872POW_LIB
873LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000874UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000875UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000876UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000877UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000878UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000880INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000881INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000882UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000883UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000884INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000885INT32_T
886UINT16_T
887INT16_T
888UINT8_T
889INT8_T
890LIBRARY_EXTRA_CPPFLAGS
891MODULE_EXTRA_CPPFLAGS
892LIBSTDCLDFLAGS
893PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000894MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000895MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000896QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000897LEGACY_SUPPORT_FALSE
898LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000899MAINT
900MAINTAINER_MODE_FALSE
901MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000902MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000903WITH_MODULES_FALSE
904WITH_MODULES_TRUE
905WITH_SHARED_LIBS_FALSE
906WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000907LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000908CXXCPP
909OTOOL64
910OTOOL
911LIPO
912NMEDIT
913DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000914MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000915RANLIB
cristyda16f162011-02-19 23:52:17 +0000916ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000917AR
918NM
919ac_ct_DUMPBIN
920DUMPBIN
921LIBTOOL
922OBJDUMP
923DLLTOOL
924AS
cristy3ed852e2009-09-05 21:47:34 +0000925LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000926CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000927CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000928OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000929PTHREAD_CFLAGS
930PTHREAD_LIBS
931PTHREAD_CC
932ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000933pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000934SHAREARCH_DIR
935INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000936WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000937USING_CL_FALSE
938USING_CL_TRUE
939CYGWIN_BUILD_FALSE
940CYGWIN_BUILD_TRUE
941WIN32_NATIVE_BUILD_FALSE
942WIN32_NATIVE_BUILD_TRUE
943WINGDI32_DELEGATE_FALSE
944WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000945GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000946HAVE_LD_VERSION_SCRIPT_FALSE
947HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000948PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000949PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000950LN_S
cristy3ed852e2009-09-05 21:47:34 +0000951LD
cristy73bd4a52010-10-05 11:24:23 +0000952FGREP
953SED
954am__fastdepCXX_FALSE
955am__fastdepCXX_TRUE
956CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000957ac_ct_CXX
958CXXFLAGS
959CXX
cristya0b81c32010-01-22 02:54:33 +0000960EGREP
961GREP
962CPP
cristy73bd4a52010-10-05 11:24:23 +0000963am__fastdepCC_FALSE
964am__fastdepCC_TRUE
965CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000966am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000967AMDEPBACKSLASH
968AMDEP_FALSE
969AMDEP_TRUE
970am__quote
971am__include
972DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000973OBJEXT
974EXEEXT
975ac_ct_CC
976CPPFLAGS
977LDFLAGS
978CFLAGS
979CC
980DIRSEP
981MAGICK_FILTER_MODULE_PATH
982MAGICK_CONFIGURE_BUILD_PATH
983MAGICK_CONFIGURE_SRC_PATH
984MAGICK_CODER_MODULE_PATH
985MAN_DIR
986INFO_DIR
987PERSISTINCLUDE_DIR
988INCLUDE_DIR
989LIB_DIR
990LOCALSTATE_DIR
991SHAREDSTATE_DIR
992SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000993DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000994DATA_DIR
995LIBEXEC_DIR
996SBIN_DIR
997BIN_DIR
998EXEC_PREFIX_DIR
999PREFIX_DIR
1000CONFIG_STATUS_DEPENDENCIES
1001MAGICK_LIB_VERSION_NUMBER
1002MAGICK_LIB_VERSION_TEXT
1003MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001004AM_BACKSLASH
1005AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001006AM_DEFAULT_V
1007AM_V
cristy73bd4a52010-10-05 11:24:23 +00001008am__untar
1009am__tar
1010AMTAR
1011am__leading_dot
1012SET_MAKE
1013AWK
1014mkdir_p
1015MKDIR_P
1016INSTALL_STRIP_PROGRAM
1017STRIP
1018install_sh
1019MAKEINFO
1020AUTOHEADER
1021AUTOMAKE
1022AUTOCONF
1023ACLOCAL
1024VERSION
1025PACKAGE
1026CYGPATH_W
1027am__isrc
1028INSTALL_DATA
1029INSTALL_SCRIPT
1030INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001031PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001032PACKAGE_RELEASE_DATE
1033PACKAGE_LIB_VERSION_NUMBER
1034PACKAGE_LIB_VERSION
1035PACKAGE_CHANGE_DATE
1036PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001037PACKAGE_PERL_VERSION
cristybab87c32010-02-09 20:54:22 +00001038MAGICK_LIBRARY_VERSION_INFO
1039MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001040MAGICK_LIBRARY_AGE
1041MAGICK_LIBRARY_REVISION
1042MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001043MAGICK_SVN_REVISION
1044MAGICK_VERSION
1045MAGICK_PATCHLEVEL_VERSION
1046MAGICK_MICRO_VERSION
1047MAGICK_MINOR_VERSION
1048MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001049MAGICK_TARGET_OS
1050MAGICK_TARGET_VENDOR
1051MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001052target_os
1053target_vendor
1054target_cpu
1055target
1056host_os
1057host_vendor
1058host_cpu
1059host
1060build_os
1061build_vendor
1062build_cpu
1063build
1064CONFIGURE_ARGS
1065DISTCHECK_CONFIG_FLAGS
1066target_alias
1067host_alias
1068build_alias
1069LIBS
1070ECHO_T
1071ECHO_N
1072ECHO_C
1073DEFS
1074mandir
1075localedir
1076libdir
1077psdir
1078pdfdir
1079dvidir
1080htmldir
1081infodir
1082docdir
1083oldincludedir
1084includedir
1085localstatedir
1086sharedstatedir
1087sysconfdir
1088datadir
1089datarootdir
1090libexecdir
1091sbindir
1092bindir
1093program_transform_name
1094prefix
1095exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001096PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001097PACKAGE_BUGREPORT
1098PACKAGE_STRING
1099PACKAGE_VERSION
1100PACKAGE_TARNAME
1101PACKAGE_NAME
1102PATH_SEPARATOR
1103SHELL'
1104ac_subst_files=''
1105ac_user_opts='
1106enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001107enable_silent_rules
1108enable_dependency_tracking
1109with_gnu_ld
1110with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001111with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001112enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001113enable_bounds_checking
1114enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001115with_includearch_dir
1116with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001117with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001118with_threads
1119enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001120enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001121enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001122enable_shared
1123enable_static
1124with_pic
1125enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001126with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001127enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001128with_modules
1129enable_delegate_build
1130enable_deprecated
1131enable_installed
1132enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001133enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001134enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001135enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001136enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001137enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001138enable_ccmalloc
1139enable_efence
1140enable_prof
1141enable_gprof
1142enable_gcov
1143with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001144enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001145with_quantum_depth
1146with_cache
1147with_frozenpaths
1148with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001149with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001150with_perl
1151with_perl_options
1152with_umem
1153with_libstdc
1154with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001155with_x
cristy3ed852e2009-09-05 21:47:34 +00001156with_zlib
1157with_autotrace
1158with_dps
1159with_djvu
cristy430a7312010-01-21 20:44:04 +00001160with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001161with_fftw
1162with_fpx
1163with_fontconfig
1164with_freetype
1165with_gslib
1166with_fontpath
1167with_gs_font_dir
1168with_gvc
1169with_jbig
1170with_jpeg
1171with_jp2
1172with_lcms
cristy71203402010-06-18 13:12:03 +00001173with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001174with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001175with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001176with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001177with_pango
cristy3ed852e2009-09-05 21:47:34 +00001178with_png
1179with_rsvg
1180with_tiff
cristyb1860752011-03-14 00:27:46 +00001181with_webp
cristy3ed852e2009-09-05 21:47:34 +00001182with_windows_font_dir
1183with_wmf
1184with_xml
1185'
1186 ac_precious_vars='build_alias
1187host_alias
1188target_alias
1189CC
1190CFLAGS
1191LDFLAGS
1192LIBS
1193CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001194CPP
cristy3ed852e2009-09-05 21:47:34 +00001195CXX
1196CXXFLAGS
1197CCC
cristy73bd4a52010-10-05 11:24:23 +00001198PKG_CONFIG
1199CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001200XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001201AUTOTRACE_CFLAGS
1202AUTOTRACE_LIBS
1203FONTCONFIG_CFLAGS
1204FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001205FREETYPE_CFLAGS
1206FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001207GVC_CFLAGS
1208GVC_LIBS
1209LQR_CFLAGS
1210LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001211LZMA_CFLAGS
1212LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001213OPENEXR_CFLAGS
1214OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001215PANGO_CFLAGS
1216PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001217RSVG_CFLAGS
1218RSVG_LIBS
1219CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001220CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001221
1222
1223# Initialize some variables set by options.
1224ac_init_help=
1225ac_init_version=false
1226ac_unrecognized_opts=
1227ac_unrecognized_sep=
1228# The variables have the same names as the options, with
1229# dashes changed to underlines.
1230cache_file=/dev/null
1231exec_prefix=NONE
1232no_create=
1233no_recursion=
1234prefix=NONE
1235program_prefix=NONE
1236program_suffix=NONE
1237program_transform_name=s,x,x,
1238silent=
1239site=
1240srcdir=
1241verbose=
1242x_includes=NONE
1243x_libraries=NONE
1244
1245# Installation directory options.
1246# These are left unexpanded so users can "make install exec_prefix=/foo"
1247# and all the variables that are supposed to be based on exec_prefix
1248# by default will actually change.
1249# Use braces instead of parens because sh, perl, etc. also accept them.
1250# (The list follows the same order as the GNU Coding Standards.)
1251bindir='${exec_prefix}/bin'
1252sbindir='${exec_prefix}/sbin'
1253libexecdir='${exec_prefix}/libexec'
1254datarootdir='${prefix}/share'
1255datadir='${datarootdir}'
1256sysconfdir='${prefix}/etc'
1257sharedstatedir='${prefix}/com'
1258localstatedir='${prefix}/var'
1259includedir='${prefix}/include'
1260oldincludedir='/usr/include'
1261docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1262infodir='${datarootdir}/info'
1263htmldir='${docdir}'
1264dvidir='${docdir}'
1265pdfdir='${docdir}'
1266psdir='${docdir}'
1267libdir='${exec_prefix}/lib'
1268localedir='${datarootdir}/locale'
1269mandir='${datarootdir}/man'
1270
1271ac_prev=
1272ac_dashdash=
1273for ac_option
1274do
1275 # If the previous option needs an argument, assign it.
1276 if test -n "$ac_prev"; then
1277 eval $ac_prev=\$ac_option
1278 ac_prev=
1279 continue
1280 fi
1281
1282 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001283 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1284 *=) ac_optarg= ;;
1285 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001286 esac
1287
1288 # Accept the important Cygnus configure options, so we can diagnose typos.
1289
1290 case $ac_dashdash$ac_option in
1291 --)
1292 ac_dashdash=yes ;;
1293
1294 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1295 ac_prev=bindir ;;
1296 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1297 bindir=$ac_optarg ;;
1298
1299 -build | --build | --buil | --bui | --bu)
1300 ac_prev=build_alias ;;
1301 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1302 build_alias=$ac_optarg ;;
1303
1304 -cache-file | --cache-file | --cache-fil | --cache-fi \
1305 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1306 ac_prev=cache_file ;;
1307 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1308 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1309 cache_file=$ac_optarg ;;
1310
1311 --config-cache | -C)
1312 cache_file=config.cache ;;
1313
1314 -datadir | --datadir | --datadi | --datad)
1315 ac_prev=datadir ;;
1316 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1317 datadir=$ac_optarg ;;
1318
1319 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1320 | --dataroo | --dataro | --datar)
1321 ac_prev=datarootdir ;;
1322 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1323 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1324 datarootdir=$ac_optarg ;;
1325
1326 -disable-* | --disable-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001330 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001331 ac_useropt_orig=$ac_useropt
1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1334 *"
1335"enable_$ac_useropt"
1336"*) ;;
1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1339 esac
1340 eval enable_$ac_useropt=no ;;
1341
1342 -docdir | --docdir | --docdi | --doc | --do)
1343 ac_prev=docdir ;;
1344 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1345 docdir=$ac_optarg ;;
1346
1347 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1348 ac_prev=dvidir ;;
1349 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1350 dvidir=$ac_optarg ;;
1351
1352 -enable-* | --enable-*)
1353 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001356 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001357 ac_useropt_orig=$ac_useropt
1358 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359 case $ac_user_opts in
1360 *"
1361"enable_$ac_useropt"
1362"*) ;;
1363 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1364 ac_unrecognized_sep=', ';;
1365 esac
1366 eval enable_$ac_useropt=\$ac_optarg ;;
1367
1368 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1369 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1370 | --exec | --exe | --ex)
1371 ac_prev=exec_prefix ;;
1372 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1373 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1374 | --exec=* | --exe=* | --ex=*)
1375 exec_prefix=$ac_optarg ;;
1376
1377 -gas | --gas | --ga | --g)
1378 # Obsolete; use --with-gas.
1379 with_gas=yes ;;
1380
1381 -help | --help | --hel | --he | -h)
1382 ac_init_help=long ;;
1383 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1384 ac_init_help=recursive ;;
1385 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1386 ac_init_help=short ;;
1387
1388 -host | --host | --hos | --ho)
1389 ac_prev=host_alias ;;
1390 -host=* | --host=* | --hos=* | --ho=*)
1391 host_alias=$ac_optarg ;;
1392
1393 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1394 ac_prev=htmldir ;;
1395 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1396 | --ht=*)
1397 htmldir=$ac_optarg ;;
1398
1399 -includedir | --includedir | --includedi | --included | --include \
1400 | --includ | --inclu | --incl | --inc)
1401 ac_prev=includedir ;;
1402 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1403 | --includ=* | --inclu=* | --incl=* | --inc=*)
1404 includedir=$ac_optarg ;;
1405
1406 -infodir | --infodir | --infodi | --infod | --info | --inf)
1407 ac_prev=infodir ;;
1408 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1409 infodir=$ac_optarg ;;
1410
1411 -libdir | --libdir | --libdi | --libd)
1412 ac_prev=libdir ;;
1413 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1414 libdir=$ac_optarg ;;
1415
1416 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1417 | --libexe | --libex | --libe)
1418 ac_prev=libexecdir ;;
1419 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1420 | --libexe=* | --libex=* | --libe=*)
1421 libexecdir=$ac_optarg ;;
1422
1423 -localedir | --localedir | --localedi | --localed | --locale)
1424 ac_prev=localedir ;;
1425 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1426 localedir=$ac_optarg ;;
1427
1428 -localstatedir | --localstatedir | --localstatedi | --localstated \
1429 | --localstate | --localstat | --localsta | --localst | --locals)
1430 ac_prev=localstatedir ;;
1431 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1432 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1433 localstatedir=$ac_optarg ;;
1434
1435 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1436 ac_prev=mandir ;;
1437 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1438 mandir=$ac_optarg ;;
1439
1440 -nfp | --nfp | --nf)
1441 # Obsolete; use --without-fp.
1442 with_fp=no ;;
1443
1444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1445 | --no-cr | --no-c | -n)
1446 no_create=yes ;;
1447
1448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1450 no_recursion=yes ;;
1451
1452 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1453 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1454 | --oldin | --oldi | --old | --ol | --o)
1455 ac_prev=oldincludedir ;;
1456 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1457 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1458 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1459 oldincludedir=$ac_optarg ;;
1460
1461 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1462 ac_prev=prefix ;;
1463 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1464 prefix=$ac_optarg ;;
1465
1466 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1467 | --program-pre | --program-pr | --program-p)
1468 ac_prev=program_prefix ;;
1469 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1470 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1471 program_prefix=$ac_optarg ;;
1472
1473 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1474 | --program-suf | --program-su | --program-s)
1475 ac_prev=program_suffix ;;
1476 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1477 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1478 program_suffix=$ac_optarg ;;
1479
1480 -program-transform-name | --program-transform-name \
1481 | --program-transform-nam | --program-transform-na \
1482 | --program-transform-n | --program-transform- \
1483 | --program-transform | --program-transfor \
1484 | --program-transfo | --program-transf \
1485 | --program-trans | --program-tran \
1486 | --progr-tra | --program-tr | --program-t)
1487 ac_prev=program_transform_name ;;
1488 -program-transform-name=* | --program-transform-name=* \
1489 | --program-transform-nam=* | --program-transform-na=* \
1490 | --program-transform-n=* | --program-transform-=* \
1491 | --program-transform=* | --program-transfor=* \
1492 | --program-transfo=* | --program-transf=* \
1493 | --program-trans=* | --program-tran=* \
1494 | --progr-tra=* | --program-tr=* | --program-t=*)
1495 program_transform_name=$ac_optarg ;;
1496
1497 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1498 ac_prev=pdfdir ;;
1499 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1500 pdfdir=$ac_optarg ;;
1501
1502 -psdir | --psdir | --psdi | --psd | --ps)
1503 ac_prev=psdir ;;
1504 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1505 psdir=$ac_optarg ;;
1506
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1509 silent=yes ;;
1510
1511 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1512 ac_prev=sbindir ;;
1513 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1514 | --sbi=* | --sb=*)
1515 sbindir=$ac_optarg ;;
1516
1517 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1518 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1519 | --sharedst | --shareds | --shared | --share | --shar \
1520 | --sha | --sh)
1521 ac_prev=sharedstatedir ;;
1522 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1523 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1524 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1525 | --sha=* | --sh=*)
1526 sharedstatedir=$ac_optarg ;;
1527
1528 -site | --site | --sit)
1529 ac_prev=site ;;
1530 -site=* | --site=* | --sit=*)
1531 site=$ac_optarg ;;
1532
1533 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1534 ac_prev=srcdir ;;
1535 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1536 srcdir=$ac_optarg ;;
1537
1538 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1539 | --syscon | --sysco | --sysc | --sys | --sy)
1540 ac_prev=sysconfdir ;;
1541 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1542 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1543 sysconfdir=$ac_optarg ;;
1544
1545 -target | --target | --targe | --targ | --tar | --ta | --t)
1546 ac_prev=target_alias ;;
1547 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1548 target_alias=$ac_optarg ;;
1549
1550 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1551 verbose=yes ;;
1552
1553 -version | --version | --versio | --versi | --vers | -V)
1554 ac_init_version=: ;;
1555
1556 -with-* | --with-*)
1557 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1558 # Reject names that are not valid shell variable names.
1559 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001560 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001561 ac_useropt_orig=$ac_useropt
1562 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1563 case $ac_user_opts in
1564 *"
1565"with_$ac_useropt"
1566"*) ;;
1567 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1568 ac_unrecognized_sep=', ';;
1569 esac
1570 eval with_$ac_useropt=\$ac_optarg ;;
1571
1572 -without-* | --without-*)
1573 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1574 # Reject names that are not valid shell variable names.
1575 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001576 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001577 ac_useropt_orig=$ac_useropt
1578 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1579 case $ac_user_opts in
1580 *"
1581"with_$ac_useropt"
1582"*) ;;
1583 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1584 ac_unrecognized_sep=', ';;
1585 esac
1586 eval with_$ac_useropt=no ;;
1587
1588 --x)
1589 # Obsolete; use --with-x.
1590 with_x=yes ;;
1591
1592 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1593 | --x-incl | --x-inc | --x-in | --x-i)
1594 ac_prev=x_includes ;;
1595 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1596 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1597 x_includes=$ac_optarg ;;
1598
1599 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1600 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1601 ac_prev=x_libraries ;;
1602 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1603 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1604 x_libraries=$ac_optarg ;;
1605
cristy98dddb52010-11-04 00:30:15 +00001606 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1607Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001608 ;;
1609
1610 *=*)
1611 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1612 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001613 case $ac_envvar in #(
1614 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001615 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001616 esac
cristy3ed852e2009-09-05 21:47:34 +00001617 eval $ac_envvar=\$ac_optarg
1618 export $ac_envvar ;;
1619
1620 *)
1621 # FIXME: should be removed in autoconf 3.0.
1622 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1623 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1624 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001625 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001626 ;;
1627
1628 esac
1629done
1630
1631if test -n "$ac_prev"; then
1632 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001633 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001634fi
1635
1636if test -n "$ac_unrecognized_opts"; then
1637 case $enable_option_checking in
1638 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001639 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001640 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1641 esac
1642fi
1643
1644# Check all directory arguments for consistency.
1645for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1646 datadir sysconfdir sharedstatedir localstatedir includedir \
1647 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1648 libdir localedir mandir
1649do
1650 eval ac_val=\$$ac_var
1651 # Remove trailing slashes.
1652 case $ac_val in
1653 */ )
1654 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1655 eval $ac_var=\$ac_val;;
1656 esac
1657 # Be sure to have absolute directory names.
1658 case $ac_val in
1659 [\\/$]* | ?:[\\/]* ) continue;;
1660 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1661 esac
cristy98dddb52010-11-04 00:30:15 +00001662 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001663done
1664
1665# There might be people who depend on the old broken behavior: `$host'
1666# used to hold the argument of --host etc.
1667# FIXME: To remove some day.
1668build=$build_alias
1669host=$host_alias
1670target=$target_alias
1671
1672# FIXME: To remove some day.
1673if test "x$host_alias" != x; then
1674 if test "x$build_alias" = x; then
1675 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001676 elif test "x$build_alias" != "x$host_alias"; then
1677 cross_compiling=yes
1678 fi
1679fi
1680
1681ac_tool_prefix=
1682test -n "$host_alias" && ac_tool_prefix=$host_alias-
1683
1684test "$silent" = yes && exec 6>/dev/null
1685
1686
1687ac_pwd=`pwd` && test -n "$ac_pwd" &&
1688ac_ls_di=`ls -di .` &&
1689ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001690 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001691test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001692 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001693
1694
1695# Find the source files, if location was not specified.
1696if test -z "$srcdir"; then
1697 ac_srcdir_defaulted=yes
1698 # Try the directory containing this script, then the parent directory.
1699 ac_confdir=`$as_dirname -- "$as_myself" ||
1700$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1701 X"$as_myself" : 'X\(//\)[^/]' \| \
1702 X"$as_myself" : 'X\(//\)$' \| \
1703 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1704$as_echo X"$as_myself" |
1705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1706 s//\1/
1707 q
1708 }
1709 /^X\(\/\/\)[^/].*/{
1710 s//\1/
1711 q
1712 }
1713 /^X\(\/\/\)$/{
1714 s//\1/
1715 q
1716 }
1717 /^X\(\/\).*/{
1718 s//\1/
1719 q
1720 }
1721 s/.*/./; q'`
1722 srcdir=$ac_confdir
1723 if test ! -r "$srcdir/$ac_unique_file"; then
1724 srcdir=..
1725 fi
1726else
1727 ac_srcdir_defaulted=no
1728fi
1729if test ! -r "$srcdir/$ac_unique_file"; then
1730 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001731 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001732fi
1733ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1734ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001735 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001736 pwd)`
1737# When building in place, set srcdir=.
1738if test "$ac_abs_confdir" = "$ac_pwd"; then
1739 srcdir=.
1740fi
1741# Remove unnecessary trailing slashes from srcdir.
1742# Double slashes in file names in object file debugging info
1743# mess up M-x gdb in Emacs.
1744case $srcdir in
1745*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1746esac
1747for ac_var in $ac_precious_vars; do
1748 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1749 eval ac_env_${ac_var}_value=\$${ac_var}
1750 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1751 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1752done
1753
1754#
1755# Report the --help message.
1756#
1757if test "$ac_init_help" = "long"; then
1758 # Omit some internal or obsolete options to make the list less imposing.
1759 # This message is too long to be a string in the A/UX 3.1 sh.
1760 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001761\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001762
1763Usage: $0 [OPTION]... [VAR=VALUE]...
1764
1765To assign environment variables (e.g., CC, CFLAGS...), specify them as
1766VAR=VALUE. See below for descriptions of some of the useful variables.
1767
1768Defaults for the options are specified in brackets.
1769
1770Configuration:
1771 -h, --help display this help and exit
1772 --help=short display options specific to this package
1773 --help=recursive display the short help of all the included packages
1774 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001775 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001776 --cache-file=FILE cache test results in FILE [disabled]
1777 -C, --config-cache alias for \`--cache-file=config.cache'
1778 -n, --no-create do not create output files
1779 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1780
1781Installation directories:
1782 --prefix=PREFIX install architecture-independent files in PREFIX
1783 [$ac_default_prefix]
1784 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1785 [PREFIX]
1786
1787By default, \`make install' will install all the files in
1788\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1789an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1790for instance \`--prefix=\$HOME'.
1791
1792For better control, use the options below.
1793
1794Fine tuning of the installation directories:
1795 --bindir=DIR user executables [EPREFIX/bin]
1796 --sbindir=DIR system admin executables [EPREFIX/sbin]
1797 --libexecdir=DIR program executables [EPREFIX/libexec]
1798 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1799 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1800 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1801 --libdir=DIR object code libraries [EPREFIX/lib]
1802 --includedir=DIR C header files [PREFIX/include]
1803 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1804 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1805 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1806 --infodir=DIR info documentation [DATAROOTDIR/info]
1807 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1808 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001809 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001810 --htmldir=DIR html documentation [DOCDIR]
1811 --dvidir=DIR dvi documentation [DOCDIR]
1812 --pdfdir=DIR pdf documentation [DOCDIR]
1813 --psdir=DIR ps documentation [DOCDIR]
1814_ACEOF
1815
1816 cat <<\_ACEOF
1817
cristy73bd4a52010-10-05 11:24:23 +00001818Program names:
1819 --program-prefix=PREFIX prepend PREFIX to installed program names
1820 --program-suffix=SUFFIX append SUFFIX to installed program names
1821 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1822
cristy3ed852e2009-09-05 21:47:34 +00001823X features:
1824 --x-includes=DIR X include files are in DIR
1825 --x-libraries=DIR X library files are in DIR
1826
1827System types:
1828 --build=BUILD configure for building on BUILD [guessed]
1829 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1830 --target=TARGET configure for building compilers for TARGET [HOST]
1831_ACEOF
1832fi
1833
1834if test -n "$ac_init_help"; then
1835 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001836 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001837 esac
1838 cat <<\_ACEOF
1839
1840Optional Features:
1841 --disable-option-checking ignore unrecognized --enable/--with options
1842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001844 --enable-silent-rules less verbose build output (undo: "make V=1")
1845 --disable-silent-rules verbose build output (undo: "make V=0")
1846 --enable-dependency-tracking
1847 do not reject slow dependency extractors
1848 --disable-dependency-tracking
1849 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001850 --enable-ld-version-script
1851 enable linker version script (default is enabled
1852 when possible)
cristya3824692012-03-30 17:22:07 +00001853 --enable-bounds-checking
1854 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001855 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001856 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001857 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001858 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001859 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001860 --enable-shared[=PKGS] build shared libraries [default=yes]
1861 --enable-static[=PKGS] build static libraries [default=yes]
1862 --enable-fast-install[=PKGS]
1863 optimize for fast installation [default=yes]
1864 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001865 --enable-delegate-build look for delegate libraries in build directory
1866 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001867 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001868 --disable-installed Formally install ImageMagick under PREFIX
1869 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001870 --enable-zero-configuration
1871 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001872 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001873 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001874 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001875 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001876 --enable-maintainer-mode
1877 enable make rules and dependencies not useful (and
1878 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001879 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001880 --enable-ccmalloc enable 'ccmalloc' memory debug support
1881 --enable-efence enable 'efence' memory debug support
1882 --enable-prof enable 'prof' profiling support
1883 --enable-gprof enable 'gprof' profiling support
1884 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001885 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001886 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001887
1888Optional Packages:
1889 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1890 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001891 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001892 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001893 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1894 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001895 --includearch-dir=DIR ARCH specific include directory
1896 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001897 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001898 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001899 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001900 both]
cristyda16f162011-02-19 23:52:17 +00001901 --with-sysroot=DIR Search for dependent libraries within DIR
1902 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001903 --with-modules enable building dynamically loadable modules
1904 --with-method-prefix=PREFIX
1905 prefix MagickCore API methods
1906 --with-quantum-depth=DEPTH
1907 number of bits in a pixel quantum (default 16)
1908 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1909 memory)
1910 --with-frozenpaths freeze delegate paths
1911 --without-magick-plus-plus
1912 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001913 --with-package-release-name=NAME
1914 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001915 --with-perl enable build/install of PerlMagick
1916 --with-perl-options=OPTIONS
1917 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001918 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001919 --with-umem enable umem memory allocation library support
1920 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1921 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001922 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001923 --without-zlib disable ZLIB support
1924 --with-autotrace enable autotrace support
1925 --without-dps disable Display Postscript support
1926 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001927 --with-dejavu-font-dir=DIR
1928 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001929 --without-fftw disable FFTW support
1930 --without-fpx disable FlashPIX support
1931 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001932 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001933 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001934 --with-fontpath=DIR prepend to default font search path
1935 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001936 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001937 --without-jbig disable JBIG support
1938 --without-jpeg disable JPEG support
1939 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001940 --without-lcms disable lcms (v1.1X) support
1941 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001942 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001943 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001944 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001945 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001947 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001948 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001949 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001950 --with-windows-font-dir=DIR
1951 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001952 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001953 --without-xml disable XML support
1954
1955Some influential environment variables:
1956 CC C compiler command
1957 CFLAGS C compiler flags
1958 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1959 nonstandard directory <lib dir>
1960 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001961 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001962 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001963 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001964 CXX C++ compiler command
1965 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001966 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001967 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001968 XMKMF Path to xmkmf, Makefile generator for X Window System
1969 AUTOTRACE_CFLAGS
1970 C compiler flags for AUTOTRACE, overriding pkg-config
1971 AUTOTRACE_LIBS
1972 linker flags for AUTOTRACE, overriding pkg-config
1973 FONTCONFIG_CFLAGS
1974 C compiler flags for FONTCONFIG, overriding pkg-config
1975 FONTCONFIG_LIBS
1976 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001977 FREETYPE_CFLAGS
1978 C compiler flags for FREETYPE, overriding pkg-config
1979 FREETYPE_LIBS
1980 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001981 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1982 GVC_LIBS linker flags for GVC, overriding pkg-config
1983 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1984 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001985 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1986 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001987 OPENEXR_CFLAGS
1988 C compiler flags for OPENEXR, overriding pkg-config
1989 OPENEXR_LIBS
1990 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001991 PANGO_CFLAGS
1992 C compiler flags for PANGO, overriding pkg-config
1993 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001994 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1995 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1996 CAIRO_SVG_CFLAGS
1997 C compiler flags for CAIRO_SVG, overriding pkg-config
1998 CAIRO_SVG_LIBS
1999 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002000
2001Use these variables to override the choices made by `configure' or to help
2002it to find libraries and programs with nonstandard names/locations.
2003
2004Report bugs to <http://www.imagemagick.org>.
2005_ACEOF
2006ac_status=$?
2007fi
2008
2009if test "$ac_init_help" = "recursive"; then
2010 # If there are subdirs, report their specific --help.
2011 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2012 test -d "$ac_dir" ||
2013 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2014 continue
2015 ac_builddir=.
2016
2017case "$ac_dir" in
2018.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2019*)
2020 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2021 # A ".." for each directory in $ac_dir_suffix.
2022 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2023 case $ac_top_builddir_sub in
2024 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2025 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2026 esac ;;
2027esac
2028ac_abs_top_builddir=$ac_pwd
2029ac_abs_builddir=$ac_pwd$ac_dir_suffix
2030# for backward compatibility:
2031ac_top_builddir=$ac_top_build_prefix
2032
2033case $srcdir in
2034 .) # We are building in place.
2035 ac_srcdir=.
2036 ac_top_srcdir=$ac_top_builddir_sub
2037 ac_abs_top_srcdir=$ac_pwd ;;
2038 [\\/]* | ?:[\\/]* ) # Absolute name.
2039 ac_srcdir=$srcdir$ac_dir_suffix;
2040 ac_top_srcdir=$srcdir
2041 ac_abs_top_srcdir=$srcdir ;;
2042 *) # Relative name.
2043 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2044 ac_top_srcdir=$ac_top_build_prefix$srcdir
2045 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2046esac
2047ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2048
2049 cd "$ac_dir" || { ac_status=$?; continue; }
2050 # Check for guested configure.
2051 if test -f "$ac_srcdir/configure.gnu"; then
2052 echo &&
2053 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2054 elif test -f "$ac_srcdir/configure"; then
2055 echo &&
2056 $SHELL "$ac_srcdir/configure" --help=recursive
2057 else
2058 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2059 fi || ac_status=$?
2060 cd "$ac_pwd" || { ac_status=$?; break; }
2061 done
2062fi
2063
2064test -n "$ac_init_help" && exit $ac_status
2065if $ac_init_version; then
2066 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002067ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002068generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002069
cristy14fefe52012-05-21 00:59:18 +00002070Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002071This configure script is free software; the Free Software Foundation
2072gives unlimited permission to copy, distribute and modify it.
2073_ACEOF
2074 exit
2075fi
cristy8b350f62009-11-15 23:12:43 +00002076
2077## ------------------------ ##
2078## Autoconf initialization. ##
2079## ------------------------ ##
2080
2081# ac_fn_c_try_compile LINENO
2082# --------------------------
2083# Try to compile conftest.$ac_ext, and return whether this succeeded.
2084ac_fn_c_try_compile ()
2085{
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 rm -f conftest.$ac_objext
2088 if { { ac_try="$ac_compile"
2089case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092esac
2093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094$as_echo "$ac_try_echo"; } >&5
2095 (eval "$ac_compile") 2>conftest.err
2096 ac_status=$?
2097 if test -s conftest.err; then
2098 grep -v '^ *+' conftest.err >conftest.er1
2099 cat conftest.er1 >&5
2100 mv -f conftest.er1 conftest.err
2101 fi
2102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2103 test $ac_status = 0; } && {
2104 test -z "$ac_c_werror_flag" ||
2105 test ! -s conftest.err
2106 } && test -s conftest.$ac_objext; then :
2107 ac_retval=0
2108else
2109 $as_echo "$as_me: failed program was:" >&5
2110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112 ac_retval=1
2113fi
cristyda16f162011-02-19 23:52:17 +00002114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002115 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002116
2117} # ac_fn_c_try_compile
2118
cristy95646052009-11-28 23:05:30 +00002119# ac_fn_c_try_cpp LINENO
2120# ----------------------
2121# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2122ac_fn_c_try_cpp ()
2123{
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 if { { ac_try="$ac_cpp conftest.$ac_ext"
2126case "(($ac_try" in
2127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128 *) ac_try_echo=$ac_try;;
2129esac
2130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2131$as_echo "$ac_try_echo"; } >&5
2132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2133 ac_status=$?
2134 if test -s conftest.err; then
2135 grep -v '^ *+' conftest.err >conftest.er1
2136 cat conftest.er1 >&5
2137 mv -f conftest.er1 conftest.err
2138 fi
2139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002140 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2142 test ! -s conftest.err
2143 }; then :
2144 ac_retval=0
2145else
2146 $as_echo "$as_me: failed program was:" >&5
2147sed 's/^/| /' conftest.$ac_ext >&5
2148
2149 ac_retval=1
2150fi
cristyda16f162011-02-19 23:52:17 +00002151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002152 as_fn_set_status $ac_retval
2153
2154} # ac_fn_c_try_cpp
2155
cristy8b350f62009-11-15 23:12:43 +00002156# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2157# -------------------------------------------------------
2158# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2159# the include files in INCLUDES and setting the cache variable VAR
2160# accordingly.
2161ac_fn_c_check_header_mongrel ()
2162{
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002164 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2166$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002167if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002168 $as_echo_n "(cached) " >&6
2169fi
2170eval ac_res=\$$3
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172$as_echo "$ac_res" >&6; }
2173else
2174 # Is the header compilable?
2175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2176$as_echo_n "checking $2 usability... " >&6; }
2177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h. */
2179$4
2180#include <$2>
2181_ACEOF
2182if ac_fn_c_try_compile "$LINENO"; then :
2183 ac_header_compiler=yes
2184else
2185 ac_header_compiler=no
2186fi
2187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2189$as_echo "$ac_header_compiler" >&6; }
2190
2191# Is the header present?
2192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2193$as_echo_n "checking $2 presence... " >&6; }
2194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195/* end confdefs.h. */
2196#include <$2>
2197_ACEOF
2198if ac_fn_c_try_cpp "$LINENO"; then :
2199 ac_header_preproc=yes
2200else
2201 ac_header_preproc=no
2202fi
cristyda16f162011-02-19 23:52:17 +00002203rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2205$as_echo "$ac_header_preproc" >&6; }
2206
2207# So? What about this header?
2208case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2209 yes:no: )
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2211$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2213$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2214 ;;
2215 no:yes:* )
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2217$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2219$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2221$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2223$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2225$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002226( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002227## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002228## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002229 ) | sed "s/^/$as_me: WARNING: /" >&2
2230 ;;
2231esac
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002234if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002235 $as_echo_n "(cached) " >&6
2236else
2237 eval "$3=\$ac_header_compiler"
2238fi
2239eval ac_res=\$$3
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241$as_echo "$ac_res" >&6; }
2242fi
cristyda16f162011-02-19 23:52:17 +00002243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002244
2245} # ac_fn_c_check_header_mongrel
2246
2247# ac_fn_c_try_run LINENO
2248# ----------------------
2249# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2250# that executables *can* be run.
2251ac_fn_c_try_run ()
2252{
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 if { { ac_try="$ac_link"
2255case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2258esac
2259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2260$as_echo "$ac_try_echo"; } >&5
2261 (eval "$ac_link") 2>&5
2262 ac_status=$?
2263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2264 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2265 { { case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268esac
2269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270$as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_try") 2>&5
2272 ac_status=$?
2273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2274 test $ac_status = 0; }; }; then :
2275 ac_retval=0
2276else
2277 $as_echo "$as_me: program exited with status $ac_status" >&5
2278 $as_echo "$as_me: failed program was:" >&5
2279sed 's/^/| /' conftest.$ac_ext >&5
2280
2281 ac_retval=$ac_status
2282fi
2283 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002285 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002286
2287} # ac_fn_c_try_run
2288
2289# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2290# -------------------------------------------------------
2291# Tests whether HEADER exists and can be compiled using the include files in
2292# INCLUDES, setting the cache variable VAR accordingly.
2293ac_fn_c_check_header_compile ()
2294{
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2297$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002298if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002299 $as_echo_n "(cached) " >&6
2300else
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302/* end confdefs.h. */
2303$4
2304#include <$2>
2305_ACEOF
2306if ac_fn_c_try_compile "$LINENO"; then :
2307 eval "$3=yes"
2308else
2309 eval "$3=no"
2310fi
2311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312fi
2313eval ac_res=\$$3
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002317
2318} # ac_fn_c_check_header_compile
2319
cristya0b81c32010-01-22 02:54:33 +00002320# ac_fn_cxx_try_compile LINENO
2321# ----------------------------
2322# Try to compile conftest.$ac_ext, and return whether this succeeded.
2323ac_fn_cxx_try_compile ()
2324{
2325 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2326 rm -f conftest.$ac_objext
2327 if { { ac_try="$ac_compile"
2328case "(($ac_try" in
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2331esac
2332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2333$as_echo "$ac_try_echo"; } >&5
2334 (eval "$ac_compile") 2>conftest.err
2335 ac_status=$?
2336 if test -s conftest.err; then
2337 grep -v '^ *+' conftest.err >conftest.er1
2338 cat conftest.er1 >&5
2339 mv -f conftest.er1 conftest.err
2340 fi
2341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2342 test $ac_status = 0; } && {
2343 test -z "$ac_cxx_werror_flag" ||
2344 test ! -s conftest.err
2345 } && test -s conftest.$ac_objext; then :
2346 ac_retval=0
2347else
2348 $as_echo "$as_me: failed program was:" >&5
2349sed 's/^/| /' conftest.$ac_ext >&5
2350
2351 ac_retval=1
2352fi
cristyda16f162011-02-19 23:52:17 +00002353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002354 as_fn_set_status $ac_retval
2355
2356} # ac_fn_cxx_try_compile
2357
cristy8b350f62009-11-15 23:12:43 +00002358# ac_fn_c_try_link LINENO
2359# -----------------------
2360# Try to link conftest.$ac_ext, and return whether this succeeded.
2361ac_fn_c_try_link ()
2362{
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 rm -f conftest.$ac_objext conftest$ac_exeext
2365 if { { ac_try="$ac_link"
2366case "(($ac_try" in
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2369esac
2370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2371$as_echo "$ac_try_echo"; } >&5
2372 (eval "$ac_link") 2>conftest.err
2373 ac_status=$?
2374 if test -s conftest.err; then
2375 grep -v '^ *+' conftest.err >conftest.er1
2376 cat conftest.er1 >&5
2377 mv -f conftest.er1 conftest.err
2378 fi
2379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2380 test $ac_status = 0; } && {
2381 test -z "$ac_c_werror_flag" ||
2382 test ! -s conftest.err
2383 } && test -s conftest$ac_exeext && {
2384 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002385 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002386 }; then :
2387 ac_retval=0
2388else
2389 $as_echo "$as_me: failed program was:" >&5
2390sed 's/^/| /' conftest.$ac_ext >&5
2391
2392 ac_retval=1
2393fi
2394 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2395 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2396 # interfere with the next link command; also delete a directory that is
2397 # left behind by Apple's compiler. We do this before executing the actions.
2398 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002399 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002400 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002401
2402} # ac_fn_c_try_link
2403
cristy73bd4a52010-10-05 11:24:23 +00002404# ac_fn_c_check_func LINENO FUNC VAR
2405# ----------------------------------
2406# Tests whether FUNC exists, setting the cache variable VAR accordingly
2407ac_fn_c_check_func ()
2408{
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002412if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002413 $as_echo_n "(cached) " >&6
2414else
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416/* end confdefs.h. */
2417/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2419#define $2 innocuous_$2
2420
2421/* System header to define __stub macros and hopefully few prototypes,
2422 which can conflict with char $2 (); below.
2423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2424 <limits.h> exists even on freestanding compilers. */
2425
2426#ifdef __STDC__
2427# include <limits.h>
2428#else
2429# include <assert.h>
2430#endif
2431
2432#undef $2
2433
2434/* Override any GCC internal prototype to avoid an error.
2435 Use char because int might match the return type of a GCC
2436 builtin and then its argument prototype would still apply. */
2437#ifdef __cplusplus
2438extern "C"
2439#endif
2440char $2 ();
2441/* The GNU C library defines this for functions which it implements
2442 to always fail with ENOSYS. Some functions are actually named
2443 something starting with __ and the normal name is an alias. */
2444#if defined __stub_$2 || defined __stub___$2
2445choke me
2446#endif
2447
2448int
2449main ()
2450{
2451return $2 ();
2452 ;
2453 return 0;
2454}
2455_ACEOF
2456if ac_fn_c_try_link "$LINENO"; then :
2457 eval "$3=yes"
2458else
2459 eval "$3=no"
2460fi
2461rm -f core conftest.err conftest.$ac_objext \
2462 conftest$ac_exeext conftest.$ac_ext
2463fi
2464eval ac_res=\$$3
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002467 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002468
2469} # ac_fn_c_check_func
2470
2471# ac_fn_cxx_try_cpp LINENO
2472# ------------------------
2473# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2474ac_fn_cxx_try_cpp ()
2475{
2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477 if { { ac_try="$ac_cpp conftest.$ac_ext"
2478case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481esac
2482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2483$as_echo "$ac_try_echo"; } >&5
2484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2485 ac_status=$?
2486 if test -s conftest.err; then
2487 grep -v '^ *+' conftest.err >conftest.er1
2488 cat conftest.er1 >&5
2489 mv -f conftest.er1 conftest.err
2490 fi
2491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002492 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002493 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2494 test ! -s conftest.err
2495 }; then :
2496 ac_retval=0
2497else
2498 $as_echo "$as_me: failed program was:" >&5
2499sed 's/^/| /' conftest.$ac_ext >&5
2500
2501 ac_retval=1
2502fi
cristyda16f162011-02-19 23:52:17 +00002503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002504 as_fn_set_status $ac_retval
2505
2506} # ac_fn_cxx_try_cpp
2507
2508# ac_fn_cxx_try_link LINENO
2509# -------------------------
2510# Try to link conftest.$ac_ext, and return whether this succeeded.
2511ac_fn_cxx_try_link ()
2512{
2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514 rm -f conftest.$ac_objext conftest$ac_exeext
2515 if { { ac_try="$ac_link"
2516case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2519esac
2520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2521$as_echo "$ac_try_echo"; } >&5
2522 (eval "$ac_link") 2>conftest.err
2523 ac_status=$?
2524 if test -s conftest.err; then
2525 grep -v '^ *+' conftest.err >conftest.er1
2526 cat conftest.er1 >&5
2527 mv -f conftest.er1 conftest.err
2528 fi
2529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2530 test $ac_status = 0; } && {
2531 test -z "$ac_cxx_werror_flag" ||
2532 test ! -s conftest.err
2533 } && test -s conftest$ac_exeext && {
2534 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002535 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002536 }; then :
2537 ac_retval=0
2538else
2539 $as_echo "$as_me: failed program was:" >&5
2540sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 ac_retval=1
2543fi
2544 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2545 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2546 # interfere with the next link command; also delete a directory that is
2547 # left behind by Apple's compiler. We do this before executing the actions.
2548 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002550 as_fn_set_status $ac_retval
2551
2552} # ac_fn_cxx_try_link
2553
cristy8b350f62009-11-15 23:12:43 +00002554# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2555# -------------------------------------------
2556# Tests whether TYPE exists after having included INCLUDES, setting cache
2557# variable VAR accordingly.
2558ac_fn_c_check_type ()
2559{
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002563if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002564 $as_echo_n "(cached) " >&6
2565else
2566 eval "$3=no"
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568/* end confdefs.h. */
2569$4
2570int
2571main ()
2572{
2573if (sizeof ($2))
2574 return 0;
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579if ac_fn_c_try_compile "$LINENO"; then :
2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581/* end confdefs.h. */
2582$4
2583int
2584main ()
2585{
2586if (sizeof (($2)))
2587 return 0;
2588 ;
2589 return 0;
2590}
2591_ACEOF
2592if ac_fn_c_try_compile "$LINENO"; then :
2593
2594else
2595 eval "$3=yes"
2596fi
2597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
2599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600fi
2601eval ac_res=\$$3
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002605
2606} # ac_fn_c_check_type
2607
cristy92703d82010-04-26 00:18:18 +00002608# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2609# ----------------------------------------------------
2610# Tries to find if the field MEMBER exists in type AGGR, after including
2611# INCLUDES, setting cache variable VAR accordingly.
2612ac_fn_c_check_member ()
2613{
2614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2616$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002617if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002618 $as_echo_n "(cached) " >&6
2619else
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621/* end confdefs.h. */
2622$5
2623int
2624main ()
2625{
2626static $2 ac_aggr;
2627if (ac_aggr.$3)
2628return 0;
2629 ;
2630 return 0;
2631}
2632_ACEOF
2633if ac_fn_c_try_compile "$LINENO"; then :
2634 eval "$4=yes"
2635else
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637/* end confdefs.h. */
2638$5
2639int
2640main ()
2641{
2642static $2 ac_aggr;
2643if (sizeof ac_aggr.$3)
2644return 0;
2645 ;
2646 return 0;
2647}
2648_ACEOF
2649if ac_fn_c_try_compile "$LINENO"; then :
2650 eval "$4=yes"
2651else
2652 eval "$4=no"
2653fi
2654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655fi
2656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657fi
2658eval ac_res=\$$4
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2660$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002662
2663} # ac_fn_c_check_member
2664
cristy5eef09f2012-10-16 12:08:28 +00002665# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2666# ---------------------------------------------
2667# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2668# accordingly.
2669ac_fn_c_check_decl ()
2670{
2671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672 as_decl_name=`echo $2|sed 's/ *(.*//'`
2673 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2675$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2676if eval \${$3+:} false; then :
2677 $as_echo_n "(cached) " >&6
2678else
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680/* end confdefs.h. */
2681$4
2682int
2683main ()
2684{
2685#ifndef $as_decl_name
2686#ifdef __cplusplus
2687 (void) $as_decl_use;
2688#else
2689 (void) $as_decl_name;
2690#endif
2691#endif
2692
2693 ;
2694 return 0;
2695}
2696_ACEOF
2697if ac_fn_c_try_compile "$LINENO"; then :
2698 eval "$3=yes"
2699else
2700 eval "$3=no"
2701fi
2702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703fi
2704eval ac_res=\$$3
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2706$as_echo "$ac_res" >&6; }
2707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2708
2709} # ac_fn_c_check_decl
2710
cristy501c8042011-05-26 17:46:28 +00002711# ac_fn_c_find_intX_t LINENO BITS VAR
2712# -----------------------------------
2713# Finds a signed integer type with width BITS, setting cache variable VAR
2714# accordingly.
2715ac_fn_c_find_intX_t ()
2716{
2717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2719$as_echo_n "checking for int$2_t... " >&6; }
2720if eval \${$3+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722else
2723 eval "$3=no"
2724 # Order is important - never check a type that is potentially smaller
2725 # than half of the expected target width.
2726 for ac_type in int$2_t 'int' 'long int' \
2727 'long long int' 'short int' 'signed char'; do
2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729/* end confdefs.h. */
2730$ac_includes_default
2731 enum { N = $2 / 2 - 1 };
2732int
2733main ()
2734{
2735static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002736test_array [0] = 0;
2737return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002738
2739 ;
2740 return 0;
2741}
2742_ACEOF
2743if ac_fn_c_try_compile "$LINENO"; then :
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745/* end confdefs.h. */
2746$ac_includes_default
2747 enum { N = $2 / 2 - 1 };
2748int
2749main ()
2750{
2751static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2752 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002753test_array [0] = 0;
2754return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002755
2756 ;
2757 return 0;
2758}
2759_ACEOF
2760if ac_fn_c_try_compile "$LINENO"; then :
2761
2762else
2763 case $ac_type in #(
2764 int$2_t) :
2765 eval "$3=yes" ;; #(
2766 *) :
2767 eval "$3=\$ac_type" ;;
2768esac
2769fi
2770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771fi
2772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773 if eval test \"x\$"$3"\" = x"no"; then :
2774
2775else
2776 break
2777fi
2778 done
2779fi
2780eval ac_res=\$$3
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2782$as_echo "$ac_res" >&6; }
2783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2784
2785} # ac_fn_c_find_intX_t
2786
2787# ac_fn_c_find_uintX_t LINENO BITS VAR
2788# ------------------------------------
2789# Finds an unsigned integer type with width BITS, setting cache variable VAR
2790# accordingly.
2791ac_fn_c_find_uintX_t ()
2792{
2793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2795$as_echo_n "checking for uint$2_t... " >&6; }
2796if eval \${$3+:} false; then :
2797 $as_echo_n "(cached) " >&6
2798else
2799 eval "$3=no"
2800 # Order is important - never check a type that is potentially smaller
2801 # than half of the expected target width.
2802 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2803 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2805/* end confdefs.h. */
2806$ac_includes_default
2807int
2808main ()
2809{
2810static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002811test_array [0] = 0;
2812return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002813
2814 ;
2815 return 0;
2816}
2817_ACEOF
2818if ac_fn_c_try_compile "$LINENO"; then :
2819 case $ac_type in #(
2820 uint$2_t) :
2821 eval "$3=yes" ;; #(
2822 *) :
2823 eval "$3=\$ac_type" ;;
2824esac
2825fi
2826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827 if eval test \"x\$"$3"\" = x"no"; then :
2828
2829else
2830 break
2831fi
2832 done
2833fi
2834eval ac_res=\$$3
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2836$as_echo "$ac_res" >&6; }
2837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2838
2839} # ac_fn_c_find_uintX_t
2840
cristy8b350f62009-11-15 23:12:43 +00002841# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2842# --------------------------------------------
2843# Tries to find the compile-time value of EXPR in a program that includes
2844# INCLUDES, setting VAR accordingly. Returns whether the value could be
2845# computed
2846ac_fn_c_compute_int ()
2847{
2848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2849 if test "$cross_compiling" = yes; then
2850 # Depending upon the size, compute the lo and hi bounds.
2851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852/* end confdefs.h. */
2853$4
2854int
2855main ()
2856{
2857static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002858test_array [0] = 0;
2859return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002860
2861 ;
2862 return 0;
2863}
2864_ACEOF
2865if ac_fn_c_try_compile "$LINENO"; then :
2866 ac_lo=0 ac_mid=0
2867 while :; do
2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869/* end confdefs.h. */
2870$4
2871int
2872main ()
2873{
2874static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002875test_array [0] = 0;
2876return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002877
2878 ;
2879 return 0;
2880}
2881_ACEOF
2882if ac_fn_c_try_compile "$LINENO"; then :
2883 ac_hi=$ac_mid; break
2884else
2885 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2886 if test $ac_lo -le $ac_mid; then
2887 ac_lo= ac_hi=
2888 break
2889 fi
2890 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2891fi
2892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 done
2894else
2895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896/* end confdefs.h. */
2897$4
2898int
2899main ()
2900{
2901static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002902test_array [0] = 0;
2903return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002904
2905 ;
2906 return 0;
2907}
2908_ACEOF
2909if ac_fn_c_try_compile "$LINENO"; then :
2910 ac_hi=-1 ac_mid=-1
2911 while :; do
2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913/* end confdefs.h. */
2914$4
2915int
2916main ()
2917{
2918static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002919test_array [0] = 0;
2920return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002921
2922 ;
2923 return 0;
2924}
2925_ACEOF
2926if ac_fn_c_try_compile "$LINENO"; then :
2927 ac_lo=$ac_mid; break
2928else
2929 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2930 if test $ac_mid -le $ac_hi; then
2931 ac_lo= ac_hi=
2932 break
2933 fi
2934 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2935fi
2936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2937 done
2938else
2939 ac_lo= ac_hi=
2940fi
2941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942fi
2943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944# Binary search between lo and hi bounds.
2945while test "x$ac_lo" != "x$ac_hi"; do
2946 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948/* end confdefs.h. */
2949$4
2950int
2951main ()
2952{
2953static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002954test_array [0] = 0;
2955return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002956
2957 ;
2958 return 0;
2959}
2960_ACEOF
2961if ac_fn_c_try_compile "$LINENO"; then :
2962 ac_hi=$ac_mid
2963else
2964 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2965fi
2966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2967done
2968case $ac_lo in #((
2969?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2970'') ac_retval=1 ;;
2971esac
2972 else
2973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974/* end confdefs.h. */
2975$4
2976static long int longval () { return $2; }
2977static unsigned long int ulongval () { return $2; }
2978#include <stdio.h>
2979#include <stdlib.h>
2980int
2981main ()
2982{
2983
2984 FILE *f = fopen ("conftest.val", "w");
2985 if (! f)
2986 return 1;
2987 if (($2) < 0)
2988 {
2989 long int i = longval ();
2990 if (i != ($2))
2991 return 1;
2992 fprintf (f, "%ld", i);
2993 }
2994 else
2995 {
2996 unsigned long int i = ulongval ();
2997 if (i != ($2))
2998 return 1;
2999 fprintf (f, "%lu", i);
3000 }
3001 /* Do not output a trailing newline, as this causes \r\n confusion
3002 on some platforms. */
3003 return ferror (f) || fclose (f) != 0;
3004
3005 ;
3006 return 0;
3007}
3008_ACEOF
3009if ac_fn_c_try_run "$LINENO"; then :
3010 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3011else
3012 ac_retval=1
3013fi
3014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3015 conftest.$ac_objext conftest.beam conftest.$ac_ext
3016rm -f conftest.val
3017
3018 fi
cristyda16f162011-02-19 23:52:17 +00003019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003020 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003021
3022} # ac_fn_c_compute_int
3023
3024# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3025# ---------------------------------------------------------
3026# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3027# the include files in INCLUDES and setting the cache variable VAR
3028# accordingly.
3029ac_fn_cxx_check_header_mongrel ()
3030{
3031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003032 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3034$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003035if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003036 $as_echo_n "(cached) " >&6
3037fi
3038eval ac_res=\$$3
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3040$as_echo "$ac_res" >&6; }
3041else
3042 # Is the header compilable?
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3044$as_echo_n "checking $2 usability... " >&6; }
3045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046/* end confdefs.h. */
3047$4
3048#include <$2>
3049_ACEOF
3050if ac_fn_cxx_try_compile "$LINENO"; then :
3051 ac_header_compiler=yes
3052else
3053 ac_header_compiler=no
3054fi
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3057$as_echo "$ac_header_compiler" >&6; }
3058
3059# Is the header present?
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3061$as_echo_n "checking $2 presence... " >&6; }
3062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063/* end confdefs.h. */
3064#include <$2>
3065_ACEOF
3066if ac_fn_cxx_try_cpp "$LINENO"; then :
3067 ac_header_preproc=yes
3068else
3069 ac_header_preproc=no
3070fi
cristyda16f162011-02-19 23:52:17 +00003071rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3073$as_echo "$ac_header_preproc" >&6; }
3074
3075# So? What about this header?
3076case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3077 yes:no: )
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3079$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3081$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3082 ;;
3083 no:yes:* )
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3085$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3087$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3089$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3091$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3093$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003094( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003095## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003096## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003097 ) | sed "s/^/$as_me: WARNING: /" >&2
3098 ;;
3099esac
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3101$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003102if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003103 $as_echo_n "(cached) " >&6
3104else
3105 eval "$3=\$ac_header_compiler"
3106fi
3107eval ac_res=\$$3
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3109$as_echo "$ac_res" >&6; }
3110fi
cristyda16f162011-02-19 23:52:17 +00003111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003112
3113} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003114cat >config.log <<_ACEOF
3115This file contains any messages produced by compilers while
3116running configure, to aid debugging if configure makes a mistake.
3117
cristy29eb34e2011-10-16 00:46:08 +00003118It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003119generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003120
3121 $ $0 $@
3122
3123_ACEOF
3124exec 5>>config.log
3125{
3126cat <<_ASUNAME
3127## --------- ##
3128## Platform. ##
3129## --------- ##
3130
3131hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3132uname -m = `(uname -m) 2>/dev/null || echo unknown`
3133uname -r = `(uname -r) 2>/dev/null || echo unknown`
3134uname -s = `(uname -s) 2>/dev/null || echo unknown`
3135uname -v = `(uname -v) 2>/dev/null || echo unknown`
3136
3137/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3138/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3139
3140/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3141/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3142/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3143/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3144/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3145/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3146/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3147
3148_ASUNAME
3149
3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH
3152do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003155 $as_echo "PATH: $as_dir"
3156 done
cristy3ed852e2009-09-05 21:47:34 +00003157IFS=$as_save_IFS
3158
3159} >&5
3160
3161cat >&5 <<_ACEOF
3162
3163
3164## ----------- ##
3165## Core tests. ##
3166## ----------- ##
3167
3168_ACEOF
3169
3170
3171# Keep a trace of the command line.
3172# Strip out --no-create and --no-recursion so they do not pile up.
3173# Strip out --silent because we don't want to record it for future runs.
3174# Also quote any args containing shell meta-characters.
3175# Make two passes to allow for proper duplicate-argument suppression.
3176ac_configure_args=
3177ac_configure_args0=
3178ac_configure_args1=
3179ac_must_keep_next=false
3180for ac_pass in 1 2
3181do
3182 for ac_arg
3183 do
3184 case $ac_arg in
3185 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3187 | -silent | --silent | --silen | --sile | --sil)
3188 continue ;;
3189 *\'*)
3190 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3191 esac
3192 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003193 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003194 2)
cristy8b350f62009-11-15 23:12:43 +00003195 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003196 if test $ac_must_keep_next = true; then
3197 ac_must_keep_next=false # Got value, back to normal.
3198 else
3199 case $ac_arg in
3200 *=* | --config-cache | -C | -disable-* | --disable-* \
3201 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3202 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3203 | -with-* | --with-* | -without-* | --without-* | --x)
3204 case "$ac_configure_args0 " in
3205 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3206 esac
3207 ;;
3208 -* ) ac_must_keep_next=true ;;
3209 esac
3210 fi
cristy8b350f62009-11-15 23:12:43 +00003211 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003212 ;;
3213 esac
3214 done
3215done
cristy8b350f62009-11-15 23:12:43 +00003216{ ac_configure_args0=; unset ac_configure_args0;}
3217{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003218
3219# When interrupted or exit'd, cleanup temporary files, and complete
3220# config.log. We remove comments because anyway the quotes in there
3221# would cause problems or look ugly.
3222# WARNING: Use '\'' to represent an apostrophe within the trap.
3223# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3224trap 'exit_status=$?
3225 # Save into config.log some information that might help in debugging.
3226 {
3227 echo
3228
cristy98dddb52010-11-04 00:30:15 +00003229 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003230## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003231## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003232 echo
3233 # The following way of writing the cache mishandles newlines in values,
3234(
3235 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3236 eval ac_val=\$$ac_var
3237 case $ac_val in #(
3238 *${as_nl}*)
3239 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003240 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003241$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3242 esac
3243 case $ac_var in #(
3244 _ | IFS | as_nl) ;; #(
3245 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003246 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003247 esac ;;
3248 esac
3249 done
3250 (set) 2>&1 |
3251 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3252 *${as_nl}ac_space=\ *)
3253 sed -n \
3254 "s/'\''/'\''\\\\'\'''\''/g;
3255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3256 ;; #(
3257 *)
3258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3259 ;;
3260 esac |
3261 sort
3262)
3263 echo
3264
cristy98dddb52010-11-04 00:30:15 +00003265 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003266## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003267## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003268 echo
3269 for ac_var in $ac_subst_vars
3270 do
3271 eval ac_val=\$$ac_var
3272 case $ac_val in
3273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3274 esac
3275 $as_echo "$ac_var='\''$ac_val'\''"
3276 done | sort
3277 echo
3278
3279 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003280 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003281## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003282## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003283 echo
3284 for ac_var in $ac_subst_files
3285 do
3286 eval ac_val=\$$ac_var
3287 case $ac_val in
3288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3289 esac
3290 $as_echo "$ac_var='\''$ac_val'\''"
3291 done | sort
3292 echo
3293 fi
3294
3295 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003296 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003297## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003298## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003299 echo
3300 cat confdefs.h
3301 echo
3302 fi
3303 test "$ac_signal" != 0 &&
3304 $as_echo "$as_me: caught signal $ac_signal"
3305 $as_echo "$as_me: exit $exit_status"
3306 } >&5
3307 rm -f core *.core core.conftest.* &&
3308 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3309 exit $exit_status
3310' 0
3311for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003312 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003313done
3314ac_signal=0
3315
3316# confdefs.h avoids OS command line length limits that DEFS can exceed.
3317rm -f -r conftest* confdefs.h
3318
cristy8b350f62009-11-15 23:12:43 +00003319$as_echo "/* confdefs.h */" > confdefs.h
3320
cristy3ed852e2009-09-05 21:47:34 +00003321# Predefined preprocessor variables.
3322
3323cat >>confdefs.h <<_ACEOF
3324#define PACKAGE_NAME "$PACKAGE_NAME"
3325_ACEOF
3326
cristy3ed852e2009-09-05 21:47:34 +00003327cat >>confdefs.h <<_ACEOF
3328#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3329_ACEOF
3330
cristy3ed852e2009-09-05 21:47:34 +00003331cat >>confdefs.h <<_ACEOF
3332#define PACKAGE_VERSION "$PACKAGE_VERSION"
3333_ACEOF
3334
cristy3ed852e2009-09-05 21:47:34 +00003335cat >>confdefs.h <<_ACEOF
3336#define PACKAGE_STRING "$PACKAGE_STRING"
3337_ACEOF
3338
cristy3ed852e2009-09-05 21:47:34 +00003339cat >>confdefs.h <<_ACEOF
3340#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3341_ACEOF
3342
cristy8b350f62009-11-15 23:12:43 +00003343cat >>confdefs.h <<_ACEOF
3344#define PACKAGE_URL "$PACKAGE_URL"
3345_ACEOF
3346
cristy3ed852e2009-09-05 21:47:34 +00003347
3348# Let the site file select an alternate cache file if it wants to.
3349# Prefer an explicitly selected file to automatically selected ones.
3350ac_site_file1=NONE
3351ac_site_file2=NONE
3352if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003353 # We do not want a PATH search for config.site.
3354 case $CONFIG_SITE in #((
3355 -*) ac_site_file1=./$CONFIG_SITE;;
3356 */*) ac_site_file1=$CONFIG_SITE;;
3357 *) ac_site_file1=./$CONFIG_SITE;;
3358 esac
cristy3ed852e2009-09-05 21:47:34 +00003359elif test "x$prefix" != xNONE; then
3360 ac_site_file1=$prefix/share/config.site
3361 ac_site_file2=$prefix/etc/config.site
3362else
3363 ac_site_file1=$ac_default_prefix/share/config.site
3364 ac_site_file2=$ac_default_prefix/etc/config.site
3365fi
3366for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3367do
3368 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003369 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003370 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003371$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3372 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003373 . "$ac_site_file" \
3374 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376as_fn_error $? "failed to load site script $ac_site_file
3377See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003378 fi
3379done
3380
3381if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003382 # Some versions of bash will fail to source /dev/null (special files
3383 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3384 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003386$as_echo "$as_me: loading cache $cache_file" >&6;}
3387 case $cache_file in
3388 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3389 *) . "./$cache_file";;
3390 esac
3391 fi
3392else
cristy8b350f62009-11-15 23:12:43 +00003393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003394$as_echo "$as_me: creating cache $cache_file" >&6;}
3395 >$cache_file
3396fi
3397
cristycd4c5312009-11-22 01:19:08 +00003398as_fn_append ac_header_list " stdlib.h"
3399as_fn_append ac_header_list " unistd.h"
3400as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003401# Check that the precious variables saved in the cache have kept the same
3402# value.
3403ac_cache_corrupted=false
3404for ac_var in $ac_precious_vars; do
3405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3406 eval ac_new_set=\$ac_env_${ac_var}_set
3407 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3408 eval ac_new_val=\$ac_env_${ac_var}_value
3409 case $ac_old_set,$ac_new_set in
3410 set,)
cristy8b350f62009-11-15 23:12:43 +00003411 { $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 +00003412$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3413 ac_cache_corrupted=: ;;
3414 ,set)
cristy8b350f62009-11-15 23:12:43 +00003415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003416$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3417 ac_cache_corrupted=: ;;
3418 ,);;
3419 *)
3420 if test "x$ac_old_val" != "x$ac_new_val"; then
3421 # differences in whitespace do not lead to failure.
3422 ac_old_val_w=`echo x $ac_old_val`
3423 ac_new_val_w=`echo x $ac_new_val`
3424 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003426$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3427 ac_cache_corrupted=:
3428 else
cristy8b350f62009-11-15 23:12:43 +00003429 { $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 +00003430$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3431 eval $ac_var=\$ac_old_val
3432 fi
cristy8b350f62009-11-15 23:12:43 +00003433 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003434$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003435 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003436$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3437 fi;;
3438 esac
3439 # Pass precious variables to config.status.
3440 if test "$ac_new_set" = set; then
3441 case $ac_new_val in
3442 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3443 *) ac_arg=$ac_var=$ac_new_val ;;
3444 esac
3445 case " $ac_configure_args " in
3446 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003447 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003448 esac
3449 fi
3450done
3451if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003455$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003456 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003457fi
cristy8b350f62009-11-15 23:12:43 +00003458## -------------------- ##
3459## Main body of script. ##
3460## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003461
3462ac_ext=c
3463ac_cpp='$CPP $CPPFLAGS'
3464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467
3468
3469
3470ac_aux_dir=
3471for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003472 if test -f "$ac_dir/install-sh"; then
3473 ac_aux_dir=$ac_dir
3474 ac_install_sh="$ac_aux_dir/install-sh -c"
3475 break
3476 elif test -f "$ac_dir/install.sh"; then
3477 ac_aux_dir=$ac_dir
3478 ac_install_sh="$ac_aux_dir/install.sh -c"
3479 break
3480 elif test -f "$ac_dir/shtool"; then
3481 ac_aux_dir=$ac_dir
3482 ac_install_sh="$ac_aux_dir/shtool install -c"
3483 break
3484 fi
cristy3ed852e2009-09-05 21:47:34 +00003485done
3486if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003487 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003488fi
3489
3490# These three variables are undocumented and unsupported,
3491# and are intended to be withdrawn in a future Autoconf release.
3492# They can cause serious problems if a builder's source tree is in a directory
3493# whose full name contains unusual characters.
3494ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3495ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3496ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3497
3498
3499
3500
3501ac_config_headers="$ac_config_headers config/config.h"
3502
cristy24fc1fe2010-10-23 21:13:01 +00003503
cristy01ff9f32012-12-01 18:15:29 +00003504ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003505
cristy8d0ff762013-03-10 20:33:28 +00003506ac_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 +00003507
3508
3509#
3510# Save initial user-tunable values
3511#
3512USER_LIBS=$LIBS
3513for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3514 eval isset=\${$var+set}
3515 if test "$isset" = 'set'; then
3516 eval val=$`echo $var`
3517 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3518 fi
3519done
3520
3521
3522CONFIGURE_ARGS="$0 ${ac_configure_args}"
3523
3524
3525# Source file containing package/library versioning information.
3526. ${srcdir}/version.sh
3527
cristy15a88782010-01-31 23:24:49 +00003528echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003529# Make sure we can run config.sub.
3530$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003531 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003532
cristy8b350f62009-11-15 23:12:43 +00003533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003534$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003535if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003536 $as_echo_n "(cached) " >&6
3537else
3538 ac_build_alias=$build_alias
3539test "x$ac_build_alias" = x &&
3540 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3541test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003542 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003543ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003545
3546fi
cristy8b350f62009-11-15 23:12:43 +00003547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003548$as_echo "$ac_cv_build" >&6; }
3549case $ac_cv_build in
3550*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003551*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003552esac
3553build=$ac_cv_build
3554ac_save_IFS=$IFS; IFS='-'
3555set x $ac_cv_build
3556shift
3557build_cpu=$1
3558build_vendor=$2
3559shift; shift
3560# Remember, the first character of IFS is used to create $*,
3561# except with old shells:
3562build_os=$*
3563IFS=$ac_save_IFS
3564case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3565
3566
cristy8b350f62009-11-15 23:12:43 +00003567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003568$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003569if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003570 $as_echo_n "(cached) " >&6
3571else
3572 if test "x$host_alias" = x; then
3573 ac_cv_host=$ac_cv_build
3574else
3575 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003576 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003577fi
3578
3579fi
cristy8b350f62009-11-15 23:12:43 +00003580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003581$as_echo "$ac_cv_host" >&6; }
3582case $ac_cv_host in
3583*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003584*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003585esac
3586host=$ac_cv_host
3587ac_save_IFS=$IFS; IFS='-'
3588set x $ac_cv_host
3589shift
3590host_cpu=$1
3591host_vendor=$2
3592shift; shift
3593# Remember, the first character of IFS is used to create $*,
3594# except with old shells:
3595host_os=$*
3596IFS=$ac_save_IFS
3597case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3598
3599
cristy8b350f62009-11-15 23:12:43 +00003600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003601$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003602if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003603 $as_echo_n "(cached) " >&6
3604else
3605 if test "x$target_alias" = x; then
3606 ac_cv_target=$ac_cv_host
3607else
3608 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003610fi
3611
3612fi
cristy8b350f62009-11-15 23:12:43 +00003613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003614$as_echo "$ac_cv_target" >&6; }
3615case $ac_cv_target in
3616*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003617*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003618esac
3619target=$ac_cv_target
3620ac_save_IFS=$IFS; IFS='-'
3621set x $ac_cv_target
3622shift
3623target_cpu=$1
3624target_vendor=$2
3625shift; shift
3626# Remember, the first character of IFS is used to create $*,
3627# except with old shells:
3628target_os=$*
3629IFS=$ac_save_IFS
3630case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3631
3632
3633# The aliases save the names the user supplied, while $host etc.
3634# will get canonicalized.
3635test -n "$target_alias" &&
3636 test "$program_prefix$program_suffix$program_transform_name" = \
3637 NONENONEs,x,x, &&
3638 program_prefix=${target_alias}-
3639
cristy837d6dc2010-02-27 01:16:57 +00003640
3641
3642
cristy8be34142012-06-17 14:07:18 +00003643
cristy19615b82011-04-13 20:02:01 +00003644MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003645
3646
cristy27d53d62012-07-29 23:30:07 +00003647cat >>confdefs.h <<_ACEOF
3648#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3649_ACEOF
3650
3651
cristy19615b82011-04-13 20:02:01 +00003652MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003653
3654
cristy27d53d62012-07-29 23:30:07 +00003655cat >>confdefs.h <<_ACEOF
3656#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3657_ACEOF
3658
3659
cristy19615b82011-04-13 20:02:01 +00003660MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003661
3662
cristy27d53d62012-07-29 23:30:07 +00003663cat >>confdefs.h <<_ACEOF
3664#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3665_ACEOF
3666
3667
cristy37442762013-02-10 21:07:23 +00003668
3669# Substitute versioning
3670MAGICK_MAJOR_VERSION=7
3671
3672MAGICK_MINOR_VERSION=0
3673
3674MAGICK_MICRO_VERSION=0
3675
3676MAGICK_PATCHLEVEL_VERSION=0
3677
3678MAGICK_VERSION=7.0.0-0
3679
cristy51633f52013-04-23 14:03:19 +00003680MAGICK_SVN_REVISION=11949:11963M
cristy37442762013-02-10 21:07:23 +00003681
3682
cristy3ed852e2009-09-05 21:47:34 +00003683# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003684MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3685
3686MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3687
cristy37442762013-02-10 21:07:23 +00003688
cristyd694ca32011-03-27 21:42:54 +00003689
cristy3ed852e2009-09-05 21:47:34 +00003690# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3692$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003693# Reject unsafe characters in $srcdir or the absolute working directory
3694# name. Accept space and tab only in the latter.
3695am_lf='
3696'
3697case `pwd` in
3698 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003699 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003700esac
3701case $srcdir in
3702 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003703 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003704esac
cristy3ed852e2009-09-05 21:47:34 +00003705
cristyc0890a62012-07-19 00:18:20 +00003706# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003707# arguments. Must try -L first in case configure is actually a
3708# symlink; some systems play weird games with the mod time of symlinks
3709# (eg FreeBSD returns the mod time of the symlink's containing
3710# directory).
3711if (
cristyc0890a62012-07-19 00:18:20 +00003712 am_has_slept=no
3713 for am_try in 1 2; do
3714 echo "timestamp, slept: $am_has_slept" > conftest.file
3715 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3716 if test "$*" = "X"; then
3717 # -L didn't work.
3718 set X `ls -t "$srcdir/configure" conftest.file`
3719 fi
3720 if test "$*" != "X $srcdir/configure conftest.file" \
3721 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003722
cristyc0890a62012-07-19 00:18:20 +00003723 # If neither matched, then we have a broken ls. This can happen
3724 # if, for instance, CONFIG_SHELL is bash and it inherits a
3725 # broken ls alias from the environment. This has actually
3726 # happened. Such a system could not be considered "sane".
3727 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3728 alias in your environment" "$LINENO" 5
3729 fi
3730 if test "$2" = conftest.file || test $am_try -eq 2; then
3731 break
3732 fi
3733 # Just in case.
3734 sleep 1
3735 am_has_slept=yes
3736 done
cristy73bd4a52010-10-05 11:24:23 +00003737 test "$2" = conftest.file
3738 )
3739then
3740 # Ok.
3741 :
3742else
cristy98dddb52010-11-04 00:30:15 +00003743 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003744Check your system clock" "$LINENO" 5
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3747$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003748# If we didn't sleep, we still need to ensure time stamps of config.status and
3749# generated files are strictly newer.
3750am_sleep_pid=
3751if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3752 ( sleep 1 ) &
3753 am_sleep_pid=$!
3754fi
cristy73bd4a52010-10-05 11:24:23 +00003755
cristyc0890a62012-07-19 00:18:20 +00003756rm -f conftest.file
3757
3758
cristy58d34aa2013-01-24 15:11:54 +00003759am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003760
3761# Find a good install program. We prefer a C program (faster),
3762# so one script is as good as another. But avoid the broken or
3763# incompatible versions:
3764# SysV /etc/install, /usr/sbin/install
3765# SunOS /usr/etc/install
3766# IRIX /sbin/install
3767# AIX /bin/install
3768# AmigaOS /C/install, which installs bootblocks on floppy discs
3769# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3770# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3771# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3772# OS/2's system install, which has a completely different semantic
3773# ./install, which can be erroneously created by make from ./install.sh.
3774# Reject install programs that cannot install multiple files.
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3776$as_echo_n "checking for a BSD-compatible install... " >&6; }
3777if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003778if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003779 $as_echo_n "(cached) " >&6
3780else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782for as_dir in $PATH
3783do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 # Account for people who put trailing slashes in PATH elements.
3787case $as_dir/ in #((
3788 ./ | .// | /[cC]/* | \
3789 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3790 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3791 /usr/ucb/* ) ;;
3792 *)
3793 # OSF1 and SCO ODT 3.0 have their own names for install.
3794 # Don't use installbsd from OSF since it installs stuff as root
3795 # by default.
3796 for ac_prog in ginstall scoinst install; do
3797 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003798 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003799 if test $ac_prog = install &&
3800 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3801 # AIX install. It has an incompatible calling convention.
3802 :
3803 elif test $ac_prog = install &&
3804 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3805 # program-specific install script used by HP pwplus--don't use.
3806 :
3807 else
3808 rm -rf conftest.one conftest.two conftest.dir
3809 echo one > conftest.one
3810 echo two > conftest.two
3811 mkdir conftest.dir
3812 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3813 test -s conftest.one && test -s conftest.two &&
3814 test -s conftest.dir/conftest.one &&
3815 test -s conftest.dir/conftest.two
3816 then
3817 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3818 break 3
3819 fi
3820 fi
3821 fi
3822 done
3823 done
3824 ;;
3825esac
3826
3827 done
3828IFS=$as_save_IFS
3829
3830rm -rf conftest.one conftest.two conftest.dir
3831
3832fi
3833 if test "${ac_cv_path_install+set}" = set; then
3834 INSTALL=$ac_cv_path_install
3835 else
3836 # As a last resort, use the slow shell script. Don't cache a
3837 # value for INSTALL within a source directory, because that will
3838 # break other packages using the cache if that directory is
3839 # removed, or if the value is a relative name.
3840 INSTALL=$ac_install_sh
3841 fi
3842fi
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3844$as_echo "$INSTALL" >&6; }
3845
3846# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3847# It thinks the first close brace ends the variable substitution.
3848test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3849
3850test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3851
3852test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3853
3854test "$program_prefix" != NONE &&
3855 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3856# Use a double $ so make ignores it.
3857test "$program_suffix" != NONE &&
3858 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3859# Double any \ or $.
3860# By default was `s,x,x', remove it if useless.
3861ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3862program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3863
3864# expand $ac_aux_dir to an absolute path
3865am_aux_dir=`cd $ac_aux_dir && pwd`
3866
3867if test x"${MISSING+set}" != xset; then
3868 case $am_aux_dir in
3869 *\ * | *\ *)
3870 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3871 *)
3872 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3873 esac
3874fi
3875# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003876if eval "$MISSING --is-lightweight"; then
3877 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003878else
3879 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3881$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003882fi
3883
3884if test x"${install_sh}" != xset; then
3885 case $am_aux_dir in
3886 *\ * | *\ *)
3887 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3888 *)
3889 install_sh="\${SHELL} $am_aux_dir/install-sh"
3890 esac
3891fi
3892
cristyc0890a62012-07-19 00:18:20 +00003893# Installed binaries are usually stripped using 'strip' when the user
3894# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003895# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003896# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003897if test "$cross_compiling" != no; then
3898 if test -n "$ac_tool_prefix"; then
3899 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3900set dummy ${ac_tool_prefix}strip; ac_word=$2
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003903if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003904 $as_echo_n "(cached) " >&6
3905else
3906 if test -n "$STRIP"; then
3907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3908else
3909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910for as_dir in $PATH
3911do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003916 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920done
3921 done
3922IFS=$as_save_IFS
3923
3924fi
3925fi
3926STRIP=$ac_cv_prog_STRIP
3927if test -n "$STRIP"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3929$as_echo "$STRIP" >&6; }
3930else
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932$as_echo "no" >&6; }
3933fi
3934
3935
3936fi
3937if test -z "$ac_cv_prog_STRIP"; then
3938 ac_ct_STRIP=$STRIP
3939 # Extract the first word of "strip", so it can be a program name with args.
3940set dummy strip; ac_word=$2
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003943if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003944 $as_echo_n "(cached) " >&6
3945else
3946 if test -n "$ac_ct_STRIP"; then
3947 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3948else
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003956 ac_cv_prog_ac_ct_STRIP="strip"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3959 fi
3960done
3961 done
3962IFS=$as_save_IFS
3963
3964fi
3965fi
3966ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3967if test -n "$ac_ct_STRIP"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3969$as_echo "$ac_ct_STRIP" >&6; }
3970else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972$as_echo "no" >&6; }
3973fi
3974
3975 if test "x$ac_ct_STRIP" = x; then
3976 STRIP=":"
3977 else
3978 case $cross_compiling:$ac_tool_warned in
3979yes:)
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3982ac_tool_warned=yes ;;
3983esac
3984 STRIP=$ac_ct_STRIP
3985 fi
3986else
3987 STRIP="$ac_cv_prog_STRIP"
3988fi
3989
3990fi
3991INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3992
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3994$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3995if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003996 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003997 $as_echo_n "(cached) " >&6
3998else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4001do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_prog in mkdir gmkdir; do
4005 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004006 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004007 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4008 'mkdir (GNU coreutils) '* | \
4009 'mkdir (coreutils) '* | \
4010 'mkdir (fileutils) '4.1*)
4011 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4012 break 3;;
4013 esac
4014 done
4015 done
4016 done
4017IFS=$as_save_IFS
4018
4019fi
4020
4021 test -d ./--version && rmdir ./--version
4022 if test "${ac_cv_path_mkdir+set}" = set; then
4023 MKDIR_P="$ac_cv_path_mkdir -p"
4024 else
4025 # As a last resort, use the slow shell script. Don't cache a
4026 # value for MKDIR_P within a source directory, because that will
4027 # break other packages using the cache if that directory is
4028 # removed, or if the value is a relative name.
4029 MKDIR_P="$ac_install_sh -d"
4030 fi
4031fi
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4033$as_echo "$MKDIR_P" >&6; }
4034
cristy73bd4a52010-10-05 11:24:23 +00004035for ac_prog in gawk mawk nawk awk
4036do
4037 # Extract the first word of "$ac_prog", so it can be a program name with args.
4038set dummy $ac_prog; ac_word=$2
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004041if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004042 $as_echo_n "(cached) " >&6
4043else
4044 if test -n "$AWK"; then
4045 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4046else
4047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048for as_dir in $PATH
4049do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004054 ac_cv_prog_AWK="$ac_prog"
4055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 break 2
4057 fi
4058done
4059 done
4060IFS=$as_save_IFS
4061
4062fi
4063fi
4064AWK=$ac_cv_prog_AWK
4065if test -n "$AWK"; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4067$as_echo "$AWK" >&6; }
4068else
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070$as_echo "no" >&6; }
4071fi
4072
4073
4074 test -n "$AWK" && break
4075done
4076
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4078$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4079set x ${MAKE-make}
4080ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004081if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004082 $as_echo_n "(cached) " >&6
4083else
4084 cat >conftest.make <<\_ACEOF
4085SHELL = /bin/sh
4086all:
4087 @echo '@@@%%%=$(MAKE)=@@@%%%'
4088_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004089# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004090case `${MAKE-make} -f conftest.make 2>/dev/null` in
4091 *@@@%%%=?*=@@@%%%*)
4092 eval ac_cv_prog_make_${ac_make}_set=yes;;
4093 *)
4094 eval ac_cv_prog_make_${ac_make}_set=no;;
4095esac
4096rm -f conftest.make
4097fi
4098if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4100$as_echo "yes" >&6; }
4101 SET_MAKE=
4102else
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104$as_echo "no" >&6; }
4105 SET_MAKE="MAKE=${MAKE-make}"
4106fi
4107
4108rm -rf .tst 2>/dev/null
4109mkdir .tst 2>/dev/null
4110if test -d .tst; then
4111 am__leading_dot=.
4112else
4113 am__leading_dot=_
4114fi
4115rmdir .tst 2>/dev/null
4116
cristya448bd22011-10-14 12:38:13 +00004117# Check whether --enable-silent-rules was given.
4118if test "${enable_silent_rules+set}" = set; then :
4119 enableval=$enable_silent_rules;
4120fi
4121
cristyc0890a62012-07-19 00:18:20 +00004122case $enable_silent_rules in # (((
4123 yes) AM_DEFAULT_VERBOSITY=0;;
4124 no) AM_DEFAULT_VERBOSITY=1;;
4125 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004126esac
cristyc3fb77b2012-02-06 01:49:41 +00004127am_make=${MAKE-make}
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4129$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4130if ${am_cv_make_support_nested_variables+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132else
4133 if $as_echo 'TRUE=$(BAR$(V))
4134BAR0=false
4135BAR1=true
4136V=1
4137am__doit:
4138 @$(TRUE)
4139.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4140 am_cv_make_support_nested_variables=yes
4141else
4142 am_cv_make_support_nested_variables=no
4143fi
4144fi
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4146$as_echo "$am_cv_make_support_nested_variables" >&6; }
4147if test $am_cv_make_support_nested_variables = yes; then
4148 AM_V='$(V)'
4149 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4150else
4151 AM_V=$AM_DEFAULT_VERBOSITY
4152 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4153fi
cristya448bd22011-10-14 12:38:13 +00004154AM_BACKSLASH='\'
4155
cristy73bd4a52010-10-05 11:24:23 +00004156if test "`cd $srcdir && pwd`" != "`pwd`"; then
4157 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4158 # is not polluted with repeated "-I."
4159 am__isrc=' -I$(srcdir)'
4160 # test to see if srcdir already configured
4161 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004162 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004163 fi
4164fi
4165
4166# test whether we have cygpath
4167if test -z "$CYGPATH_W"; then
4168 if (cygpath --version) >/dev/null 2>/dev/null; then
4169 CYGPATH_W='cygpath -w'
4170 else
4171 CYGPATH_W=echo
4172 fi
4173fi
4174
4175
4176# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004177 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004178 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004179
4180
cristya448bd22011-10-14 12:38:13 +00004181cat >>confdefs.h <<_ACEOF
4182#define PACKAGE "$PACKAGE"
4183_ACEOF
4184
4185
4186cat >>confdefs.h <<_ACEOF
4187#define VERSION "$VERSION"
4188_ACEOF
4189
cristy73bd4a52010-10-05 11:24:23 +00004190# Some tools Automake needs.
4191
4192ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4193
4194
4195AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4196
4197
4198AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4199
4200
4201AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4202
4203
4204MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4205
cristyc0890a62012-07-19 00:18:20 +00004206# For better backward compatibility. To be removed once Automake 1.9.x
4207# dies out for good. For more background, see:
4208# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4209# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4210mkdir_p='$(MKDIR_P)'
4211
cristy73bd4a52010-10-05 11:24:23 +00004212# We need awk for the "check" target. The system "awk" is bad on
4213# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004214# Always define AMTAR for backward compatibility. Yes, it's still used
4215# in the wild :-( We should find a proper way to deprecate it ...
4216AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004217
cristyc3fb77b2012-02-06 01:49:41 +00004218am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004219
4220
4221
4222
4223
cristy3ed852e2009-09-05 21:47:34 +00004224
4225# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004226# Check whether --enable-silent-rules was given.
4227if test "${enable_silent_rules+set}" = set; then :
4228 enableval=$enable_silent_rules;
4229fi
4230
cristyc0890a62012-07-19 00:18:20 +00004231case $enable_silent_rules in # (((
4232 yes) AM_DEFAULT_VERBOSITY=0;;
4233 no) AM_DEFAULT_VERBOSITY=1;;
4234 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004235esac
cristyc3fb77b2012-02-06 01:49:41 +00004236am_make=${MAKE-make}
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4238$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4239if ${am_cv_make_support_nested_variables+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241else
4242 if $as_echo 'TRUE=$(BAR$(V))
4243BAR0=false
4244BAR1=true
4245V=1
4246am__doit:
4247 @$(TRUE)
4248.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4249 am_cv_make_support_nested_variables=yes
4250else
4251 am_cv_make_support_nested_variables=no
4252fi
4253fi
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4255$as_echo "$am_cv_make_support_nested_variables" >&6; }
4256if test $am_cv_make_support_nested_variables = yes; then
4257 AM_V='$(V)'
4258 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4259else
4260 AM_V=$AM_DEFAULT_VERBOSITY
4261 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4262fi
cristy73bd4a52010-10-05 11:24:23 +00004263AM_BACKSLASH='\'
4264
cristy3ed852e2009-09-05 21:47:34 +00004265
4266MAGICK_LIB_VERSION="0x"
4267if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4268 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4269fi
4270MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4271if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4272 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4273fi
4274MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4275if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4276 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4277fi
4278MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4279
4280
4281# Definition used to define MagickLibVersionText in version.h
4282MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4283
4284
4285# Definition used to define MagickLibVersionNumber in version.h
4286MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4287
4288
4289# Regenerate config.status if ChangeLog or version.sh is updated.
4290CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4291
4292
4293PERLMAINCC=$CC
4294
4295MAGICK_CFLAGS=''
4296MAGICK_CPPFLAGS=$CPPFLAGS_USER
4297MAGICK_PCFLAGS=$CPPFLAGS_USER
4298MAGICK_LDFLAGS=''
4299MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004300MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004301
4302#
4303# Evaluate shell variable equivalents to Makefile directory variables
4304#
4305if test "x$prefix" = xNONE; then
4306 prefix=$ac_default_prefix
4307fi
4308# Let make expand exec_prefix.
4309if test "x$exec_prefix" = xNONE; then
4310 exec_prefix='${prefix}'
4311fi
4312
4313#
4314eval "eval PREFIX_DIR=${prefix}"
4315
4316eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4317
4318eval "eval BIN_DIR=$bindir"
4319
4320eval "eval SBIN_DIR=$sbindir"
4321
4322eval "eval LIBEXEC_DIR=$libexecdir"
4323
4324eval "eval DATA_DIR=$datadir"
4325
cristy4e65ec22012-04-08 01:33:27 +00004326eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004327
cristy3ed852e2009-09-05 21:47:34 +00004328eval "eval SYSCONF_DIR=$sysconfdir"
4329
4330eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4331
4332eval "eval LOCALSTATE_DIR=$localstatedir"
4333
4334eval "eval LIB_DIR=$libdir"
4335
4336eval "eval INCLUDE_DIR=$includedir"
4337
4338eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4339
4340eval "eval INFO_DIR=$infodir"
4341
4342eval "eval MAN_DIR=$mandir"
4343
4344
4345# Get full paths to source and build directories
4346srcdirfull="`cd $srcdir && pwd`"
4347builddir="`pwd`"
4348
4349#
4350# Compute variables useful for running uninstalled software.
4351#
4352MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4353MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4354MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4355MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4356DIRSEP=':'
4357case "${build_os}" in
4358 mingw* )
4359 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4360 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4361 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4362 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4363 DIRSEP=';'
4364 ;;
4365esac
4366case "${host_os}" in
4367 mingw* )
4368 DIRSEP=';'
4369 ;;
4370esac
4371
4372
4373
4374
4375
4376
cristya0b81c32010-01-22 02:54:33 +00004377
4378#
4379# Enable OS features.
4380#
cristy73bd4a52010-10-05 11:24:23 +00004381DEPDIR="${am__leading_dot}deps"
4382
4383ac_config_commands="$ac_config_commands depfiles"
4384
4385
4386am_make=${MAKE-make}
4387cat > confinc << 'END'
4388am__doit:
4389 @echo this is the am__doit target
4390.PHONY: am__doit
4391END
4392# If we don't find an include directive, just comment out the code.
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4394$as_echo_n "checking for style of include used by $am_make... " >&6; }
4395am__include="#"
4396am__quote=
4397_am_result=none
4398# First try GNU make style include.
4399echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004400# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004401case `$am_make -s -f confmf 2> /dev/null` in #(
4402*the\ am__doit\ target*)
4403 am__include=include
4404 am__quote=
4405 _am_result=GNU
4406 ;;
4407esac
4408# Now try BSD make style include.
4409if test "$am__include" = "#"; then
4410 echo '.include "confinc"' > confmf
4411 case `$am_make -s -f confmf 2> /dev/null` in #(
4412 *the\ am__doit\ target*)
4413 am__include=.include
4414 am__quote="\""
4415 _am_result=BSD
4416 ;;
4417 esac
4418fi
4419
4420
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4422$as_echo "$_am_result" >&6; }
4423rm -f confinc confmf
4424
4425# Check whether --enable-dependency-tracking was given.
4426if test "${enable_dependency_tracking+set}" = set; then :
4427 enableval=$enable_dependency_tracking;
4428fi
4429
4430if test "x$enable_dependency_tracking" != xno; then
4431 am_depcomp="$ac_aux_dir/depcomp"
4432 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004433 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004434fi
4435 if test "x$enable_dependency_tracking" != xno; then
4436 AMDEP_TRUE=
4437 AMDEP_FALSE='#'
4438else
4439 AMDEP_TRUE='#'
4440 AMDEP_FALSE=
4441fi
4442
4443
cristy3ed852e2009-09-05 21:47:34 +00004444ac_ext=c
4445ac_cpp='$CPP $CPPFLAGS'
4446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449if test -n "$ac_tool_prefix"; then
4450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4451set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004453$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004454if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004455 $as_echo_n "(cached) " >&6
4456else
4457 if test -n "$CC"; then
4458 ac_cv_prog_CC="$CC" # Let the user override the test.
4459else
4460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461for as_dir in $PATH
4462do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004465 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004467 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004469 break 2
4470 fi
4471done
cristy8b350f62009-11-15 23:12:43 +00004472 done
cristy3ed852e2009-09-05 21:47:34 +00004473IFS=$as_save_IFS
4474
4475fi
4476fi
4477CC=$ac_cv_prog_CC
4478if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004480$as_echo "$CC" >&6; }
4481else
cristy8b350f62009-11-15 23:12:43 +00004482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004483$as_echo "no" >&6; }
4484fi
4485
4486
4487fi
4488if test -z "$ac_cv_prog_CC"; then
4489 ac_ct_CC=$CC
4490 # Extract the first word of "gcc", so it can be a program name with args.
4491set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004493$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004494if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004495 $as_echo_n "(cached) " >&6
4496else
4497 if test -n "$ac_ct_CC"; then
4498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4499else
4500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501for as_dir in $PATH
4502do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004505 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004507 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004509 break 2
4510 fi
4511done
cristy8b350f62009-11-15 23:12:43 +00004512 done
cristy3ed852e2009-09-05 21:47:34 +00004513IFS=$as_save_IFS
4514
4515fi
4516fi
4517ac_ct_CC=$ac_cv_prog_ac_ct_CC
4518if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004520$as_echo "$ac_ct_CC" >&6; }
4521else
cristy8b350f62009-11-15 23:12:43 +00004522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004523$as_echo "no" >&6; }
4524fi
4525
4526 if test "x$ac_ct_CC" = x; then
4527 CC=""
4528 else
4529 case $cross_compiling:$ac_tool_warned in
4530yes:)
cristy8b350f62009-11-15 23:12:43 +00004531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4533ac_tool_warned=yes ;;
4534esac
4535 CC=$ac_ct_CC
4536 fi
4537else
4538 CC="$ac_cv_prog_CC"
4539fi
4540
4541if test -z "$CC"; then
4542 if test -n "$ac_tool_prefix"; then
4543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4544set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004546$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004547if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004548 $as_echo_n "(cached) " >&6
4549else
4550 if test -n "$CC"; then
4551 ac_cv_prog_CC="$CC" # Let the user override the test.
4552else
4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004558 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004560 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004562 break 2
4563 fi
4564done
cristy8b350f62009-11-15 23:12:43 +00004565 done
cristy3ed852e2009-09-05 21:47:34 +00004566IFS=$as_save_IFS
4567
4568fi
4569fi
4570CC=$ac_cv_prog_CC
4571if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004573$as_echo "$CC" >&6; }
4574else
cristy8b350f62009-11-15 23:12:43 +00004575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004576$as_echo "no" >&6; }
4577fi
4578
4579
4580 fi
4581fi
4582if test -z "$CC"; then
4583 # Extract the first word of "cc", so it can be a program name with args.
4584set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004586$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004587if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004588 $as_echo_n "(cached) " >&6
4589else
4590 if test -n "$CC"; then
4591 ac_cv_prog_CC="$CC" # Let the user override the test.
4592else
4593 ac_prog_rejected=no
4594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595for as_dir in $PATH
4596do
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004599 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004601 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4602 ac_prog_rejected=yes
4603 continue
4604 fi
4605 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004607 break 2
4608 fi
4609done
cristy8b350f62009-11-15 23:12:43 +00004610 done
cristy3ed852e2009-09-05 21:47:34 +00004611IFS=$as_save_IFS
4612
4613if test $ac_prog_rejected = yes; then
4614 # We found a bogon in the path, so make sure we never use it.
4615 set dummy $ac_cv_prog_CC
4616 shift
4617 if test $# != 0; then
4618 # We chose a different compiler from the bogus one.
4619 # However, it has the same basename, so the bogon will be chosen
4620 # first if we set CC to just the basename; use the full file name.
4621 shift
4622 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4623 fi
4624fi
4625fi
4626fi
4627CC=$ac_cv_prog_CC
4628if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004630$as_echo "$CC" >&6; }
4631else
cristy8b350f62009-11-15 23:12:43 +00004632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004633$as_echo "no" >&6; }
4634fi
4635
4636
4637fi
4638if test -z "$CC"; then
4639 if test -n "$ac_tool_prefix"; then
4640 for ac_prog in cl.exe
4641 do
4642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4643set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004645$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004646if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004647 $as_echo_n "(cached) " >&6
4648else
4649 if test -n "$CC"; then
4650 ac_cv_prog_CC="$CC" # Let the user override the test.
4651else
4652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH
4654do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004657 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004661 break 2
4662 fi
4663done
cristy8b350f62009-11-15 23:12:43 +00004664 done
cristy3ed852e2009-09-05 21:47:34 +00004665IFS=$as_save_IFS
4666
4667fi
4668fi
4669CC=$ac_cv_prog_CC
4670if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004672$as_echo "$CC" >&6; }
4673else
cristy8b350f62009-11-15 23:12:43 +00004674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004675$as_echo "no" >&6; }
4676fi
4677
4678
4679 test -n "$CC" && break
4680 done
4681fi
4682if test -z "$CC"; then
4683 ac_ct_CC=$CC
4684 for ac_prog in cl.exe
4685do
4686 # Extract the first word of "$ac_prog", so it can be a program name with args.
4687set dummy $ac_prog; 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_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004691 $as_echo_n "(cached) " >&6
4692else
4693 if test -n "$ac_ct_CC"; then
4694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4695else
4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004703 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004705 break 2
4706 fi
4707done
cristy8b350f62009-11-15 23:12:43 +00004708 done
cristy3ed852e2009-09-05 21:47:34 +00004709IFS=$as_save_IFS
4710
4711fi
4712fi
4713ac_ct_CC=$ac_cv_prog_ac_ct_CC
4714if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004716$as_echo "$ac_ct_CC" >&6; }
4717else
cristy8b350f62009-11-15 23:12:43 +00004718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004719$as_echo "no" >&6; }
4720fi
4721
4722
4723 test -n "$ac_ct_CC" && break
4724done
4725
4726 if test "x$ac_ct_CC" = x; then
4727 CC=""
4728 else
4729 case $cross_compiling:$ac_tool_warned in
4730yes:)
cristy8b350f62009-11-15 23:12:43 +00004731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733ac_tool_warned=yes ;;
4734esac
4735 CC=$ac_ct_CC
4736 fi
4737fi
4738
4739fi
4740
4741
cristy8b350f62009-11-15 23:12:43 +00004742test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004744as_fn_error $? "no acceptable C compiler found in \$PATH
4745See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004746
4747# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004748$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004749set X $ac_compile
4750ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004751for ac_option in --version -v -V -qversion; do
4752 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004753case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756esac
cristy8b350f62009-11-15 23:12:43 +00004757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4758$as_echo "$ac_try_echo"; } >&5
4759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004760 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004761 if test -s conftest.err; then
4762 sed '10a\
4763... rest of stderr output deleted ...
4764 10q' conftest.err >conftest.er1
4765 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004766 fi
cristycd4c5312009-11-22 01:19:08 +00004767 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4769 test $ac_status = 0; }
4770done
cristy3ed852e2009-09-05 21:47:34 +00004771
cristy8b350f62009-11-15 23:12:43 +00004772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004773/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004774
cristy3ed852e2009-09-05 21:47:34 +00004775int
4776main ()
4777{
4778
4779 ;
4780 return 0;
4781}
4782_ACEOF
4783ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004784ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004785# Try to create an executable without -o first, disregard a.out.
4786# It will help us diagnose broken compilers, and finding out an intuition
4787# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4789$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004790ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4791
4792# The possible output files:
4793ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4794
4795ac_rmfiles=
4796for ac_file in $ac_files
4797do
4798 case $ac_file in
4799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4801 esac
4802done
4803rm -f $ac_rmfiles
4804
cristy8b350f62009-11-15 23:12:43 +00004805if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004806case "(($ac_try" in
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4809esac
cristy8b350f62009-11-15 23:12:43 +00004810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4811$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004812 (eval "$ac_link_default") 2>&5
4813 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4815 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004816 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4817# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4818# in a Makefile. We should not override ac_cv_exeext if it was cached,
4819# so that the user can short-circuit this test for compilers unknown to
4820# Autoconf.
4821for ac_file in $ac_files ''
4822do
4823 test -f "$ac_file" || continue
4824 case $ac_file in
4825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4826 ;;
4827 [ab].out )
4828 # We found the default executable, but exeext='' is most
4829 # certainly right.
4830 break;;
4831 *.* )
cristy8b350f62009-11-15 23:12:43 +00004832 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004833 then :; else
4834 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4835 fi
4836 # We set ac_cv_exeext here because the later test for it is not
4837 # safe: cross compilers may not add the suffix if given an `-o'
4838 # argument, so we may need to know it at that point already.
4839 # Even if this section looks crufty: it has the advantage of
4840 # actually working.
4841 break;;
4842 * )
4843 break;;
4844 esac
4845done
4846test "$ac_cv_exeext" = no && ac_cv_exeext=
4847
4848else
4849 ac_file=''
4850fi
cristy8b350f62009-11-15 23:12:43 +00004851if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853$as_echo "no" >&6; }
4854$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004855sed 's/^/| /' conftest.$ac_ext >&5
4856
cristy8b350f62009-11-15 23:12:43 +00004857{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004859as_fn_error 77 "C compiler cannot create executables
4860See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004861else
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4863$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004864fi
cristycd4c5312009-11-22 01:19:08 +00004865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4866$as_echo_n "checking for C compiler default output file name... " >&6; }
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4868$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004869ac_exeext=$ac_cv_exeext
4870
cristycd4c5312009-11-22 01:19:08 +00004871rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004872ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004874$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004875if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004876case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4879esac
cristy8b350f62009-11-15 23:12:43 +00004880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4881$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004882 (eval "$ac_link") 2>&5
4883 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4885 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4887# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4888# work properly (i.e., refer to `conftest.exe'), while it won't with
4889# `rm'.
4890for ac_file in conftest.exe conftest conftest.*; do
4891 test -f "$ac_file" || continue
4892 case $ac_file in
4893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4895 break;;
4896 * ) break;;
4897 esac
4898done
4899else
cristy8b350f62009-11-15 23:12:43 +00004900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004902as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4903See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004904fi
cristycd4c5312009-11-22 01:19:08 +00004905rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004907$as_echo "$ac_cv_exeext" >&6; }
4908
4909rm -f conftest.$ac_ext
4910EXEEXT=$ac_cv_exeext
4911ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913/* end confdefs.h. */
4914#include <stdio.h>
4915int
4916main ()
4917{
4918FILE *f = fopen ("conftest.out", "w");
4919 return ferror (f) || fclose (f) != 0;
4920
4921 ;
4922 return 0;
4923}
4924_ACEOF
4925ac_clean_files="$ac_clean_files conftest.out"
4926# Check that the compiler produces executables we can run. If not, either
4927# the compiler is broken, or we cross compile.
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4929$as_echo_n "checking whether we are cross compiling... " >&6; }
4930if test "$cross_compiling" != yes; then
4931 { { ac_try="$ac_link"
4932case "(($ac_try" in
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4935esac
4936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4937$as_echo "$ac_try_echo"; } >&5
4938 (eval "$ac_link") 2>&5
4939 ac_status=$?
4940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4941 test $ac_status = 0; }
4942 if { ac_try='./conftest$ac_cv_exeext'
4943 { { case "(($ac_try" in
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4946esac
4947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4948$as_echo "$ac_try_echo"; } >&5
4949 (eval "$ac_try") 2>&5
4950 ac_status=$?
4951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4952 test $ac_status = 0; }; }; then
4953 cross_compiling=no
4954 else
4955 if test "$cross_compiling" = maybe; then
4956 cross_compiling=yes
4957 else
4958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004960as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004961If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004962See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004963 fi
4964 fi
4965fi
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4967$as_echo "$cross_compiling" >&6; }
4968
4969rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4970ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004972$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004973if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004974 $as_echo_n "(cached) " >&6
4975else
cristy8b350f62009-11-15 23:12:43 +00004976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004977/* end confdefs.h. */
4978
4979int
4980main ()
4981{
4982
4983 ;
4984 return 0;
4985}
4986_ACEOF
4987rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004988if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004989case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992esac
cristy8b350f62009-11-15 23:12:43 +00004993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4994$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004995 (eval "$ac_compile") 2>&5
4996 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4998 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004999 for ac_file in conftest.o conftest.obj conftest.*; do
5000 test -f "$ac_file" || continue;
5001 case $ac_file in
5002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5003 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5004 break;;
5005 esac
5006done
5007else
5008 $as_echo "$as_me: failed program was:" >&5
5009sed 's/^/| /' conftest.$ac_ext >&5
5010
cristy8b350f62009-11-15 23:12:43 +00005011{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005013as_fn_error $? "cannot compute suffix of object files: cannot compile
5014See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005015fi
cristy3ed852e2009-09-05 21:47:34 +00005016rm -f conftest.$ac_cv_objext conftest.$ac_ext
5017fi
cristy8b350f62009-11-15 23:12:43 +00005018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005019$as_echo "$ac_cv_objext" >&6; }
5020OBJEXT=$ac_cv_objext
5021ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005023$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005024if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005025 $as_echo_n "(cached) " >&6
5026else
cristy8b350f62009-11-15 23:12:43 +00005027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005028/* end confdefs.h. */
5029
5030int
5031main ()
5032{
5033#ifndef __GNUC__
5034 choke me
5035#endif
5036
5037 ;
5038 return 0;
5039}
5040_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005041if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005042 ac_compiler_gnu=yes
5043else
cristy8b350f62009-11-15 23:12:43 +00005044 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005045fi
cristy3ed852e2009-09-05 21:47:34 +00005046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047ac_cv_c_compiler_gnu=$ac_compiler_gnu
5048
5049fi
cristy8b350f62009-11-15 23:12:43 +00005050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005051$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5052if test $ac_compiler_gnu = yes; then
5053 GCC=yes
5054else
5055 GCC=
5056fi
5057ac_test_CFLAGS=${CFLAGS+set}
5058ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005060$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005061if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005062 $as_echo_n "(cached) " >&6
5063else
5064 ac_save_c_werror_flag=$ac_c_werror_flag
5065 ac_c_werror_flag=yes
5066 ac_cv_prog_cc_g=no
5067 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005069/* end confdefs.h. */
5070
5071int
5072main ()
5073{
5074
5075 ;
5076 return 0;
5077}
5078_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005079if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005080 ac_cv_prog_cc_g=yes
5081else
cristy8b350f62009-11-15 23:12:43 +00005082 CFLAGS=""
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005084/* end confdefs.h. */
5085
5086int
5087main ()
5088{
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005094if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005095
cristy8b350f62009-11-15 23:12:43 +00005096else
5097 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005098 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005100/* end confdefs.h. */
5101
5102int
5103main ()
5104{
5105
5106 ;
5107 return 0;
5108}
5109_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005110if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005111 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005112fi
cristy3ed852e2009-09-05 21:47:34 +00005113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114fi
cristy3ed852e2009-09-05 21:47:34 +00005115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116fi
cristy3ed852e2009-09-05 21:47:34 +00005117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 ac_c_werror_flag=$ac_save_c_werror_flag
5119fi
cristy8b350f62009-11-15 23:12:43 +00005120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005121$as_echo "$ac_cv_prog_cc_g" >&6; }
5122if test "$ac_test_CFLAGS" = set; then
5123 CFLAGS=$ac_save_CFLAGS
5124elif test $ac_cv_prog_cc_g = yes; then
5125 if test "$GCC" = yes; then
5126 CFLAGS="-g -O2"
5127 else
5128 CFLAGS="-g"
5129 fi
5130else
5131 if test "$GCC" = yes; then
5132 CFLAGS="-O2"
5133 else
5134 CFLAGS=
5135 fi
5136fi
cristy8b350f62009-11-15 23:12:43 +00005137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005138$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005139if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005140 $as_echo_n "(cached) " >&6
5141else
5142 ac_cv_prog_cc_c89=no
5143ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005145/* end confdefs.h. */
5146#include <stdarg.h>
5147#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005148struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005149/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5150struct buf { int x; };
5151FILE * (*rcsopen) (struct buf *, struct stat *, int);
5152static char *e (p, i)
5153 char **p;
5154 int i;
5155{
5156 return p[i];
5157}
5158static char *f (char * (*g) (char **, int), char **p, ...)
5159{
5160 char *s;
5161 va_list v;
5162 va_start (v,p);
5163 s = g (p, va_arg (v,int));
5164 va_end (v);
5165 return s;
5166}
5167
5168/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5169 function prototypes and stuff, but not '\xHH' hex character constants.
5170 These don't provoke an error unfortunately, instead are silently treated
5171 as 'x'. The following induces an error, until -std is added to get
5172 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5173 array size at least. It's necessary to write '\x00'==0 to get something
5174 that's true only with -std. */
5175int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5176
5177/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5178 inside strings and character constants. */
5179#define FOO(x) 'x'
5180int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5181
5182int test (int i, double x);
5183struct s1 {int (*f) (int a);};
5184struct s2 {int (*f) (double a);};
5185int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5186int argc;
5187char **argv;
5188int
5189main ()
5190{
5191return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5192 ;
5193 return 0;
5194}
5195_ACEOF
5196for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5197 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5198do
5199 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005200 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005201 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005202fi
cristy3ed852e2009-09-05 21:47:34 +00005203rm -f core conftest.err conftest.$ac_objext
5204 test "x$ac_cv_prog_cc_c89" != "xno" && break
5205done
5206rm -f conftest.$ac_ext
5207CC=$ac_save_CC
5208
5209fi
5210# AC_CACHE_VAL
5211case "x$ac_cv_prog_cc_c89" in
5212 x)
cristy8b350f62009-11-15 23:12:43 +00005213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005214$as_echo "none needed" >&6; } ;;
5215 xno)
cristy8b350f62009-11-15 23:12:43 +00005216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005217$as_echo "unsupported" >&6; } ;;
5218 *)
5219 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005221$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5222esac
cristy8b350f62009-11-15 23:12:43 +00005223if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005224
cristy8b350f62009-11-15 23:12:43 +00005225fi
cristy3ed852e2009-09-05 21:47:34 +00005226
5227ac_ext=c
5228ac_cpp='$CPP $CPPFLAGS'
5229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5231ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005232
cristy73bd4a52010-10-05 11:24:23 +00005233depcc="$CC" am_compiler_list=
5234
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5236$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005237if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005238 $as_echo_n "(cached) " >&6
5239else
5240 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5241 # We make a subdir and do the tests there. Otherwise we can end up
5242 # making bogus files that we don't know about and never remove. For
5243 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005244 # making a dummy file named 'D' -- because '-MD' means "put the output
5245 # in D".
cristy7247bba2012-02-05 16:37:27 +00005246 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005247 mkdir conftest.dir
5248 # Copy depcomp to subdir because otherwise we won't find it if we're
5249 # using a relative directory.
5250 cp "$am_depcomp" conftest.dir
5251 cd conftest.dir
5252 # We will build objects and dependencies in a subdirectory because
5253 # it helps to detect inapplicable dependency modes. For instance
5254 # both Tru64's cc and ICC support -MD to output dependencies as a
5255 # side effect of compilation, but ICC will put the dependencies in
5256 # the current directory while Tru64 will put them in the object
5257 # directory.
5258 mkdir sub
5259
5260 am_cv_CC_dependencies_compiler_type=none
5261 if test "$am_compiler_list" = ""; then
5262 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5263 fi
5264 am__universal=false
5265 case " $depcc " in #(
5266 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5267 esac
5268
5269 for depmode in $am_compiler_list; do
5270 # Setup a source with many dependencies, because some compilers
5271 # like to wrap large dependency lists on column 80 (with \), and
5272 # we should not choose a depcomp mode which is confused by this.
5273 #
5274 # We need to recreate these files for each test, as the compiler may
5275 # overwrite some of them when testing with obscure command lines.
5276 # This happens at least with the AIX C compiler.
5277 : > sub/conftest.c
5278 for i in 1 2 3 4 5 6; do
5279 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005280 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5281 # Solaris 10 /bin/sh.
5282 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005283 done
5284 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5285
cristyc0890a62012-07-19 00:18:20 +00005286 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005287 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005288 # handle '-M -o', and we need to detect this. Also, some Intel
5289 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005290 am__obj=sub/conftest.${OBJEXT-o}
5291 am__minus_obj="-o $am__obj"
5292 case $depmode in
5293 gcc)
5294 # This depmode causes a compiler race in universal mode.
5295 test "$am__universal" = false || continue
5296 ;;
5297 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005298 # After this tag, mechanisms are not by side-effect, so they'll
5299 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005300 if test "x$enable_dependency_tracking" = xyes; then
5301 continue
5302 else
5303 break
5304 fi
5305 ;;
cristy7247bba2012-02-05 16:37:27 +00005306 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005307 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005308 # not run yet. These depmodes are late enough in the game, and
5309 # so weak that their functioning should not be impacted.
5310 am__obj=conftest.${OBJEXT-o}
5311 am__minus_obj=
5312 ;;
5313 none) break ;;
5314 esac
5315 if depmode=$depmode \
5316 source=sub/conftest.c object=$am__obj \
5317 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5318 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5319 >/dev/null 2>conftest.err &&
5320 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5321 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5322 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5323 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5324 # icc doesn't choke on unknown options, it will just issue warnings
5325 # or remarks (even with -Werror). So we grep stderr for any message
5326 # that says an option was ignored or not supported.
5327 # When given -MP, icc 7.0 and 7.1 complain thusly:
5328 # icc: Command line warning: ignoring option '-M'; no argument required
5329 # The diagnosis changed in icc 8.0:
5330 # icc: Command line remark: option '-MP' not supported
5331 if (grep 'ignoring option' conftest.err ||
5332 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5333 am_cv_CC_dependencies_compiler_type=$depmode
5334 break
5335 fi
5336 fi
5337 done
5338
5339 cd ..
5340 rm -rf conftest.dir
5341else
5342 am_cv_CC_dependencies_compiler_type=none
5343fi
5344
5345fi
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5347$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5348CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5349
5350 if
5351 test "x$enable_dependency_tracking" != xno \
5352 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5353 am__fastdepCC_TRUE=
5354 am__fastdepCC_FALSE='#'
5355else
5356 am__fastdepCC_TRUE='#'
5357 am__fastdepCC_FALSE=
5358fi
5359
5360
cristy3ed852e2009-09-05 21:47:34 +00005361
cristya0b81c32010-01-22 02:54:33 +00005362ac_ext=c
5363ac_cpp='$CPP $CPPFLAGS'
5364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5366ac_compiler_gnu=$ac_cv_c_compiler_gnu
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5368$as_echo_n "checking how to run the C preprocessor... " >&6; }
5369# On Suns, sometimes $CPP names a directory.
5370if test -n "$CPP" && test -d "$CPP"; then
5371 CPP=
5372fi
5373if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005374 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005375 $as_echo_n "(cached) " >&6
5376else
5377 # Double quotes because CPP needs to be expanded
5378 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5379 do
5380 ac_preproc_ok=false
5381for ac_c_preproc_warn_flag in '' yes
5382do
5383 # Use a header file that comes with gcc, so configuring glibc
5384 # with a fresh cross-compiler works.
5385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5386 # <limits.h> exists even on freestanding compilers.
5387 # On the NeXT, cc -E runs the code through the compiler's parser,
5388 # not just through cpp. "Syntax error" is here to catch this case.
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390/* end confdefs.h. */
5391#ifdef __STDC__
5392# include <limits.h>
5393#else
5394# include <assert.h>
5395#endif
5396 Syntax error
5397_ACEOF
5398if ac_fn_c_try_cpp "$LINENO"; then :
5399
5400else
5401 # Broken: fails on valid input.
5402continue
5403fi
cristyda16f162011-02-19 23:52:17 +00005404rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005405
5406 # OK, works on sane cases. Now check whether nonexistent headers
5407 # can be detected and how.
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409/* end confdefs.h. */
5410#include <ac_nonexistent.h>
5411_ACEOF
5412if ac_fn_c_try_cpp "$LINENO"; then :
5413 # Broken: success on invalid input.
5414continue
5415else
5416 # Passes both tests.
5417ac_preproc_ok=:
5418break
5419fi
cristyda16f162011-02-19 23:52:17 +00005420rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005421
5422done
5423# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005424rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005425if $ac_preproc_ok; then :
5426 break
5427fi
5428
5429 done
5430 ac_cv_prog_CPP=$CPP
5431
5432fi
5433 CPP=$ac_cv_prog_CPP
5434else
5435 ac_cv_prog_CPP=$CPP
5436fi
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5438$as_echo "$CPP" >&6; }
5439ac_preproc_ok=false
5440for ac_c_preproc_warn_flag in '' yes
5441do
5442 # Use a header file that comes with gcc, so configuring glibc
5443 # with a fresh cross-compiler works.
5444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445 # <limits.h> exists even on freestanding compilers.
5446 # On the NeXT, cc -E runs the code through the compiler's parser,
5447 # not just through cpp. "Syntax error" is here to catch this case.
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h. */
5450#ifdef __STDC__
5451# include <limits.h>
5452#else
5453# include <assert.h>
5454#endif
5455 Syntax error
5456_ACEOF
5457if ac_fn_c_try_cpp "$LINENO"; then :
5458
5459else
5460 # Broken: fails on valid input.
5461continue
5462fi
cristyda16f162011-02-19 23:52:17 +00005463rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005464
5465 # OK, works on sane cases. Now check whether nonexistent headers
5466 # can be detected and how.
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468/* end confdefs.h. */
5469#include <ac_nonexistent.h>
5470_ACEOF
5471if ac_fn_c_try_cpp "$LINENO"; then :
5472 # Broken: success on invalid input.
5473continue
5474else
5475 # Passes both tests.
5476ac_preproc_ok=:
5477break
5478fi
cristyda16f162011-02-19 23:52:17 +00005479rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005480
5481done
5482# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005483rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005484if $ac_preproc_ok; then :
5485
5486else
5487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005489as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5490See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005491fi
5492
5493ac_ext=c
5494ac_cpp='$CPP $CPPFLAGS'
5495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5497ac_compiler_gnu=$ac_cv_c_compiler_gnu
5498
5499
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5501$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005502if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005503 $as_echo_n "(cached) " >&6
5504else
5505 if test -z "$GREP"; then
5506 ac_path_GREP_found=false
5507 # Loop through the user's path and test for each of PROGNAME-LIST
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5510do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_prog in grep ggrep; do
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005516 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005517# Check for GNU ac_path_GREP and select it if it is found.
5518 # Check for GNU $ac_path_GREP
5519case `"$ac_path_GREP" --version 2>&1` in
5520*GNU*)
5521 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5522*)
5523 ac_count=0
5524 $as_echo_n 0123456789 >"conftest.in"
5525 while :
5526 do
5527 cat "conftest.in" "conftest.in" >"conftest.tmp"
5528 mv "conftest.tmp" "conftest.in"
5529 cp "conftest.in" "conftest.nl"
5530 $as_echo 'GREP' >> "conftest.nl"
5531 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5532 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5533 as_fn_arith $ac_count + 1 && ac_count=$as_val
5534 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5535 # Best one so far, save it but keep looking for a better one
5536 ac_cv_path_GREP="$ac_path_GREP"
5537 ac_path_GREP_max=$ac_count
5538 fi
5539 # 10*(2^10) chars as input seems more than enough
5540 test $ac_count -gt 10 && break
5541 done
5542 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5543esac
5544
5545 $ac_path_GREP_found && break 3
5546 done
5547 done
5548 done
5549IFS=$as_save_IFS
5550 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005551 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005552 fi
5553else
5554 ac_cv_path_GREP=$GREP
5555fi
5556
5557fi
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5559$as_echo "$ac_cv_path_GREP" >&6; }
5560 GREP="$ac_cv_path_GREP"
5561
5562
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5564$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005565if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005566 $as_echo_n "(cached) " >&6
5567else
5568 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5569 then ac_cv_path_EGREP="$GREP -E"
5570 else
5571 if test -z "$EGREP"; then
5572 ac_path_EGREP_found=false
5573 # Loop through the user's path and test for each of PROGNAME-LIST
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5576do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_prog in egrep; do
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005582 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005583# Check for GNU ac_path_EGREP and select it if it is found.
5584 # Check for GNU $ac_path_EGREP
5585case `"$ac_path_EGREP" --version 2>&1` in
5586*GNU*)
5587 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5588*)
5589 ac_count=0
5590 $as_echo_n 0123456789 >"conftest.in"
5591 while :
5592 do
5593 cat "conftest.in" "conftest.in" >"conftest.tmp"
5594 mv "conftest.tmp" "conftest.in"
5595 cp "conftest.in" "conftest.nl"
5596 $as_echo 'EGREP' >> "conftest.nl"
5597 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5599 as_fn_arith $ac_count + 1 && ac_count=$as_val
5600 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5601 # Best one so far, save it but keep looking for a better one
5602 ac_cv_path_EGREP="$ac_path_EGREP"
5603 ac_path_EGREP_max=$ac_count
5604 fi
5605 # 10*(2^10) chars as input seems more than enough
5606 test $ac_count -gt 10 && break
5607 done
5608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5609esac
5610
5611 $ac_path_EGREP_found && break 3
5612 done
5613 done
5614 done
5615IFS=$as_save_IFS
5616 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005617 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005618 fi
5619else
5620 ac_cv_path_EGREP=$EGREP
5621fi
5622
5623 fi
5624fi
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5626$as_echo "$ac_cv_path_EGREP" >&6; }
5627 EGREP="$ac_cv_path_EGREP"
5628
5629
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5631$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005632if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005633 $as_echo_n "(cached) " >&6
5634else
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h. */
5637#include <stdlib.h>
5638#include <stdarg.h>
5639#include <string.h>
5640#include <float.h>
5641
5642int
5643main ()
5644{
5645
5646 ;
5647 return 0;
5648}
5649_ACEOF
5650if ac_fn_c_try_compile "$LINENO"; then :
5651 ac_cv_header_stdc=yes
5652else
5653 ac_cv_header_stdc=no
5654fi
5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656
5657if test $ac_cv_header_stdc = yes; then
5658 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h. */
5661#include <string.h>
5662
5663_ACEOF
5664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665 $EGREP "memchr" >/dev/null 2>&1; then :
5666
5667else
5668 ac_cv_header_stdc=no
5669fi
5670rm -f conftest*
5671
5672fi
5673
5674if test $ac_cv_header_stdc = yes; then
5675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h. */
5678#include <stdlib.h>
5679
5680_ACEOF
5681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5682 $EGREP "free" >/dev/null 2>&1; then :
5683
5684else
5685 ac_cv_header_stdc=no
5686fi
5687rm -f conftest*
5688
5689fi
5690
5691if test $ac_cv_header_stdc = yes; then
5692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5693 if test "$cross_compiling" = yes; then :
5694 :
5695else
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697/* end confdefs.h. */
5698#include <ctype.h>
5699#include <stdlib.h>
5700#if ((' ' & 0x0FF) == 0x020)
5701# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5702# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5703#else
5704# define ISLOWER(c) \
5705 (('a' <= (c) && (c) <= 'i') \
5706 || ('j' <= (c) && (c) <= 'r') \
5707 || ('s' <= (c) && (c) <= 'z'))
5708# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5709#endif
5710
5711#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5712int
5713main ()
5714{
5715 int i;
5716 for (i = 0; i < 256; i++)
5717 if (XOR (islower (i), ISLOWER (i))
5718 || toupper (i) != TOUPPER (i))
5719 return 2;
5720 return 0;
5721}
5722_ACEOF
5723if ac_fn_c_try_run "$LINENO"; then :
5724
5725else
5726 ac_cv_header_stdc=no
5727fi
5728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5729 conftest.$ac_objext conftest.beam conftest.$ac_ext
5730fi
5731
5732fi
5733fi
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5735$as_echo "$ac_cv_header_stdc" >&6; }
5736if test $ac_cv_header_stdc = yes; then
5737
5738$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5739
5740fi
5741
5742# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5743for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5744 inttypes.h stdint.h unistd.h
5745do :
5746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5747ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5748"
cristy98dddb52010-11-04 00:30:15 +00005749if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005750 cat >>confdefs.h <<_ACEOF
5751#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5752_ACEOF
5753
5754fi
5755
5756done
5757
5758
5759
5760 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 +00005761if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005762 MINIX=yes
5763else
5764 MINIX=
5765fi
5766
5767
5768 if test "$MINIX" = yes; then
5769
5770$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5771
5772
5773$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5774
5775
5776$as_echo "#define _MINIX 1" >>confdefs.h
5777
5778 fi
5779
5780
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5782$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005783if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005784 $as_echo_n "(cached) " >&6
5785else
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787/* end confdefs.h. */
5788
cristy14fefe52012-05-21 00:59:18 +00005789# define __EXTENSIONS__ 1
5790 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005791int
5792main ()
5793{
5794
5795 ;
5796 return 0;
5797}
5798_ACEOF
5799if ac_fn_c_try_compile "$LINENO"; then :
5800 ac_cv_safe_to_define___extensions__=yes
5801else
5802 ac_cv_safe_to_define___extensions__=no
5803fi
5804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805fi
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5807$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5808 test $ac_cv_safe_to_define___extensions__ = yes &&
5809 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5810
5811 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5812
5813 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5814
5815 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5816
5817 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5818
5819
5820
5821# Check for programs
5822ac_ext=c
5823ac_cpp='$CPP $CPPFLAGS'
5824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826ac_compiler_gnu=$ac_cv_c_compiler_gnu
5827if test -n "$ac_tool_prefix"; then
5828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5829set dummy ${ac_tool_prefix}gcc; ac_word=$2
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005832if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005833 $as_echo_n "(cached) " >&6
5834else
5835 if test -n "$CC"; then
5836 ac_cv_prog_CC="$CC" # Let the user override the test.
5837else
5838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH
5840do
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005845 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5848 fi
5849done
5850 done
5851IFS=$as_save_IFS
5852
5853fi
5854fi
5855CC=$ac_cv_prog_CC
5856if test -n "$CC"; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5858$as_echo "$CC" >&6; }
5859else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861$as_echo "no" >&6; }
5862fi
5863
5864
5865fi
5866if test -z "$ac_cv_prog_CC"; then
5867 ac_ct_CC=$CC
5868 # Extract the first word of "gcc", so it can be a program name with args.
5869set dummy gcc; ac_word=$2
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005872if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005873 $as_echo_n "(cached) " >&6
5874else
5875 if test -n "$ac_ct_CC"; then
5876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5877else
5878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005885 ac_cv_prog_ac_ct_CC="gcc"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889done
5890 done
5891IFS=$as_save_IFS
5892
5893fi
5894fi
5895ac_ct_CC=$ac_cv_prog_ac_ct_CC
5896if test -n "$ac_ct_CC"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5898$as_echo "$ac_ct_CC" >&6; }
5899else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901$as_echo "no" >&6; }
5902fi
5903
5904 if test "x$ac_ct_CC" = x; then
5905 CC=""
5906 else
5907 case $cross_compiling:$ac_tool_warned in
5908yes:)
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5911ac_tool_warned=yes ;;
5912esac
5913 CC=$ac_ct_CC
5914 fi
5915else
5916 CC="$ac_cv_prog_CC"
5917fi
5918
5919if test -z "$CC"; then
5920 if test -n "$ac_tool_prefix"; then
5921 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5922set dummy ${ac_tool_prefix}cc; ac_word=$2
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005925if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005926 $as_echo_n "(cached) " >&6
5927else
5928 if test -n "$CC"; then
5929 ac_cv_prog_CC="$CC" # Let the user override the test.
5930else
5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932for as_dir in $PATH
5933do
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005938 ac_cv_prog_CC="${ac_tool_prefix}cc"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 break 2
5941 fi
5942done
5943 done
5944IFS=$as_save_IFS
5945
5946fi
5947fi
5948CC=$ac_cv_prog_CC
5949if test -n "$CC"; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5951$as_echo "$CC" >&6; }
5952else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954$as_echo "no" >&6; }
5955fi
5956
5957
5958 fi
5959fi
5960if test -z "$CC"; then
5961 # Extract the first word of "cc", so it can be a program name with args.
5962set dummy cc; ac_word=$2
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005965if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005966 $as_echo_n "(cached) " >&6
5967else
5968 if test -n "$CC"; then
5969 ac_cv_prog_CC="$CC" # Let the user override the test.
5970else
5971 ac_prog_rejected=no
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005979 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5980 ac_prog_rejected=yes
5981 continue
5982 fi
5983 ac_cv_prog_CC="cc"
5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 break 2
5986 fi
5987done
5988 done
5989IFS=$as_save_IFS
5990
5991if test $ac_prog_rejected = yes; then
5992 # We found a bogon in the path, so make sure we never use it.
5993 set dummy $ac_cv_prog_CC
5994 shift
5995 if test $# != 0; then
5996 # We chose a different compiler from the bogus one.
5997 # However, it has the same basename, so the bogon will be chosen
5998 # first if we set CC to just the basename; use the full file name.
5999 shift
6000 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6001 fi
6002fi
6003fi
6004fi
6005CC=$ac_cv_prog_CC
6006if test -n "$CC"; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6008$as_echo "$CC" >&6; }
6009else
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011$as_echo "no" >&6; }
6012fi
6013
6014
6015fi
6016if test -z "$CC"; then
6017 if test -n "$ac_tool_prefix"; then
6018 for ac_prog in cl.exe
6019 do
6020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6021set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006024if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006025 $as_echo_n "(cached) " >&6
6026else
6027 if test -n "$CC"; then
6028 ac_cv_prog_CC="$CC" # Let the user override the test.
6029else
6030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031for as_dir in $PATH
6032do
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 break 2
6040 fi
6041done
6042 done
6043IFS=$as_save_IFS
6044
6045fi
6046fi
6047CC=$ac_cv_prog_CC
6048if test -n "$CC"; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6050$as_echo "$CC" >&6; }
6051else
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053$as_echo "no" >&6; }
6054fi
6055
6056
6057 test -n "$CC" && break
6058 done
6059fi
6060if test -z "$CC"; then
6061 ac_ct_CC=$CC
6062 for ac_prog in cl.exe
6063do
6064 # Extract the first word of "$ac_prog", so it can be a program name with args.
6065set dummy $ac_prog; ac_word=$2
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006068if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006069 $as_echo_n "(cached) " >&6
6070else
6071 if test -n "$ac_ct_CC"; then
6072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6073else
6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075for as_dir in $PATH
6076do
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006081 ac_cv_prog_ac_ct_CC="$ac_prog"
6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 break 2
6084 fi
6085done
6086 done
6087IFS=$as_save_IFS
6088
6089fi
6090fi
6091ac_ct_CC=$ac_cv_prog_ac_ct_CC
6092if test -n "$ac_ct_CC"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6094$as_echo "$ac_ct_CC" >&6; }
6095else
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097$as_echo "no" >&6; }
6098fi
6099
6100
6101 test -n "$ac_ct_CC" && break
6102done
6103
6104 if test "x$ac_ct_CC" = x; then
6105 CC=""
6106 else
6107 case $cross_compiling:$ac_tool_warned in
6108yes:)
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6111ac_tool_warned=yes ;;
6112esac
6113 CC=$ac_ct_CC
6114 fi
6115fi
6116
6117fi
6118
6119
6120test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006122as_fn_error $? "no acceptable C compiler found in \$PATH
6123See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006124
6125# Provide some information about the compiler.
6126$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6127set X $ac_compile
6128ac_compiler=$2
6129for ac_option in --version -v -V -qversion; do
6130 { { ac_try="$ac_compiler $ac_option >&5"
6131case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134esac
6135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6136$as_echo "$ac_try_echo"; } >&5
6137 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6138 ac_status=$?
6139 if test -s conftest.err; then
6140 sed '10a\
6141... rest of stderr output deleted ...
6142 10q' conftest.err >conftest.er1
6143 cat conftest.er1 >&5
6144 fi
6145 rm -f conftest.er1 conftest.err
6146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6147 test $ac_status = 0; }
6148done
6149
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6151$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006152if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006153 $as_echo_n "(cached) " >&6
6154else
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156/* end confdefs.h. */
6157
6158int
6159main ()
6160{
6161#ifndef __GNUC__
6162 choke me
6163#endif
6164
6165 ;
6166 return 0;
6167}
6168_ACEOF
6169if ac_fn_c_try_compile "$LINENO"; then :
6170 ac_compiler_gnu=yes
6171else
6172 ac_compiler_gnu=no
6173fi
6174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175ac_cv_c_compiler_gnu=$ac_compiler_gnu
6176
6177fi
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6179$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6180if test $ac_compiler_gnu = yes; then
6181 GCC=yes
6182else
6183 GCC=
6184fi
6185ac_test_CFLAGS=${CFLAGS+set}
6186ac_save_CFLAGS=$CFLAGS
6187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6188$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006189if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006190 $as_echo_n "(cached) " >&6
6191else
6192 ac_save_c_werror_flag=$ac_c_werror_flag
6193 ac_c_werror_flag=yes
6194 ac_cv_prog_cc_g=no
6195 CFLAGS="-g"
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197/* end confdefs.h. */
6198
6199int
6200main ()
6201{
6202
6203 ;
6204 return 0;
6205}
6206_ACEOF
6207if ac_fn_c_try_compile "$LINENO"; then :
6208 ac_cv_prog_cc_g=yes
6209else
6210 CFLAGS=""
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212/* end confdefs.h. */
6213
6214int
6215main ()
6216{
6217
6218 ;
6219 return 0;
6220}
6221_ACEOF
6222if ac_fn_c_try_compile "$LINENO"; then :
6223
6224else
6225 ac_c_werror_flag=$ac_save_c_werror_flag
6226 CFLAGS="-g"
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h. */
6229
6230int
6231main ()
6232{
6233
6234 ;
6235 return 0;
6236}
6237_ACEOF
6238if ac_fn_c_try_compile "$LINENO"; then :
6239 ac_cv_prog_cc_g=yes
6240fi
6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242fi
6243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244fi
6245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246 ac_c_werror_flag=$ac_save_c_werror_flag
6247fi
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6249$as_echo "$ac_cv_prog_cc_g" >&6; }
6250if test "$ac_test_CFLAGS" = set; then
6251 CFLAGS=$ac_save_CFLAGS
6252elif test $ac_cv_prog_cc_g = yes; then
6253 if test "$GCC" = yes; then
6254 CFLAGS="-g -O2"
6255 else
6256 CFLAGS="-g"
6257 fi
6258else
6259 if test "$GCC" = yes; then
6260 CFLAGS="-O2"
6261 else
6262 CFLAGS=
6263 fi
6264fi
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6266$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006267if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006268 $as_echo_n "(cached) " >&6
6269else
6270 ac_cv_prog_cc_c89=no
6271ac_save_CC=$CC
6272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h. */
6274#include <stdarg.h>
6275#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006276struct stat;
cristya0b81c32010-01-22 02:54:33 +00006277/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6278struct buf { int x; };
6279FILE * (*rcsopen) (struct buf *, struct stat *, int);
6280static char *e (p, i)
6281 char **p;
6282 int i;
6283{
6284 return p[i];
6285}
6286static char *f (char * (*g) (char **, int), char **p, ...)
6287{
6288 char *s;
6289 va_list v;
6290 va_start (v,p);
6291 s = g (p, va_arg (v,int));
6292 va_end (v);
6293 return s;
6294}
6295
6296/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6297 function prototypes and stuff, but not '\xHH' hex character constants.
6298 These don't provoke an error unfortunately, instead are silently treated
6299 as 'x'. The following induces an error, until -std is added to get
6300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6301 array size at least. It's necessary to write '\x00'==0 to get something
6302 that's true only with -std. */
6303int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6304
6305/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6306 inside strings and character constants. */
6307#define FOO(x) 'x'
6308int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6309
6310int test (int i, double x);
6311struct s1 {int (*f) (int a);};
6312struct s2 {int (*f) (double a);};
6313int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6314int argc;
6315char **argv;
6316int
6317main ()
6318{
6319return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6320 ;
6321 return 0;
6322}
6323_ACEOF
6324for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6326do
6327 CC="$ac_save_CC $ac_arg"
6328 if ac_fn_c_try_compile "$LINENO"; then :
6329 ac_cv_prog_cc_c89=$ac_arg
6330fi
6331rm -f core conftest.err conftest.$ac_objext
6332 test "x$ac_cv_prog_cc_c89" != "xno" && break
6333done
6334rm -f conftest.$ac_ext
6335CC=$ac_save_CC
6336
6337fi
6338# AC_CACHE_VAL
6339case "x$ac_cv_prog_cc_c89" in
6340 x)
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6342$as_echo "none needed" >&6; } ;;
6343 xno)
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6345$as_echo "unsupported" >&6; } ;;
6346 *)
6347 CC="$CC $ac_cv_prog_cc_c89"
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6349$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6350esac
6351if test "x$ac_cv_prog_cc_c89" != xno; then :
6352
6353fi
6354
6355ac_ext=c
6356ac_cpp='$CPP $CPPFLAGS'
6357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6359ac_compiler_gnu=$ac_cv_c_compiler_gnu
6360
cristy73bd4a52010-10-05 11:24:23 +00006361depcc="$CC" am_compiler_list=
6362
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6364$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006365if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006366 $as_echo_n "(cached) " >&6
6367else
6368 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6369 # We make a subdir and do the tests there. Otherwise we can end up
6370 # making bogus files that we don't know about and never remove. For
6371 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006372 # making a dummy file named 'D' -- because '-MD' means "put the output
6373 # in D".
cristy7247bba2012-02-05 16:37:27 +00006374 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006375 mkdir conftest.dir
6376 # Copy depcomp to subdir because otherwise we won't find it if we're
6377 # using a relative directory.
6378 cp "$am_depcomp" conftest.dir
6379 cd conftest.dir
6380 # We will build objects and dependencies in a subdirectory because
6381 # it helps to detect inapplicable dependency modes. For instance
6382 # both Tru64's cc and ICC support -MD to output dependencies as a
6383 # side effect of compilation, but ICC will put the dependencies in
6384 # the current directory while Tru64 will put them in the object
6385 # directory.
6386 mkdir sub
6387
6388 am_cv_CC_dependencies_compiler_type=none
6389 if test "$am_compiler_list" = ""; then
6390 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6391 fi
6392 am__universal=false
6393 case " $depcc " in #(
6394 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6395 esac
6396
6397 for depmode in $am_compiler_list; do
6398 # Setup a source with many dependencies, because some compilers
6399 # like to wrap large dependency lists on column 80 (with \), and
6400 # we should not choose a depcomp mode which is confused by this.
6401 #
6402 # We need to recreate these files for each test, as the compiler may
6403 # overwrite some of them when testing with obscure command lines.
6404 # This happens at least with the AIX C compiler.
6405 : > sub/conftest.c
6406 for i in 1 2 3 4 5 6; do
6407 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006408 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6409 # Solaris 10 /bin/sh.
6410 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006411 done
6412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6413
cristyc0890a62012-07-19 00:18:20 +00006414 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006415 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006416 # handle '-M -o', and we need to detect this. Also, some Intel
6417 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006418 am__obj=sub/conftest.${OBJEXT-o}
6419 am__minus_obj="-o $am__obj"
6420 case $depmode in
6421 gcc)
6422 # This depmode causes a compiler race in universal mode.
6423 test "$am__universal" = false || continue
6424 ;;
6425 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006426 # After this tag, mechanisms are not by side-effect, so they'll
6427 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006428 if test "x$enable_dependency_tracking" = xyes; then
6429 continue
6430 else
6431 break
6432 fi
6433 ;;
cristy7247bba2012-02-05 16:37:27 +00006434 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006435 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006436 # not run yet. These depmodes are late enough in the game, and
6437 # so weak that their functioning should not be impacted.
6438 am__obj=conftest.${OBJEXT-o}
6439 am__minus_obj=
6440 ;;
6441 none) break ;;
6442 esac
6443 if depmode=$depmode \
6444 source=sub/conftest.c object=$am__obj \
6445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6446 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6447 >/dev/null 2>conftest.err &&
6448 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6449 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6450 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6451 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6452 # icc doesn't choke on unknown options, it will just issue warnings
6453 # or remarks (even with -Werror). So we grep stderr for any message
6454 # that says an option was ignored or not supported.
6455 # When given -MP, icc 7.0 and 7.1 complain thusly:
6456 # icc: Command line warning: ignoring option '-M'; no argument required
6457 # The diagnosis changed in icc 8.0:
6458 # icc: Command line remark: option '-MP' not supported
6459 if (grep 'ignoring option' conftest.err ||
6460 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6461 am_cv_CC_dependencies_compiler_type=$depmode
6462 break
6463 fi
6464 fi
6465 done
6466
6467 cd ..
6468 rm -rf conftest.dir
6469else
6470 am_cv_CC_dependencies_compiler_type=none
6471fi
6472
6473fi
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6475$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6476CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6477
6478 if
6479 test "x$enable_dependency_tracking" != xno \
6480 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6481 am__fastdepCC_TRUE=
6482 am__fastdepCC_FALSE='#'
6483else
6484 am__fastdepCC_TRUE='#'
6485 am__fastdepCC_FALSE=
6486fi
6487
6488
cristy95646052009-11-28 23:05:30 +00006489ac_ext=cpp
6490ac_cpp='$CXXCPP $CPPFLAGS'
6491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6494if test -z "$CXX"; then
6495 if test -n "$CCC"; then
6496 CXX=$CCC
6497 else
6498 if test -n "$ac_tool_prefix"; then
6499 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6500 do
6501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6502set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006505if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006506 $as_echo_n "(cached) " >&6
6507else
6508 if test -n "$CXX"; then
6509 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6510else
6511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512for as_dir in $PATH
6513do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006518 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522done
6523 done
6524IFS=$as_save_IFS
6525
6526fi
6527fi
6528CXX=$ac_cv_prog_CXX
6529if test -n "$CXX"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6531$as_echo "$CXX" >&6; }
6532else
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534$as_echo "no" >&6; }
6535fi
6536
6537
6538 test -n "$CXX" && break
6539 done
6540fi
6541if test -z "$CXX"; then
6542 ac_ct_CXX=$CXX
6543 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6544do
6545 # Extract the first word of "$ac_prog", so it can be a program name with args.
6546set dummy $ac_prog; ac_word=$2
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006549if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006550 $as_echo_n "(cached) " >&6
6551else
6552 if test -n "$ac_ct_CXX"; then
6553 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6554else
6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006562 ac_cv_prog_ac_ct_CXX="$ac_prog"
6563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6565 fi
6566done
6567 done
6568IFS=$as_save_IFS
6569
6570fi
6571fi
6572ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6573if test -n "$ac_ct_CXX"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6575$as_echo "$ac_ct_CXX" >&6; }
6576else
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578$as_echo "no" >&6; }
6579fi
6580
6581
6582 test -n "$ac_ct_CXX" && break
6583done
6584
6585 if test "x$ac_ct_CXX" = x; then
6586 CXX="g++"
6587 else
6588 case $cross_compiling:$ac_tool_warned in
6589yes:)
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592ac_tool_warned=yes ;;
6593esac
6594 CXX=$ac_ct_CXX
6595 fi
6596fi
6597
6598 fi
6599fi
6600# Provide some information about the compiler.
6601$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6602set X $ac_compile
6603ac_compiler=$2
6604for ac_option in --version -v -V -qversion; do
6605 { { ac_try="$ac_compiler $ac_option >&5"
6606case "(($ac_try" in
6607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608 *) ac_try_echo=$ac_try;;
6609esac
6610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6611$as_echo "$ac_try_echo"; } >&5
6612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6613 ac_status=$?
6614 if test -s conftest.err; then
6615 sed '10a\
6616... rest of stderr output deleted ...
6617 10q' conftest.err >conftest.er1
6618 cat conftest.er1 >&5
6619 fi
6620 rm -f conftest.er1 conftest.err
6621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6622 test $ac_status = 0; }
6623done
6624
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6626$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006627if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006628 $as_echo_n "(cached) " >&6
6629else
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631/* end confdefs.h. */
6632
6633int
6634main ()
6635{
6636#ifndef __GNUC__
6637 choke me
6638#endif
6639
6640 ;
6641 return 0;
6642}
6643_ACEOF
6644if ac_fn_cxx_try_compile "$LINENO"; then :
6645 ac_compiler_gnu=yes
6646else
6647 ac_compiler_gnu=no
6648fi
6649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6651
6652fi
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6654$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6655if test $ac_compiler_gnu = yes; then
6656 GXX=yes
6657else
6658 GXX=
6659fi
6660ac_test_CXXFLAGS=${CXXFLAGS+set}
6661ac_save_CXXFLAGS=$CXXFLAGS
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6663$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006664if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006665 $as_echo_n "(cached) " >&6
6666else
6667 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6668 ac_cxx_werror_flag=yes
6669 ac_cv_prog_cxx_g=no
6670 CXXFLAGS="-g"
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672/* end confdefs.h. */
6673
6674int
6675main ()
6676{
6677
6678 ;
6679 return 0;
6680}
6681_ACEOF
6682if ac_fn_cxx_try_compile "$LINENO"; then :
6683 ac_cv_prog_cxx_g=yes
6684else
6685 CXXFLAGS=""
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687/* end confdefs.h. */
6688
6689int
6690main ()
6691{
6692
6693 ;
6694 return 0;
6695}
6696_ACEOF
6697if ac_fn_cxx_try_compile "$LINENO"; then :
6698
6699else
6700 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6701 CXXFLAGS="-g"
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703/* end confdefs.h. */
6704
6705int
6706main ()
6707{
6708
6709 ;
6710 return 0;
6711}
6712_ACEOF
6713if ac_fn_cxx_try_compile "$LINENO"; then :
6714 ac_cv_prog_cxx_g=yes
6715fi
6716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717fi
6718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719fi
6720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6722fi
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6724$as_echo "$ac_cv_prog_cxx_g" >&6; }
6725if test "$ac_test_CXXFLAGS" = set; then
6726 CXXFLAGS=$ac_save_CXXFLAGS
6727elif test $ac_cv_prog_cxx_g = yes; then
6728 if test "$GXX" = yes; then
6729 CXXFLAGS="-g -O2"
6730 else
6731 CXXFLAGS="-g"
6732 fi
6733else
6734 if test "$GXX" = yes; then
6735 CXXFLAGS="-O2"
6736 else
6737 CXXFLAGS=
6738 fi
6739fi
6740ac_ext=c
6741ac_cpp='$CPP $CPPFLAGS'
6742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6744ac_compiler_gnu=$ac_cv_c_compiler_gnu
6745
cristy73bd4a52010-10-05 11:24:23 +00006746depcc="$CXX" am_compiler_list=
6747
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6749$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006750if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006751 $as_echo_n "(cached) " >&6
6752else
6753 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6754 # We make a subdir and do the tests there. Otherwise we can end up
6755 # making bogus files that we don't know about and never remove. For
6756 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006757 # making a dummy file named 'D' -- because '-MD' means "put the output
6758 # in D".
cristy7247bba2012-02-05 16:37:27 +00006759 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006760 mkdir conftest.dir
6761 # Copy depcomp to subdir because otherwise we won't find it if we're
6762 # using a relative directory.
6763 cp "$am_depcomp" conftest.dir
6764 cd conftest.dir
6765 # We will build objects and dependencies in a subdirectory because
6766 # it helps to detect inapplicable dependency modes. For instance
6767 # both Tru64's cc and ICC support -MD to output dependencies as a
6768 # side effect of compilation, but ICC will put the dependencies in
6769 # the current directory while Tru64 will put them in the object
6770 # directory.
6771 mkdir sub
6772
6773 am_cv_CXX_dependencies_compiler_type=none
6774 if test "$am_compiler_list" = ""; then
6775 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6776 fi
6777 am__universal=false
6778 case " $depcc " in #(
6779 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6780 esac
6781
6782 for depmode in $am_compiler_list; do
6783 # Setup a source with many dependencies, because some compilers
6784 # like to wrap large dependency lists on column 80 (with \), and
6785 # we should not choose a depcomp mode which is confused by this.
6786 #
6787 # We need to recreate these files for each test, as the compiler may
6788 # overwrite some of them when testing with obscure command lines.
6789 # This happens at least with the AIX C compiler.
6790 : > sub/conftest.c
6791 for i in 1 2 3 4 5 6; do
6792 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006793 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6794 # Solaris 10 /bin/sh.
6795 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006796 done
6797 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6798
cristyc0890a62012-07-19 00:18:20 +00006799 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006800 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006801 # handle '-M -o', and we need to detect this. Also, some Intel
6802 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006803 am__obj=sub/conftest.${OBJEXT-o}
6804 am__minus_obj="-o $am__obj"
6805 case $depmode in
6806 gcc)
6807 # This depmode causes a compiler race in universal mode.
6808 test "$am__universal" = false || continue
6809 ;;
6810 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006811 # After this tag, mechanisms are not by side-effect, so they'll
6812 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006813 if test "x$enable_dependency_tracking" = xyes; then
6814 continue
6815 else
6816 break
6817 fi
6818 ;;
cristy7247bba2012-02-05 16:37:27 +00006819 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006820 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006821 # not run yet. These depmodes are late enough in the game, and
6822 # so weak that their functioning should not be impacted.
6823 am__obj=conftest.${OBJEXT-o}
6824 am__minus_obj=
6825 ;;
6826 none) break ;;
6827 esac
6828 if depmode=$depmode \
6829 source=sub/conftest.c object=$am__obj \
6830 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6831 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6832 >/dev/null 2>conftest.err &&
6833 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6834 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6835 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6836 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6837 # icc doesn't choke on unknown options, it will just issue warnings
6838 # or remarks (even with -Werror). So we grep stderr for any message
6839 # that says an option was ignored or not supported.
6840 # When given -MP, icc 7.0 and 7.1 complain thusly:
6841 # icc: Command line warning: ignoring option '-M'; no argument required
6842 # The diagnosis changed in icc 8.0:
6843 # icc: Command line remark: option '-MP' not supported
6844 if (grep 'ignoring option' conftest.err ||
6845 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6846 am_cv_CXX_dependencies_compiler_type=$depmode
6847 break
6848 fi
6849 fi
6850 done
6851
6852 cd ..
6853 rm -rf conftest.dir
6854else
6855 am_cv_CXX_dependencies_compiler_type=none
6856fi
6857
6858fi
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6860$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6861CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6862
6863 if
6864 test "x$enable_dependency_tracking" != xno \
6865 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6866 am__fastdepCXX_TRUE=
6867 am__fastdepCXX_FALSE='#'
6868else
6869 am__fastdepCXX_TRUE='#'
6870 am__fastdepCXX_FALSE=
6871fi
6872
6873
cristy8b350f62009-11-15 23:12:43 +00006874 case $ac_cv_prog_cc_stdc in #(
6875 no) :
6876 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6877 *) :
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006879$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006880if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006881 $as_echo_n "(cached) " >&6
6882else
6883 ac_cv_prog_cc_c99=no
6884ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006886/* end confdefs.h. */
6887#include <stdarg.h>
6888#include <stdbool.h>
6889#include <stdlib.h>
6890#include <wchar.h>
6891#include <stdio.h>
6892
6893// Check varargs macros. These examples are taken from C99 6.10.3.5.
6894#define debug(...) fprintf (stderr, __VA_ARGS__)
6895#define showlist(...) puts (#__VA_ARGS__)
6896#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6897static void
6898test_varargs_macros (void)
6899{
6900 int x = 1234;
6901 int y = 5678;
6902 debug ("Flag");
6903 debug ("X = %d\n", x);
6904 showlist (The first, second, and third items.);
6905 report (x>y, "x is %d but y is %d", x, y);
6906}
6907
6908// Check long long types.
6909#define BIG64 18446744073709551615ull
6910#define BIG32 4294967295ul
6911#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6912#if !BIG_OK
6913 your preprocessor is broken;
6914#endif
6915#if BIG_OK
6916#else
6917 your preprocessor is broken;
6918#endif
6919static long long int bignum = -9223372036854775807LL;
6920static unsigned long long int ubignum = BIG64;
6921
6922struct incomplete_array
6923{
6924 int datasize;
6925 double data[];
6926};
6927
6928struct named_init {
6929 int number;
6930 const wchar_t *name;
6931 double average;
6932};
6933
6934typedef const char *ccp;
6935
6936static inline int
6937test_restrict (ccp restrict text)
6938{
6939 // See if C++-style comments work.
6940 // Iterate through items via the restricted pointer.
6941 // Also check for declarations in for loops.
6942 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6943 continue;
6944 return 0;
6945}
6946
6947// Check varargs and va_copy.
6948static void
6949test_varargs (const char *format, ...)
6950{
6951 va_list args;
6952 va_start (args, format);
6953 va_list args_copy;
6954 va_copy (args_copy, args);
6955
6956 const char *str;
6957 int number;
6958 float fnumber;
6959
6960 while (*format)
6961 {
6962 switch (*format++)
6963 {
6964 case 's': // string
6965 str = va_arg (args_copy, const char *);
6966 break;
6967 case 'd': // int
6968 number = va_arg (args_copy, int);
6969 break;
6970 case 'f': // float
6971 fnumber = va_arg (args_copy, double);
6972 break;
6973 default:
6974 break;
6975 }
6976 }
6977 va_end (args_copy);
6978 va_end (args);
6979}
6980
6981int
6982main ()
6983{
6984
6985 // Check bool.
6986 _Bool success = false;
6987
6988 // Check restrict.
6989 if (test_restrict ("String literal") == 0)
6990 success = true;
6991 char *restrict newvar = "Another string";
6992
6993 // Check varargs.
6994 test_varargs ("s, d' f .", "string", 65, 34.234);
6995 test_varargs_macros ();
6996
6997 // Check flexible array members.
6998 struct incomplete_array *ia =
6999 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7000 ia->datasize = 10;
7001 for (int i = 0; i < ia->datasize; ++i)
7002 ia->data[i] = i * 1.234;
7003
7004 // Check named initializers.
7005 struct named_init ni = {
7006 .number = 34,
7007 .name = L"Test wide string",
7008 .average = 543.34343,
7009 };
7010
7011 ni.number = 58;
7012
7013 int dynamic_array[ni.number];
7014 dynamic_array[ni.number - 1] = 543;
7015
7016 // work around unused variable warnings
7017 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7018 || dynamic_array[ni.number - 1] != 543);
7019
7020 ;
7021 return 0;
7022}
7023_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007024for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007025do
7026 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007027 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007028 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007029fi
cristy3ed852e2009-09-05 21:47:34 +00007030rm -f core conftest.err conftest.$ac_objext
7031 test "x$ac_cv_prog_cc_c99" != "xno" && break
7032done
7033rm -f conftest.$ac_ext
7034CC=$ac_save_CC
7035
7036fi
7037# AC_CACHE_VAL
7038case "x$ac_cv_prog_cc_c99" in
7039 x)
cristy8b350f62009-11-15 23:12:43 +00007040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007041$as_echo "none needed" >&6; } ;;
7042 xno)
cristy8b350f62009-11-15 23:12:43 +00007043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007044$as_echo "unsupported" >&6; } ;;
7045 *)
7046 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007048$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7049esac
cristy8b350f62009-11-15 23:12:43 +00007050if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007051 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7052else
cristy8b350f62009-11-15 23:12:43 +00007053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007054$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007055if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007056 $as_echo_n "(cached) " >&6
7057else
7058 ac_cv_prog_cc_c89=no
7059ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007061/* end confdefs.h. */
7062#include <stdarg.h>
7063#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007064struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007065/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7066struct buf { int x; };
7067FILE * (*rcsopen) (struct buf *, struct stat *, int);
7068static char *e (p, i)
7069 char **p;
7070 int i;
7071{
7072 return p[i];
7073}
7074static char *f (char * (*g) (char **, int), char **p, ...)
7075{
7076 char *s;
7077 va_list v;
7078 va_start (v,p);
7079 s = g (p, va_arg (v,int));
7080 va_end (v);
7081 return s;
7082}
7083
7084/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7085 function prototypes and stuff, but not '\xHH' hex character constants.
7086 These don't provoke an error unfortunately, instead are silently treated
7087 as 'x'. The following induces an error, until -std is added to get
7088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7089 array size at least. It's necessary to write '\x00'==0 to get something
7090 that's true only with -std. */
7091int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7092
7093/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7094 inside strings and character constants. */
7095#define FOO(x) 'x'
7096int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7097
7098int test (int i, double x);
7099struct s1 {int (*f) (int a);};
7100struct s2 {int (*f) (double a);};
7101int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7102int argc;
7103char **argv;
7104int
7105main ()
7106{
7107return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7108 ;
7109 return 0;
7110}
7111_ACEOF
7112for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7113 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7114do
7115 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007116 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007117 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007118fi
cristy3ed852e2009-09-05 21:47:34 +00007119rm -f core conftest.err conftest.$ac_objext
7120 test "x$ac_cv_prog_cc_c89" != "xno" && break
7121done
7122rm -f conftest.$ac_ext
7123CC=$ac_save_CC
7124
7125fi
7126# AC_CACHE_VAL
7127case "x$ac_cv_prog_cc_c89" in
7128 x)
cristy8b350f62009-11-15 23:12:43 +00007129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007130$as_echo "none needed" >&6; } ;;
7131 xno)
cristy8b350f62009-11-15 23:12:43 +00007132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007133$as_echo "unsupported" >&6; } ;;
7134 *)
7135 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007137$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7138esac
cristy8b350f62009-11-15 23:12:43 +00007139if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007140 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7141else
7142 ac_cv_prog_cc_stdc=no
7143fi
7144
cristy3ed852e2009-09-05 21:47:34 +00007145fi
cristy3ed852e2009-09-05 21:47:34 +00007146 ;;
7147esac
cristy8b350f62009-11-15 23:12:43 +00007148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007149$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007150 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007151 $as_echo_n "(cached) " >&6
7152fi
7153
cristy8b350f62009-11-15 23:12:43 +00007154 case $ac_cv_prog_cc_stdc in #(
7155 no) :
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7157$as_echo "unsupported" >&6; } ;; #(
7158 '') :
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7160$as_echo "none needed" >&6; } ;; #(
7161 *) :
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007163$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7164esac
7165
cristy3ed852e2009-09-05 21:47:34 +00007166ac_ext=c
7167ac_cpp='$CPP $CPPFLAGS'
7168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007172$as_echo_n "checking how to run the C preprocessor... " >&6; }
7173# On Suns, sometimes $CPP names a directory.
7174if test -n "$CPP" && test -d "$CPP"; then
7175 CPP=
7176fi
7177if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007178 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007179 $as_echo_n "(cached) " >&6
7180else
7181 # Double quotes because CPP needs to be expanded
7182 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7183 do
7184 ac_preproc_ok=false
7185for ac_c_preproc_warn_flag in '' yes
7186do
7187 # Use a header file that comes with gcc, so configuring glibc
7188 # with a fresh cross-compiler works.
7189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7190 # <limits.h> exists even on freestanding compilers.
7191 # On the NeXT, cc -E runs the code through the compiler's parser,
7192 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007194/* end confdefs.h. */
7195#ifdef __STDC__
7196# include <limits.h>
7197#else
7198# include <assert.h>
7199#endif
7200 Syntax error
7201_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007202if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007203
cristy8b350f62009-11-15 23:12:43 +00007204else
cristy3ed852e2009-09-05 21:47:34 +00007205 # Broken: fails on valid input.
7206continue
7207fi
cristyda16f162011-02-19 23:52:17 +00007208rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007209
7210 # OK, works on sane cases. Now check whether nonexistent headers
7211 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007213/* end confdefs.h. */
7214#include <ac_nonexistent.h>
7215_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007216if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007217 # Broken: success on invalid input.
7218continue
7219else
cristy3ed852e2009-09-05 21:47:34 +00007220 # Passes both tests.
7221ac_preproc_ok=:
7222break
7223fi
cristyda16f162011-02-19 23:52:17 +00007224rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007225
7226done
7227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007228rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007229if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007230 break
7231fi
7232
7233 done
7234 ac_cv_prog_CPP=$CPP
7235
7236fi
7237 CPP=$ac_cv_prog_CPP
7238else
7239 ac_cv_prog_CPP=$CPP
7240fi
cristy8b350f62009-11-15 23:12:43 +00007241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007242$as_echo "$CPP" >&6; }
7243ac_preproc_ok=false
7244for ac_c_preproc_warn_flag in '' yes
7245do
7246 # Use a header file that comes with gcc, so configuring glibc
7247 # with a fresh cross-compiler works.
7248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7249 # <limits.h> exists even on freestanding compilers.
7250 # On the NeXT, cc -E runs the code through the compiler's parser,
7251 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007253/* end confdefs.h. */
7254#ifdef __STDC__
7255# include <limits.h>
7256#else
7257# include <assert.h>
7258#endif
7259 Syntax error
7260_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007261if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007262
cristy8b350f62009-11-15 23:12:43 +00007263else
cristy3ed852e2009-09-05 21:47:34 +00007264 # Broken: fails on valid input.
7265continue
7266fi
cristyda16f162011-02-19 23:52:17 +00007267rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007268
7269 # OK, works on sane cases. Now check whether nonexistent headers
7270 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007272/* end confdefs.h. */
7273#include <ac_nonexistent.h>
7274_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007275if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007276 # Broken: success on invalid input.
7277continue
7278else
cristy3ed852e2009-09-05 21:47:34 +00007279 # Passes both tests.
7280ac_preproc_ok=:
7281break
7282fi
cristyda16f162011-02-19 23:52:17 +00007283rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007284
7285done
7286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007287rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007288if $ac_preproc_ok; then :
7289
cristy3ed852e2009-09-05 21:47:34 +00007290else
cristy8b350f62009-11-15 23:12:43 +00007291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007293as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7294See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007295fi
7296
7297ac_ext=c
7298ac_cpp='$CPP $CPPFLAGS'
7299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7301ac_compiler_gnu=$ac_cv_c_compiler_gnu
7302
cristy73bd4a52010-10-05 11:24:23 +00007303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7304$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007305if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007306 $as_echo_n "(cached) " >&6
7307else
7308 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7309 for ac_i in 1 2 3 4 5 6 7; do
7310 ac_script="$ac_script$as_nl$ac_script"
7311 done
7312 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7313 { ac_script=; unset ac_script;}
7314 if test -z "$SED"; then
7315 ac_path_SED_found=false
7316 # Loop through the user's path and test for each of PROGNAME-LIST
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_prog in sed gsed; do
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007325 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007326# Check for GNU ac_path_SED and select it if it is found.
7327 # Check for GNU $ac_path_SED
7328case `"$ac_path_SED" --version 2>&1` in
7329*GNU*)
7330 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7331*)
7332 ac_count=0
7333 $as_echo_n 0123456789 >"conftest.in"
7334 while :
7335 do
7336 cat "conftest.in" "conftest.in" >"conftest.tmp"
7337 mv "conftest.tmp" "conftest.in"
7338 cp "conftest.in" "conftest.nl"
7339 $as_echo '' >> "conftest.nl"
7340 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7342 as_fn_arith $ac_count + 1 && ac_count=$as_val
7343 if test $ac_count -gt ${ac_path_SED_max-0}; then
7344 # Best one so far, save it but keep looking for a better one
7345 ac_cv_path_SED="$ac_path_SED"
7346 ac_path_SED_max=$ac_count
7347 fi
7348 # 10*(2^10) chars as input seems more than enough
7349 test $ac_count -gt 10 && break
7350 done
7351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7352esac
7353
7354 $ac_path_SED_found && break 3
7355 done
7356 done
7357 done
7358IFS=$as_save_IFS
7359 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007360 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007361 fi
7362else
7363 ac_cv_path_SED=$SED
7364fi
7365
7366fi
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7368$as_echo "$ac_cv_path_SED" >&6; }
7369 SED="$ac_cv_path_SED"
7370 rm -f conftest.sed
7371
7372test -z "$SED" && SED=sed
7373Xsed="$SED -e 1s/^X//"
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7386$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007387if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007388 $as_echo_n "(cached) " >&6
7389else
7390 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7391 then ac_cv_path_FGREP="$GREP -F"
7392 else
7393 if test -z "$FGREP"; then
7394 ac_path_FGREP_found=false
7395 # Loop through the user's path and test for each of PROGNAME-LIST
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7398do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_prog in fgrep; do
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007404 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007405# Check for GNU ac_path_FGREP and select it if it is found.
7406 # Check for GNU $ac_path_FGREP
7407case `"$ac_path_FGREP" --version 2>&1` in
7408*GNU*)
7409 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7410*)
7411 ac_count=0
7412 $as_echo_n 0123456789 >"conftest.in"
7413 while :
7414 do
7415 cat "conftest.in" "conftest.in" >"conftest.tmp"
7416 mv "conftest.tmp" "conftest.in"
7417 cp "conftest.in" "conftest.nl"
7418 $as_echo 'FGREP' >> "conftest.nl"
7419 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7421 as_fn_arith $ac_count + 1 && ac_count=$as_val
7422 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7423 # Best one so far, save it but keep looking for a better one
7424 ac_cv_path_FGREP="$ac_path_FGREP"
7425 ac_path_FGREP_max=$ac_count
7426 fi
7427 # 10*(2^10) chars as input seems more than enough
7428 test $ac_count -gt 10 && break
7429 done
7430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7431esac
7432
7433 $ac_path_FGREP_found && break 3
7434 done
7435 done
7436 done
7437IFS=$as_save_IFS
7438 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007439 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007440 fi
7441else
7442 ac_cv_path_FGREP=$FGREP
7443fi
7444
7445 fi
7446fi
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7448$as_echo "$ac_cv_path_FGREP" >&6; }
7449 FGREP="$ac_cv_path_FGREP"
7450
7451
7452test -z "$GREP" && GREP=grep
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
cristy0c60a692010-11-04 01:09:47 +00007470ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7471ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7472ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7473
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7475$as_echo_n "checking how to print strings... " >&6; }
7476# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007477if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007478 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7479 ECHO='print -r --'
7480elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7481 ECHO='printf %s\n'
7482else
7483 # Use this function as a fallback that always works.
7484 func_fallback_echo ()
7485 {
7486 eval 'cat <<_LTECHO_EOF
7487$1
7488_LTECHO_EOF'
7489 }
7490 ECHO='func_fallback_echo'
7491fi
7492
7493# func_echo_all arg...
7494# Invoke $ECHO with all args, space-separated.
7495func_echo_all ()
7496{
7497 $ECHO ""
7498}
7499
7500case "$ECHO" in
7501 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7502$as_echo "printf" >&6; } ;;
7503 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7504$as_echo "print -r" >&6; } ;;
7505 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7506$as_echo "cat" >&6; } ;;
7507esac
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
cristy73bd4a52010-10-05 11:24:23 +00007522
7523
7524# Check whether --with-gnu-ld was given.
7525if test "${with_gnu_ld+set}" = set; then :
7526 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7527else
7528 with_gnu_ld=no
7529fi
7530
7531ac_prog=ld
7532if test "$GCC" = yes; then
7533 # Check if gcc -print-prog-name=ld gives a path.
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7535$as_echo_n "checking for ld used by $CC... " >&6; }
7536 case $host in
7537 *-*-mingw*)
7538 # gcc leaves a trailing carriage return which upsets mingw
7539 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7540 *)
7541 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7542 esac
7543 case $ac_prog in
7544 # Accept absolute paths.
7545 [\\/]* | ?:[\\/]*)
7546 re_direlt='/[^/][^/]*/\.\./'
7547 # Canonicalize the pathname of ld
7548 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7549 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7550 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7551 done
7552 test -z "$LD" && LD="$ac_prog"
7553 ;;
7554 "")
7555 # If it fails, then pretend we aren't using GCC.
7556 ac_prog=ld
7557 ;;
7558 *)
7559 # If it is relative, then search for the first ld in PATH.
7560 with_gnu_ld=unknown
7561 ;;
7562 esac
7563elif test "$with_gnu_ld" = yes; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7565$as_echo_n "checking for GNU ld... " >&6; }
7566else
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7568$as_echo_n "checking for non-GNU ld... " >&6; }
7569fi
cristyda16f162011-02-19 23:52:17 +00007570if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007571 $as_echo_n "(cached) " >&6
7572else
7573 if test -z "$LD"; then
7574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7575 for ac_dir in $PATH; do
7576 IFS="$lt_save_ifs"
7577 test -z "$ac_dir" && ac_dir=.
7578 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7579 lt_cv_path_LD="$ac_dir/$ac_prog"
7580 # Check to see if the program is GNU ld. I'd rather use --version,
7581 # but apparently some variants of GNU ld only accept -v.
7582 # Break only if it was the GNU/non-GNU ld that we prefer.
7583 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7584 *GNU* | *'with BFD'*)
7585 test "$with_gnu_ld" != no && break
7586 ;;
7587 *)
7588 test "$with_gnu_ld" != yes && break
7589 ;;
7590 esac
7591 fi
7592 done
7593 IFS="$lt_save_ifs"
7594else
7595 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7596fi
7597fi
7598
7599LD="$lt_cv_path_LD"
7600if test -n "$LD"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7602$as_echo "$LD" >&6; }
7603else
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605$as_echo "no" >&6; }
7606fi
cristy98dddb52010-11-04 00:30:15 +00007607test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7609$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007610if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007611 $as_echo_n "(cached) " >&6
7612else
7613 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7614case `$LD -v 2>&1 </dev/null` in
7615*GNU* | *'with BFD'*)
7616 lt_cv_prog_gnu_ld=yes
7617 ;;
7618*)
7619 lt_cv_prog_gnu_ld=no
7620 ;;
7621esac
7622fi
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7624$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7625with_gnu_ld=$lt_cv_prog_gnu_ld
7626
7627
7628
7629
7630
7631
7632
7633
7634
cristy3ed852e2009-09-05 21:47:34 +00007635
cristy837d6dc2010-02-27 01:16:57 +00007636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7637$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007638if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007639 $as_echo_n "(cached) " >&6
7640else
7641 ac_cv_prog_cc_c99=no
7642ac_save_CC=$CC
7643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644/* end confdefs.h. */
7645#include <stdarg.h>
7646#include <stdbool.h>
7647#include <stdlib.h>
7648#include <wchar.h>
7649#include <stdio.h>
7650
7651// Check varargs macros. These examples are taken from C99 6.10.3.5.
7652#define debug(...) fprintf (stderr, __VA_ARGS__)
7653#define showlist(...) puts (#__VA_ARGS__)
7654#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7655static void
7656test_varargs_macros (void)
7657{
7658 int x = 1234;
7659 int y = 5678;
7660 debug ("Flag");
7661 debug ("X = %d\n", x);
7662 showlist (The first, second, and third items.);
7663 report (x>y, "x is %d but y is %d", x, y);
7664}
7665
7666// Check long long types.
7667#define BIG64 18446744073709551615ull
7668#define BIG32 4294967295ul
7669#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7670#if !BIG_OK
7671 your preprocessor is broken;
7672#endif
7673#if BIG_OK
7674#else
7675 your preprocessor is broken;
7676#endif
7677static long long int bignum = -9223372036854775807LL;
7678static unsigned long long int ubignum = BIG64;
7679
7680struct incomplete_array
7681{
7682 int datasize;
7683 double data[];
7684};
7685
7686struct named_init {
7687 int number;
7688 const wchar_t *name;
7689 double average;
7690};
7691
7692typedef const char *ccp;
7693
7694static inline int
7695test_restrict (ccp restrict text)
7696{
7697 // See if C++-style comments work.
7698 // Iterate through items via the restricted pointer.
7699 // Also check for declarations in for loops.
7700 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7701 continue;
7702 return 0;
7703}
7704
7705// Check varargs and va_copy.
7706static void
7707test_varargs (const char *format, ...)
7708{
7709 va_list args;
7710 va_start (args, format);
7711 va_list args_copy;
7712 va_copy (args_copy, args);
7713
7714 const char *str;
7715 int number;
7716 float fnumber;
7717
7718 while (*format)
7719 {
7720 switch (*format++)
7721 {
7722 case 's': // string
7723 str = va_arg (args_copy, const char *);
7724 break;
7725 case 'd': // int
7726 number = va_arg (args_copy, int);
7727 break;
7728 case 'f': // float
7729 fnumber = va_arg (args_copy, double);
7730 break;
7731 default:
7732 break;
7733 }
7734 }
7735 va_end (args_copy);
7736 va_end (args);
7737}
7738
7739int
7740main ()
7741{
7742
7743 // Check bool.
7744 _Bool success = false;
7745
7746 // Check restrict.
7747 if (test_restrict ("String literal") == 0)
7748 success = true;
7749 char *restrict newvar = "Another string";
7750
7751 // Check varargs.
7752 test_varargs ("s, d' f .", "string", 65, 34.234);
7753 test_varargs_macros ();
7754
7755 // Check flexible array members.
7756 struct incomplete_array *ia =
7757 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7758 ia->datasize = 10;
7759 for (int i = 0; i < ia->datasize; ++i)
7760 ia->data[i] = i * 1.234;
7761
7762 // Check named initializers.
7763 struct named_init ni = {
7764 .number = 34,
7765 .name = L"Test wide string",
7766 .average = 543.34343,
7767 };
7768
7769 ni.number = 58;
7770
7771 int dynamic_array[ni.number];
7772 dynamic_array[ni.number - 1] = 543;
7773
7774 // work around unused variable warnings
7775 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7776 || dynamic_array[ni.number - 1] != 543);
7777
7778 ;
7779 return 0;
7780}
7781_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007782for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007783do
7784 CC="$ac_save_CC $ac_arg"
7785 if ac_fn_c_try_compile "$LINENO"; then :
7786 ac_cv_prog_cc_c99=$ac_arg
7787fi
7788rm -f core conftest.err conftest.$ac_objext
7789 test "x$ac_cv_prog_cc_c99" != "xno" && break
7790done
7791rm -f conftest.$ac_ext
7792CC=$ac_save_CC
7793
7794fi
7795# AC_CACHE_VAL
7796case "x$ac_cv_prog_cc_c99" in
7797 x)
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7799$as_echo "none needed" >&6; } ;;
7800 xno)
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7802$as_echo "unsupported" >&6; } ;;
7803 *)
7804 CC="$CC $ac_cv_prog_cc_c99"
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7806$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7807esac
7808if test "x$ac_cv_prog_cc_c99" != xno; then :
7809
7810fi
7811
7812
cristy73bd4a52010-10-05 11:24:23 +00007813if test "x$CC" != xcc; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7815$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7816else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7818$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7819fi
7820set dummy $CC; ac_cc=`$as_echo "$2" |
7821 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007822if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007823 $as_echo_n "(cached) " >&6
7824else
cristy73bd4a52010-10-05 11:24:23 +00007825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826/* end confdefs.h. */
7827
7828int
7829main ()
7830{
7831
7832 ;
7833 return 0;
7834}
7835_ACEOF
7836# Make sure it works both with $CC and with simple cc.
7837# We do the test twice because some compilers refuse to overwrite an
7838# existing .o file with -o, though they will create one.
7839ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7840rm -f conftest2.*
7841if { { case "(($ac_try" in
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7844esac
7845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7846$as_echo "$ac_try_echo"; } >&5
7847 (eval "$ac_try") 2>&5
7848 ac_status=$?
7849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7850 test $ac_status = 0; } &&
7851 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854esac
7855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7856$as_echo "$ac_try_echo"; } >&5
7857 (eval "$ac_try") 2>&5
7858 ac_status=$?
7859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; };
7861then
7862 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7863 if test "x$CC" != xcc; then
7864 # Test first that cc exists at all.
7865 if { ac_try='cc -c conftest.$ac_ext >&5'
7866 { { case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7869esac
7870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7871$as_echo "$ac_try_echo"; } >&5
7872 (eval "$ac_try") 2>&5
7873 ac_status=$?
7874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7875 test $ac_status = 0; }; }; then
7876 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7877 rm -f conftest2.*
7878 if { { case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7881esac
7882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7883$as_echo "$ac_try_echo"; } >&5
7884 (eval "$ac_try") 2>&5
7885 ac_status=$?
7886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7887 test $ac_status = 0; } &&
7888 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7891esac
7892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7893$as_echo "$ac_try_echo"; } >&5
7894 (eval "$ac_try") 2>&5
7895 ac_status=$?
7896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7897 test $ac_status = 0; };
7898 then
7899 # cc works too.
7900 :
7901 else
7902 # cc exists but doesn't like -o.
7903 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7904 fi
7905 fi
7906 fi
7907else
7908 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7909fi
7910rm -f core conftest*
7911
7912fi
7913if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7915$as_echo "yes" >&6; }
7916else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918$as_echo "no" >&6; }
7919
7920$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7921
7922fi
7923
7924# FIXME: we rely on the cache variable name because
7925# there is no other way.
7926set dummy $CC
7927am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7928eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7929if test "$am_t" != yes; then
7930 # Losing compiler, so override with the script.
7931 # FIXME: It is wrong to rewrite CC.
7932 # But if we don't then we get into trouble of one sort or another.
7933 # A longer-term fix would be to have automake use am__CC in this case,
7934 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7935 CC="$am_aux_dir/compile $CC"
7936fi
7937
7938
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7940$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007941if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007942 $as_echo_n "(cached) " >&6
7943else
7944 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007945 ac_ext=c
7946ac_cpp='$CPP $CPPFLAGS'
7947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7949ac_compiler_gnu=$ac_cv_c_compiler_gnu
7950
7951 ac_save_CFLAGS="$CFLAGS"
7952for 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" #
7953do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955/* end confdefs.h. */
7956
7957int
7958main ()
7959{
cristy24fc1fe2010-10-23 21:13:01 +00007960
cristy73bd4a52010-10-05 11:24:23 +00007961 ;
7962 return 0;
7963}
7964_ACEOF
7965if ac_fn_c_try_compile "$LINENO"; then :
7966 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7967fi
7968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969done
7970 CFLAGS="$ac_save_CFLAGS"
7971 ac_ext=c
7972ac_cpp='$CPP $CPPFLAGS'
7973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7975ac_compiler_gnu=$ac_cv_c_compiler_gnu
7976
7977
7978fi
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7980$as_echo "$ac_cv_cflags_warn_all" >&6; }
7981case ".$ac_cv_cflags_warn_all" in
7982 .ok|.ok,*) ;;
7983 .|.no|.no,*)
7984 ;;
7985 *)
7986 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7987 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7988 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7989 ac_status=$?
7990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7991 test $ac_status = 0; }
7992 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7993 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7994 ac_status=$?
7995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7996 test $ac_status = 0; }
7997 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7998 fi
7999 ;;
nicolas6237c462010-10-05 06:11:49 +00008000esac
cristy3ed852e2009-09-05 21:47:34 +00008001
cristy016e8b82012-12-26 12:11:06 +00008002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8003$as_echo_n "checking for C compiler vendor... " >&6; }
8004if ${ax_cv_c_compiler_vendor+:} false; then :
8005 $as_echo_n "(cached) " >&6
8006else
8007 # note: don't check for gcc first since some other compilers define __GNUC__
8008 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8009 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8010 pathscale: __PATHCC__,__PATHSCALE__
8011 clang: __clang__
8012 gnu: __GNUC__
8013 sun: __SUNPRO_C,__SUNPRO_CC
8014 hp: __HP_cc,__HP_aCC
8015 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8016 borland: __BORLANDC__,__TURBOC__
8017 comeau: __COMO__
8018 cray: _CRAYC
8019 kai: __KCC
8020 lcc: __LCC__
8021 sgi: __sgi,sgi
8022 microsoft: _MSC_VER
8023 metrowerks: __MWERKS__
8024 watcom: __WATCOMC__
8025 portland: __PGI
8026 unknown: UNKNOWN"
8027 for ventest in $vendors; do
8028 case $ventest in
8029 *:) vendor=$ventest; continue ;;
8030 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8031 esac
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033/* end confdefs.h. */
8034
8035int
8036main ()
8037{
8038
8039 #if !($vencpp)
8040 thisisanerror;
8041 #endif
8042
8043 ;
8044 return 0;
8045}
8046_ACEOF
8047if ac_fn_c_try_compile "$LINENO"; then :
8048 break
8049fi
8050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051 done
8052 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8053
8054fi
8055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8056$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8057
cristya0b81c32010-01-22 02:54:33 +00008058
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8060$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8061set x ${MAKE-make}
8062ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008063if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008064 $as_echo_n "(cached) " >&6
8065else
8066 cat >conftest.make <<\_ACEOF
8067SHELL = /bin/sh
8068all:
8069 @echo '@@@%%%=$(MAKE)=@@@%%%'
8070_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008071# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008072case `${MAKE-make} -f conftest.make 2>/dev/null` in
8073 *@@@%%%=?*=@@@%%%*)
8074 eval ac_cv_prog_make_${ac_make}_set=yes;;
8075 *)
8076 eval ac_cv_prog_make_${ac_make}_set=no;;
8077esac
8078rm -f conftest.make
8079fi
8080if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8082$as_echo "yes" >&6; }
8083 SET_MAKE=
8084else
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086$as_echo "no" >&6; }
8087 SET_MAKE="MAKE=${MAKE-make}"
8088fi
8089
cristy8b350f62009-11-15 23:12:43 +00008090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008091$as_echo_n "checking whether ln -s works... " >&6; }
8092LN_S=$as_ln_s
8093if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008095$as_echo "yes" >&6; }
8096else
cristy8b350f62009-11-15 23:12:43 +00008097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008098$as_echo "no, using $LN_S" >&6; }
8099fi
8100
cristy8d0ff762013-03-10 20:33:28 +00008101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8102$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8103if ${ac_cv_path_SED+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105else
8106 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8107 for ac_i in 1 2 3 4 5 6 7; do
8108 ac_script="$ac_script$as_nl$ac_script"
8109 done
8110 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8111 { ac_script=; unset ac_script;}
8112 if test -z "$SED"; then
8113 ac_path_SED_found=false
8114 # Loop through the user's path and test for each of PROGNAME-LIST
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_prog in sed gsed; do
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8123 as_fn_executable_p "$ac_path_SED" || continue
8124# Check for GNU ac_path_SED and select it if it is found.
8125 # Check for GNU $ac_path_SED
8126case `"$ac_path_SED" --version 2>&1` in
8127*GNU*)
8128 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8129*)
8130 ac_count=0
8131 $as_echo_n 0123456789 >"conftest.in"
8132 while :
8133 do
8134 cat "conftest.in" "conftest.in" >"conftest.tmp"
8135 mv "conftest.tmp" "conftest.in"
8136 cp "conftest.in" "conftest.nl"
8137 $as_echo '' >> "conftest.nl"
8138 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8140 as_fn_arith $ac_count + 1 && ac_count=$as_val
8141 if test $ac_count -gt ${ac_path_SED_max-0}; then
8142 # Best one so far, save it but keep looking for a better one
8143 ac_cv_path_SED="$ac_path_SED"
8144 ac_path_SED_max=$ac_count
8145 fi
8146 # 10*(2^10) chars as input seems more than enough
8147 test $ac_count -gt 10 && break
8148 done
8149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8150esac
8151
8152 $ac_path_SED_found && break 3
8153 done
8154 done
8155 done
8156IFS=$as_save_IFS
8157 if test -z "$ac_cv_path_SED"; then
8158 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8159 fi
8160else
8161 ac_cv_path_SED=$SED
8162fi
8163
8164fi
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8166$as_echo "$ac_cv_path_SED" >&6; }
8167 SED="$ac_cv_path_SED"
8168 rm -f conftest.sed
8169
cristybc556452012-08-17 19:44:03 +00008170for ac_prog in gawk mawk nawk awk
8171do
8172 # Extract the first word of "$ac_prog", so it can be a program name with args.
8173set dummy $ac_prog; ac_word=$2
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175$as_echo_n "checking for $ac_word... " >&6; }
8176if ${ac_cv_prog_AWK+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178else
8179 if test -n "$AWK"; then
8180 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8181else
8182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183for as_dir in $PATH
8184do
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189 ac_cv_prog_AWK="$ac_prog"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8192 fi
8193done
8194 done
8195IFS=$as_save_IFS
8196
8197fi
8198fi
8199AWK=$ac_cv_prog_AWK
8200if test -n "$AWK"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8202$as_echo "$AWK" >&6; }
8203else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205$as_echo "no" >&6; }
8206fi
8207
8208
8209 test -n "$AWK" && break
8210done
8211
cristy73bd4a52010-10-05 11:24:23 +00008212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8213$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8214
8215# Check whether --with-dmalloc was given.
8216if test "${with_dmalloc+set}" = set; then :
8217 withval=$with_dmalloc; if test "$withval" = yes; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8219$as_echo "yes" >&6; }
8220
8221$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8222
8223 LIBS="$LIBS -ldmalloc"
8224 LDFLAGS="$LDFLAGS -g"
8225else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227$as_echo "no" >&6; }
8228fi
8229else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231$as_echo "no" >&6; }
8232fi
8233
8234
8235
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8237$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008238if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008239 $as_echo_n "(cached) " >&6
8240else
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242/* end confdefs.h. */
8243#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008244 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008245 static void
8246 foo(void) {
8247 exit(1);
8248 }
8249
8250int
8251main ()
8252{
8253
8254 ;
8255 return 0;
8256}
8257_ACEOF
8258if ac_fn_c_try_compile "$LINENO"; then :
8259 ax_cv___attribute__=yes
8260else
8261 ax_cv___attribute__=no
8262
8263fi
8264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265
8266fi
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8268$as_echo "$ax_cv___attribute__" >&6; }
8269 if test "$ax_cv___attribute__" = "yes"; then
8270
8271$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8272
8273 fi
8274
8275
8276
cristy37110d62012-03-01 18:38:20 +00008277
8278
8279# Check whether --with-gcc-arch was given.
8280if test "${with_gcc_arch+set}" = set; then :
8281 withval=$with_gcc_arch; ax_gcc_arch=$withval
8282else
cristya32d1812012-03-02 19:24:21 +00008283 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008284fi
8285
8286
8287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8288$as_echo_n "checking for gcc architecture flag... " >&6; }
8289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8290$as_echo "" >&6; }
8291if ${ax_cv_gcc_archflag+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293else
8294
8295ax_cv_gcc_archflag="unknown"
8296
8297if test "$GCC" = yes; then
8298
8299if test "x$ax_gcc_arch" = xyes; then
8300ax_gcc_arch=""
8301if test "$cross_compiling" = no; then
8302case $host_cpu in
8303 i[3456]86*|x86_64*) # use cpuid codes
8304
8305ac_ext=c
8306ac_cpp='$CPP $CPPFLAGS'
8307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8309ac_compiler_gnu=$ac_cv_c_compiler_gnu
8310
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8312$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8313if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8314 $as_echo_n "(cached) " >&6
8315else
8316 if test "$cross_compiling" = yes; then :
8317 ax_cv_gcc_x86_cpuid_0=unknown
8318else
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320/* end confdefs.h. */
8321#include <stdio.h>
8322int
8323main ()
8324{
8325
8326 int op = 0, eax, ebx, ecx, edx;
8327 FILE *f;
8328 __asm__("cpuid"
8329 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8330 : "a" (op));
8331 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8332 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8333 fclose(f);
8334 return 0;
8335
8336 ;
8337 return 0;
8338}
8339_ACEOF
8340if ac_fn_c_try_run "$LINENO"; then :
8341 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8342else
8343 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8344fi
8345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8346 conftest.$ac_objext conftest.beam conftest.$ac_ext
8347fi
8348
8349fi
8350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8351$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8352ac_ext=c
8353ac_cpp='$CPP $CPPFLAGS'
8354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8356ac_compiler_gnu=$ac_cv_c_compiler_gnu
8357
8358
8359
8360ac_ext=c
8361ac_cpp='$CPP $CPPFLAGS'
8362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8364ac_compiler_gnu=$ac_cv_c_compiler_gnu
8365
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8367$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8368if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8369 $as_echo_n "(cached) " >&6
8370else
8371 if test "$cross_compiling" = yes; then :
8372 ax_cv_gcc_x86_cpuid_1=unknown
8373else
8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375/* end confdefs.h. */
8376#include <stdio.h>
8377int
8378main ()
8379{
8380
8381 int op = 1, eax, ebx, ecx, edx;
8382 FILE *f;
8383 __asm__("cpuid"
8384 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8385 : "a" (op));
8386 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8387 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8388 fclose(f);
8389 return 0;
8390
8391 ;
8392 return 0;
8393}
8394_ACEOF
8395if ac_fn_c_try_run "$LINENO"; then :
8396 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8397else
8398 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8399fi
8400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8401 conftest.$ac_objext conftest.beam conftest.$ac_ext
8402fi
8403
8404fi
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8406$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8407ac_ext=c
8408ac_cpp='$CPP $CPPFLAGS'
8409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8411ac_compiler_gnu=$ac_cv_c_compiler_gnu
8412
8413
8414 case $ax_cv_gcc_x86_cpuid_0 in
8415 *:756e6547:*:*) # Intel
8416 case $ax_cv_gcc_x86_cpuid_1 in
8417 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8418 *5??:*:*:*) ax_gcc_arch=pentium ;;
8419 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8420 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8421 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8422 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8423 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8424 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8425 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8426 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8427 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8428 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8429 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8430 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8431 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8432 case $host_cpu in
8433 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8434 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8435 esac ;;
8436 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8437 esac ;;
8438 *:68747541:*:*) # AMD
8439 case $ax_cv_gcc_x86_cpuid_1 in
8440 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8441 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8442 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8443 *60?:*:*:*) ax_gcc_arch=k7 ;;
8444 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8445 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8446 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8447 *6[68a]?:*:*:*)
8448
8449ac_ext=c
8450ac_cpp='$CPP $CPPFLAGS'
8451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8453ac_compiler_gnu=$ac_cv_c_compiler_gnu
8454
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8456$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8457if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8458 $as_echo_n "(cached) " >&6
8459else
8460 if test "$cross_compiling" = yes; then :
8461 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8462else
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464/* end confdefs.h. */
8465#include <stdio.h>
8466int
8467main ()
8468{
8469
8470 int op = 0x80000006, eax, ebx, ecx, edx;
8471 FILE *f;
8472 __asm__("cpuid"
8473 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8474 : "a" (op));
8475 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8476 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8477 fclose(f);
8478 return 0;
8479
8480 ;
8481 return 0;
8482}
8483_ACEOF
8484if ac_fn_c_try_run "$LINENO"; then :
8485 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8486else
8487 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8488fi
8489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8490 conftest.$ac_objext conftest.beam conftest.$ac_ext
8491fi
8492
8493fi
8494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8495$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8496ac_ext=c
8497ac_cpp='$CPP $CPPFLAGS'
8498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8500ac_compiler_gnu=$ac_cv_c_compiler_gnu
8501
8502 # L2 cache size
8503 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8504 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8505 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8506 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8507 esac ;;
8508 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8509 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8510 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8511 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8512 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8513 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8514 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8515 esac ;;
8516 *:746e6543:*:*) # IDT
8517 case $ax_cv_gcc_x86_cpuid_1 in
8518 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8519 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8520 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8521 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8522 esac ;;
8523 esac
8524 if test x"$ax_gcc_arch" = x; then # fallback
8525 case $host_cpu in
8526 i586*) ax_gcc_arch=pentium ;;
8527 i686*) ax_gcc_arch=pentiumpro ;;
8528 esac
8529 fi
8530 ;;
8531
8532 sparc*)
8533 # Extract the first word of "prtdiag", so it can be a program name with args.
8534set dummy prtdiag; ac_word=$2
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536$as_echo_n "checking for $ac_word... " >&6; }
8537if ${ac_cv_path_PRTDIAG+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539else
8540 case $PRTDIAG in
8541 [\\/]* | ?:[\\/]*)
8542 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8543 ;;
8544 *)
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8547for as_dir in $as_dummy
8548do
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008553 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 break 2
8556 fi
8557done
8558 done
8559IFS=$as_save_IFS
8560
8561 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8562 ;;
8563esac
8564fi
8565PRTDIAG=$ac_cv_path_PRTDIAG
8566if test -n "$PRTDIAG"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8568$as_echo "$PRTDIAG" >&6; }
8569else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571$as_echo "no" >&6; }
8572fi
8573
8574
8575 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`
8576 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8577 case $cputype in
8578 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8579 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8580 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8581 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8582 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8583 *cypress*) ax_gcc_arch=cypress ;;
8584 esac ;;
8585
8586 alphaev5) ax_gcc_arch=ev5 ;;
8587 alphaev56) ax_gcc_arch=ev56 ;;
8588 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8589 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8590 alphaev6) ax_gcc_arch=ev6 ;;
8591 alphaev67) ax_gcc_arch=ev67 ;;
8592 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8593 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8594 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8595 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8596
8597 powerpc*)
8598 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`
8599 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8600 case $cputype in
8601 *750*) ax_gcc_arch="750 G3" ;;
8602 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8603 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8604 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8605 *970*) ax_gcc_arch="970 G5 power4";;
8606 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8607 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8608 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8609 *) ax_gcc_arch=$cputype ;;
8610 esac
8611 ax_gcc_arch="$ax_gcc_arch powerpc"
8612 ;;
8613esac
8614fi # not cross-compiling
8615fi # guess arch
8616
8617if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8618for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008619 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008620 flags="-mtune=$arch"
8621 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8622 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8623 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8624 else
8625 flags="-march=$arch -mcpu=$arch -m$arch"
8626 fi
8627 for flag in $flags; do
8628 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8630$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8631if eval \${$as_CACHEVAR+:} false; then :
8632 $as_echo_n "(cached) " >&6
8633else
8634
8635 ax_check_save_flags=$CFLAGS
8636 CFLAGS="$CFLAGS $flag"
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638/* end confdefs.h. */
8639
8640int
8641main ()
8642{
8643
8644 ;
8645 return 0;
8646}
8647_ACEOF
8648if ac_fn_c_try_compile "$LINENO"; then :
8649 eval "$as_CACHEVAR=yes"
8650else
8651 eval "$as_CACHEVAR=no"
8652fi
8653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 CFLAGS=$ax_check_save_flags
8655fi
8656eval ac_res=\$$as_CACHEVAR
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8658$as_echo "$ac_res" >&6; }
8659if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8660 ax_cv_gcc_archflag=$flag; break
8661else
8662 :
8663fi
8664
8665 done
8666 test "x$ax_cv_gcc_archflag" = xunknown || break
8667done
8668fi
8669
8670fi # $GCC=yes
8671
8672fi
8673
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8675$as_echo_n "checking for gcc architecture flag... " >&6; }
8676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8677$as_echo "$ax_cv_gcc_archflag" >&6; }
8678if test "x$ax_cv_gcc_archflag" = xunknown; then
8679 :
8680else
8681 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8682fi
8683
8684
8685
cristy73bd4a52010-10-05 11:24:23 +00008686if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8687 if test -n "$ac_tool_prefix"; then
8688 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8689set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008692if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008693 $as_echo_n "(cached) " >&6
8694else
8695 case $PKG_CONFIG in
8696 [\\/]* | ?:[\\/]*)
8697 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8698 ;;
8699 *)
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008707 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8710 fi
8711done
8712 done
8713IFS=$as_save_IFS
8714
8715 ;;
8716esac
8717fi
8718PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8719if test -n "$PKG_CONFIG"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8721$as_echo "$PKG_CONFIG" >&6; }
8722else
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724$as_echo "no" >&6; }
8725fi
8726
8727
8728fi
8729if test -z "$ac_cv_path_PKG_CONFIG"; then
8730 ac_pt_PKG_CONFIG=$PKG_CONFIG
8731 # Extract the first word of "pkg-config", so it can be a program name with args.
8732set dummy pkg-config; ac_word=$2
8733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008735if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008736 $as_echo_n "(cached) " >&6
8737else
8738 case $ac_pt_PKG_CONFIG in
8739 [\\/]* | ?:[\\/]*)
8740 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8741 ;;
8742 *)
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744for as_dir in $PATH
8745do
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008750 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8753 fi
8754done
8755 done
8756IFS=$as_save_IFS
8757
8758 ;;
8759esac
8760fi
8761ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8762if test -n "$ac_pt_PKG_CONFIG"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8764$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8765else
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767$as_echo "no" >&6; }
8768fi
8769
8770 if test "x$ac_pt_PKG_CONFIG" = x; then
8771 PKG_CONFIG=""
8772 else
8773 case $cross_compiling:$ac_tool_warned in
8774yes:)
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8777ac_tool_warned=yes ;;
8778esac
8779 PKG_CONFIG=$ac_pt_PKG_CONFIG
8780 fi
8781else
8782 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8783fi
8784
8785fi
8786if test -n "$PKG_CONFIG"; then
8787 _pkg_min_version=0.9.0
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8789$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8790 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8792$as_echo "yes" >&6; }
8793 else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795$as_echo "no" >&6; }
8796 PKG_CONFIG=""
8797 fi
8798
8799fi
cristy3ed852e2009-09-05 21:47:34 +00008800
cristy9b86f202012-11-28 21:55:35 +00008801# Check for linker script support
8802
8803 # Check whether --enable-ld-version-script was given.
8804if test "${enable_ld_version_script+set}" = set; then :
8805 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8806fi
8807
8808 if test -z "$have_ld_version_script"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8810$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8811 save_LDFLAGS="$LDFLAGS"
8812 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8813 cat > conftest.map <<EOF
8814foo
8815EOF
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817/* end confdefs.h. */
8818
8819int
8820main ()
8821{
8822
8823 ;
8824 return 0;
8825}
8826_ACEOF
8827if ac_fn_c_try_link "$LINENO"; then :
8828 accepts_syntax_errors=yes
8829else
8830 accepts_syntax_errors=no
8831fi
8832rm -f core conftest.err conftest.$ac_objext \
8833 conftest$ac_exeext conftest.$ac_ext
8834 if test "$accepts_syntax_errors" = no; then
8835 cat > conftest.map <<EOF
8836VERS_1 {
8837 global: sym;
8838};
8839
8840VERS_2 {
8841 global: sym;
8842} VERS_1;
8843EOF
8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845/* end confdefs.h. */
8846
8847int
8848main ()
8849{
8850
8851 ;
8852 return 0;
8853}
8854_ACEOF
8855if ac_fn_c_try_link "$LINENO"; then :
8856 have_ld_version_script=yes
8857else
8858 have_ld_version_script=no
8859fi
8860rm -f core conftest.err conftest.$ac_objext \
8861 conftest$ac_exeext conftest.$ac_ext
8862 else
8863 have_ld_version_script=no
8864 fi
8865 rm -f conftest.map
8866 LDFLAGS="$save_LDFLAGS"
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8868$as_echo "$have_ld_version_script" >&6; }
8869 fi
8870 if test "$have_ld_version_script" = "yes"; then
8871 HAVE_LD_VERSION_SCRIPT_TRUE=
8872 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8873else
8874 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8875 HAVE_LD_VERSION_SCRIPT_FALSE=
8876fi
8877
8878
8879
cristy3ed852e2009-09-05 21:47:34 +00008880#
cristy3ed852e2009-09-05 21:47:34 +00008881# Enable run-time checking.
8882#
8883# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008884if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008885 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8886else
8887 enable_bounds_checking='no'
8888fi
8889
8890
8891if test "$enable_bounds_checking" = yes; then
8892
cristy8b350f62009-11-15 23:12:43 +00008893$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008894
8895fi
8896
8897#
8898# Tests for Windows
8899#
8900
8901
8902
8903GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008904native_win32_build='no'
8905cygwin_build='no'
8906case "${host_os}" in
8907 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008908 cygwin_build='yes'
8909 GDI32_LIBS='-lgdi32'
8910 ;;
8911 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008912 native_win32_build='yes'
8913 GDI32_LIBS='-lgdi32'
8914 ;;
8915esac
8916if test "${GDI32_LIBS}x" != 'x'; then
8917
cristy8b350f62009-11-15 23:12:43 +00008918$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008919
8920fi
8921
cristy73bd4a52010-10-05 11:24:23 +00008922 if test "${GDI32_LIBS}x" != 'x' ; then
8923 WINGDI32_DELEGATE_TRUE=
8924 WINGDI32_DELEGATE_FALSE='#'
8925else
8926 WINGDI32_DELEGATE_TRUE='#'
8927 WINGDI32_DELEGATE_FALSE=
8928fi
8929
8930 if test "${native_win32_build}" = 'yes' ; then
8931 WIN32_NATIVE_BUILD_TRUE=
8932 WIN32_NATIVE_BUILD_FALSE='#'
8933else
8934 WIN32_NATIVE_BUILD_TRUE='#'
8935 WIN32_NATIVE_BUILD_FALSE=
8936fi
8937
8938 if test "${cygwin_build}" = 'yes' ; then
8939 CYGWIN_BUILD_TRUE=
8940 CYGWIN_BUILD_FALSE='#'
8941else
8942 CYGWIN_BUILD_TRUE='#'
8943 CYGWIN_BUILD_FALSE=
8944fi
8945
8946 if test "x${CC}" = 'xcl.exe' ; then
8947 USING_CL_TRUE=
8948 USING_CL_FALSE='#'
8949else
8950 USING_CL_TRUE='#'
8951 USING_CL_FALSE=
8952fi
8953
cristy3ed852e2009-09-05 21:47:34 +00008954
8955WinPathScript="${srcdirfull}/winpath.sh"
8956
8957
8958#
8959# Compiler flags tweaks
8960#
8961if test "${GCC}" != "yes"; then
8962 case "${host}" in
8963 *-*-hpux* )
8964 # aCC: HP ANSI C++ B3910B A.03.34
8965 CFLAGS="${CFLAGS} -Wp,-H30000"
8966 if test -n "${CXXFLAGS}"; then
8967 CXXFLAGS='-AA'
8968 else
8969 CXXFLAGS="${CXXFLAGS} -AA"
8970 fi
8971 ;;
8972 *-dec-osf5.* )
8973 # Compaq alphaev68-dec-osf5.1 compiler
8974 if test -n "${CXXFLAGS}"; then
8975 CXXFLAGS='-std strict_ansi -noimplicit_include'
8976 else
8977 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8978 fi
8979 esac
8980fi
8981
8982# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008984$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008985if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008986 $as_echo_n "(cached) " >&6
8987else
8988
8989im_cv_ld_lazyload='none'
8990case "${host}" in
8991 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8992 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8993 im_cv_ld_lazyload='-Wl,-zlazyload'
8994 fi
8995 ;;
8996esac
8997
8998fi
cristy8b350f62009-11-15 23:12:43 +00008999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009000$as_echo "$im_cv_ld_lazyload" >&6; }
9001if test "${im_cv_ld_lazyload}" != 'none' ; then
9002 if test -z "${LDFLAGS}" ; then
9003 LDFLAGS="${im_cv_ld_lazyload}"
9004 else
9005 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9006 fi
9007fi
9008
9009case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009010 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009011 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009012 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009013if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009014 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9015else
9016 build_osxuniversal=no
9017fi
9018
9019
cristyc37574e2013-02-16 01:04:55 +00009020 if test "${build_osxuniversal}" != no ; then
9021 if test "$enable_dependency_tracking" != no ; then
9022 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009023Please re-run configure with these options:
9024 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009025 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009026 fi
9027 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9028 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9029 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009030 fi
9031 ;;
9032esac
9033
cristy0151ae12011-10-28 16:32:29 +00009034#
9035# ARCH specific include directory
9036#
9037
cristy670aa3c2011-11-03 00:54:00 +00009038# Check whether --with-includearch-dir was given.
9039if test "${with_includearch_dir+set}" = set; then :
9040 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009041else
cristy670aa3c2011-11-03 00:54:00 +00009042 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009043fi
9044
9045
cristyd286fd72013-02-24 19:25:33 +00009046eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009047
cristy0151ae12011-10-28 16:32:29 +00009048
9049#
9050# ARCH specific configuration directory
9051#
9052
cristy670aa3c2011-11-03 00:54:00 +00009053# Check whether --with-sharearch-dir was given.
9054if test "${with_sharearch_dir+set}" = set; then :
9055 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009056else
cristy408ebcd2011-11-14 01:36:57 +00009057 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009058fi
9059
9060
cristy670aa3c2011-11-03 00:54:00 +00009061eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009062
cristy0151ae12011-10-28 16:32:29 +00009063
cristy2ec87cc2013-02-18 17:46:50 +00009064# Path to the pkgconfig folder
9065
9066# Check whether --with-pkgconfigdir was given.
9067if test "${with_pkgconfigdir+set}" = set; then :
9068 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9069else
9070 pkgconfigdir='${libdir}/pkgconfig'
9071fi
9072
9073
9074
cristy0151ae12011-10-28 16:32:29 +00009075#
cristy3ed852e2009-09-05 21:47:34 +00009076# Enable support for threads
9077
9078# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009079if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009080 withval=$with_threads; with_threads=$withval
9081else
9082 with_threads='yes'
9083fi
9084
9085
9086have_threads=no
9087if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009088
9089
cristy73bd4a52010-10-05 11:24:23 +00009090ac_ext=c
9091ac_cpp='$CPP $CPPFLAGS'
9092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9094ac_compiler_gnu=$ac_cv_c_compiler_gnu
9095
9096ax_pthread_ok=no
9097
9098# We used to check for pthread.h first, but this fails if pthread.h
9099# requires special compiler flags (e.g. on True64 or Sequent).
9100# It gets checked for in the link test anyway.
9101
9102# First of all, check if the user has set any of the PTHREAD_LIBS,
9103# etcetera environment variables, and if threads linking works using
9104# them:
9105if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9106 save_CFLAGS="$CFLAGS"
9107 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9108 save_LIBS="$LIBS"
9109 LIBS="$PTHREAD_LIBS $LIBS"
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9111$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113/* end confdefs.h. */
9114
9115/* Override any GCC internal prototype to avoid an error.
9116 Use char because int might match the return type of a GCC
9117 builtin and then its argument prototype would still apply. */
9118#ifdef __cplusplus
9119extern "C"
9120#endif
9121char pthread_join ();
9122int
9123main ()
9124{
9125return pthread_join ();
9126 ;
9127 return 0;
9128}
9129_ACEOF
9130if ac_fn_c_try_link "$LINENO"; then :
9131 ax_pthread_ok=yes
9132fi
9133rm -f core conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9136$as_echo "$ax_pthread_ok" >&6; }
9137 if test x"$ax_pthread_ok" = xno; then
9138 PTHREAD_LIBS=""
9139 PTHREAD_CFLAGS=""
9140 fi
9141 LIBS="$save_LIBS"
9142 CFLAGS="$save_CFLAGS"
9143fi
9144
9145# We must check for the threads library under a number of different
9146# names; the ordering is very important because some systems
9147# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9148# libraries is broken (non-POSIX).
9149
9150# Create a list of thread flags to try. Items starting with a "-" are
9151# C compiler flags, and other items are library names, except for "none"
9152# which indicates that we try without any flags at all, and "pthread-config"
9153# which is a program returning the flags for the Pth emulation library.
9154
cristy2ec87cc2013-02-18 17:46:50 +00009155ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009156
9157# The ordering *is* (sometimes) important. Some notes on the
9158# individual items follow:
9159
9160# pthreads: AIX (must check this before -lpthread)
9161# none: in case threads are in libc; should be tried before -Kthread and
9162# other compiler flags to prevent continual compiler warnings
9163# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9164# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9165# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9166# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9167# -pthreads: Solaris/gcc
9168# -mthreads: Mingw32/gcc, Lynx/gcc
9169# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9170# doesn't hurt to check since this sometimes defines pthreads too;
9171# also defines -D_REENTRANT)
9172# ... -mt is also the pthreads flag for HP/aCC
9173# pthread: Linux, etcetera
9174# --thread-safe: KAI C++
9175# pthread-config: use pthread-config program (for GNU Pth library)
9176
cristy2ec87cc2013-02-18 17:46:50 +00009177case ${host_os} in
9178 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009179
9180 # On Solaris (at least, for some versions), libc contains stubbed
9181 # (non-functional) versions of the pthreads routines, so link-based
9182 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9183 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9184 # a function called by this macro, so we could check for that, but
9185 # who knows whether they'll stub that too in a future libc.) So,
9186 # we'll just look for -pthreads and -lpthread first:
9187
9188 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9189 ;;
9190
cristy2ec87cc2013-02-18 17:46:50 +00009191 darwin*)
cristya316db12011-10-24 00:49:45 +00009192 ax_pthread_flags="-pthread $ax_pthread_flags"
9193 ;;
cristy73bd4a52010-10-05 11:24:23 +00009194esac
9195
9196if test x"$ax_pthread_ok" = xno; then
9197for flag in $ax_pthread_flags; do
9198
9199 case $flag in
9200 none)
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9202$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9203 ;;
9204
9205 -*)
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9207$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9208 PTHREAD_CFLAGS="$flag"
9209 ;;
9210
cristya316db12011-10-24 00:49:45 +00009211 pthread-config)
9212 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009213set dummy pthread-config; ac_word=$2
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9215$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009216if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009217 $as_echo_n "(cached) " >&6
9218else
9219 if test -n "$ax_pthread_config"; then
9220 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9221else
9222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223for as_dir in $PATH
9224do
9225 IFS=$as_save_IFS
9226 test -z "$as_dir" && as_dir=.
9227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009229 ac_cv_prog_ax_pthread_config="yes"
9230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9231 break 2
9232 fi
9233done
9234 done
9235IFS=$as_save_IFS
9236
9237 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9238fi
9239fi
9240ax_pthread_config=$ac_cv_prog_ax_pthread_config
9241if test -n "$ax_pthread_config"; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9243$as_echo "$ax_pthread_config" >&6; }
9244else
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246$as_echo "no" >&6; }
9247fi
9248
9249
cristya316db12011-10-24 00:49:45 +00009250 if test x"$ax_pthread_config" = xno; then continue; fi
9251 PTHREAD_CFLAGS="`pthread-config --cflags`"
9252 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9253 ;;
cristy73bd4a52010-10-05 11:24:23 +00009254
9255 *)
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9257$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9258 PTHREAD_LIBS="-l$flag"
9259 ;;
9260 esac
9261
9262 save_LIBS="$LIBS"
9263 save_CFLAGS="$CFLAGS"
9264 LIBS="$PTHREAD_LIBS $LIBS"
9265 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9266
9267 # Check for various functions. We must include pthread.h,
9268 # since some functions may be macros. (On the Sequent, we
9269 # need a special flag -Kthread to make this header compile.)
9270 # We check for pthread_join because it is in -lpthread on IRIX
9271 # while pthread_create is in libc. We check for pthread_attr_init
9272 # due to DEC craziness with -lpthreads. We check for
9273 # pthread_cleanup_push because it is one of the few pthread
9274 # functions on Solaris that doesn't have a non-functional libc stub.
9275 # We try pthread_create on general principles.
9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277/* end confdefs.h. */
9278#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009279 static void routine(void *a) { a = 0; }
9280 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009281int
9282main ()
9283{
9284pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009285 pthread_create(&th, 0, start_routine, 0);
9286 pthread_join(th, 0);
9287 pthread_attr_init(&attr);
9288 pthread_cleanup_push(routine, 0);
9289 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009290 ;
9291 return 0;
9292}
9293_ACEOF
9294if ac_fn_c_try_link "$LINENO"; then :
9295 ax_pthread_ok=yes
9296fi
9297rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299
9300 LIBS="$save_LIBS"
9301 CFLAGS="$save_CFLAGS"
9302
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9304$as_echo "$ax_pthread_ok" >&6; }
9305 if test "x$ax_pthread_ok" = xyes; then
9306 break;
9307 fi
9308
9309 PTHREAD_LIBS=""
9310 PTHREAD_CFLAGS=""
9311done
9312fi
9313
9314# Various other checks:
9315if test "x$ax_pthread_ok" = xyes; then
9316 save_LIBS="$LIBS"
9317 LIBS="$PTHREAD_LIBS $LIBS"
9318 save_CFLAGS="$CFLAGS"
9319 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9320
9321 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009323$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009324 attr_name=unknown
9325 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009327/* end confdefs.h. */
9328#include <pthread.h>
9329int
9330main ()
9331{
cristya316db12011-10-24 00:49:45 +00009332int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009333 ;
9334 return 0;
9335}
9336_ACEOF
9337if ac_fn_c_try_link "$LINENO"; then :
9338 attr_name=$attr; break
9339fi
9340rm -f core conftest.err conftest.$ac_objext \
9341 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009342 done
cristy73bd4a52010-10-05 11:24:23 +00009343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9344$as_echo "$attr_name" >&6; }
9345 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9346
9347cat >>confdefs.h <<_ACEOF
9348#define PTHREAD_CREATE_JOINABLE $attr_name
9349_ACEOF
9350
9351 fi
9352
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9354$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9355 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009356 case ${host_os} in
9357 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9358 osf* | hpux*) flag="-D_REENTRANT";;
9359 solaris*)
9360 if test "$GCC" = "yes"; then
9361 flag="-D_REENTRANT"
9362 else
9363 flag="-mt -D_REENTRANT"
9364 fi
9365 ;;
cristy73bd4a52010-10-05 11:24:23 +00009366 esac
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9368$as_echo "${flag}" >&6; }
9369 if test "x$flag" != xno; then
9370 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9371 fi
9372
cristya316db12011-10-24 00:49:45 +00009373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9374$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9375if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9376 $as_echo_n "(cached) " >&6
9377else
9378
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380/* end confdefs.h. */
9381
9382 #include <pthread.h>
9383int
9384main ()
9385{
9386int i = PTHREAD_PRIO_INHERIT;
9387 ;
9388 return 0;
9389}
9390_ACEOF
9391if ac_fn_c_try_link "$LINENO"; then :
9392 ax_cv_PTHREAD_PRIO_INHERIT=yes
9393else
9394 ax_cv_PTHREAD_PRIO_INHERIT=no
9395fi
9396rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398
9399fi
9400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9401$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9402 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9403
9404$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9405
9406fi
9407
cristy73bd4a52010-10-05 11:24:23 +00009408 LIBS="$save_LIBS"
9409 CFLAGS="$save_CFLAGS"
9410
cristy23493c42013-04-11 16:04:59 +00009411 # More AIX lossage: compile with *_r variant
9412 if test "x$GCC" != xyes; then
9413 case $host_os in
9414 aix*)
9415 case "x/$CC" in #(
9416 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9417 #handle absolute path differently from PATH based program lookup
9418 case "x$CC" in #(
9419 x/*) :
9420 if as_fn_executable_p ${CC}_r; then :
9421 PTHREAD_CC="${CC}_r"
9422fi ;; #(
9423 *) :
9424 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009425do
9426 # Extract the first word of "$ac_prog", so it can be a program name with args.
9427set dummy $ac_prog; ac_word=$2
9428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9429$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009430if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009431 $as_echo_n "(cached) " >&6
9432else
9433 if test -n "$PTHREAD_CC"; then
9434 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9435else
9436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437for as_dir in $PATH
9438do
9439 IFS=$as_save_IFS
9440 test -z "$as_dir" && as_dir=.
9441 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009443 ac_cv_prog_PTHREAD_CC="$ac_prog"
9444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9445 break 2
9446 fi
9447done
9448 done
9449IFS=$as_save_IFS
9450
9451fi
9452fi
9453PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9454if test -n "$PTHREAD_CC"; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9456$as_echo "$PTHREAD_CC" >&6; }
9457else
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459$as_echo "no" >&6; }
9460fi
9461
9462
9463 test -n "$PTHREAD_CC" && break
9464done
cristy23493c42013-04-11 16:04:59 +00009465test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9466 ;;
9467esac ;; #(
9468 *) :
9469 ;;
9470esac
9471 ;;
9472 esac
cristya316db12011-10-24 00:49:45 +00009473 fi
cristy73bd4a52010-10-05 11:24:23 +00009474fi
9475
cristy23493c42013-04-11 16:04:59 +00009476test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9477
cristy73bd4a52010-10-05 11:24:23 +00009478
9479
9480
9481
9482# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9483if test x"$ax_pthread_ok" = xyes; then
9484
9485$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9486
9487 :
9488else
9489 ax_pthread_ok=no
9490
9491fi
9492ac_ext=c
9493ac_cpp='$CPP $CPPFLAGS'
9494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9496ac_compiler_gnu=$ac_cv_c_compiler_gnu
9497
9498
cristy7acf8fb2010-09-23 19:58:53 +00009499 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009500 have_threads=yes
9501 DEF_THREAD="$PTHREAD_CFLAGS"
9502 CFLAGS="$CFLAGS $DEF_THREAD"
9503 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9504 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009505 { $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 +00009506$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9507 CC="$PTHREAD_CC"
9508 fi
cristy55bf91c2010-09-24 00:29:41 +00009509
9510$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9511
cristy3ed852e2009-09-05 21:47:34 +00009512 fi
9513fi
9514
9515# Enable support for OpenMP
9516if test "$have_threads" != 'yes'; then
9517 ac_cv_prog_c_openmp=unsupported
9518fi
9519
9520 OPENMP_CFLAGS=
9521 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009522if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009523 enableval=$enable_openmp;
9524fi
9525
9526 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009528$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009529if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009530 $as_echo_n "(cached) " >&6
9531else
cristy8b350f62009-11-15 23:12:43 +00009532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009534
9535#ifndef _OPENMP
9536 choke me
9537#endif
9538#include <omp.h>
9539int main () { return omp_get_num_threads (); }
9540
9541_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009542if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009543 ac_cv_prog_c_openmp='none needed'
9544else
cristy8b350f62009-11-15 23:12:43 +00009545 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009546 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9547 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009548 ac_save_CFLAGS=$CFLAGS
9549 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009552
9553#ifndef _OPENMP
9554 choke me
9555#endif
9556#include <omp.h>
9557int main () { return omp_get_num_threads (); }
9558
9559_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009560if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009561 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009562fi
cristy8b350f62009-11-15 23:12:43 +00009563rm -f core conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009565 CFLAGS=$ac_save_CFLAGS
9566 if test "$ac_cv_prog_c_openmp" != unsupported; then
9567 break
9568 fi
9569 done
9570fi
cristy8b350f62009-11-15 23:12:43 +00009571rm -f core conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009573fi
cristy8b350f62009-11-15 23:12:43 +00009574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009575$as_echo "$ac_cv_prog_c_openmp" >&6; }
9576 case $ac_cv_prog_c_openmp in #(
9577 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009578 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009579 *)
cristy8b350f62009-11-15 23:12:43 +00009580 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009581 esac
9582 fi
9583
9584
9585CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9586MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9587
cristy391f1ce2010-09-09 17:23:28 +00009588if test "$enable_openmp" != no; then
9589 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9590 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9591 fi
9592fi
cristy3ed852e2009-09-05 21:47:34 +00009593
cristy736173a2009-09-20 21:18:22 +00009594# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009595
9596
cristy73bd4a52010-10-05 11:24:23 +00009597ac_ext=c
9598ac_cpp='$CPP $CPPFLAGS'
9599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9601ac_compiler_gnu=$ac_cv_c_compiler_gnu
9602
9603ax_pthread_ok=no
9604
9605# We used to check for pthread.h first, but this fails if pthread.h
9606# requires special compiler flags (e.g. on True64 or Sequent).
9607# It gets checked for in the link test anyway.
9608
9609# First of all, check if the user has set any of the PTHREAD_LIBS,
9610# etcetera environment variables, and if threads linking works using
9611# them:
9612if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9613 save_CFLAGS="$CFLAGS"
9614 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9615 save_LIBS="$LIBS"
9616 LIBS="$PTHREAD_LIBS $LIBS"
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9618$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620/* end confdefs.h. */
9621
9622/* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
9625#ifdef __cplusplus
9626extern "C"
9627#endif
9628char pthread_join ();
9629int
9630main ()
9631{
9632return pthread_join ();
9633 ;
9634 return 0;
9635}
9636_ACEOF
9637if ac_fn_c_try_link "$LINENO"; then :
9638 ax_pthread_ok=yes
9639fi
9640rm -f core conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9643$as_echo "$ax_pthread_ok" >&6; }
9644 if test x"$ax_pthread_ok" = xno; then
9645 PTHREAD_LIBS=""
9646 PTHREAD_CFLAGS=""
9647 fi
9648 LIBS="$save_LIBS"
9649 CFLAGS="$save_CFLAGS"
9650fi
9651
9652# We must check for the threads library under a number of different
9653# names; the ordering is very important because some systems
9654# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9655# libraries is broken (non-POSIX).
9656
9657# Create a list of thread flags to try. Items starting with a "-" are
9658# C compiler flags, and other items are library names, except for "none"
9659# which indicates that we try without any flags at all, and "pthread-config"
9660# which is a program returning the flags for the Pth emulation library.
9661
cristy2ec87cc2013-02-18 17:46:50 +00009662ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009663
9664# The ordering *is* (sometimes) important. Some notes on the
9665# individual items follow:
9666
9667# pthreads: AIX (must check this before -lpthread)
9668# none: in case threads are in libc; should be tried before -Kthread and
9669# other compiler flags to prevent continual compiler warnings
9670# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9671# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9672# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9673# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9674# -pthreads: Solaris/gcc
9675# -mthreads: Mingw32/gcc, Lynx/gcc
9676# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9677# doesn't hurt to check since this sometimes defines pthreads too;
9678# also defines -D_REENTRANT)
9679# ... -mt is also the pthreads flag for HP/aCC
9680# pthread: Linux, etcetera
9681# --thread-safe: KAI C++
9682# pthread-config: use pthread-config program (for GNU Pth library)
9683
cristy2ec87cc2013-02-18 17:46:50 +00009684case ${host_os} in
9685 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009686
9687 # On Solaris (at least, for some versions), libc contains stubbed
9688 # (non-functional) versions of the pthreads routines, so link-based
9689 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9690 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9691 # a function called by this macro, so we could check for that, but
9692 # who knows whether they'll stub that too in a future libc.) So,
9693 # we'll just look for -pthreads and -lpthread first:
9694
9695 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9696 ;;
9697
cristy2ec87cc2013-02-18 17:46:50 +00009698 darwin*)
cristya316db12011-10-24 00:49:45 +00009699 ax_pthread_flags="-pthread $ax_pthread_flags"
9700 ;;
cristy73bd4a52010-10-05 11:24:23 +00009701esac
9702
9703if test x"$ax_pthread_ok" = xno; then
9704for flag in $ax_pthread_flags; do
9705
9706 case $flag in
9707 none)
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9709$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9710 ;;
9711
9712 -*)
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9714$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9715 PTHREAD_CFLAGS="$flag"
9716 ;;
9717
cristya316db12011-10-24 00:49:45 +00009718 pthread-config)
9719 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009720set dummy pthread-config; ac_word=$2
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009723if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009724 $as_echo_n "(cached) " >&6
9725else
9726 if test -n "$ax_pthread_config"; then
9727 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9728else
9729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730for as_dir in $PATH
9731do
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009736 ac_cv_prog_ax_pthread_config="yes"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9739 fi
9740done
9741 done
9742IFS=$as_save_IFS
9743
9744 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9745fi
9746fi
9747ax_pthread_config=$ac_cv_prog_ax_pthread_config
9748if test -n "$ax_pthread_config"; then
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9750$as_echo "$ax_pthread_config" >&6; }
9751else
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9753$as_echo "no" >&6; }
9754fi
9755
9756
cristya316db12011-10-24 00:49:45 +00009757 if test x"$ax_pthread_config" = xno; then continue; fi
9758 PTHREAD_CFLAGS="`pthread-config --cflags`"
9759 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9760 ;;
cristy73bd4a52010-10-05 11:24:23 +00009761
9762 *)
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9764$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9765 PTHREAD_LIBS="-l$flag"
9766 ;;
9767 esac
9768
9769 save_LIBS="$LIBS"
9770 save_CFLAGS="$CFLAGS"
9771 LIBS="$PTHREAD_LIBS $LIBS"
9772 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9773
9774 # Check for various functions. We must include pthread.h,
9775 # since some functions may be macros. (On the Sequent, we
9776 # need a special flag -Kthread to make this header compile.)
9777 # We check for pthread_join because it is in -lpthread on IRIX
9778 # while pthread_create is in libc. We check for pthread_attr_init
9779 # due to DEC craziness with -lpthreads. We check for
9780 # pthread_cleanup_push because it is one of the few pthread
9781 # functions on Solaris that doesn't have a non-functional libc stub.
9782 # We try pthread_create on general principles.
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784/* end confdefs.h. */
9785#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009786 static void routine(void *a) { a = 0; }
9787 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009788int
9789main ()
9790{
9791pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009792 pthread_create(&th, 0, start_routine, 0);
9793 pthread_join(th, 0);
9794 pthread_attr_init(&attr);
9795 pthread_cleanup_push(routine, 0);
9796 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009797 ;
9798 return 0;
9799}
9800_ACEOF
9801if ac_fn_c_try_link "$LINENO"; then :
9802 ax_pthread_ok=yes
9803fi
9804rm -f core conftest.err conftest.$ac_objext \
9805 conftest$ac_exeext conftest.$ac_ext
9806
9807 LIBS="$save_LIBS"
9808 CFLAGS="$save_CFLAGS"
9809
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9811$as_echo "$ax_pthread_ok" >&6; }
9812 if test "x$ax_pthread_ok" = xyes; then
9813 break;
9814 fi
9815
9816 PTHREAD_LIBS=""
9817 PTHREAD_CFLAGS=""
9818done
9819fi
9820
9821# Various other checks:
9822if test "x$ax_pthread_ok" = xyes; then
9823 save_LIBS="$LIBS"
9824 LIBS="$PTHREAD_LIBS $LIBS"
9825 save_CFLAGS="$CFLAGS"
9826 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9827
9828 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009830$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009831 attr_name=unknown
9832 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009834/* end confdefs.h. */
9835#include <pthread.h>
9836int
9837main ()
9838{
cristya316db12011-10-24 00:49:45 +00009839int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009840 ;
9841 return 0;
9842}
9843_ACEOF
9844if ac_fn_c_try_link "$LINENO"; then :
9845 attr_name=$attr; break
9846fi
9847rm -f core conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009849 done
cristy73bd4a52010-10-05 11:24:23 +00009850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9851$as_echo "$attr_name" >&6; }
9852 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9853
9854cat >>confdefs.h <<_ACEOF
9855#define PTHREAD_CREATE_JOINABLE $attr_name
9856_ACEOF
9857
9858 fi
9859
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9861$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9862 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009863 case ${host_os} in
9864 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9865 osf* | hpux*) flag="-D_REENTRANT";;
9866 solaris*)
9867 if test "$GCC" = "yes"; then
9868 flag="-D_REENTRANT"
9869 else
9870 flag="-mt -D_REENTRANT"
9871 fi
9872 ;;
cristy73bd4a52010-10-05 11:24:23 +00009873 esac
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9875$as_echo "${flag}" >&6; }
9876 if test "x$flag" != xno; then
9877 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9878 fi
9879
cristya316db12011-10-24 00:49:45 +00009880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9881$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9882if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9883 $as_echo_n "(cached) " >&6
9884else
9885
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887/* end confdefs.h. */
9888
9889 #include <pthread.h>
9890int
9891main ()
9892{
9893int i = PTHREAD_PRIO_INHERIT;
9894 ;
9895 return 0;
9896}
9897_ACEOF
9898if ac_fn_c_try_link "$LINENO"; then :
9899 ax_cv_PTHREAD_PRIO_INHERIT=yes
9900else
9901 ax_cv_PTHREAD_PRIO_INHERIT=no
9902fi
9903rm -f core conftest.err conftest.$ac_objext \
9904 conftest$ac_exeext conftest.$ac_ext
9905
9906fi
9907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9908$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9909 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9910
9911$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9912
9913fi
9914
cristy73bd4a52010-10-05 11:24:23 +00009915 LIBS="$save_LIBS"
9916 CFLAGS="$save_CFLAGS"
9917
cristy23493c42013-04-11 16:04:59 +00009918 # More AIX lossage: compile with *_r variant
9919 if test "x$GCC" != xyes; then
9920 case $host_os in
9921 aix*)
9922 case "x/$CC" in #(
9923 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9924 #handle absolute path differently from PATH based program lookup
9925 case "x$CC" in #(
9926 x/*) :
9927 if as_fn_executable_p ${CC}_r; then :
9928 PTHREAD_CC="${CC}_r"
9929fi ;; #(
9930 *) :
9931 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009932do
9933 # Extract the first word of "$ac_prog", so it can be a program name with args.
9934set dummy $ac_prog; ac_word=$2
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009937if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009938 $as_echo_n "(cached) " >&6
9939else
9940 if test -n "$PTHREAD_CC"; then
9941 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9942else
9943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944for as_dir in $PATH
9945do
9946 IFS=$as_save_IFS
9947 test -z "$as_dir" && as_dir=.
9948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009950 ac_cv_prog_PTHREAD_CC="$ac_prog"
9951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 break 2
9953 fi
9954done
9955 done
9956IFS=$as_save_IFS
9957
9958fi
9959fi
9960PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9961if test -n "$PTHREAD_CC"; then
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9963$as_echo "$PTHREAD_CC" >&6; }
9964else
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966$as_echo "no" >&6; }
9967fi
9968
9969
9970 test -n "$PTHREAD_CC" && break
9971done
cristy23493c42013-04-11 16:04:59 +00009972test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9973 ;;
9974esac ;; #(
9975 *) :
9976 ;;
9977esac
9978 ;;
9979 esac
cristya316db12011-10-24 00:49:45 +00009980 fi
cristy73bd4a52010-10-05 11:24:23 +00009981fi
9982
cristy23493c42013-04-11 16:04:59 +00009983test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9984
cristy73bd4a52010-10-05 11:24:23 +00009985
9986
9987
9988
9989# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9990if test x"$ax_pthread_ok" = xyes; then
9991
9992$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9993
9994 :
9995else
9996 ax_pthread_ok=no
9997
9998fi
9999ac_ext=c
10000ac_cpp='$CPP $CPPFLAGS'
10001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10003ac_compiler_gnu=$ac_cv_c_compiler_gnu
10004
10005
10006
10007# Check whether --enable-opencl was given.
10008if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010009 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010010else
cristy48794642012-09-02 15:19:08 +000010011 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010012fi
10013
10014
cristy48794642012-09-02 15:19:08 +000010015if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010016 ac_ext=c
10017ac_cpp='$CPP $CPPFLAGS'
10018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10020ac_compiler_gnu=$ac_cv_c_compiler_gnu
10021
cristy75314cc2012-09-15 23:08:29 +000010022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10023$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10024if ${ax_cv_c_compiler_ms+:} false; then :
10025 $as_echo_n "(cached) " >&6
10026else
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028/* end confdefs.h. */
10029
10030int
10031main ()
10032{
10033#ifndef _MSC_VER
10034 choke me
10035#endif
10036
10037 ;
10038 return 0;
10039}
10040_ACEOF
10041if ac_fn_c_try_compile "$LINENO"; then :
10042 ax_compiler_ms=yes
10043else
10044 ax_compiler_ms=no
10045fi
10046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047ax_cv_c_compiler_ms=$ax_compiler_ms
10048
10049fi
10050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10051$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010052 if test X$ax_compiler_ms = Xno; then :
10053 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10054fi
10055
10056 ax_save_CPPFLAGS=$CPPFLAGS
10057 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10058 for ac_header in CL/cl.h OpenCL/cl.h
10059do :
10060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10061ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010062if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010063 cat >>confdefs.h <<_ACEOF
10064#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10065_ACEOF
10066
10067fi
10068
10069done
10070
10071 CPPFLAGS=$ax_save_CPPFLAGS
10072
10073 for ac_header in windows.h
10074do :
10075 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010076if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010077 cat >>confdefs.h <<_ACEOF
10078#define HAVE_WINDOWS_H 1
10079_ACEOF
10080
10081fi
10082
10083done
10084
10085
10086
10087
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10089$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010090if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010091 $as_echo_n "(cached) " >&6
10092else
10093 ax_cv_check_cl_libcl=no
10094 case $host_cpu in
10095 x86_64) ax_check_cl_libdir=lib64 ;;
10096 *) ax_check_cl_libdir=lib ;;
10097 esac
10098 ax_save_CPPFLAGS=$CPPFLAGS
10099 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10100 ax_save_LIBS=$LIBS
10101 LIBS=""
10102 ax_check_libs="-lOpenCL -lCL -lclparser"
10103 for ax_lib in $ax_check_libs; do
10104 if test X$ax_compiler_ms = Xyes; then :
10105 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10106else
10107 ax_try_lib=$ax_lib
10108fi
10109 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111/* end confdefs.h. */
10112
10113 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10114 # include <windows.h>
10115 # endif
10116 # ifdef HAVE_CL_CL_H
10117 # include <CL/cl.h>
10118 # elif defined(HAVE_OPENCL_CL_H)
10119 # include <OpenCL/cl.h>
10120 # else
10121 # error no CL.h
10122 # endif
10123int
10124main ()
10125{
10126clCreateContextFromType(0,0,0,0,0)
10127 ;
10128 return 0;
10129}
10130_ACEOF
10131if ac_fn_c_try_link "$LINENO"; then :
10132 ax_cv_check_cl_libcl=$ax_try_lib; break
10133else
10134 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"
10135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136/* end confdefs.h. */
10137
10138 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10139 # include <windows.h>
10140 # endif
10141 # ifdef HAVE_CL_CL_H
10142 # include <CL/cl.h>
10143 # elif defined(HAVE_OPENCL_CL_H)
10144 # include <OpenCL/cl.h>
10145 # else
10146 # error no CL.h
10147 # endif
10148int
10149main ()
10150{
10151clCreateContextFromType(0,0,0,0,0)
10152 ;
10153 return 0;
10154}
10155_ACEOF
10156if ac_fn_c_try_link "$LINENO"; then :
10157 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10158else
cristy78c5a0c2010-12-04 20:00:59 +000010159 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 +000010160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161/* end confdefs.h. */
10162
10163 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10164 # include <windows.h>
10165 # endif
10166 # ifdef HAVE_CL_CL_H
10167 # include <CL/cl.h>
10168 # elif defined(HAVE_OPENCL_CL_H)
10169 # include <OpenCL/cl.h>
10170 # else
10171 # error no CL.h
10172 # endif
10173int
10174main ()
10175{
10176clCreateContextFromType(0,0,0,0,0)
10177 ;
10178 return 0;
10179}
10180_ACEOF
10181if ac_fn_c_try_link "$LINENO"; then :
10182 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10183fi
10184rm -f core conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10186fi
10187rm -f core conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10189fi
10190rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10192 done
10193
cristyc3f8b8e2011-12-22 14:55:16 +000010194 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010195 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197/* end confdefs.h. */
10198
10199 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10200 # include <windows.h>
10201 # endif
10202 # ifdef HAVE_CL_CL_H
10203 # include <CL/cl.h>
10204 # elif defined(HAVE_OPENCL_CL_H)
10205 # include <OpenCL/cl.h>
10206 # else
10207 # error no CL.h
10208 # endif
10209int
10210main ()
10211{
10212clCreateContextFromType(0,0,0,0,0)
10213 ;
10214 return 0;
10215}
10216_ACEOF
10217if ac_fn_c_try_link "$LINENO"; then :
10218 ax_cv_check_cl_libcl=$LIBS
10219fi
10220rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222fi
10223
10224 LIBS=$ax_save_LIBS
10225 CPPFLAGS=$ax_save_CPPFLAGS
10226fi
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10228$as_echo "$ax_cv_check_cl_libcl" >&6; }
10229
10230 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10231 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10232else
10233 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10234$as_echo "#define _OPENCL 1" >>confdefs.h
10235
10236fi
10237 ac_ext=c
10238ac_cpp='$CPP $CPPFLAGS'
10239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10241ac_compiler_gnu=$ac_cv_c_compiler_gnu
10242
10243fi
10244
10245
10246
10247
cristyc7083c12009-10-14 03:16:55 +000010248CFLAGS="$CL_CFLAGS $CFLAGS"
10249LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010250
cristy391f1ce2010-09-09 17:23:28 +000010251if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010252 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010253 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10254 fi
cristyfd9dcd42010-08-08 18:07:02 +000010255fi
cristy2e8b51d2009-10-17 18:26:15 +000010256
cristy3ed852e2009-09-05 21:47:34 +000010257########
10258#
10259# Check for large file support
10260#
10261########
10262# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010263if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010264 enableval=$enable_largefile;
10265fi
10266
10267if test "$enable_largefile" != no; then
10268
cristy8b350f62009-11-15 23:12:43 +000010269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010270$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010271if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010272 $as_echo_n "(cached) " >&6
10273else
10274 ac_cv_sys_largefile_CC=no
10275 if test "$GCC" != yes; then
10276 ac_save_CC=$CC
10277 while :; do
10278 # IRIX 6.2 and later do not support large files by default,
10279 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010281/* end confdefs.h. */
10282#include <sys/types.h>
10283 /* Check that off_t can represent 2**63 - 1 correctly.
10284 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10285 since some C++ compilers masquerading as C compilers
10286 incorrectly reject 9223372036854775807. */
10287#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10288 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10289 && LARGE_OFF_T % 2147483647 == 1)
10290 ? 1 : -1];
10291int
10292main ()
10293{
10294
10295 ;
10296 return 0;
10297}
10298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010299 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010300 break
cristy3ed852e2009-09-05 21:47:34 +000010301fi
cristy3ed852e2009-09-05 21:47:34 +000010302rm -f core conftest.err conftest.$ac_objext
10303 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010304 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010305 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010306fi
cristy3ed852e2009-09-05 21:47:34 +000010307rm -f core conftest.err conftest.$ac_objext
10308 break
10309 done
10310 CC=$ac_save_CC
10311 rm -f conftest.$ac_ext
10312 fi
10313fi
cristy8b350f62009-11-15 23:12:43 +000010314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010315$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10316 if test "$ac_cv_sys_largefile_CC" != no; then
10317 CC=$CC$ac_cv_sys_largefile_CC
10318 fi
10319
cristy8b350f62009-11-15 23:12:43 +000010320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010321$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010322if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010323 $as_echo_n "(cached) " >&6
10324else
10325 while :; do
cristy8b350f62009-11-15 23:12:43 +000010326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010327/* end confdefs.h. */
10328#include <sys/types.h>
10329 /* Check that off_t can represent 2**63 - 1 correctly.
10330 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10331 since some C++ compilers masquerading as C compilers
10332 incorrectly reject 9223372036854775807. */
10333#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10334 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10335 && LARGE_OFF_T % 2147483647 == 1)
10336 ? 1 : -1];
10337int
10338main ()
10339{
10340
10341 ;
10342 return 0;
10343}
10344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010345if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010346 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010347fi
cristy3ed852e2009-09-05 21:47:34 +000010348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010350/* end confdefs.h. */
10351#define _FILE_OFFSET_BITS 64
10352#include <sys/types.h>
10353 /* Check that off_t can represent 2**63 - 1 correctly.
10354 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10355 since some C++ compilers masquerading as C compilers
10356 incorrectly reject 9223372036854775807. */
10357#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10358 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10359 && LARGE_OFF_T % 2147483647 == 1)
10360 ? 1 : -1];
10361int
10362main ()
10363{
10364
10365 ;
10366 return 0;
10367}
10368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010369if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010370 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010371fi
cristy3ed852e2009-09-05 21:47:34 +000010372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10373 ac_cv_sys_file_offset_bits=unknown
10374 break
10375done
10376fi
cristy8b350f62009-11-15 23:12:43 +000010377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010378$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10379case $ac_cv_sys_file_offset_bits in #(
10380 no | unknown) ;;
10381 *)
10382cat >>confdefs.h <<_ACEOF
10383#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10384_ACEOF
10385;;
10386esac
10387rm -rf conftest*
10388 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010390$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010391if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010392 $as_echo_n "(cached) " >&6
10393else
10394 while :; do
cristy8b350f62009-11-15 23:12:43 +000010395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010396/* end confdefs.h. */
10397#include <sys/types.h>
10398 /* Check that off_t can represent 2**63 - 1 correctly.
10399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10400 since some C++ compilers masquerading as C compilers
10401 incorrectly reject 9223372036854775807. */
10402#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10404 && LARGE_OFF_T % 2147483647 == 1)
10405 ? 1 : -1];
10406int
10407main ()
10408{
10409
10410 ;
10411 return 0;
10412}
10413_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010414if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010415 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010416fi
cristy3ed852e2009-09-05 21:47:34 +000010417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010419/* end confdefs.h. */
10420#define _LARGE_FILES 1
10421#include <sys/types.h>
10422 /* Check that off_t can represent 2**63 - 1 correctly.
10423 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10424 since some C++ compilers masquerading as C compilers
10425 incorrectly reject 9223372036854775807. */
10426#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10427 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10428 && LARGE_OFF_T % 2147483647 == 1)
10429 ? 1 : -1];
10430int
10431main ()
10432{
10433
10434 ;
10435 return 0;
10436}
10437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010438if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010439 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010440fi
cristy3ed852e2009-09-05 21:47:34 +000010441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10442 ac_cv_sys_large_files=unknown
10443 break
10444done
10445fi
cristy8b350f62009-11-15 23:12:43 +000010446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010447$as_echo "$ac_cv_sys_large_files" >&6; }
10448case $ac_cv_sys_large_files in #(
10449 no | unknown) ;;
10450 *)
10451cat >>confdefs.h <<_ACEOF
10452#define _LARGE_FILES $ac_cv_sys_large_files
10453_ACEOF
10454;;
10455esac
10456rm -rf conftest*
10457 fi
cristy14fefe52012-05-21 00:59:18 +000010458
10459
cristy3ed852e2009-09-05 21:47:34 +000010460fi
10461
cristy8b350f62009-11-15 23:12:43 +000010462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010463$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010464if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010465 $as_echo_n "(cached) " >&6
10466else
10467 while :; do
cristy8b350f62009-11-15 23:12:43 +000010468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010469/* end confdefs.h. */
10470#include <sys/types.h> /* for off_t */
10471 #include <stdio.h>
10472int
10473main ()
10474{
10475int (*fp) (FILE *, off_t, int) = fseeko;
10476 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10477 ;
10478 return 0;
10479}
10480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010481if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010482 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010483fi
cristy8b350f62009-11-15 23:12:43 +000010484rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010487/* end confdefs.h. */
10488#define _LARGEFILE_SOURCE 1
10489#include <sys/types.h> /* for off_t */
10490 #include <stdio.h>
10491int
10492main ()
10493{
10494int (*fp) (FILE *, off_t, int) = fseeko;
10495 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10496 ;
10497 return 0;
10498}
10499_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010500if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010501 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010502fi
cristy8b350f62009-11-15 23:12:43 +000010503rm -f core conftest.err conftest.$ac_objext \
10504 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010505 ac_cv_sys_largefile_source=unknown
10506 break
10507done
10508fi
cristy8b350f62009-11-15 23:12:43 +000010509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010510$as_echo "$ac_cv_sys_largefile_source" >&6; }
10511case $ac_cv_sys_largefile_source in #(
10512 no | unknown) ;;
10513 *)
10514cat >>confdefs.h <<_ACEOF
10515#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10516_ACEOF
10517;;
10518esac
10519rm -rf conftest*
10520
10521# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10522# in glibc 2.1.3, but that breaks too many other things.
10523# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10524if test $ac_cv_sys_largefile_source != unknown; then
10525
cristy8b350f62009-11-15 23:12:43 +000010526$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010527
10528fi
10529
10530LFS_CPPFLAGS=''
10531if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010532 case $ac_cv_sys_file_offset_bits in
10533 no)
10534 # nothing to do here as the host supports LFS fine
10535 ;;
10536 unknown)
cristy8b350f62009-11-15 23:12:43 +000010537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010538$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010539 if test "$cross_compiling" = yes; then :
10540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010542as_fn_error $? "cannot run test program while cross compiling
10543See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010544else
cristy8b350f62009-11-15 23:12:43 +000010545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010547#include <unistd.h>
10548 main () {
10549 exit(!(sizeof(off_t) == 8));
10550 }
cristyda16f162011-02-19 23:52:17 +000010551int
10552main ()
10553{
10554
10555 ;
10556 return 0;
10557}
cristy3ed852e2009-09-05 21:47:34 +000010558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010559if ac_fn_c_try_run "$LINENO"; then :
10560 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010561
cristyad38abe2012-12-23 23:03:21 +000010562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10563$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010564else
cristyad38abe2012-12-23 23:03:21 +000010565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010567fi
cristy8b350f62009-11-15 23:12:43 +000010568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10569 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010570fi
10571
cristyc1e0cc12011-09-21 16:41:16 +000010572 ;;
10573 *)
10574 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10575 ;;
10576 esac
cristy3ed852e2009-09-05 21:47:34 +000010577 if test "$ac_cv_sys_large_files" != 'no'; then
10578 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10579 fi
10580 if test "$ac_cv_sys_largefile_source" != 'no'; then
10581 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10582 fi
10583fi
10584
10585
cristy3ed852e2009-09-05 21:47:34 +000010586# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010587enable_dlopen=yes
10588
10589
10590
10591case `pwd` in
10592 *\ * | *\ *)
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10594$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10595esac
10596
10597
10598
cristy99bd5232011-12-07 14:38:20 +000010599macro_version='2.4.2'
10600macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614ltmain="$ac_aux_dir/ltmain.sh"
10615
cristy0c60a692010-11-04 01:09:47 +000010616# Backslashify metacharacters that are still active within
10617# double-quoted strings.
10618sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10619
10620# Same as above, but do not quote variable references.
10621double_quote_subst='s/\(["`\\]\)/\\\1/g'
10622
10623# Sed substitution to delay expansion of an escaped shell variable in a
10624# double_quote_subst'ed string.
10625delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10626
10627# Sed substitution to delay expansion of an escaped single quote.
10628delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10629
10630# Sed substitution to avoid accidental globbing in evaled expressions
10631no_glob_subst='s/\*/\\\*/g'
10632
cristy73bd4a52010-10-05 11:24:23 +000010633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10634$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010635if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010636 $as_echo_n "(cached) " >&6
10637else
10638 if test -n "$NM"; then
10639 # Let the user override the test.
10640 lt_cv_path_NM="$NM"
10641else
10642 lt_nm_to_check="${ac_tool_prefix}nm"
10643 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10644 lt_nm_to_check="$lt_nm_to_check nm"
10645 fi
10646 for lt_tmp_nm in $lt_nm_to_check; do
10647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10648 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10649 IFS="$lt_save_ifs"
10650 test -z "$ac_dir" && ac_dir=.
10651 tmp_nm="$ac_dir/$lt_tmp_nm"
10652 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10653 # Check to see if the nm accepts a BSD-compat flag.
10654 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10655 # nm: unknown option "B" ignored
10656 # Tru64's nm complains that /dev/null is an invalid object file
10657 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10658 */dev/null* | *'Invalid file or object type'*)
10659 lt_cv_path_NM="$tmp_nm -B"
10660 break
10661 ;;
10662 *)
10663 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10664 */dev/null*)
10665 lt_cv_path_NM="$tmp_nm -p"
10666 break
10667 ;;
10668 *)
10669 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10670 continue # so that we can try to find one that supports BSD flags
10671 ;;
10672 esac
10673 ;;
10674 esac
10675 fi
10676 done
10677 IFS="$lt_save_ifs"
10678 done
10679 : ${lt_cv_path_NM=no}
10680fi
10681fi
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10683$as_echo "$lt_cv_path_NM" >&6; }
10684if test "$lt_cv_path_NM" != "no"; then
10685 NM="$lt_cv_path_NM"
10686else
10687 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010688 if test -n "$DUMPBIN"; then :
10689 # Let the user override the test.
10690 else
10691 if test -n "$ac_tool_prefix"; then
10692 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010693 do
10694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010698if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010699 $as_echo_n "(cached) " >&6
10700else
10701 if test -n "$DUMPBIN"; then
10702 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10703else
10704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705for as_dir in $PATH
10706do
10707 IFS=$as_save_IFS
10708 test -z "$as_dir" && as_dir=.
10709 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010711 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10713 break 2
10714 fi
10715done
10716 done
10717IFS=$as_save_IFS
10718
10719fi
10720fi
10721DUMPBIN=$ac_cv_prog_DUMPBIN
10722if test -n "$DUMPBIN"; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10724$as_echo "$DUMPBIN" >&6; }
10725else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727$as_echo "no" >&6; }
10728fi
10729
10730
10731 test -n "$DUMPBIN" && break
10732 done
10733fi
10734if test -z "$DUMPBIN"; then
10735 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010736 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010737do
10738 # Extract the first word of "$ac_prog", so it can be a program name with args.
10739set dummy $ac_prog; ac_word=$2
10740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010742if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010743 $as_echo_n "(cached) " >&6
10744else
10745 if test -n "$ac_ct_DUMPBIN"; then
10746 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10747else
10748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749for as_dir in $PATH
10750do
10751 IFS=$as_save_IFS
10752 test -z "$as_dir" && as_dir=.
10753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010755 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 break 2
10758 fi
10759done
10760 done
10761IFS=$as_save_IFS
10762
10763fi
10764fi
10765ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10766if test -n "$ac_ct_DUMPBIN"; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10768$as_echo "$ac_ct_DUMPBIN" >&6; }
10769else
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771$as_echo "no" >&6; }
10772fi
10773
10774
10775 test -n "$ac_ct_DUMPBIN" && break
10776done
10777
10778 if test "x$ac_ct_DUMPBIN" = x; then
10779 DUMPBIN=":"
10780 else
10781 case $cross_compiling:$ac_tool_warned in
10782yes:)
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10785ac_tool_warned=yes ;;
10786esac
10787 DUMPBIN=$ac_ct_DUMPBIN
10788 fi
10789fi
10790
cristy0c60a692010-11-04 01:09:47 +000010791 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10792 *COFF*)
10793 DUMPBIN="$DUMPBIN -symbols"
10794 ;;
10795 *)
10796 DUMPBIN=:
10797 ;;
10798 esac
10799 fi
cristy73bd4a52010-10-05 11:24:23 +000010800
10801 if test "$DUMPBIN" != ":"; then
10802 NM="$DUMPBIN"
10803 fi
10804fi
10805test -z "$NM" && NM=nm
10806
10807
10808
10809
10810
10811
10812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10813$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010814if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010815 $as_echo_n "(cached) " >&6
10816else
10817 lt_cv_nm_interface="BSD nm"
10818 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010819 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010820 (eval "$ac_compile" 2>conftest.err)
10821 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010822 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010823 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10824 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010825 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010826 cat conftest.out >&5
10827 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10828 lt_cv_nm_interface="MS dumpbin"
10829 fi
10830 rm -f conftest*
10831fi
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10833$as_echo "$lt_cv_nm_interface" >&6; }
10834
10835# find the maximum length of command line arguments
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10837$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010838if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010839 $as_echo_n "(cached) " >&6
10840else
10841 i=0
10842 teststring="ABCD"
10843
10844 case $build_os in
10845 msdosdjgpp*)
10846 # On DJGPP, this test can blow up pretty badly due to problems in libc
10847 # (any single argument exceeding 2000 bytes causes a buffer overrun
10848 # during glob expansion). Even if it were fixed, the result of this
10849 # check would be larger than it should be.
10850 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10851 ;;
10852
10853 gnu*)
10854 # Under GNU Hurd, this test is not required because there is
10855 # no limit to the length of command line arguments.
10856 # Libtool will interpret -1 as no limit whatsoever
10857 lt_cv_sys_max_cmd_len=-1;
10858 ;;
10859
10860 cygwin* | mingw* | cegcc*)
10861 # On Win9x/ME, this test blows up -- it succeeds, but takes
10862 # about 5 minutes as the teststring grows exponentially.
10863 # Worse, since 9x/ME are not pre-emptively multitasking,
10864 # you end up with a "frozen" computer, even though with patience
10865 # the test eventually succeeds (with a max line length of 256k).
10866 # Instead, let's just punt: use the minimum linelength reported by
10867 # all of the supported platforms: 8192 (on NT/2K/XP).
10868 lt_cv_sys_max_cmd_len=8192;
10869 ;;
10870
cristy0c60a692010-11-04 01:09:47 +000010871 mint*)
10872 # On MiNT this can take a long time and run out of memory.
10873 lt_cv_sys_max_cmd_len=8192;
10874 ;;
10875
cristy73bd4a52010-10-05 11:24:23 +000010876 amigaos*)
10877 # On AmigaOS with pdksh, this test takes hours, literally.
10878 # So we just punt and use a minimum line length of 8192.
10879 lt_cv_sys_max_cmd_len=8192;
10880 ;;
10881
10882 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10883 # This has been around since 386BSD, at least. Likely further.
10884 if test -x /sbin/sysctl; then
10885 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10886 elif test -x /usr/sbin/sysctl; then
10887 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10888 else
10889 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10890 fi
10891 # And add a safety zone
10892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10894 ;;
10895
10896 interix*)
10897 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10898 lt_cv_sys_max_cmd_len=196608
10899 ;;
10900
cristy99bd5232011-12-07 14:38:20 +000010901 os2*)
10902 # The test takes a long time on OS/2.
10903 lt_cv_sys_max_cmd_len=8192
10904 ;;
10905
cristy73bd4a52010-10-05 11:24:23 +000010906 osf*)
10907 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10908 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10909 # nice to cause kernel panics so lets avoid the loop below.
10910 # First set a reasonable default.
10911 lt_cv_sys_max_cmd_len=16384
10912 #
10913 if test -x /sbin/sysconfig; then
10914 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10915 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10916 esac
10917 fi
10918 ;;
10919 sco3.2v5*)
10920 lt_cv_sys_max_cmd_len=102400
10921 ;;
10922 sysv5* | sco5v6* | sysv4.2uw2*)
10923 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10924 if test -n "$kargmax"; then
10925 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10926 else
10927 lt_cv_sys_max_cmd_len=32768
10928 fi
10929 ;;
10930 *)
10931 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10932 if test -n "$lt_cv_sys_max_cmd_len"; then
10933 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10935 else
10936 # Make teststring a little bigger before we do anything with it.
10937 # a 1K string should be a reasonable start.
10938 for i in 1 2 3 4 5 6 7 8 ; do
10939 teststring=$teststring$teststring
10940 done
10941 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10942 # If test is not a shell built-in, we'll probably end up computing a
10943 # maximum length that is only half of the actual maximum length, but
10944 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010945 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010946 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010947 test $i != 17 # 1/2 MB should be enough
10948 do
10949 i=`expr $i + 1`
10950 teststring=$teststring$teststring
10951 done
10952 # Only check the string length outside the loop.
10953 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10954 teststring=
10955 # Add a significant safety factor because C++ compilers can tack on
10956 # massive amounts of additional arguments before passing them to the
10957 # linker. It appears as though 1/2 is a usable value.
10958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10959 fi
10960 ;;
10961 esac
10962
10963fi
10964
10965if test -n $lt_cv_sys_max_cmd_len ; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10967$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10968else
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10970$as_echo "none" >&6; }
10971fi
10972max_cmd_len=$lt_cv_sys_max_cmd_len
10973
10974
10975
10976
10977
10978
10979: ${CP="cp -f"}
10980: ${MV="mv -f"}
10981: ${RM="rm -f"}
10982
10983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10984$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10985# Try some XSI features
10986xsi_shell=no
10987( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010988 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10989 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010990 && eval 'test $(( 1 + 1 )) -eq 2 \
10991 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10992 && xsi_shell=yes
10993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10994$as_echo "$xsi_shell" >&6; }
10995
10996
10997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10998$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10999lt_shell_append=no
11000( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11001 >/dev/null 2>&1 \
11002 && lt_shell_append=yes
11003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11004$as_echo "$lt_shell_append" >&6; }
11005
11006
11007if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11008 lt_unset=unset
11009else
11010 lt_unset=false
11011fi
11012
11013
11014
11015
11016
11017# test EBCDIC or ASCII
11018case `echo X|tr X '\101'` in
11019 A) # ASCII based system
11020 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11021 lt_SP2NL='tr \040 \012'
11022 lt_NL2SP='tr \015\012 \040\040'
11023 ;;
11024 *) # EBCDIC based system
11025 lt_SP2NL='tr \100 \n'
11026 lt_NL2SP='tr \r\n \100\100'
11027 ;;
11028esac
11029
11030
11031
11032
11033
11034
11035
11036
11037
cristyda16f162011-02-19 23:52:17 +000011038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11039$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11040if ${lt_cv_to_host_file_cmd+:} false; then :
11041 $as_echo_n "(cached) " >&6
11042else
11043 case $host in
11044 *-*-mingw* )
11045 case $build in
11046 *-*-mingw* ) # actually msys
11047 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11048 ;;
11049 *-*-cygwin* )
11050 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11051 ;;
11052 * ) # otherwise, assume *nix
11053 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11054 ;;
11055 esac
11056 ;;
11057 *-*-cygwin* )
11058 case $build in
11059 *-*-mingw* ) # actually msys
11060 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11061 ;;
11062 *-*-cygwin* )
11063 lt_cv_to_host_file_cmd=func_convert_file_noop
11064 ;;
11065 * ) # otherwise, assume *nix
11066 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11067 ;;
11068 esac
11069 ;;
11070 * ) # unhandled hosts (and "normal" native builds)
11071 lt_cv_to_host_file_cmd=func_convert_file_noop
11072 ;;
11073esac
11074
11075fi
11076
11077to_host_file_cmd=$lt_cv_to_host_file_cmd
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11079$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11080
11081
11082
11083
11084
11085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11086$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11087if ${lt_cv_to_tool_file_cmd+:} false; then :
11088 $as_echo_n "(cached) " >&6
11089else
11090 #assume ordinary cross tools, or native build.
11091lt_cv_to_tool_file_cmd=func_convert_file_noop
11092case $host in
11093 *-*-mingw* )
11094 case $build in
11095 *-*-mingw* ) # actually msys
11096 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11097 ;;
11098 esac
11099 ;;
11100esac
11101
11102fi
11103
11104to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11106$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11107
11108
11109
11110
11111
cristy73bd4a52010-10-05 11:24:23 +000011112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11113$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011114if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011115 $as_echo_n "(cached) " >&6
11116else
11117 lt_cv_ld_reload_flag='-r'
11118fi
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11120$as_echo "$lt_cv_ld_reload_flag" >&6; }
11121reload_flag=$lt_cv_ld_reload_flag
11122case $reload_flag in
11123"" | " "*) ;;
11124*) reload_flag=" $reload_flag" ;;
11125esac
11126reload_cmds='$LD$reload_flag -o $output$reload_objs'
11127case $host_os in
cristyda16f162011-02-19 23:52:17 +000011128 cygwin* | mingw* | pw32* | cegcc*)
11129 if test "$GCC" != yes; then
11130 reload_cmds=false
11131 fi
11132 ;;
cristy73bd4a52010-10-05 11:24:23 +000011133 darwin*)
11134 if test "$GCC" = yes; then
11135 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11136 else
11137 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11138 fi
11139 ;;
11140esac
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150if test -n "$ac_tool_prefix"; then
11151 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11152set dummy ${ac_tool_prefix}objdump; ac_word=$2
11153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011155if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011156 $as_echo_n "(cached) " >&6
11157else
11158 if test -n "$OBJDUMP"; then
11159 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11160else
11161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162for as_dir in $PATH
11163do
11164 IFS=$as_save_IFS
11165 test -z "$as_dir" && as_dir=.
11166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011168 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11170 break 2
11171 fi
11172done
11173 done
11174IFS=$as_save_IFS
11175
11176fi
11177fi
11178OBJDUMP=$ac_cv_prog_OBJDUMP
11179if test -n "$OBJDUMP"; then
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11181$as_echo "$OBJDUMP" >&6; }
11182else
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184$as_echo "no" >&6; }
11185fi
11186
11187
11188fi
11189if test -z "$ac_cv_prog_OBJDUMP"; then
11190 ac_ct_OBJDUMP=$OBJDUMP
11191 # Extract the first word of "objdump", so it can be a program name with args.
11192set dummy objdump; ac_word=$2
11193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11194$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011195if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011196 $as_echo_n "(cached) " >&6
11197else
11198 if test -n "$ac_ct_OBJDUMP"; then
11199 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11200else
11201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202for as_dir in $PATH
11203do
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011208 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11210 break 2
11211 fi
11212done
11213 done
11214IFS=$as_save_IFS
11215
11216fi
11217fi
11218ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11219if test -n "$ac_ct_OBJDUMP"; then
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11221$as_echo "$ac_ct_OBJDUMP" >&6; }
11222else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224$as_echo "no" >&6; }
11225fi
11226
11227 if test "x$ac_ct_OBJDUMP" = x; then
11228 OBJDUMP="false"
11229 else
11230 case $cross_compiling:$ac_tool_warned in
11231yes:)
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11234ac_tool_warned=yes ;;
11235esac
11236 OBJDUMP=$ac_ct_OBJDUMP
11237 fi
11238else
11239 OBJDUMP="$ac_cv_prog_OBJDUMP"
11240fi
11241
11242test -z "$OBJDUMP" && OBJDUMP=objdump
11243
11244
11245
11246
11247
11248
11249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11250$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011251if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011252 $as_echo_n "(cached) " >&6
11253else
11254 lt_cv_file_magic_cmd='$MAGIC_CMD'
11255lt_cv_file_magic_test_file=
11256lt_cv_deplibs_check_method='unknown'
11257# Need to set the preceding variable on all platforms that support
11258# interlibrary dependencies.
11259# 'none' -- dependencies not supported.
11260# `unknown' -- same as none, but documents that we really don't know.
11261# 'pass_all' -- all dependencies passed with no checks.
11262# 'test_compile' -- check by making test program.
11263# 'file_magic [[regex]]' -- check by looking for files in library path
11264# which responds to the $file_magic_cmd with a given extended regex.
11265# If you have `file' or equivalent on your system and you're not sure
11266# whether `pass_all' will *always* work, you probably want this one.
11267
11268case $host_os in
11269aix[4-9]*)
11270 lt_cv_deplibs_check_method=pass_all
11271 ;;
11272
11273beos*)
11274 lt_cv_deplibs_check_method=pass_all
11275 ;;
11276
11277bsdi[45]*)
11278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11279 lt_cv_file_magic_cmd='/usr/bin/file -L'
11280 lt_cv_file_magic_test_file=/shlib/libc.so
11281 ;;
11282
11283cygwin*)
11284 # func_win32_libid is a shell function defined in ltmain.sh
11285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11286 lt_cv_file_magic_cmd='func_win32_libid'
11287 ;;
11288
11289mingw* | pw32*)
11290 # Base MSYS/MinGW do not provide the 'file' command needed by
11291 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11292 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011293 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11294 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011295 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11296 lt_cv_file_magic_cmd='func_win32_libid'
11297 else
cristy0c60a692010-11-04 01:09:47 +000011298 # Keep this pattern in sync with the one in func_win32_libid.
11299 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 +000011300 lt_cv_file_magic_cmd='$OBJDUMP -f'
11301 fi
11302 ;;
11303
cristy0c60a692010-11-04 01:09:47 +000011304cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011305 # use the weaker test based on 'objdump'. See mingw*.
11306 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11307 lt_cv_file_magic_cmd='$OBJDUMP -f'
11308 ;;
11309
11310darwin* | rhapsody*)
11311 lt_cv_deplibs_check_method=pass_all
11312 ;;
11313
11314freebsd* | dragonfly*)
11315 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11316 case $host_cpu in
11317 i*86 )
11318 # Not sure whether the presence of OpenBSD here was a mistake.
11319 # Let's accept both of them until this is cleared up.
11320 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11321 lt_cv_file_magic_cmd=/usr/bin/file
11322 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11323 ;;
11324 esac
11325 else
11326 lt_cv_deplibs_check_method=pass_all
11327 fi
11328 ;;
11329
11330gnu*)
11331 lt_cv_deplibs_check_method=pass_all
11332 ;;
11333
cristy0c60a692010-11-04 01:09:47 +000011334haiku*)
11335 lt_cv_deplibs_check_method=pass_all
11336 ;;
11337
cristy73bd4a52010-10-05 11:24:23 +000011338hpux10.20* | hpux11*)
11339 lt_cv_file_magic_cmd=/usr/bin/file
11340 case $host_cpu in
11341 ia64*)
11342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11343 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11344 ;;
11345 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011346 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 +000011347 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11348 ;;
11349 *)
cristy0c60a692010-11-04 01:09:47 +000011350 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 +000011351 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11352 ;;
11353 esac
11354 ;;
11355
11356interix[3-9]*)
11357 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11359 ;;
11360
11361irix5* | irix6* | nonstopux*)
11362 case $LD in
11363 *-32|*"-32 ") libmagic=32-bit;;
11364 *-n32|*"-n32 ") libmagic=N32;;
11365 *-64|*"-64 ") libmagic=64-bit;;
11366 *) libmagic=never-match;;
11367 esac
11368 lt_cv_deplibs_check_method=pass_all
11369 ;;
11370
cristy99bd5232011-12-07 14:38:20 +000011371# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011372linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011373 lt_cv_deplibs_check_method=pass_all
11374 ;;
11375
11376netbsd*)
11377 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11379 else
11380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11381 fi
11382 ;;
11383
11384newos6*)
11385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11386 lt_cv_file_magic_cmd=/usr/bin/file
11387 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11388 ;;
11389
11390*nto* | *qnx*)
11391 lt_cv_deplibs_check_method=pass_all
11392 ;;
11393
11394openbsd*)
11395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11397 else
11398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11399 fi
11400 ;;
11401
11402osf3* | osf4* | osf5*)
11403 lt_cv_deplibs_check_method=pass_all
11404 ;;
11405
11406rdos*)
11407 lt_cv_deplibs_check_method=pass_all
11408 ;;
11409
11410solaris*)
11411 lt_cv_deplibs_check_method=pass_all
11412 ;;
11413
11414sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11415 lt_cv_deplibs_check_method=pass_all
11416 ;;
11417
11418sysv4 | sysv4.3*)
11419 case $host_vendor in
11420 motorola)
11421 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]'
11422 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11423 ;;
11424 ncr)
11425 lt_cv_deplibs_check_method=pass_all
11426 ;;
11427 sequent)
11428 lt_cv_file_magic_cmd='/bin/file'
11429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11430 ;;
11431 sni)
11432 lt_cv_file_magic_cmd='/bin/file'
11433 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11434 lt_cv_file_magic_test_file=/lib/libc.so
11435 ;;
11436 siemens)
11437 lt_cv_deplibs_check_method=pass_all
11438 ;;
11439 pc)
11440 lt_cv_deplibs_check_method=pass_all
11441 ;;
11442 esac
11443 ;;
11444
11445tpf*)
11446 lt_cv_deplibs_check_method=pass_all
11447 ;;
11448esac
11449
11450fi
11451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11452$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011453
11454file_magic_glob=
11455want_nocaseglob=no
11456if test "$build" = "$host"; then
11457 case $host_os in
11458 mingw* | pw32*)
11459 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11460 want_nocaseglob=yes
11461 else
11462 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11463 fi
11464 ;;
11465 esac
11466fi
11467
cristy73bd4a52010-10-05 11:24:23 +000011468file_magic_cmd=$lt_cv_file_magic_cmd
11469deplibs_check_method=$lt_cv_deplibs_check_method
11470test -z "$deplibs_check_method" && deplibs_check_method=unknown
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
cristyda16f162011-02-19 23:52:17 +000011483
11484
11485
11486
11487
11488
11489
11490
11491
11492
cristy73bd4a52010-10-05 11:24:23 +000011493if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011494 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11495set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011498if ${ac_cv_prog_DLLTOOL+:} false; then :
11499 $as_echo_n "(cached) " >&6
11500else
11501 if test -n "$DLLTOOL"; then
11502 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11503else
11504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505for as_dir in $PATH
11506do
11507 IFS=$as_save_IFS
11508 test -z "$as_dir" && as_dir=.
11509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011511 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11513 break 2
11514 fi
11515done
11516 done
11517IFS=$as_save_IFS
11518
11519fi
11520fi
11521DLLTOOL=$ac_cv_prog_DLLTOOL
11522if test -n "$DLLTOOL"; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11524$as_echo "$DLLTOOL" >&6; }
11525else
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527$as_echo "no" >&6; }
11528fi
11529
11530
11531fi
11532if test -z "$ac_cv_prog_DLLTOOL"; then
11533 ac_ct_DLLTOOL=$DLLTOOL
11534 # Extract the first word of "dlltool", so it can be a program name with args.
11535set dummy dlltool; ac_word=$2
11536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11537$as_echo_n "checking for $ac_word... " >&6; }
11538if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11539 $as_echo_n "(cached) " >&6
11540else
11541 if test -n "$ac_ct_DLLTOOL"; then
11542 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11543else
11544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545for as_dir in $PATH
11546do
11547 IFS=$as_save_IFS
11548 test -z "$as_dir" && as_dir=.
11549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011551 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11553 break 2
11554 fi
11555done
11556 done
11557IFS=$as_save_IFS
11558
11559fi
11560fi
11561ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11562if test -n "$ac_ct_DLLTOOL"; then
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11564$as_echo "$ac_ct_DLLTOOL" >&6; }
11565else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567$as_echo "no" >&6; }
11568fi
11569
11570 if test "x$ac_ct_DLLTOOL" = x; then
11571 DLLTOOL="false"
11572 else
11573 case $cross_compiling:$ac_tool_warned in
11574yes:)
11575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11577ac_tool_warned=yes ;;
11578esac
11579 DLLTOOL=$ac_ct_DLLTOOL
11580 fi
11581else
11582 DLLTOOL="$ac_cv_prog_DLLTOOL"
11583fi
11584
11585test -z "$DLLTOOL" && DLLTOOL=dlltool
11586
11587
11588
11589
11590
11591
11592
11593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11594$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11595if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597else
11598 lt_cv_sharedlib_from_linklib_cmd='unknown'
11599
11600case $host_os in
11601cygwin* | mingw* | pw32* | cegcc*)
11602 # two different shell functions defined in ltmain.sh
11603 # decide which to use based on capabilities of $DLLTOOL
11604 case `$DLLTOOL --help 2>&1` in
11605 *--identify-strict*)
11606 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11607 ;;
11608 *)
11609 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11610 ;;
11611 esac
11612 ;;
11613*)
11614 # fallback: assume linklib IS sharedlib
11615 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11616 ;;
11617esac
11618
11619fi
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11621$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11622sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11623test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11624
11625
11626
11627
11628
11629
11630
11631if test -n "$ac_tool_prefix"; then
11632 for ac_prog in ar
11633 do
11634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11635set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637$as_echo_n "checking for $ac_word... " >&6; }
11638if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011639 $as_echo_n "(cached) " >&6
11640else
11641 if test -n "$AR"; then
11642 ac_cv_prog_AR="$AR" # Let the user override the test.
11643else
11644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645for as_dir in $PATH
11646do
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
11649 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011651 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11653 break 2
11654 fi
11655done
11656 done
11657IFS=$as_save_IFS
11658
11659fi
11660fi
11661AR=$ac_cv_prog_AR
11662if test -n "$AR"; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11664$as_echo "$AR" >&6; }
11665else
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667$as_echo "no" >&6; }
11668fi
11669
11670
cristyda16f162011-02-19 23:52:17 +000011671 test -n "$AR" && break
11672 done
cristy73bd4a52010-10-05 11:24:23 +000011673fi
cristyda16f162011-02-19 23:52:17 +000011674if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011675 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011676 for ac_prog in ar
11677do
11678 # Extract the first word of "$ac_prog", so it can be a program name with args.
11679set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11681$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011682if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011683 $as_echo_n "(cached) " >&6
11684else
11685 if test -n "$ac_ct_AR"; then
11686 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11687else
11688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11689for as_dir in $PATH
11690do
11691 IFS=$as_save_IFS
11692 test -z "$as_dir" && as_dir=.
11693 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011695 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11697 break 2
11698 fi
11699done
11700 done
11701IFS=$as_save_IFS
11702
11703fi
11704fi
11705ac_ct_AR=$ac_cv_prog_ac_ct_AR
11706if test -n "$ac_ct_AR"; then
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11708$as_echo "$ac_ct_AR" >&6; }
11709else
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711$as_echo "no" >&6; }
11712fi
11713
cristyda16f162011-02-19 23:52:17 +000011714
11715 test -n "$ac_ct_AR" && break
11716done
11717
cristy73bd4a52010-10-05 11:24:23 +000011718 if test "x$ac_ct_AR" = x; then
11719 AR="false"
11720 else
11721 case $cross_compiling:$ac_tool_warned in
11722yes:)
11723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11725ac_tool_warned=yes ;;
11726esac
11727 AR=$ac_ct_AR
11728 fi
cristy73bd4a52010-10-05 11:24:23 +000011729fi
11730
cristyda16f162011-02-19 23:52:17 +000011731: ${AR=ar}
11732: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
cristyda16f162011-02-19 23:52:17 +000011744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11745$as_echo_n "checking for archiver @FILE support... " >&6; }
11746if ${lt_cv_ar_at_file+:} false; then :
11747 $as_echo_n "(cached) " >&6
11748else
11749 lt_cv_ar_at_file=no
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751/* end confdefs.h. */
11752
11753int
11754main ()
11755{
11756
11757 ;
11758 return 0;
11759}
11760_ACEOF
11761if ac_fn_c_try_compile "$LINENO"; then :
11762 echo conftest.$ac_objext > conftest.lst
11763 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11765 (eval $lt_ar_try) 2>&5
11766 ac_status=$?
11767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11768 test $ac_status = 0; }
11769 if test "$ac_status" -eq 0; then
11770 # Ensure the archiver fails upon bogus file names.
11771 rm -f conftest.$ac_objext libconftest.a
11772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11773 (eval $lt_ar_try) 2>&5
11774 ac_status=$?
11775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11776 test $ac_status = 0; }
11777 if test "$ac_status" -ne 0; then
11778 lt_cv_ar_at_file=@
11779 fi
11780 fi
11781 rm -f conftest.* libconftest.a
11782
11783fi
11784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785
11786fi
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11788$as_echo "$lt_cv_ar_at_file" >&6; }
11789
11790if test "x$lt_cv_ar_at_file" = xno; then
11791 archiver_list_spec=
11792else
11793 archiver_list_spec=$lt_cv_ar_at_file
11794fi
11795
11796
11797
11798
11799
11800
11801
cristy73bd4a52010-10-05 11:24:23 +000011802if test -n "$ac_tool_prefix"; then
11803 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11804set dummy ${ac_tool_prefix}strip; ac_word=$2
11805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011807if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011808 $as_echo_n "(cached) " >&6
11809else
11810 if test -n "$STRIP"; then
11811 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11812else
11813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11814for as_dir in $PATH
11815do
11816 IFS=$as_save_IFS
11817 test -z "$as_dir" && as_dir=.
11818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011820 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11822 break 2
11823 fi
11824done
11825 done
11826IFS=$as_save_IFS
11827
11828fi
11829fi
11830STRIP=$ac_cv_prog_STRIP
11831if test -n "$STRIP"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11833$as_echo "$STRIP" >&6; }
11834else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836$as_echo "no" >&6; }
11837fi
11838
11839
11840fi
11841if test -z "$ac_cv_prog_STRIP"; then
11842 ac_ct_STRIP=$STRIP
11843 # Extract the first word of "strip", so it can be a program name with args.
11844set dummy strip; ac_word=$2
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11846$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011847if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011848 $as_echo_n "(cached) " >&6
11849else
11850 if test -n "$ac_ct_STRIP"; then
11851 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11852else
11853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854for as_dir in $PATH
11855do
11856 IFS=$as_save_IFS
11857 test -z "$as_dir" && as_dir=.
11858 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011860 ac_cv_prog_ac_ct_STRIP="strip"
11861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11862 break 2
11863 fi
11864done
11865 done
11866IFS=$as_save_IFS
11867
11868fi
11869fi
11870ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11871if test -n "$ac_ct_STRIP"; then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11873$as_echo "$ac_ct_STRIP" >&6; }
11874else
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
11877fi
11878
11879 if test "x$ac_ct_STRIP" = x; then
11880 STRIP=":"
11881 else
11882 case $cross_compiling:$ac_tool_warned in
11883yes:)
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11886ac_tool_warned=yes ;;
11887esac
11888 STRIP=$ac_ct_STRIP
11889 fi
11890else
11891 STRIP="$ac_cv_prog_STRIP"
11892fi
11893
11894test -z "$STRIP" && STRIP=:
11895
11896
11897
11898
11899
11900
11901if test -n "$ac_tool_prefix"; then
11902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11903set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011906if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011907 $as_echo_n "(cached) " >&6
11908else
11909 if test -n "$RANLIB"; then
11910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11911else
11912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913for as_dir in $PATH
11914do
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 break 2
11922 fi
11923done
11924 done
11925IFS=$as_save_IFS
11926
11927fi
11928fi
11929RANLIB=$ac_cv_prog_RANLIB
11930if test -n "$RANLIB"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11932$as_echo "$RANLIB" >&6; }
11933else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935$as_echo "no" >&6; }
11936fi
11937
11938
11939fi
11940if test -z "$ac_cv_prog_RANLIB"; then
11941 ac_ct_RANLIB=$RANLIB
11942 # Extract the first word of "ranlib", so it can be a program name with args.
11943set dummy ranlib; ac_word=$2
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11945$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011946if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011947 $as_echo_n "(cached) " >&6
11948else
11949 if test -n "$ac_ct_RANLIB"; then
11950 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11951else
11952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11953for as_dir in $PATH
11954do
11955 IFS=$as_save_IFS
11956 test -z "$as_dir" && as_dir=.
11957 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011959 ac_cv_prog_ac_ct_RANLIB="ranlib"
11960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11961 break 2
11962 fi
11963done
11964 done
11965IFS=$as_save_IFS
11966
11967fi
11968fi
11969ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11970if test -n "$ac_ct_RANLIB"; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11972$as_echo "$ac_ct_RANLIB" >&6; }
11973else
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975$as_echo "no" >&6; }
11976fi
11977
11978 if test "x$ac_ct_RANLIB" = x; then
11979 RANLIB=":"
11980 else
11981 case $cross_compiling:$ac_tool_warned in
11982yes:)
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11985ac_tool_warned=yes ;;
11986esac
11987 RANLIB=$ac_ct_RANLIB
11988 fi
11989else
11990 RANLIB="$ac_cv_prog_RANLIB"
11991fi
11992
11993test -z "$RANLIB" && RANLIB=:
11994
11995
11996
11997
11998
11999
12000# Determine commands to create old-style static archives.
12001old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12002old_postinstall_cmds='chmod 644 $oldlib'
12003old_postuninstall_cmds=
12004
12005if test -n "$RANLIB"; then
12006 case $host_os in
12007 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012008 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012009 ;;
12010 *)
cristy99bd5232011-12-07 14:38:20 +000012011 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012012 ;;
12013 esac
cristy99bd5232011-12-07 14:38:20 +000012014 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012015fi
12016
cristy0c60a692010-11-04 01:09:47 +000012017case $host_os in
12018 darwin*)
12019 lock_old_archive_extraction=yes ;;
12020 *)
12021 lock_old_archive_extraction=no ;;
12022esac
12023
12024
12025
12026
12027
12028
cristy73bd4a52010-10-05 11:24:23 +000012029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062# If no C compiler was specified, use CC.
12063LTCC=${LTCC-"$CC"}
12064
12065# If no C compiler flags were specified, use CFLAGS.
12066LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12067
12068# Allow CC to be a program name with arguments.
12069compiler=$CC
12070
12071
12072# Check for command to grab the raw symbol name followed by C symbol from nm.
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12074$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012075if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012076 $as_echo_n "(cached) " >&6
12077else
12078
12079# These are sane defaults that work on at least a few old systems.
12080# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12081
12082# Character class describing NM global symbol codes.
12083symcode='[BCDEGRST]'
12084
12085# Regexp to match symbols that can be accessed directly from C.
12086sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12087
12088# Define system-specific variables.
12089case $host_os in
12090aix*)
12091 symcode='[BCDT]'
12092 ;;
12093cygwin* | mingw* | pw32* | cegcc*)
12094 symcode='[ABCDGISTW]'
12095 ;;
12096hpux*)
12097 if test "$host_cpu" = ia64; then
12098 symcode='[ABCDEGRST]'
12099 fi
12100 ;;
12101irix* | nonstopux*)
12102 symcode='[BCDEGRST]'
12103 ;;
12104osf*)
12105 symcode='[BCDEGQRST]'
12106 ;;
12107solaris*)
12108 symcode='[BDRT]'
12109 ;;
12110sco3.2v5*)
12111 symcode='[DT]'
12112 ;;
12113sysv4.2uw2*)
12114 symcode='[DT]'
12115 ;;
12116sysv5* | sco5v6* | unixware* | OpenUNIX*)
12117 symcode='[ABDT]'
12118 ;;
12119sysv4)
12120 symcode='[DFNSTU]'
12121 ;;
12122esac
12123
12124# If we're using GNU nm, then use its standard symbol codes.
12125case `$NM -V 2>&1` in
12126*GNU* | *'with BFD'*)
12127 symcode='[ABCDGIRSTW]' ;;
12128esac
12129
12130# Transform an extracted symbol line into a proper C declaration.
12131# Some systems (esp. on ia64) link data and code symbols differently,
12132# so use this general approach.
12133lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12134
12135# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012136lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12137lt_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 +000012138
12139# Handle CRLF in mingw tool chain
12140opt_cr=
12141case $build_os in
12142mingw*)
12143 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12144 ;;
12145esac
12146
12147# Try without a prefix underscore, then with it.
12148for ac_symprfx in "" "_"; do
12149
12150 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12151 symxfrm="\\1 $ac_symprfx\\2 \\2"
12152
12153 # Write the raw and C identifiers.
12154 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12155 # Fake it for dumpbin and say T for any non-static function
12156 # and D for any global variable.
12157 # Also find C++ and __fastcall symbols from MSVC++,
12158 # which start with @ or ?.
12159 lt_cv_sys_global_symbol_pipe="$AWK '"\
12160" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012161" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012162" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12163" \$ 0!~/External *\|/{next};"\
12164" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12165" {if(hide[section]) next};"\
12166" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12167" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12168" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12169" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12170" ' prfx=^$ac_symprfx"
12171 else
12172 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12173 fi
cristyda16f162011-02-19 23:52:17 +000012174 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012175
12176 # Check to see that the pipe works correctly.
12177 pipe_works=no
12178
12179 rm -f conftest*
12180 cat > conftest.$ac_ext <<_LT_EOF
12181#ifdef __cplusplus
12182extern "C" {
12183#endif
12184char nm_test_var;
12185void nm_test_func(void);
12186void nm_test_func(void){}
12187#ifdef __cplusplus
12188}
12189#endif
12190int main(){nm_test_var='a';nm_test_func();return(0);}
12191_LT_EOF
12192
12193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12194 (eval $ac_compile) 2>&5
12195 ac_status=$?
12196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12197 test $ac_status = 0; }; then
12198 # Now try to grab the symbols.
12199 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12201 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012202 ac_status=$?
12203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12204 test $ac_status = 0; } && test -s "$nlist"; then
12205 # Try sorting and uniquifying the output.
12206 if sort "$nlist" | uniq > "$nlist"T; then
12207 mv -f "$nlist"T "$nlist"
12208 else
12209 rm -f "$nlist"T
12210 fi
12211
12212 # Make sure that we snagged all the symbols we need.
12213 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12214 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12215 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012216/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12217#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12218/* DATA imports from DLLs on WIN32 con't be const, because runtime
12219 relocations are performed -- see ld's documentation on pseudo-relocs. */
12220# define LT_DLSYM_CONST
12221#elif defined(__osf__)
12222/* This system does not cope well with relocations in const data. */
12223# define LT_DLSYM_CONST
12224#else
12225# define LT_DLSYM_CONST const
12226#endif
12227
cristy73bd4a52010-10-05 11:24:23 +000012228#ifdef __cplusplus
12229extern "C" {
12230#endif
12231
12232_LT_EOF
12233 # Now generate the symbol file.
12234 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12235
12236 cat <<_LT_EOF >> conftest.$ac_ext
12237
12238/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012239LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012240 const char *name;
12241 void *address;
12242}
12243lt__PROGRAM__LTX_preloaded_symbols[] =
12244{
12245 { "@PROGRAM@", (void *) 0 },
12246_LT_EOF
12247 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12248 cat <<\_LT_EOF >> conftest.$ac_ext
12249 {0, (void *) 0}
12250};
12251
12252/* This works around a problem in FreeBSD linker */
12253#ifdef FREEBSD_WORKAROUND
12254static const void *lt_preloaded_setup() {
12255 return lt__PROGRAM__LTX_preloaded_symbols;
12256}
12257#endif
12258
12259#ifdef __cplusplus
12260}
12261#endif
12262_LT_EOF
12263 # Now try linking the two files.
12264 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012265 lt_globsym_save_LIBS=$LIBS
12266 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012267 LIBS="conftstm.$ac_objext"
12268 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12270 (eval $ac_link) 2>&5
12271 ac_status=$?
12272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12273 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12274 pipe_works=yes
12275 fi
cristyda16f162011-02-19 23:52:17 +000012276 LIBS=$lt_globsym_save_LIBS
12277 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012278 else
12279 echo "cannot find nm_test_func in $nlist" >&5
12280 fi
12281 else
12282 echo "cannot find nm_test_var in $nlist" >&5
12283 fi
12284 else
12285 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12286 fi
12287 else
12288 echo "$progname: failed program was:" >&5
12289 cat conftest.$ac_ext >&5
12290 fi
12291 rm -rf conftest* conftst*
12292
12293 # Do not use the global_symbol_pipe unless it works.
12294 if test "$pipe_works" = yes; then
12295 break
12296 else
12297 lt_cv_sys_global_symbol_pipe=
12298 fi
12299done
12300
12301fi
12302
12303if test -z "$lt_cv_sys_global_symbol_pipe"; then
12304 lt_cv_sys_global_symbol_to_cdecl=
12305fi
12306if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12308$as_echo "failed" >&6; }
12309else
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12311$as_echo "ok" >&6; }
12312fi
12313
cristyda16f162011-02-19 23:52:17 +000012314# Response file support.
12315if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12316 nm_file_list_spec='@'
12317elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12318 nm_file_list_spec='@'
12319fi
cristy73bd4a52010-10-05 11:24:23 +000012320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
cristyda16f162011-02-19 23:52:17 +000012341
12342
12343
12344
12345
12346
12347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12348$as_echo_n "checking for sysroot... " >&6; }
12349
12350# Check whether --with-sysroot was given.
12351if test "${with_sysroot+set}" = set; then :
12352 withval=$with_sysroot;
12353else
12354 with_sysroot=no
12355fi
12356
12357
12358lt_sysroot=
12359case ${with_sysroot} in #(
12360 yes)
12361 if test "$GCC" = yes; then
12362 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12363 fi
12364 ;; #(
12365 /*)
12366 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12367 ;; #(
12368 no|'')
12369 ;; #(
12370 *)
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12372$as_echo "${with_sysroot}" >&6; }
12373 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12374 ;;
12375esac
12376
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12378$as_echo "${lt_sysroot:-no}" >&6; }
12379
12380
12381
12382
12383
cristy73bd4a52010-10-05 11:24:23 +000012384# Check whether --enable-libtool-lock was given.
12385if test "${enable_libtool_lock+set}" = set; then :
12386 enableval=$enable_libtool_lock;
12387fi
12388
12389test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12390
12391# Some flags need to be propagated to the compiler or linker for good
12392# libtool support.
12393case $host in
12394ia64-*-hpux*)
12395 # Find out which ABI we are using.
12396 echo 'int i;' > conftest.$ac_ext
12397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12398 (eval $ac_compile) 2>&5
12399 ac_status=$?
12400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12401 test $ac_status = 0; }; then
12402 case `/usr/bin/file conftest.$ac_objext` in
12403 *ELF-32*)
12404 HPUX_IA64_MODE="32"
12405 ;;
12406 *ELF-64*)
12407 HPUX_IA64_MODE="64"
12408 ;;
12409 esac
12410 fi
12411 rm -rf conftest*
12412 ;;
12413*-*-irix6*)
12414 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012415 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12417 (eval $ac_compile) 2>&5
12418 ac_status=$?
12419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12420 test $ac_status = 0; }; then
12421 if test "$lt_cv_prog_gnu_ld" = yes; then
12422 case `/usr/bin/file conftest.$ac_objext` in
12423 *32-bit*)
12424 LD="${LD-ld} -melf32bsmip"
12425 ;;
12426 *N32*)
12427 LD="${LD-ld} -melf32bmipn32"
12428 ;;
12429 *64-bit*)
12430 LD="${LD-ld} -melf64bmip"
12431 ;;
12432 esac
12433 else
12434 case `/usr/bin/file conftest.$ac_objext` in
12435 *32-bit*)
12436 LD="${LD-ld} -32"
12437 ;;
12438 *N32*)
12439 LD="${LD-ld} -n32"
12440 ;;
12441 *64-bit*)
12442 LD="${LD-ld} -64"
12443 ;;
12444 esac
12445 fi
12446 fi
12447 rm -rf conftest*
12448 ;;
12449
12450x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12451s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12452 # Find out which ABI we are using.
12453 echo 'int i;' > conftest.$ac_ext
12454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12455 (eval $ac_compile) 2>&5
12456 ac_status=$?
12457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12458 test $ac_status = 0; }; then
12459 case `/usr/bin/file conftest.o` in
12460 *32-bit*)
12461 case $host in
12462 x86_64-*kfreebsd*-gnu)
12463 LD="${LD-ld} -m elf_i386_fbsd"
12464 ;;
12465 x86_64-*linux*)
12466 LD="${LD-ld} -m elf_i386"
12467 ;;
12468 ppc64-*linux*|powerpc64-*linux*)
12469 LD="${LD-ld} -m elf32ppclinux"
12470 ;;
12471 s390x-*linux*)
12472 LD="${LD-ld} -m elf_s390"
12473 ;;
12474 sparc64-*linux*)
12475 LD="${LD-ld} -m elf32_sparc"
12476 ;;
12477 esac
12478 ;;
12479 *64-bit*)
12480 case $host in
12481 x86_64-*kfreebsd*-gnu)
12482 LD="${LD-ld} -m elf_x86_64_fbsd"
12483 ;;
12484 x86_64-*linux*)
12485 LD="${LD-ld} -m elf_x86_64"
12486 ;;
12487 ppc*-*linux*|powerpc*-*linux*)
12488 LD="${LD-ld} -m elf64ppc"
12489 ;;
12490 s390*-*linux*|s390*-*tpf*)
12491 LD="${LD-ld} -m elf64_s390"
12492 ;;
12493 sparc*-*linux*)
12494 LD="${LD-ld} -m elf64_sparc"
12495 ;;
12496 esac
12497 ;;
12498 esac
12499 fi
12500 rm -rf conftest*
12501 ;;
12502
12503*-*-sco3.2v5*)
12504 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12505 SAVE_CFLAGS="$CFLAGS"
12506 CFLAGS="$CFLAGS -belf"
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12508$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012509if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012510 $as_echo_n "(cached) " >&6
12511else
12512 ac_ext=c
12513ac_cpp='$CPP $CPPFLAGS'
12514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516ac_compiler_gnu=$ac_cv_c_compiler_gnu
12517
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519/* end confdefs.h. */
12520
12521int
12522main ()
12523{
12524
12525 ;
12526 return 0;
12527}
12528_ACEOF
12529if ac_fn_c_try_link "$LINENO"; then :
12530 lt_cv_cc_needs_belf=yes
12531else
12532 lt_cv_cc_needs_belf=no
12533fi
12534rm -f core conftest.err conftest.$ac_objext \
12535 conftest$ac_exeext conftest.$ac_ext
12536 ac_ext=c
12537ac_cpp='$CPP $CPPFLAGS'
12538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12540ac_compiler_gnu=$ac_cv_c_compiler_gnu
12541
12542fi
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12544$as_echo "$lt_cv_cc_needs_belf" >&6; }
12545 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12546 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12547 CFLAGS="$SAVE_CFLAGS"
12548 fi
12549 ;;
cristy99bd5232011-12-07 14:38:20 +000012550*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012551 # Find out which ABI we are using.
12552 echo 'int i;' > conftest.$ac_ext
12553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12554 (eval $ac_compile) 2>&5
12555 ac_status=$?
12556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12557 test $ac_status = 0; }; then
12558 case `/usr/bin/file conftest.o` in
12559 *64-bit*)
12560 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012561 yes*)
12562 case $host in
12563 i?86-*-solaris*)
12564 LD="${LD-ld} -m elf_x86_64"
12565 ;;
12566 sparc*-*-solaris*)
12567 LD="${LD-ld} -m elf64_sparc"
12568 ;;
12569 esac
12570 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12571 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12572 LD="${LD-ld}_sol2"
12573 fi
12574 ;;
cristy73bd4a52010-10-05 11:24:23 +000012575 *)
12576 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12577 LD="${LD-ld} -64"
12578 fi
12579 ;;
12580 esac
12581 ;;
12582 esac
12583 fi
12584 rm -rf conftest*
12585 ;;
12586esac
12587
12588need_locks="$enable_libtool_lock"
12589
cristyda16f162011-02-19 23:52:17 +000012590if test -n "$ac_tool_prefix"; then
12591 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12592set dummy ${ac_tool_prefix}mt; ac_word=$2
12593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594$as_echo_n "checking for $ac_word... " >&6; }
12595if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12596 $as_echo_n "(cached) " >&6
12597else
12598 if test -n "$MANIFEST_TOOL"; then
12599 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12600else
12601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602for as_dir in $PATH
12603do
12604 IFS=$as_save_IFS
12605 test -z "$as_dir" && as_dir=.
12606 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012608 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610 break 2
12611 fi
12612done
12613 done
12614IFS=$as_save_IFS
12615
12616fi
12617fi
12618MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12619if test -n "$MANIFEST_TOOL"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12621$as_echo "$MANIFEST_TOOL" >&6; }
12622else
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624$as_echo "no" >&6; }
12625fi
12626
12627
12628fi
12629if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12630 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12631 # Extract the first word of "mt", so it can be a program name with args.
12632set dummy mt; ac_word=$2
12633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634$as_echo_n "checking for $ac_word... " >&6; }
12635if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12636 $as_echo_n "(cached) " >&6
12637else
12638 if test -n "$ac_ct_MANIFEST_TOOL"; then
12639 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12640else
12641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12642for as_dir in $PATH
12643do
12644 IFS=$as_save_IFS
12645 test -z "$as_dir" && as_dir=.
12646 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012648 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12650 break 2
12651 fi
12652done
12653 done
12654IFS=$as_save_IFS
12655
12656fi
12657fi
12658ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12659if test -n "$ac_ct_MANIFEST_TOOL"; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12661$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12662else
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664$as_echo "no" >&6; }
12665fi
12666
12667 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12668 MANIFEST_TOOL=":"
12669 else
12670 case $cross_compiling:$ac_tool_warned in
12671yes:)
12672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12674ac_tool_warned=yes ;;
12675esac
12676 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12677 fi
12678else
12679 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12680fi
12681
12682test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12684$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12685if ${lt_cv_path_mainfest_tool+:} false; then :
12686 $as_echo_n "(cached) " >&6
12687else
12688 lt_cv_path_mainfest_tool=no
12689 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12690 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12691 cat conftest.err >&5
12692 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12693 lt_cv_path_mainfest_tool=yes
12694 fi
12695 rm -f conftest*
12696fi
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12698$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12699if test "x$lt_cv_path_mainfest_tool" != xyes; then
12700 MANIFEST_TOOL=:
12701fi
12702
12703
12704
12705
12706
cristy73bd4a52010-10-05 11:24:23 +000012707
12708 case $host_os in
12709 rhapsody* | darwin*)
12710 if test -n "$ac_tool_prefix"; then
12711 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12712set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12714$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012715if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012716 $as_echo_n "(cached) " >&6
12717else
12718 if test -n "$DSYMUTIL"; then
12719 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12720else
12721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12722for as_dir in $PATH
12723do
12724 IFS=$as_save_IFS
12725 test -z "$as_dir" && as_dir=.
12726 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012728 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12730 break 2
12731 fi
12732done
12733 done
12734IFS=$as_save_IFS
12735
12736fi
12737fi
12738DSYMUTIL=$ac_cv_prog_DSYMUTIL
12739if test -n "$DSYMUTIL"; then
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12741$as_echo "$DSYMUTIL" >&6; }
12742else
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12744$as_echo "no" >&6; }
12745fi
12746
12747
12748fi
12749if test -z "$ac_cv_prog_DSYMUTIL"; then
12750 ac_ct_DSYMUTIL=$DSYMUTIL
12751 # Extract the first word of "dsymutil", so it can be a program name with args.
12752set dummy dsymutil; ac_word=$2
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012755if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012756 $as_echo_n "(cached) " >&6
12757else
12758 if test -n "$ac_ct_DSYMUTIL"; then
12759 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12760else
12761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762for as_dir in $PATH
12763do
12764 IFS=$as_save_IFS
12765 test -z "$as_dir" && as_dir=.
12766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012768 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12770 break 2
12771 fi
12772done
12773 done
12774IFS=$as_save_IFS
12775
12776fi
12777fi
12778ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12779if test -n "$ac_ct_DSYMUTIL"; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12781$as_echo "$ac_ct_DSYMUTIL" >&6; }
12782else
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784$as_echo "no" >&6; }
12785fi
12786
12787 if test "x$ac_ct_DSYMUTIL" = x; then
12788 DSYMUTIL=":"
12789 else
12790 case $cross_compiling:$ac_tool_warned in
12791yes:)
12792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12794ac_tool_warned=yes ;;
12795esac
12796 DSYMUTIL=$ac_ct_DSYMUTIL
12797 fi
12798else
12799 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12800fi
12801
12802 if test -n "$ac_tool_prefix"; then
12803 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12804set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012807if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012808 $as_echo_n "(cached) " >&6
12809else
12810 if test -n "$NMEDIT"; then
12811 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12812else
12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814for as_dir in $PATH
12815do
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012820 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12823 fi
12824done
12825 done
12826IFS=$as_save_IFS
12827
12828fi
12829fi
12830NMEDIT=$ac_cv_prog_NMEDIT
12831if test -n "$NMEDIT"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12833$as_echo "$NMEDIT" >&6; }
12834else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
12837fi
12838
12839
12840fi
12841if test -z "$ac_cv_prog_NMEDIT"; then
12842 ac_ct_NMEDIT=$NMEDIT
12843 # Extract the first word of "nmedit", so it can be a program name with args.
12844set dummy nmedit; ac_word=$2
12845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12846$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012847if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012848 $as_echo_n "(cached) " >&6
12849else
12850 if test -n "$ac_ct_NMEDIT"; then
12851 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12852else
12853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854for as_dir in $PATH
12855do
12856 IFS=$as_save_IFS
12857 test -z "$as_dir" && as_dir=.
12858 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012860 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12862 break 2
12863 fi
12864done
12865 done
12866IFS=$as_save_IFS
12867
12868fi
12869fi
12870ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12871if test -n "$ac_ct_NMEDIT"; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12873$as_echo "$ac_ct_NMEDIT" >&6; }
12874else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876$as_echo "no" >&6; }
12877fi
12878
12879 if test "x$ac_ct_NMEDIT" = x; then
12880 NMEDIT=":"
12881 else
12882 case $cross_compiling:$ac_tool_warned in
12883yes:)
12884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12886ac_tool_warned=yes ;;
12887esac
12888 NMEDIT=$ac_ct_NMEDIT
12889 fi
12890else
12891 NMEDIT="$ac_cv_prog_NMEDIT"
12892fi
12893
12894 if test -n "$ac_tool_prefix"; then
12895 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12896set dummy ${ac_tool_prefix}lipo; ac_word=$2
12897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012899if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012900 $as_echo_n "(cached) " >&6
12901else
12902 if test -n "$LIPO"; then
12903 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12904else
12905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906for as_dir in $PATH
12907do
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012912 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12915 fi
12916done
12917 done
12918IFS=$as_save_IFS
12919
12920fi
12921fi
12922LIPO=$ac_cv_prog_LIPO
12923if test -n "$LIPO"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12925$as_echo "$LIPO" >&6; }
12926else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928$as_echo "no" >&6; }
12929fi
12930
12931
12932fi
12933if test -z "$ac_cv_prog_LIPO"; then
12934 ac_ct_LIPO=$LIPO
12935 # Extract the first word of "lipo", so it can be a program name with args.
12936set dummy lipo; ac_word=$2
12937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012939if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012940 $as_echo_n "(cached) " >&6
12941else
12942 if test -n "$ac_ct_LIPO"; then
12943 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12944else
12945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946for as_dir in $PATH
12947do
12948 IFS=$as_save_IFS
12949 test -z "$as_dir" && as_dir=.
12950 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012952 ac_cv_prog_ac_ct_LIPO="lipo"
12953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12954 break 2
12955 fi
12956done
12957 done
12958IFS=$as_save_IFS
12959
12960fi
12961fi
12962ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12963if test -n "$ac_ct_LIPO"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12965$as_echo "$ac_ct_LIPO" >&6; }
12966else
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968$as_echo "no" >&6; }
12969fi
12970
12971 if test "x$ac_ct_LIPO" = x; then
12972 LIPO=":"
12973 else
12974 case $cross_compiling:$ac_tool_warned in
12975yes:)
12976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12978ac_tool_warned=yes ;;
12979esac
12980 LIPO=$ac_ct_LIPO
12981 fi
12982else
12983 LIPO="$ac_cv_prog_LIPO"
12984fi
12985
12986 if test -n "$ac_tool_prefix"; then
12987 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12988set dummy ${ac_tool_prefix}otool; ac_word=$2
12989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012991if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012992 $as_echo_n "(cached) " >&6
12993else
12994 if test -n "$OTOOL"; then
12995 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12996else
12997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998for as_dir in $PATH
12999do
13000 IFS=$as_save_IFS
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013004 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 break 2
13007 fi
13008done
13009 done
13010IFS=$as_save_IFS
13011
13012fi
13013fi
13014OTOOL=$ac_cv_prog_OTOOL
13015if test -n "$OTOOL"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13017$as_echo "$OTOOL" >&6; }
13018else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020$as_echo "no" >&6; }
13021fi
13022
13023
13024fi
13025if test -z "$ac_cv_prog_OTOOL"; then
13026 ac_ct_OTOOL=$OTOOL
13027 # Extract the first word of "otool", so it can be a program name with args.
13028set dummy otool; ac_word=$2
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013031if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013032 $as_echo_n "(cached) " >&6
13033else
13034 if test -n "$ac_ct_OTOOL"; then
13035 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13036else
13037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038for as_dir in $PATH
13039do
13040 IFS=$as_save_IFS
13041 test -z "$as_dir" && as_dir=.
13042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013044 ac_cv_prog_ac_ct_OTOOL="otool"
13045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046 break 2
13047 fi
13048done
13049 done
13050IFS=$as_save_IFS
13051
13052fi
13053fi
13054ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13055if test -n "$ac_ct_OTOOL"; then
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13057$as_echo "$ac_ct_OTOOL" >&6; }
13058else
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060$as_echo "no" >&6; }
13061fi
13062
13063 if test "x$ac_ct_OTOOL" = x; then
13064 OTOOL=":"
13065 else
13066 case $cross_compiling:$ac_tool_warned in
13067yes:)
13068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13070ac_tool_warned=yes ;;
13071esac
13072 OTOOL=$ac_ct_OTOOL
13073 fi
13074else
13075 OTOOL="$ac_cv_prog_OTOOL"
13076fi
13077
13078 if test -n "$ac_tool_prefix"; then
13079 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13080set dummy ${ac_tool_prefix}otool64; ac_word=$2
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13082$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013083if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013084 $as_echo_n "(cached) " >&6
13085else
13086 if test -n "$OTOOL64"; then
13087 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13088else
13089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090for as_dir in $PATH
13091do
13092 IFS=$as_save_IFS
13093 test -z "$as_dir" && as_dir=.
13094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013096 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098 break 2
13099 fi
13100done
13101 done
13102IFS=$as_save_IFS
13103
13104fi
13105fi
13106OTOOL64=$ac_cv_prog_OTOOL64
13107if test -n "$OTOOL64"; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13109$as_echo "$OTOOL64" >&6; }
13110else
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112$as_echo "no" >&6; }
13113fi
13114
13115
13116fi
13117if test -z "$ac_cv_prog_OTOOL64"; then
13118 ac_ct_OTOOL64=$OTOOL64
13119 # Extract the first word of "otool64", so it can be a program name with args.
13120set dummy otool64; ac_word=$2
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013123if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013124 $as_echo_n "(cached) " >&6
13125else
13126 if test -n "$ac_ct_OTOOL64"; then
13127 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13128else
13129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130for as_dir in $PATH
13131do
13132 IFS=$as_save_IFS
13133 test -z "$as_dir" && as_dir=.
13134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013136 ac_cv_prog_ac_ct_OTOOL64="otool64"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 break 2
13139 fi
13140done
13141 done
13142IFS=$as_save_IFS
13143
13144fi
13145fi
13146ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13147if test -n "$ac_ct_OTOOL64"; then
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13149$as_echo "$ac_ct_OTOOL64" >&6; }
13150else
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152$as_echo "no" >&6; }
13153fi
13154
13155 if test "x$ac_ct_OTOOL64" = x; then
13156 OTOOL64=":"
13157 else
13158 case $cross_compiling:$ac_tool_warned in
13159yes:)
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13162ac_tool_warned=yes ;;
13163esac
13164 OTOOL64=$ac_ct_OTOOL64
13165 fi
13166else
13167 OTOOL64="$ac_cv_prog_OTOOL64"
13168fi
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13197$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013198if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013199 $as_echo_n "(cached) " >&6
13200else
13201 lt_cv_apple_cc_single_mod=no
13202 if test -z "${LT_MULTI_MODULE}"; then
13203 # By default we will add the -single_module flag. You can override
13204 # by either setting the environment variable LT_MULTI_MODULE
13205 # non-empty at configure time, or by adding -multi_module to the
13206 # link flags.
13207 rm -rf libconftest.dylib*
13208 echo "int foo(void){return 1;}" > conftest.c
13209 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13210-dynamiclib -Wl,-single_module conftest.c" >&5
13211 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13212 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13213 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013214 # If there is a non-empty error log, and "single_module"
13215 # appears in it, assume the flag caused a linker warning
13216 if test -s conftest.err && $GREP single_module conftest.err; then
13217 cat conftest.err >&5
13218 # Otherwise, if the output was created with a 0 exit code from
13219 # the compiler, it worked.
13220 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013221 lt_cv_apple_cc_single_mod=yes
13222 else
13223 cat conftest.err >&5
13224 fi
13225 rm -rf libconftest.dylib*
13226 rm -f conftest.*
13227 fi
13228fi
13229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13230$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013231
cristy73bd4a52010-10-05 11:24:23 +000013232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13233$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013234if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013235 $as_echo_n "(cached) " >&6
13236else
13237 lt_cv_ld_exported_symbols_list=no
13238 save_LDFLAGS=$LDFLAGS
13239 echo "_main" > conftest.sym
13240 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242/* end confdefs.h. */
13243
13244int
13245main ()
13246{
13247
13248 ;
13249 return 0;
13250}
13251_ACEOF
13252if ac_fn_c_try_link "$LINENO"; then :
13253 lt_cv_ld_exported_symbols_list=yes
13254else
13255 lt_cv_ld_exported_symbols_list=no
13256fi
13257rm -f core conftest.err conftest.$ac_objext \
13258 conftest$ac_exeext conftest.$ac_ext
13259 LDFLAGS="$save_LDFLAGS"
13260
13261fi
13262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13263$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013264
cristy0c60a692010-11-04 01:09:47 +000013265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13266$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013267if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013268 $as_echo_n "(cached) " >&6
13269else
13270 lt_cv_ld_force_load=no
13271 cat > conftest.c << _LT_EOF
13272int forced_loaded() { return 2;}
13273_LT_EOF
13274 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13275 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13276 echo "$AR cru libconftest.a conftest.o" >&5
13277 $AR cru libconftest.a conftest.o 2>&5
13278 echo "$RANLIB libconftest.a" >&5
13279 $RANLIB libconftest.a 2>&5
13280 cat > conftest.c << _LT_EOF
13281int main() { return 0;}
13282_LT_EOF
13283 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13284 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13285 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013286 if test -s conftest.err && $GREP force_load conftest.err; then
13287 cat conftest.err >&5
13288 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013289 lt_cv_ld_force_load=yes
13290 else
13291 cat conftest.err >&5
13292 fi
13293 rm -f conftest.err libconftest.a conftest conftest.c
13294 rm -rf conftest.dSYM
13295
13296fi
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13298$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013299 case $host_os in
13300 rhapsody* | darwin1.[012])
13301 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13302 darwin1.*)
13303 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13304 darwin*) # darwin 5.x on
13305 # if running on 10.5 or later, the deployment target defaults
13306 # to the OS version, if on x86, and 10.4, the deployment
13307 # target defaults to 10.4. Don't you love it?
13308 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13309 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13310 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13311 10.[012]*)
13312 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13313 10.*)
13314 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13315 esac
13316 ;;
13317 esac
13318 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13319 _lt_dar_single_mod='$single_module'
13320 fi
13321 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13322 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13323 else
13324 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13325 fi
cristy0c60a692010-11-04 01:09:47 +000013326 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013327 _lt_dsymutil='~$DSYMUTIL $lib || :'
13328 else
13329 _lt_dsymutil=
13330 fi
13331 ;;
13332 esac
13333
13334for ac_header in dlfcn.h
13335do :
13336 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13337"
cristyda16f162011-02-19 23:52:17 +000013338if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013339 cat >>confdefs.h <<_ACEOF
13340#define HAVE_DLFCN_H 1
13341_ACEOF
13342
13343fi
13344
13345done
13346
13347
13348
cristy73bd4a52010-10-05 11:24:23 +000013349
cristyda16f162011-02-19 23:52:17 +000013350func_stripname_cnf ()
13351{
13352 case ${2} in
13353 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13354 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13355 esac
13356} # func_stripname_cnf
13357
13358
13359
cristy73bd4a52010-10-05 11:24:23 +000013360
13361
13362# Set options
13363enable_win32_dll=yes
13364
13365case $host in
cristy0c60a692010-11-04 01:09:47 +000013366*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013367 if test -n "$ac_tool_prefix"; then
13368 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13369set dummy ${ac_tool_prefix}as; ac_word=$2
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013372if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013373 $as_echo_n "(cached) " >&6
13374else
13375 if test -n "$AS"; then
13376 ac_cv_prog_AS="$AS" # Let the user override the test.
13377else
13378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379for as_dir in $PATH
13380do
13381 IFS=$as_save_IFS
13382 test -z "$as_dir" && as_dir=.
13383 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013385 ac_cv_prog_AS="${ac_tool_prefix}as"
13386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13387 break 2
13388 fi
13389done
13390 done
13391IFS=$as_save_IFS
13392
13393fi
13394fi
13395AS=$ac_cv_prog_AS
13396if test -n "$AS"; then
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13398$as_echo "$AS" >&6; }
13399else
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401$as_echo "no" >&6; }
13402fi
13403
13404
13405fi
13406if test -z "$ac_cv_prog_AS"; then
13407 ac_ct_AS=$AS
13408 # Extract the first word of "as", so it can be a program name with args.
13409set dummy as; ac_word=$2
13410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13411$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013412if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013413 $as_echo_n "(cached) " >&6
13414else
13415 if test -n "$ac_ct_AS"; then
13416 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13417else
13418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419for as_dir in $PATH
13420do
13421 IFS=$as_save_IFS
13422 test -z "$as_dir" && as_dir=.
13423 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013425 ac_cv_prog_ac_ct_AS="as"
13426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13427 break 2
13428 fi
13429done
13430 done
13431IFS=$as_save_IFS
13432
13433fi
13434fi
13435ac_ct_AS=$ac_cv_prog_ac_ct_AS
13436if test -n "$ac_ct_AS"; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13438$as_echo "$ac_ct_AS" >&6; }
13439else
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441$as_echo "no" >&6; }
13442fi
13443
13444 if test "x$ac_ct_AS" = x; then
13445 AS="false"
13446 else
13447 case $cross_compiling:$ac_tool_warned in
13448yes:)
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13451ac_tool_warned=yes ;;
13452esac
13453 AS=$ac_ct_AS
13454 fi
13455else
13456 AS="$ac_cv_prog_AS"
13457fi
13458
13459 if test -n "$ac_tool_prefix"; then
13460 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13461set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13463$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013464if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013465 $as_echo_n "(cached) " >&6
13466else
13467 if test -n "$DLLTOOL"; then
13468 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13469else
13470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471for as_dir in $PATH
13472do
13473 IFS=$as_save_IFS
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013477 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 break 2
13480 fi
13481done
13482 done
13483IFS=$as_save_IFS
13484
13485fi
13486fi
13487DLLTOOL=$ac_cv_prog_DLLTOOL
13488if test -n "$DLLTOOL"; then
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13490$as_echo "$DLLTOOL" >&6; }
13491else
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493$as_echo "no" >&6; }
13494fi
13495
13496
13497fi
13498if test -z "$ac_cv_prog_DLLTOOL"; then
13499 ac_ct_DLLTOOL=$DLLTOOL
13500 # Extract the first word of "dlltool", so it can be a program name with args.
13501set dummy dlltool; ac_word=$2
13502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13503$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013504if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013505 $as_echo_n "(cached) " >&6
13506else
13507 if test -n "$ac_ct_DLLTOOL"; then
13508 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13509else
13510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13511for as_dir in $PATH
13512do
13513 IFS=$as_save_IFS
13514 test -z "$as_dir" && as_dir=.
13515 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013517 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13519 break 2
13520 fi
13521done
13522 done
13523IFS=$as_save_IFS
13524
13525fi
13526fi
13527ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13528if test -n "$ac_ct_DLLTOOL"; then
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13530$as_echo "$ac_ct_DLLTOOL" >&6; }
13531else
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533$as_echo "no" >&6; }
13534fi
13535
13536 if test "x$ac_ct_DLLTOOL" = x; then
13537 DLLTOOL="false"
13538 else
13539 case $cross_compiling:$ac_tool_warned in
13540yes:)
13541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13543ac_tool_warned=yes ;;
13544esac
13545 DLLTOOL=$ac_ct_DLLTOOL
13546 fi
13547else
13548 DLLTOOL="$ac_cv_prog_DLLTOOL"
13549fi
13550
13551 if test -n "$ac_tool_prefix"; then
13552 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13553set dummy ${ac_tool_prefix}objdump; ac_word=$2
13554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013556if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013557 $as_echo_n "(cached) " >&6
13558else
13559 if test -n "$OBJDUMP"; then
13560 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13561else
13562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13563for as_dir in $PATH
13564do
13565 IFS=$as_save_IFS
13566 test -z "$as_dir" && as_dir=.
13567 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013569 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13571 break 2
13572 fi
13573done
13574 done
13575IFS=$as_save_IFS
13576
13577fi
13578fi
13579OBJDUMP=$ac_cv_prog_OBJDUMP
13580if test -n "$OBJDUMP"; then
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13582$as_echo "$OBJDUMP" >&6; }
13583else
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585$as_echo "no" >&6; }
13586fi
13587
13588
13589fi
13590if test -z "$ac_cv_prog_OBJDUMP"; then
13591 ac_ct_OBJDUMP=$OBJDUMP
13592 # Extract the first word of "objdump", so it can be a program name with args.
13593set dummy objdump; ac_word=$2
13594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013596if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013597 $as_echo_n "(cached) " >&6
13598else
13599 if test -n "$ac_ct_OBJDUMP"; then
13600 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13601else
13602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603for as_dir in $PATH
13604do
13605 IFS=$as_save_IFS
13606 test -z "$as_dir" && as_dir=.
13607 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013609 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13611 break 2
13612 fi
13613done
13614 done
13615IFS=$as_save_IFS
13616
13617fi
13618fi
13619ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13620if test -n "$ac_ct_OBJDUMP"; then
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13622$as_echo "$ac_ct_OBJDUMP" >&6; }
13623else
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13625$as_echo "no" >&6; }
13626fi
13627
13628 if test "x$ac_ct_OBJDUMP" = x; then
13629 OBJDUMP="false"
13630 else
13631 case $cross_compiling:$ac_tool_warned in
13632yes:)
13633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13635ac_tool_warned=yes ;;
13636esac
13637 OBJDUMP=$ac_ct_OBJDUMP
13638 fi
13639else
13640 OBJDUMP="$ac_cv_prog_OBJDUMP"
13641fi
13642
13643 ;;
13644esac
13645
13646test -z "$AS" && AS=as
13647
13648
13649
13650
13651
13652test -z "$DLLTOOL" && DLLTOOL=dlltool
13653
13654
13655
13656
13657
13658test -z "$OBJDUMP" && OBJDUMP=objdump
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668 # Check whether --enable-shared was given.
13669if test "${enable_shared+set}" = set; then :
13670 enableval=$enable_shared; p=${PACKAGE-default}
13671 case $enableval in
13672 yes) enable_shared=yes ;;
13673 no) enable_shared=no ;;
13674 *)
13675 enable_shared=no
13676 # Look at the argument we got. We use all the common list separators.
13677 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13678 for pkg in $enableval; do
13679 IFS="$lt_save_ifs"
13680 if test "X$pkg" = "X$p"; then
13681 enable_shared=yes
13682 fi
13683 done
13684 IFS="$lt_save_ifs"
13685 ;;
13686 esac
13687else
13688 enable_shared=yes
13689fi
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699 # Check whether --enable-static was given.
13700if test "${enable_static+set}" = set; then :
13701 enableval=$enable_static; p=${PACKAGE-default}
13702 case $enableval in
13703 yes) enable_static=yes ;;
13704 no) enable_static=no ;;
13705 *)
13706 enable_static=no
13707 # Look at the argument we got. We use all the common list separators.
13708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13709 for pkg in $enableval; do
13710 IFS="$lt_save_ifs"
13711 if test "X$pkg" = "X$p"; then
13712 enable_static=yes
13713 fi
13714 done
13715 IFS="$lt_save_ifs"
13716 ;;
13717 esac
13718else
13719 enable_static=yes
13720fi
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731# Check whether --with-pic was given.
13732if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013733 withval=$with_pic; lt_p=${PACKAGE-default}
13734 case $withval in
13735 yes|no) pic_mode=$withval ;;
13736 *)
13737 pic_mode=default
13738 # Look at the argument we got. We use all the common list separators.
13739 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13740 for lt_pkg in $withval; do
13741 IFS="$lt_save_ifs"
13742 if test "X$lt_pkg" = "X$lt_p"; then
13743 pic_mode=yes
13744 fi
13745 done
13746 IFS="$lt_save_ifs"
13747 ;;
13748 esac
cristy73bd4a52010-10-05 11:24:23 +000013749else
13750 pic_mode=default
13751fi
13752
13753
13754test -z "$pic_mode" && pic_mode=default
13755
13756
13757
13758
13759
13760
13761
13762 # Check whether --enable-fast-install was given.
13763if test "${enable_fast_install+set}" = set; then :
13764 enableval=$enable_fast_install; p=${PACKAGE-default}
13765 case $enableval in
13766 yes) enable_fast_install=yes ;;
13767 no) enable_fast_install=no ;;
13768 *)
13769 enable_fast_install=no
13770 # Look at the argument we got. We use all the common list separators.
13771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13772 for pkg in $enableval; do
13773 IFS="$lt_save_ifs"
13774 if test "X$pkg" = "X$p"; then
13775 enable_fast_install=yes
13776 fi
13777 done
13778 IFS="$lt_save_ifs"
13779 ;;
13780 esac
13781else
13782 enable_fast_install=yes
13783fi
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795# This can be used to rebuild libtool when needed
13796LIBTOOL_DEPS="$ltmain"
13797
13798# Always use our own libtool.
13799LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
cristy0c60a692010-11-04 01:09:47 +000013825
cristy99bd5232011-12-07 14:38:20 +000013826
13827
13828
13829
cristy73bd4a52010-10-05 11:24:23 +000013830test -z "$LN_S" && LN_S="ln -s"
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845if test -n "${ZSH_VERSION+set}" ; then
13846 setopt NO_GLOB_SUBST
13847fi
13848
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13850$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013851if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013852 $as_echo_n "(cached) " >&6
13853else
13854 rm -f .libs 2>/dev/null
13855mkdir .libs 2>/dev/null
13856if test -d .libs; then
13857 lt_cv_objdir=.libs
13858else
13859 # MS-DOS does not allow filenames that begin with a dot.
13860 lt_cv_objdir=_libs
13861fi
13862rmdir .libs 2>/dev/null
13863fi
13864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13865$as_echo "$lt_cv_objdir" >&6; }
13866objdir=$lt_cv_objdir
13867
13868
13869
13870
13871
13872cat >>confdefs.h <<_ACEOF
13873#define LT_OBJDIR "$lt_cv_objdir/"
13874_ACEOF
13875
13876
13877
13878
cristy73bd4a52010-10-05 11:24:23 +000013879case $host_os in
13880aix3*)
13881 # AIX sometimes has problems with the GCC collect2 program. For some
13882 # reason, if we set the COLLECT_NAMES environment variable, the problems
13883 # vanish in a puff of smoke.
13884 if test "X${COLLECT_NAMES+set}" != Xset; then
13885 COLLECT_NAMES=
13886 export COLLECT_NAMES
13887 fi
13888 ;;
13889esac
13890
cristy73bd4a52010-10-05 11:24:23 +000013891# Global variables:
13892ofile=libtool
13893can_build_shared=yes
13894
13895# All known linkers require a `.a' archive for static linking (except MSVC,
13896# which needs '.lib').
13897libext=a
13898
13899with_gnu_ld="$lt_cv_prog_gnu_ld"
13900
13901old_CC="$CC"
13902old_CFLAGS="$CFLAGS"
13903
13904# Set sane defaults for various variables
13905test -z "$CC" && CC=cc
13906test -z "$LTCC" && LTCC=$CC
13907test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13908test -z "$LD" && LD=ld
13909test -z "$ac_objext" && ac_objext=o
13910
13911for cc_temp in $compiler""; do
13912 case $cc_temp in
13913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13915 \-*) ;;
13916 *) break;;
13917 esac
13918done
cristy0c60a692010-11-04 01:09:47 +000013919cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013920
13921
13922# Only perform the check for file, if the check method requires it
13923test -z "$MAGIC_CMD" && MAGIC_CMD=file
13924case $deplibs_check_method in
13925file_magic*)
13926 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13928$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013929if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013930 $as_echo_n "(cached) " >&6
13931else
13932 case $MAGIC_CMD in
13933[\\/*] | ?:[\\/]*)
13934 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13935 ;;
13936*)
13937 lt_save_MAGIC_CMD="$MAGIC_CMD"
13938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13939 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13940 for ac_dir in $ac_dummy; do
13941 IFS="$lt_save_ifs"
13942 test -z "$ac_dir" && ac_dir=.
13943 if test -f $ac_dir/${ac_tool_prefix}file; then
13944 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13945 if test -n "$file_magic_test_file"; then
13946 case $deplibs_check_method in
13947 "file_magic "*)
13948 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13950 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13951 $EGREP "$file_magic_regex" > /dev/null; then
13952 :
13953 else
13954 cat <<_LT_EOF 1>&2
13955
13956*** Warning: the command libtool uses to detect shared libraries,
13957*** $file_magic_cmd, produces output that libtool cannot recognize.
13958*** The result is that libtool may fail to recognize shared libraries
13959*** as such. This will affect the creation of libtool libraries that
13960*** depend on shared libraries, but programs linked with such libtool
13961*** libraries will work regardless of this problem. Nevertheless, you
13962*** may want to report the problem to your system manager and/or to
13963*** bug-libtool@gnu.org
13964
13965_LT_EOF
13966 fi ;;
13967 esac
13968 fi
13969 break
13970 fi
13971 done
13972 IFS="$lt_save_ifs"
13973 MAGIC_CMD="$lt_save_MAGIC_CMD"
13974 ;;
13975esac
13976fi
13977
13978MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13979if test -n "$MAGIC_CMD"; then
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13981$as_echo "$MAGIC_CMD" >&6; }
13982else
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13984$as_echo "no" >&6; }
13985fi
13986
13987
13988
13989
13990
13991if test -z "$lt_cv_path_MAGIC_CMD"; then
13992 if test -n "$ac_tool_prefix"; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13994$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013995if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013996 $as_echo_n "(cached) " >&6
13997else
13998 case $MAGIC_CMD in
13999[\\/*] | ?:[\\/]*)
14000 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14001 ;;
14002*)
14003 lt_save_MAGIC_CMD="$MAGIC_CMD"
14004 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14005 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14006 for ac_dir in $ac_dummy; do
14007 IFS="$lt_save_ifs"
14008 test -z "$ac_dir" && ac_dir=.
14009 if test -f $ac_dir/file; then
14010 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14011 if test -n "$file_magic_test_file"; then
14012 case $deplibs_check_method in
14013 "file_magic "*)
14014 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14015 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14016 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14017 $EGREP "$file_magic_regex" > /dev/null; then
14018 :
14019 else
14020 cat <<_LT_EOF 1>&2
14021
14022*** Warning: the command libtool uses to detect shared libraries,
14023*** $file_magic_cmd, produces output that libtool cannot recognize.
14024*** The result is that libtool may fail to recognize shared libraries
14025*** as such. This will affect the creation of libtool libraries that
14026*** depend on shared libraries, but programs linked with such libtool
14027*** libraries will work regardless of this problem. Nevertheless, you
14028*** may want to report the problem to your system manager and/or to
14029*** bug-libtool@gnu.org
14030
14031_LT_EOF
14032 fi ;;
14033 esac
14034 fi
14035 break
14036 fi
14037 done
14038 IFS="$lt_save_ifs"
14039 MAGIC_CMD="$lt_save_MAGIC_CMD"
14040 ;;
14041esac
14042fi
14043
14044MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14045if test -n "$MAGIC_CMD"; then
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14047$as_echo "$MAGIC_CMD" >&6; }
14048else
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14050$as_echo "no" >&6; }
14051fi
14052
14053
14054 else
14055 MAGIC_CMD=:
14056 fi
14057fi
14058
14059 fi
14060 ;;
14061esac
14062
14063# Use C for the default configuration in the libtool script
14064
14065lt_save_CC="$CC"
14066ac_ext=c
14067ac_cpp='$CPP $CPPFLAGS'
14068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14070ac_compiler_gnu=$ac_cv_c_compiler_gnu
14071
14072
14073# Source file extension for C test sources.
14074ac_ext=c
14075
14076# Object file extension for compiled C test sources.
14077objext=o
14078objext=$objext
14079
14080# Code to be used in simple compile tests
14081lt_simple_compile_test_code="int some_variable = 0;"
14082
14083# Code to be used in simple link tests
14084lt_simple_link_test_code='int main(){return(0);}'
14085
14086
14087
14088
14089
14090
14091
14092# If no C compiler was specified, use CC.
14093LTCC=${LTCC-"$CC"}
14094
14095# If no C compiler flags were specified, use CFLAGS.
14096LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14097
14098# Allow CC to be a program name with arguments.
14099compiler=$CC
14100
14101# Save the default compiler, since it gets overwritten when the other
14102# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14103compiler_DEFAULT=$CC
14104
14105# save warnings/boilerplate of simple test code
14106ac_outfile=conftest.$ac_objext
14107echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14108eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14109_lt_compiler_boilerplate=`cat conftest.err`
14110$RM conftest*
14111
14112ac_outfile=conftest.$ac_objext
14113echo "$lt_simple_link_test_code" >conftest.$ac_ext
14114eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14115_lt_linker_boilerplate=`cat conftest.err`
14116$RM -r conftest*
14117
14118
14119## CAVEAT EMPTOR:
14120## There is no encapsulation within the following macros, do not change
14121## the running order or otherwise move them around unless you know exactly
14122## what you are doing...
14123if test -n "$compiler"; then
14124
14125lt_prog_compiler_no_builtin_flag=
14126
14127if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014128 case $cc_basename in
14129 nvcc*)
14130 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14131 *)
14132 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14133 esac
cristy73bd4a52010-10-05 11:24:23 +000014134
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14136$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014137if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014138 $as_echo_n "(cached) " >&6
14139else
14140 lt_cv_prog_compiler_rtti_exceptions=no
14141 ac_outfile=conftest.$ac_objext
14142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14143 lt_compiler_flag="-fno-rtti -fno-exceptions"
14144 # Insert the option either (1) after the last *FLAGS variable, or
14145 # (2) before a word containing "conftest.", or (3) at the end.
14146 # Note that $ac_compile itself does not contain backslashes and begins
14147 # with a dollar sign (not a hyphen), so the echo should work correctly.
14148 # The option is referenced via a variable to avoid confusing sed.
14149 lt_compile=`echo "$ac_compile" | $SED \
14150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14152 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014154 (eval "$lt_compile" 2>conftest.err)
14155 ac_status=$?
14156 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014158 if (exit $ac_status) && test -s "$ac_outfile"; then
14159 # The compiler can only warn and ignore the option if not recognized
14160 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14163 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14164 lt_cv_prog_compiler_rtti_exceptions=yes
14165 fi
14166 fi
14167 $RM conftest*
14168
14169fi
14170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14171$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14172
14173if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14174 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14175else
14176 :
14177fi
14178
14179fi
14180
14181
14182
14183
14184
14185
14186 lt_prog_compiler_wl=
14187lt_prog_compiler_pic=
14188lt_prog_compiler_static=
14189
cristy73bd4a52010-10-05 11:24:23 +000014190
14191 if test "$GCC" = yes; then
14192 lt_prog_compiler_wl='-Wl,'
14193 lt_prog_compiler_static='-static'
14194
14195 case $host_os in
14196 aix*)
14197 # All AIX code is PIC.
14198 if test "$host_cpu" = ia64; then
14199 # AIX 5 now supports IA64 processor
14200 lt_prog_compiler_static='-Bstatic'
14201 fi
14202 ;;
14203
14204 amigaos*)
14205 case $host_cpu in
14206 powerpc)
14207 # see comment about AmigaOS4 .so support
14208 lt_prog_compiler_pic='-fPIC'
14209 ;;
14210 m68k)
14211 # FIXME: we need at least 68020 code to build shared libraries, but
14212 # adding the `-m68020' flag to GCC prevents building anything better,
14213 # like `-m68040'.
14214 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14215 ;;
14216 esac
14217 ;;
14218
14219 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14220 # PIC is the default for these OSes.
14221 ;;
14222
14223 mingw* | cygwin* | pw32* | os2* | cegcc*)
14224 # This hack is so that the source file can tell whether it is being
14225 # built for inclusion in a dll (and should export symbols for example).
14226 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14227 # (--disable-auto-import) libraries
14228 lt_prog_compiler_pic='-DDLL_EXPORT'
14229 ;;
14230
14231 darwin* | rhapsody*)
14232 # PIC is the default on this platform
14233 # Common symbols not allowed in MH_DYLIB files
14234 lt_prog_compiler_pic='-fno-common'
14235 ;;
14236
cristy0c60a692010-11-04 01:09:47 +000014237 haiku*)
14238 # PIC is the default for Haiku.
14239 # The "-static" flag exists, but is broken.
14240 lt_prog_compiler_static=
14241 ;;
14242
cristy73bd4a52010-10-05 11:24:23 +000014243 hpux*)
14244 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14245 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14246 # sets the default TLS model and affects inlining.
14247 case $host_cpu in
14248 hppa*64*)
14249 # +Z the default
14250 ;;
14251 *)
14252 lt_prog_compiler_pic='-fPIC'
14253 ;;
14254 esac
14255 ;;
14256
14257 interix[3-9]*)
14258 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14259 # Instead, we relocate shared libraries at runtime.
14260 ;;
14261
14262 msdosdjgpp*)
14263 # Just because we use GCC doesn't mean we suddenly get shared libraries
14264 # on systems that don't support them.
14265 lt_prog_compiler_can_build_shared=no
14266 enable_shared=no
14267 ;;
14268
14269 *nto* | *qnx*)
14270 # QNX uses GNU C++, but need to define -shared option too, otherwise
14271 # it will coredump.
14272 lt_prog_compiler_pic='-fPIC -shared'
14273 ;;
14274
14275 sysv4*MP*)
14276 if test -d /usr/nec; then
14277 lt_prog_compiler_pic=-Kconform_pic
14278 fi
14279 ;;
14280
14281 *)
14282 lt_prog_compiler_pic='-fPIC'
14283 ;;
14284 esac
cristy0c60a692010-11-04 01:09:47 +000014285
14286 case $cc_basename in
14287 nvcc*) # Cuda Compiler Driver 2.2
14288 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014289 if test -n "$lt_prog_compiler_pic"; then
14290 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14291 fi
cristy0c60a692010-11-04 01:09:47 +000014292 ;;
14293 esac
cristy73bd4a52010-10-05 11:24:23 +000014294 else
14295 # PORTME Check for flag to pass linker flags through the system compiler.
14296 case $host_os in
14297 aix*)
14298 lt_prog_compiler_wl='-Wl,'
14299 if test "$host_cpu" = ia64; then
14300 # AIX 5 now supports IA64 processor
14301 lt_prog_compiler_static='-Bstatic'
14302 else
14303 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14304 fi
14305 ;;
14306
14307 mingw* | cygwin* | pw32* | os2* | cegcc*)
14308 # This hack is so that the source file can tell whether it is being
14309 # built for inclusion in a dll (and should export symbols for example).
14310 lt_prog_compiler_pic='-DDLL_EXPORT'
14311 ;;
14312
14313 hpux9* | hpux10* | hpux11*)
14314 lt_prog_compiler_wl='-Wl,'
14315 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14316 # not for PA HP-UX.
14317 case $host_cpu in
14318 hppa*64*|ia64*)
14319 # +Z the default
14320 ;;
14321 *)
14322 lt_prog_compiler_pic='+Z'
14323 ;;
14324 esac
14325 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14326 lt_prog_compiler_static='${wl}-a ${wl}archive'
14327 ;;
14328
14329 irix5* | irix6* | nonstopux*)
14330 lt_prog_compiler_wl='-Wl,'
14331 # PIC (with -KPIC) is the default.
14332 lt_prog_compiler_static='-non_shared'
14333 ;;
14334
cristy0c60a692010-11-04 01:09:47 +000014335 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014336 case $cc_basename in
14337 # old Intel for x86_64 which still supported -KPIC.
14338 ecc*)
14339 lt_prog_compiler_wl='-Wl,'
14340 lt_prog_compiler_pic='-KPIC'
14341 lt_prog_compiler_static='-static'
14342 ;;
14343 # icc used to be incompatible with GCC.
14344 # ICC 10 doesn't accept -KPIC any more.
14345 icc* | ifort*)
14346 lt_prog_compiler_wl='-Wl,'
14347 lt_prog_compiler_pic='-fPIC'
14348 lt_prog_compiler_static='-static'
14349 ;;
14350 # Lahey Fortran 8.1.
14351 lf95*)
14352 lt_prog_compiler_wl='-Wl,'
14353 lt_prog_compiler_pic='--shared'
14354 lt_prog_compiler_static='--static'
14355 ;;
cristyda16f162011-02-19 23:52:17 +000014356 nagfor*)
14357 # NAG Fortran compiler
14358 lt_prog_compiler_wl='-Wl,-Wl,,'
14359 lt_prog_compiler_pic='-PIC'
14360 lt_prog_compiler_static='-Bstatic'
14361 ;;
cristy0c60a692010-11-04 01:09:47 +000014362 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014363 # Portland Group compilers (*not* the Pentium gcc compiler,
14364 # which looks to be a dead project)
14365 lt_prog_compiler_wl='-Wl,'
14366 lt_prog_compiler_pic='-fpic'
14367 lt_prog_compiler_static='-Bstatic'
14368 ;;
14369 ccc*)
14370 lt_prog_compiler_wl='-Wl,'
14371 # All Alpha code is PIC.
14372 lt_prog_compiler_static='-non_shared'
14373 ;;
cristy0c60a692010-11-04 01:09:47 +000014374 xl* | bgxl* | bgf* | mpixl*)
14375 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014376 lt_prog_compiler_wl='-Wl,'
14377 lt_prog_compiler_pic='-qpic'
14378 lt_prog_compiler_static='-qstaticlink'
14379 ;;
14380 *)
14381 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014382 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014383 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14384 lt_prog_compiler_pic='-KPIC'
14385 lt_prog_compiler_static='-Bstatic'
14386 lt_prog_compiler_wl=''
14387 ;;
cristy99bd5232011-12-07 14:38:20 +000014388 *Sun\ F* | *Sun*Fortran*)
14389 lt_prog_compiler_pic='-KPIC'
14390 lt_prog_compiler_static='-Bstatic'
14391 lt_prog_compiler_wl='-Qoption ld '
14392 ;;
cristy73bd4a52010-10-05 11:24:23 +000014393 *Sun\ C*)
14394 # Sun C 5.9
14395 lt_prog_compiler_pic='-KPIC'
14396 lt_prog_compiler_static='-Bstatic'
14397 lt_prog_compiler_wl='-Wl,'
14398 ;;
cristy99bd5232011-12-07 14:38:20 +000014399 *Intel*\ [CF]*Compiler*)
14400 lt_prog_compiler_wl='-Wl,'
14401 lt_prog_compiler_pic='-fPIC'
14402 lt_prog_compiler_static='-static'
14403 ;;
14404 *Portland\ Group*)
14405 lt_prog_compiler_wl='-Wl,'
14406 lt_prog_compiler_pic='-fpic'
14407 lt_prog_compiler_static='-Bstatic'
14408 ;;
cristy73bd4a52010-10-05 11:24:23 +000014409 esac
14410 ;;
14411 esac
14412 ;;
14413
14414 newsos6)
14415 lt_prog_compiler_pic='-KPIC'
14416 lt_prog_compiler_static='-Bstatic'
14417 ;;
14418
14419 *nto* | *qnx*)
14420 # QNX uses GNU C++, but need to define -shared option too, otherwise
14421 # it will coredump.
14422 lt_prog_compiler_pic='-fPIC -shared'
14423 ;;
14424
14425 osf3* | osf4* | osf5*)
14426 lt_prog_compiler_wl='-Wl,'
14427 # All OSF/1 code is PIC.
14428 lt_prog_compiler_static='-non_shared'
14429 ;;
14430
14431 rdos*)
14432 lt_prog_compiler_static='-non_shared'
14433 ;;
14434
14435 solaris*)
14436 lt_prog_compiler_pic='-KPIC'
14437 lt_prog_compiler_static='-Bstatic'
14438 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014439 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014440 lt_prog_compiler_wl='-Qoption ld ';;
14441 *)
14442 lt_prog_compiler_wl='-Wl,';;
14443 esac
14444 ;;
14445
14446 sunos4*)
14447 lt_prog_compiler_wl='-Qoption ld '
14448 lt_prog_compiler_pic='-PIC'
14449 lt_prog_compiler_static='-Bstatic'
14450 ;;
14451
14452 sysv4 | sysv4.2uw2* | sysv4.3*)
14453 lt_prog_compiler_wl='-Wl,'
14454 lt_prog_compiler_pic='-KPIC'
14455 lt_prog_compiler_static='-Bstatic'
14456 ;;
14457
14458 sysv4*MP*)
14459 if test -d /usr/nec ;then
14460 lt_prog_compiler_pic='-Kconform_pic'
14461 lt_prog_compiler_static='-Bstatic'
14462 fi
14463 ;;
14464
14465 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14466 lt_prog_compiler_wl='-Wl,'
14467 lt_prog_compiler_pic='-KPIC'
14468 lt_prog_compiler_static='-Bstatic'
14469 ;;
14470
14471 unicos*)
14472 lt_prog_compiler_wl='-Wl,'
14473 lt_prog_compiler_can_build_shared=no
14474 ;;
14475
14476 uts4*)
14477 lt_prog_compiler_pic='-pic'
14478 lt_prog_compiler_static='-Bstatic'
14479 ;;
14480
14481 *)
14482 lt_prog_compiler_can_build_shared=no
14483 ;;
14484 esac
14485 fi
14486
14487case $host_os in
14488 # For platforms which do not support PIC, -DPIC is meaningless:
14489 *djgpp*)
14490 lt_prog_compiler_pic=
14491 ;;
14492 *)
14493 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14494 ;;
14495esac
cristy73bd4a52010-10-05 11:24:23 +000014496
cristyda16f162011-02-19 23:52:17 +000014497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14498$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14499if ${lt_cv_prog_compiler_pic+:} false; then :
14500 $as_echo_n "(cached) " >&6
14501else
14502 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14503fi
14504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14505$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14506lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014507
14508#
14509# Check to make sure the PIC flag actually works.
14510#
14511if test -n "$lt_prog_compiler_pic"; then
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14513$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014514if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014515 $as_echo_n "(cached) " >&6
14516else
14517 lt_cv_prog_compiler_pic_works=no
14518 ac_outfile=conftest.$ac_objext
14519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14520 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14521 # Insert the option either (1) after the last *FLAGS variable, or
14522 # (2) before a word containing "conftest.", or (3) at the end.
14523 # Note that $ac_compile itself does not contain backslashes and begins
14524 # with a dollar sign (not a hyphen), so the echo should work correctly.
14525 # The option is referenced via a variable to avoid confusing sed.
14526 lt_compile=`echo "$ac_compile" | $SED \
14527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14529 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014530 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014531 (eval "$lt_compile" 2>conftest.err)
14532 ac_status=$?
14533 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014535 if (exit $ac_status) && test -s "$ac_outfile"; then
14536 # The compiler can only warn and ignore the option if not recognized
14537 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14541 lt_cv_prog_compiler_pic_works=yes
14542 fi
14543 fi
14544 $RM conftest*
14545
14546fi
14547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14548$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14549
14550if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14551 case $lt_prog_compiler_pic in
14552 "" | " "*) ;;
14553 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14554 esac
14555else
14556 lt_prog_compiler_pic=
14557 lt_prog_compiler_can_build_shared=no
14558fi
14559
14560fi
14561
14562
14563
14564
14565
14566
cristyda16f162011-02-19 23:52:17 +000014567
14568
14569
14570
14571
cristy73bd4a52010-10-05 11:24:23 +000014572#
14573# Check to make sure the static flag actually works.
14574#
14575wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14577$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014578if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014579 $as_echo_n "(cached) " >&6
14580else
14581 lt_cv_prog_compiler_static_works=no
14582 save_LDFLAGS="$LDFLAGS"
14583 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14584 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14585 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14586 # The linker can only warn and ignore the option if not recognized
14587 # So say no if there are warnings
14588 if test -s conftest.err; then
14589 # Append any errors to the config.log.
14590 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014591 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14593 if diff conftest.exp conftest.er2 >/dev/null; then
14594 lt_cv_prog_compiler_static_works=yes
14595 fi
14596 else
14597 lt_cv_prog_compiler_static_works=yes
14598 fi
14599 fi
14600 $RM -r conftest*
14601 LDFLAGS="$save_LDFLAGS"
14602
14603fi
14604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14605$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14606
14607if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14608 :
14609else
14610 lt_prog_compiler_static=
14611fi
14612
14613
14614
14615
14616
14617
14618
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14620$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014621if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014622 $as_echo_n "(cached) " >&6
14623else
14624 lt_cv_prog_compiler_c_o=no
14625 $RM -r conftest 2>/dev/null
14626 mkdir conftest
14627 cd conftest
14628 mkdir out
14629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14630
14631 lt_compiler_flag="-o out/conftest2.$ac_objext"
14632 # Insert the option either (1) after the last *FLAGS variable, or
14633 # (2) before a word containing "conftest.", or (3) at the end.
14634 # Note that $ac_compile itself does not contain backslashes and begins
14635 # with a dollar sign (not a hyphen), so the echo should work correctly.
14636 lt_compile=`echo "$ac_compile" | $SED \
14637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14639 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014641 (eval "$lt_compile" 2>out/conftest.err)
14642 ac_status=$?
14643 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014645 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14646 then
14647 # The compiler can only warn and ignore the option if not recognized
14648 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014649 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014650 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14651 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14652 lt_cv_prog_compiler_c_o=yes
14653 fi
14654 fi
14655 chmod u+w . 2>&5
14656 $RM conftest*
14657 # SGI C++ compiler will create directory out/ii_files/ for
14658 # template instantiation
14659 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14660 $RM out/* && rmdir out
14661 cd ..
14662 $RM -r conftest
14663 $RM conftest*
14664
14665fi
14666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14667$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14668
14669
14670
14671
14672
14673
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14675$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014676if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014677 $as_echo_n "(cached) " >&6
14678else
14679 lt_cv_prog_compiler_c_o=no
14680 $RM -r conftest 2>/dev/null
14681 mkdir conftest
14682 cd conftest
14683 mkdir out
14684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14685
14686 lt_compiler_flag="-o out/conftest2.$ac_objext"
14687 # Insert the option either (1) after the last *FLAGS variable, or
14688 # (2) before a word containing "conftest.", or (3) at the end.
14689 # Note that $ac_compile itself does not contain backslashes and begins
14690 # with a dollar sign (not a hyphen), so the echo should work correctly.
14691 lt_compile=`echo "$ac_compile" | $SED \
14692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14694 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014696 (eval "$lt_compile" 2>out/conftest.err)
14697 ac_status=$?
14698 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014700 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14701 then
14702 # The compiler can only warn and ignore the option if not recognized
14703 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014704 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014705 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14706 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14707 lt_cv_prog_compiler_c_o=yes
14708 fi
14709 fi
14710 chmod u+w . 2>&5
14711 $RM conftest*
14712 # SGI C++ compiler will create directory out/ii_files/ for
14713 # template instantiation
14714 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14715 $RM out/* && rmdir out
14716 cd ..
14717 $RM -r conftest
14718 $RM conftest*
14719
14720fi
14721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14722$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14723
14724
14725
14726
14727hard_links="nottested"
14728if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14729 # do not overwrite the value of need_locks provided by the user
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14731$as_echo_n "checking if we can lock with hard links... " >&6; }
14732 hard_links=yes
14733 $RM conftest*
14734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14735 touch conftest.a
14736 ln conftest.a conftest.b 2>&5 || hard_links=no
14737 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14739$as_echo "$hard_links" >&6; }
14740 if test "$hard_links" = no; then
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14742$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14743 need_locks=warn
14744 fi
14745else
14746 need_locks=no
14747fi
14748
14749
14750
14751
14752
14753
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14755$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14756
14757 runpath_var=
14758 allow_undefined_flag=
14759 always_export_symbols=no
14760 archive_cmds=
14761 archive_expsym_cmds=
14762 compiler_needs_object=no
14763 enable_shared_with_static_runtimes=no
14764 export_dynamic_flag_spec=
14765 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14766 hardcode_automatic=no
14767 hardcode_direct=no
14768 hardcode_direct_absolute=no
14769 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014770 hardcode_libdir_separator=
14771 hardcode_minus_L=no
14772 hardcode_shlibpath_var=unsupported
14773 inherit_rpath=no
14774 link_all_deplibs=unknown
14775 module_cmds=
14776 module_expsym_cmds=
14777 old_archive_from_new_cmds=
14778 old_archive_from_expsyms_cmds=
14779 thread_safe_flag_spec=
14780 whole_archive_flag_spec=
14781 # include_expsyms should be a list of space-separated symbols to be *always*
14782 # included in the symbol list
14783 include_expsyms=
14784 # exclude_expsyms can be an extended regexp of symbols to exclude
14785 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14786 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14787 # as well as any symbol that contains `d'.
14788 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14789 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14790 # platforms (ab)use it in PIC code, but their linkers get confused if
14791 # the symbol is explicitly referenced. Since portable code cannot
14792 # rely on this symbol name, it's probably fine to never include it in
14793 # preloaded symbol tables.
14794 # Exclude shared library initialization/finalization symbols.
14795 extract_expsyms_cmds=
14796
14797 case $host_os in
14798 cygwin* | mingw* | pw32* | cegcc*)
14799 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14800 # When not using gcc, we currently assume that we are using
14801 # Microsoft Visual C++.
14802 if test "$GCC" != yes; then
14803 with_gnu_ld=no
14804 fi
14805 ;;
14806 interix*)
14807 # we just hope/assume this is gcc and not c89 (= MSVC++)
14808 with_gnu_ld=yes
14809 ;;
14810 openbsd*)
14811 with_gnu_ld=no
14812 ;;
14813 esac
14814
14815 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014816
14817 # On some targets, GNU ld is compatible enough with the native linker
14818 # that we're better off using the native interface for both.
14819 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014820 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014821 case $host_os in
14822 aix*)
14823 # The AIX port of GNU ld has always aspired to compatibility
14824 # with the native linker. However, as the warning in the GNU ld
14825 # block says, versions before 2.19.5* couldn't really create working
14826 # shared libraries, regardless of the interface used.
14827 case `$LD -v 2>&1` in
14828 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14829 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14830 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14831 *)
14832 lt_use_gnu_ld_interface=yes
14833 ;;
14834 esac
14835 ;;
14836 *)
14837 lt_use_gnu_ld_interface=yes
14838 ;;
14839 esac
14840 fi
14841
14842 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014843 # If archive_cmds runs LD, not CC, wlarc should be empty
14844 wlarc='${wl}'
14845
14846 # Set some defaults for GNU ld with shared library support. These
14847 # are reset later if shared libraries are not supported. Putting them
14848 # here allows them to be overridden if necessary.
14849 runpath_var=LD_RUN_PATH
14850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14851 export_dynamic_flag_spec='${wl}--export-dynamic'
14852 # ancient GNU ld didn't support --whole-archive et. al.
14853 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14854 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14855 else
14856 whole_archive_flag_spec=
14857 fi
14858 supports_anon_versioning=no
14859 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014860 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014861 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14862 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14863 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14864 *\ 2.11.*) ;; # other 2.11 versions
14865 *) supports_anon_versioning=yes ;;
14866 esac
14867
14868 # See if GNU ld supports shared libraries.
14869 case $host_os in
14870 aix[3-9]*)
14871 # On AIX/PPC, the GNU linker is very broken
14872 if test "$host_cpu" != ia64; then
14873 ld_shlibs=no
14874 cat <<_LT_EOF 1>&2
14875
cristy0c60a692010-11-04 01:09:47 +000014876*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014877*** to be unable to reliably create shared libraries on AIX.
14878*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014879*** really care for shared libraries, you may want to install binutils
14880*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14881*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014882
14883_LT_EOF
14884 fi
14885 ;;
14886
14887 amigaos*)
14888 case $host_cpu in
14889 powerpc)
14890 # see comment about AmigaOS4 .so support
14891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14892 archive_expsym_cmds=''
14893 ;;
14894 m68k)
14895 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)'
14896 hardcode_libdir_flag_spec='-L$libdir'
14897 hardcode_minus_L=yes
14898 ;;
14899 esac
14900 ;;
14901
14902 beos*)
14903 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14904 allow_undefined_flag=unsupported
14905 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14906 # support --undefined. This deserves some investigation. FIXME
14907 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14908 else
14909 ld_shlibs=no
14910 fi
14911 ;;
14912
14913 cygwin* | mingw* | pw32* | cegcc*)
14914 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14915 # as there is no search path for DLLs.
14916 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014917 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014918 allow_undefined_flag=unsupported
14919 always_export_symbols=no
14920 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014921 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'
14922 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 +000014923
14924 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14925 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14926 # If the export-symbols file already is a .def file (1st line
14927 # is EXPORTS), use it as is; otherwise, prepend...
14928 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14929 cp $export_symbols $output_objdir/$soname.def;
14930 else
14931 echo EXPORTS > $output_objdir/$soname.def;
14932 cat $export_symbols >> $output_objdir/$soname.def;
14933 fi~
14934 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14935 else
14936 ld_shlibs=no
14937 fi
14938 ;;
14939
cristy0c60a692010-11-04 01:09:47 +000014940 haiku*)
14941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14942 link_all_deplibs=yes
14943 ;;
14944
cristy73bd4a52010-10-05 11:24:23 +000014945 interix[3-9]*)
14946 hardcode_direct=no
14947 hardcode_shlibpath_var=no
14948 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14949 export_dynamic_flag_spec='${wl}-E'
14950 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14951 # Instead, shared libraries are loaded at an image base (0x10000000 by
14952 # default) and relocated if they conflict, which is a slow very memory
14953 # consuming and fragmenting process. To avoid this, we pick a random,
14954 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14955 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14956 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14957 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'
14958 ;;
14959
cristy0c60a692010-11-04 01:09:47 +000014960 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014961 tmp_diet=no
14962 if test "$host_os" = linux-dietlibc; then
14963 case $cc_basename in
14964 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14965 esac
14966 fi
14967 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14968 && test "$tmp_diet" = no
14969 then
cristyda16f162011-02-19 23:52:17 +000014970 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014971 tmp_sharedflag='-shared'
14972 case $cc_basename,$host_cpu in
14973 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014974 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 +000014975 tmp_addflag=' $pic_flag'
14976 ;;
cristy0c60a692010-11-04 01:09:47 +000014977 pgf77* | pgf90* | pgf95* | pgfortran*)
14978 # Portland Group f77 and f90 compilers
14979 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 +000014980 tmp_addflag=' $pic_flag -Mnomain' ;;
14981 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14982 tmp_addflag=' -i_dynamic' ;;
14983 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14984 tmp_addflag=' -i_dynamic -nofor_main' ;;
14985 ifc* | ifort*) # Intel Fortran compiler
14986 tmp_addflag=' -nofor_main' ;;
14987 lf95*) # Lahey Fortran 8.1
14988 whole_archive_flag_spec=
14989 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014990 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014991 tmp_sharedflag='-qmkshrobj'
14992 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014993 nvcc*) # Cuda Compiler Driver 2.2
14994 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'
14995 compiler_needs_object=yes
14996 ;;
cristy73bd4a52010-10-05 11:24:23 +000014997 esac
14998 case `$CC -V 2>&1 | sed 5q` in
14999 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015000 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 +000015001 compiler_needs_object=yes
15002 tmp_sharedflag='-G' ;;
15003 *Sun\ F*) # Sun Fortran 8.3
15004 tmp_sharedflag='-G' ;;
15005 esac
15006 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15007
15008 if test "x$supports_anon_versioning" = xyes; then
15009 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15010 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15011 echo "local: *; };" >> $output_objdir/$libname.ver~
15012 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15013 fi
15014
15015 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015016 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015017 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15018 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015020 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015021 if test "x$supports_anon_versioning" = xyes; then
15022 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15024 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015025 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015026 fi
15027 ;;
15028 esac
15029 else
15030 ld_shlibs=no
15031 fi
15032 ;;
15033
15034 netbsd*)
15035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15036 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15037 wlarc=
15038 else
cristyda16f162011-02-19 23:52:17 +000015039 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15040 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 +000015041 fi
15042 ;;
15043
15044 solaris*)
15045 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15046 ld_shlibs=no
15047 cat <<_LT_EOF 1>&2
15048
15049*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15050*** create shared libraries on Solaris systems. Therefore, libtool
15051*** is disabling shared libraries support. We urge you to upgrade GNU
15052*** binutils to release 2.9.1 or newer. Another option is to modify
15053*** your PATH or compiler configuration so that the native linker is
15054*** used, and then restart.
15055
15056_LT_EOF
15057 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015058 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15059 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 +000015060 else
15061 ld_shlibs=no
15062 fi
15063 ;;
15064
15065 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15066 case `$LD -v 2>&1` in
15067 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15068 ld_shlibs=no
15069 cat <<_LT_EOF 1>&2
15070
15071*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15072*** reliably create shared libraries on SCO systems. Therefore, libtool
15073*** is disabling shared libraries support. We urge you to upgrade GNU
15074*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15075*** your PATH or compiler configuration so that the native linker is
15076*** used, and then restart.
15077
15078_LT_EOF
15079 ;;
15080 *)
15081 # For security reasons, it is highly recommended that you always
15082 # use absolute paths for naming shared libraries, and exclude the
15083 # DT_RUNPATH tag from executables and libraries. But doing so
15084 # requires that you compile everything twice, which is a pain.
15085 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15088 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15089 else
15090 ld_shlibs=no
15091 fi
15092 ;;
15093 esac
15094 ;;
15095
15096 sunos4*)
15097 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15098 wlarc=
15099 hardcode_direct=yes
15100 hardcode_shlibpath_var=no
15101 ;;
15102
15103 *)
15104 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015105 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15106 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 +000015107 else
15108 ld_shlibs=no
15109 fi
15110 ;;
15111 esac
15112
15113 if test "$ld_shlibs" = no; then
15114 runpath_var=
15115 hardcode_libdir_flag_spec=
15116 export_dynamic_flag_spec=
15117 whole_archive_flag_spec=
15118 fi
15119 else
15120 # PORTME fill in a description of your system's linker (not GNU ld)
15121 case $host_os in
15122 aix3*)
15123 allow_undefined_flag=unsupported
15124 always_export_symbols=yes
15125 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'
15126 # Note: this linker hardcodes the directories in LIBPATH if there
15127 # are no directories specified by -L.
15128 hardcode_minus_L=yes
15129 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15130 # Neither direct hardcoding nor static linking is supported with a
15131 # broken collect2.
15132 hardcode_direct=unsupported
15133 fi
15134 ;;
15135
15136 aix[4-9]*)
15137 if test "$host_cpu" = ia64; then
15138 # On IA64, the linker does run time linking by default, so we don't
15139 # have to do anything special.
15140 aix_use_runtimelinking=no
15141 exp_sym_flag='-Bexport'
15142 no_entry_flag=""
15143 else
15144 # If we're using GNU nm, then we don't want the "-C" option.
15145 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015146 # Also, AIX nm treats weak defined symbols like other global
15147 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015148 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015149 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 +000015150 else
15151 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'
15152 fi
15153 aix_use_runtimelinking=no
15154
15155 # Test if we are trying to use run time linking or normal
15156 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15157 # need to do runtime linking.
15158 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15159 for ld_flag in $LDFLAGS; do
15160 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15161 aix_use_runtimelinking=yes
15162 break
15163 fi
15164 done
15165 ;;
15166 esac
15167
15168 exp_sym_flag='-bexport'
15169 no_entry_flag='-bnoentry'
15170 fi
15171
15172 # When large executables or shared objects are built, AIX ld can
15173 # have problems creating the table of contents. If linking a library
15174 # or program results in "error TOC overflow" add -mminimal-toc to
15175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15177
15178 archive_cmds=''
15179 hardcode_direct=yes
15180 hardcode_direct_absolute=yes
15181 hardcode_libdir_separator=':'
15182 link_all_deplibs=yes
15183 file_list_spec='${wl}-f,'
15184
15185 if test "$GCC" = yes; then
15186 case $host_os in aix4.[012]|aix4.[012].*)
15187 # We only want to do this on AIX 4.2 and lower, the check
15188 # below for broken collect2 doesn't work under 4.3+
15189 collect2name=`${CC} -print-prog-name=collect2`
15190 if test -f "$collect2name" &&
15191 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15192 then
15193 # We have reworked collect2
15194 :
15195 else
15196 # We have old collect2
15197 hardcode_direct=unsupported
15198 # It fails to find uninstalled libraries when the uninstalled
15199 # path is not listed in the libpath. Setting hardcode_minus_L
15200 # to unsupported forces relinking
15201 hardcode_minus_L=yes
15202 hardcode_libdir_flag_spec='-L$libdir'
15203 hardcode_libdir_separator=
15204 fi
15205 ;;
15206 esac
15207 shared_flag='-shared'
15208 if test "$aix_use_runtimelinking" = yes; then
15209 shared_flag="$shared_flag "'${wl}-G'
15210 fi
15211 else
15212 # not using gcc
15213 if test "$host_cpu" = ia64; then
15214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15215 # chokes on -Wl,-G. The following line is correct:
15216 shared_flag='-G'
15217 else
15218 if test "$aix_use_runtimelinking" = yes; then
15219 shared_flag='${wl}-G'
15220 else
15221 shared_flag='${wl}-bM:SRE'
15222 fi
15223 fi
15224 fi
15225
15226 export_dynamic_flag_spec='${wl}-bexpall'
15227 # It seems that -bexpall does not export symbols beginning with
15228 # underscore (_), so it is better to generate a list of symbols to export.
15229 always_export_symbols=yes
15230 if test "$aix_use_runtimelinking" = yes; then
15231 # Warning - without using the other runtime loading flags (-brtl),
15232 # -berok will link without error, but may produce a broken library.
15233 allow_undefined_flag='-berok'
15234 # Determine the default libpath from the value encoded in an
15235 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015236 if test "${lt_cv_aix_libpath+set}" = set; then
15237 aix_libpath=$lt_cv_aix_libpath
15238else
15239 if ${lt_cv_aix_libpath_+:} false; then :
15240 $as_echo_n "(cached) " >&6
15241else
15242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015243/* end confdefs.h. */
15244
15245int
15246main ()
15247{
15248
15249 ;
15250 return 0;
15251}
15252_ACEOF
15253if ac_fn_c_try_link "$LINENO"; then :
15254
cristyda16f162011-02-19 23:52:17 +000015255 lt_aix_libpath_sed='
15256 /Import File Strings/,/^$/ {
15257 /^0/ {
15258 s/^0 *\([^ ]*\) *$/\1/
15259 p
15260 }
15261 }'
15262 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15263 # Check for a 64-bit object if we didn't find anything.
15264 if test -z "$lt_cv_aix_libpath_"; then
15265 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15266 fi
cristy73bd4a52010-10-05 11:24:23 +000015267fi
15268rm -f core conftest.err conftest.$ac_objext \
15269 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015270 if test -z "$lt_cv_aix_libpath_"; then
15271 lt_cv_aix_libpath_="/usr/lib:/lib"
15272 fi
15273
15274fi
15275
15276 aix_libpath=$lt_cv_aix_libpath_
15277fi
cristy73bd4a52010-10-05 11:24:23 +000015278
15279 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015280 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 +000015281 else
15282 if test "$host_cpu" = ia64; then
15283 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15284 allow_undefined_flag="-z nodefs"
15285 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"
15286 else
15287 # Determine the default libpath from the value encoded in an
15288 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015289 if test "${lt_cv_aix_libpath+set}" = set; then
15290 aix_libpath=$lt_cv_aix_libpath
15291else
15292 if ${lt_cv_aix_libpath_+:} false; then :
15293 $as_echo_n "(cached) " >&6
15294else
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015296/* end confdefs.h. */
15297
15298int
15299main ()
15300{
15301
15302 ;
15303 return 0;
15304}
15305_ACEOF
15306if ac_fn_c_try_link "$LINENO"; then :
15307
cristyda16f162011-02-19 23:52:17 +000015308 lt_aix_libpath_sed='
15309 /Import File Strings/,/^$/ {
15310 /^0/ {
15311 s/^0 *\([^ ]*\) *$/\1/
15312 p
15313 }
15314 }'
15315 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15316 # Check for a 64-bit object if we didn't find anything.
15317 if test -z "$lt_cv_aix_libpath_"; then
15318 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15319 fi
cristy73bd4a52010-10-05 11:24:23 +000015320fi
15321rm -f core conftest.err conftest.$ac_objext \
15322 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015323 if test -z "$lt_cv_aix_libpath_"; then
15324 lt_cv_aix_libpath_="/usr/lib:/lib"
15325 fi
15326
15327fi
15328
15329 aix_libpath=$lt_cv_aix_libpath_
15330fi
cristy73bd4a52010-10-05 11:24:23 +000015331
15332 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15333 # Warning - without using the other run time loading flags,
15334 # -berok will link without error, but may produce a broken library.
15335 no_undefined_flag=' ${wl}-bernotok'
15336 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015337 if test "$with_gnu_ld" = yes; then
15338 # We only use this code for GNU lds that support --whole-archive.
15339 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15340 else
15341 # Exported symbols can be pulled into shared objects from archives
15342 whole_archive_flag_spec='$convenience'
15343 fi
cristy73bd4a52010-10-05 11:24:23 +000015344 archive_cmds_need_lc=yes
15345 # This is similar to how AIX traditionally builds its shared libraries.
15346 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'
15347 fi
15348 fi
15349 ;;
15350
15351 amigaos*)
15352 case $host_cpu in
15353 powerpc)
15354 # see comment about AmigaOS4 .so support
15355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15356 archive_expsym_cmds=''
15357 ;;
15358 m68k)
15359 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)'
15360 hardcode_libdir_flag_spec='-L$libdir'
15361 hardcode_minus_L=yes
15362 ;;
15363 esac
15364 ;;
15365
15366 bsdi[45]*)
15367 export_dynamic_flag_spec=-rdynamic
15368 ;;
15369
15370 cygwin* | mingw* | pw32* | cegcc*)
15371 # When not using gcc, we currently assume that we are using
15372 # Microsoft Visual C++.
15373 # hardcode_libdir_flag_spec is actually meaningless, as there is
15374 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015375 case $cc_basename in
15376 cl*)
15377 # Native MSVC
15378 hardcode_libdir_flag_spec=' '
15379 allow_undefined_flag=unsupported
15380 always_export_symbols=yes
15381 file_list_spec='@'
15382 # Tell ltmain to make .lib files, not .a files.
15383 libext=lib
15384 # Tell ltmain to make .dll files, not .so files.
15385 shrext_cmds=".dll"
15386 # FIXME: Setting linknames here is a bad hack.
15387 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15388 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15389 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15390 else
15391 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15392 fi~
15393 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15394 linknames='
15395 # The linker will not automatically build a static lib if we build a DLL.
15396 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15397 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015398 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15400 # Don't use ranlib
15401 old_postinstall_cmds='chmod 644 $oldlib'
15402 postlink_cmds='lt_outputfile="@OUTPUT@"~
15403 lt_tool_outputfile="@TOOL_OUTPUT@"~
15404 case $lt_outputfile in
15405 *.exe|*.EXE) ;;
15406 *)
15407 lt_outputfile="$lt_outputfile.exe"
15408 lt_tool_outputfile="$lt_tool_outputfile.exe"
15409 ;;
15410 esac~
15411 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15412 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15413 $RM "$lt_outputfile.manifest";
15414 fi'
15415 ;;
15416 *)
15417 # Assume MSVC wrapper
15418 hardcode_libdir_flag_spec=' '
15419 allow_undefined_flag=unsupported
15420 # Tell ltmain to make .lib files, not .a files.
15421 libext=lib
15422 # Tell ltmain to make .dll files, not .so files.
15423 shrext_cmds=".dll"
15424 # FIXME: Setting linknames here is a bad hack.
15425 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15426 # The linker will automatically build a .lib file if we build a DLL.
15427 old_archive_from_new_cmds='true'
15428 # FIXME: Should let the user specify the lib program.
15429 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15430 enable_shared_with_static_runtimes=yes
15431 ;;
15432 esac
cristy73bd4a52010-10-05 11:24:23 +000015433 ;;
15434
15435 darwin* | rhapsody*)
15436
15437
15438 archive_cmds_need_lc=no
15439 hardcode_direct=no
15440 hardcode_automatic=yes
15441 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015442 if test "$lt_cv_ld_force_load" = "yes"; then
15443 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 +000015444
cristy0c60a692010-11-04 01:09:47 +000015445 else
15446 whole_archive_flag_spec=''
15447 fi
cristy73bd4a52010-10-05 11:24:23 +000015448 link_all_deplibs=yes
15449 allow_undefined_flag="$_lt_dar_allow_undefined"
15450 case $cc_basename in
15451 ifort*) _lt_dar_can_shared=yes ;;
15452 *) _lt_dar_can_shared=$GCC ;;
15453 esac
15454 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015455 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015456 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15457 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15458 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}"
15459 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}"
15460
15461 else
15462 ld_shlibs=no
15463 fi
15464
15465 ;;
15466
15467 dgux*)
15468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15469 hardcode_libdir_flag_spec='-L$libdir'
15470 hardcode_shlibpath_var=no
15471 ;;
15472
cristy73bd4a52010-10-05 11:24:23 +000015473 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15474 # support. Future versions do this automatically, but an explicit c++rt0.o
15475 # does not break anything, and helps significantly (at the cost of a little
15476 # extra space).
15477 freebsd2.2*)
15478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15479 hardcode_libdir_flag_spec='-R$libdir'
15480 hardcode_direct=yes
15481 hardcode_shlibpath_var=no
15482 ;;
15483
15484 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015485 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15487 hardcode_direct=yes
15488 hardcode_minus_L=yes
15489 hardcode_shlibpath_var=no
15490 ;;
15491
15492 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15493 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015494 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015495 hardcode_libdir_flag_spec='-R$libdir'
15496 hardcode_direct=yes
15497 hardcode_shlibpath_var=no
15498 ;;
15499
15500 hpux9*)
15501 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015502 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 +000015503 else
15504 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'
15505 fi
15506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15507 hardcode_libdir_separator=:
15508 hardcode_direct=yes
15509
15510 # hardcode_minus_L: Not really in the search PATH,
15511 # but as the default location of the library.
15512 hardcode_minus_L=yes
15513 export_dynamic_flag_spec='${wl}-E'
15514 ;;
15515
15516 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015517 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015518 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 +000015519 else
15520 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15521 fi
15522 if test "$with_gnu_ld" = no; then
15523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015524 hardcode_libdir_separator=:
15525 hardcode_direct=yes
15526 hardcode_direct_absolute=yes
15527 export_dynamic_flag_spec='${wl}-E'
15528 # hardcode_minus_L: Not really in the search PATH,
15529 # but as the default location of the library.
15530 hardcode_minus_L=yes
15531 fi
15532 ;;
15533
15534 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015535 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015536 case $host_cpu in
15537 hppa*64*)
15538 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15539 ;;
15540 ia64*)
cristyda16f162011-02-19 23:52:17 +000015541 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015542 ;;
15543 *)
cristyda16f162011-02-19 23:52:17 +000015544 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 +000015545 ;;
15546 esac
15547 else
15548 case $host_cpu in
15549 hppa*64*)
15550 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15551 ;;
15552 ia64*)
15553 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15554 ;;
15555 *)
cristy0c60a692010-11-04 01:09:47 +000015556
15557 # Older versions of the 11.00 compiler do not understand -b yet
15558 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15560$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015561if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015562 $as_echo_n "(cached) " >&6
15563else
15564 lt_cv_prog_compiler__b=no
15565 save_LDFLAGS="$LDFLAGS"
15566 LDFLAGS="$LDFLAGS -b"
15567 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15569 # The linker can only warn and ignore the option if not recognized
15570 # So say no if there are warnings
15571 if test -s conftest.err; then
15572 # Append any errors to the config.log.
15573 cat conftest.err 1>&5
15574 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15576 if diff conftest.exp conftest.er2 >/dev/null; then
15577 lt_cv_prog_compiler__b=yes
15578 fi
15579 else
15580 lt_cv_prog_compiler__b=yes
15581 fi
15582 fi
15583 $RM -r conftest*
15584 LDFLAGS="$save_LDFLAGS"
15585
15586fi
15587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15588$as_echo "$lt_cv_prog_compiler__b" >&6; }
15589
15590if test x"$lt_cv_prog_compiler__b" = xyes; then
15591 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15592else
15593 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15594fi
15595
cristy73bd4a52010-10-05 11:24:23 +000015596 ;;
15597 esac
15598 fi
15599 if test "$with_gnu_ld" = no; then
15600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15601 hardcode_libdir_separator=:
15602
15603 case $host_cpu in
15604 hppa*64*|ia64*)
15605 hardcode_direct=no
15606 hardcode_shlibpath_var=no
15607 ;;
15608 *)
15609 hardcode_direct=yes
15610 hardcode_direct_absolute=yes
15611 export_dynamic_flag_spec='${wl}-E'
15612
15613 # hardcode_minus_L: Not really in the search PATH,
15614 # but as the default location of the library.
15615 hardcode_minus_L=yes
15616 ;;
15617 esac
15618 fi
15619 ;;
15620
15621 irix5* | irix6* | nonstopux*)
15622 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015623 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 +000015624 # Try to use the -exported_symbol ld option, if it does not
15625 # work, assume that -exports_file does not work either and
15626 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015627 # This should be the same for all languages, so no per-tag cache variable.
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15629$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15630if ${lt_cv_irix_exported_symbol+:} false; then :
15631 $as_echo_n "(cached) " >&6
15632else
15633 save_LDFLAGS="$LDFLAGS"
15634 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015636/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015637int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015638_ACEOF
15639if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015640 lt_cv_irix_exported_symbol=yes
15641else
15642 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015643fi
15644rm -f core conftest.err conftest.$ac_objext \
15645 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015646 LDFLAGS="$save_LDFLAGS"
15647fi
15648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15649$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15650 if test "$lt_cv_irix_exported_symbol" = yes; then
15651 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'
15652 fi
cristy73bd4a52010-10-05 11:24:23 +000015653 else
cristy0c60a692010-11-04 01:09:47 +000015654 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'
15655 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 +000015656 fi
15657 archive_cmds_need_lc='no'
15658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15659 hardcode_libdir_separator=:
15660 inherit_rpath=yes
15661 link_all_deplibs=yes
15662 ;;
15663
15664 netbsd*)
15665 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15667 else
15668 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15669 fi
15670 hardcode_libdir_flag_spec='-R$libdir'
15671 hardcode_direct=yes
15672 hardcode_shlibpath_var=no
15673 ;;
15674
15675 newsos6)
15676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15677 hardcode_direct=yes
15678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15679 hardcode_libdir_separator=:
15680 hardcode_shlibpath_var=no
15681 ;;
15682
15683 *nto* | *qnx*)
15684 ;;
15685
15686 openbsd*)
15687 if test -f /usr/libexec/ld.so; then
15688 hardcode_direct=yes
15689 hardcode_shlibpath_var=no
15690 hardcode_direct_absolute=yes
15691 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15692 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15693 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15694 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15695 export_dynamic_flag_spec='${wl}-E'
15696 else
15697 case $host_os in
15698 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15699 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15700 hardcode_libdir_flag_spec='-R$libdir'
15701 ;;
15702 *)
15703 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15704 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15705 ;;
15706 esac
15707 fi
15708 else
15709 ld_shlibs=no
15710 fi
15711 ;;
15712
15713 os2*)
15714 hardcode_libdir_flag_spec='-L$libdir'
15715 hardcode_minus_L=yes
15716 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015717 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 +000015718 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15719 ;;
15720
15721 osf3*)
15722 if test "$GCC" = yes; then
15723 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015724 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 +000015725 else
15726 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015727 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 +000015728 fi
15729 archive_cmds_need_lc='no'
15730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15731 hardcode_libdir_separator=:
15732 ;;
15733
15734 osf4* | osf5*) # as osf3* with the addition of -msym flag
15735 if test "$GCC" = yes; then
15736 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015737 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 +000015738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15739 else
15740 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015741 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 +000015742 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 +000015743 $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 +000015744
15745 # Both c and cxx compiler support -rpath directly
15746 hardcode_libdir_flag_spec='-rpath $libdir'
15747 fi
15748 archive_cmds_need_lc='no'
15749 hardcode_libdir_separator=:
15750 ;;
15751
15752 solaris*)
15753 no_undefined_flag=' -z defs'
15754 if test "$GCC" = yes; then
15755 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015756 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 +000015757 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 +000015758 $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 +000015759 else
15760 case `$CC -V 2>&1` in
15761 *"Compilers 5.0"*)
15762 wlarc=''
15763 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15765 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15766 ;;
15767 *)
15768 wlarc='${wl}'
15769 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15770 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15771 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15772 ;;
15773 esac
15774 fi
15775 hardcode_libdir_flag_spec='-R$libdir'
15776 hardcode_shlibpath_var=no
15777 case $host_os in
15778 solaris2.[0-5] | solaris2.[0-5].*) ;;
15779 *)
15780 # The compiler driver will combine and reorder linker options,
15781 # but understands `-z linker_flag'. GCC discards it without `$wl',
15782 # but is careful enough not to reorder.
15783 # Supported since Solaris 2.6 (maybe 2.5.1?)
15784 if test "$GCC" = yes; then
15785 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15786 else
15787 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15788 fi
15789 ;;
15790 esac
15791 link_all_deplibs=yes
15792 ;;
15793
15794 sunos4*)
15795 if test "x$host_vendor" = xsequent; then
15796 # Use $CC to link under sequent, because it throws in some extra .o
15797 # files that make .init and .fini sections work.
15798 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15799 else
15800 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15801 fi
15802 hardcode_libdir_flag_spec='-L$libdir'
15803 hardcode_direct=yes
15804 hardcode_minus_L=yes
15805 hardcode_shlibpath_var=no
15806 ;;
15807
15808 sysv4)
15809 case $host_vendor in
15810 sni)
15811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15812 hardcode_direct=yes # is this really true???
15813 ;;
15814 siemens)
15815 ## LD is ld it makes a PLAMLIB
15816 ## CC just makes a GrossModule.
15817 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15818 reload_cmds='$CC -r -o $output$reload_objs'
15819 hardcode_direct=no
15820 ;;
15821 motorola)
15822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15823 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15824 ;;
15825 esac
15826 runpath_var='LD_RUN_PATH'
15827 hardcode_shlibpath_var=no
15828 ;;
15829
15830 sysv4.3*)
15831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15832 hardcode_shlibpath_var=no
15833 export_dynamic_flag_spec='-Bexport'
15834 ;;
15835
15836 sysv4*MP*)
15837 if test -d /usr/nec; then
15838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15839 hardcode_shlibpath_var=no
15840 runpath_var=LD_RUN_PATH
15841 hardcode_runpath_var=yes
15842 ld_shlibs=yes
15843 fi
15844 ;;
15845
15846 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15847 no_undefined_flag='${wl}-z,text'
15848 archive_cmds_need_lc=no
15849 hardcode_shlibpath_var=no
15850 runpath_var='LD_RUN_PATH'
15851
15852 if test "$GCC" = yes; then
15853 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15854 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15855 else
15856 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15857 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15858 fi
15859 ;;
15860
15861 sysv5* | sco3.2v5* | sco5v6*)
15862 # Note: We can NOT use -z defs as we might desire, because we do not
15863 # link with -lc, and that would cause any symbols used from libc to
15864 # always be unresolved, which means just about no library would
15865 # ever link correctly. If we're not using GNU ld we use -z text
15866 # though, which does catch some bad symbols but isn't as heavy-handed
15867 # as -z defs.
15868 no_undefined_flag='${wl}-z,text'
15869 allow_undefined_flag='${wl}-z,nodefs'
15870 archive_cmds_need_lc=no
15871 hardcode_shlibpath_var=no
15872 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15873 hardcode_libdir_separator=':'
15874 link_all_deplibs=yes
15875 export_dynamic_flag_spec='${wl}-Bexport'
15876 runpath_var='LD_RUN_PATH'
15877
15878 if test "$GCC" = yes; then
15879 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15880 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15881 else
15882 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15883 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15884 fi
15885 ;;
15886
15887 uts4*)
15888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15889 hardcode_libdir_flag_spec='-L$libdir'
15890 hardcode_shlibpath_var=no
15891 ;;
15892
15893 *)
15894 ld_shlibs=no
15895 ;;
15896 esac
15897
15898 if test x$host_vendor = xsni; then
15899 case $host in
15900 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15901 export_dynamic_flag_spec='${wl}-Blargedynsym'
15902 ;;
15903 esac
15904 fi
15905 fi
15906
15907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15908$as_echo "$ld_shlibs" >&6; }
15909test "$ld_shlibs" = no && can_build_shared=no
15910
15911with_gnu_ld=$with_gnu_ld
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927#
15928# Do we need to explicitly link libc?
15929#
15930case "x$archive_cmds_need_lc" in
15931x|xyes)
15932 # Assume -lc should be added
15933 archive_cmds_need_lc=yes
15934
15935 if test "$enable_shared" = yes && test "$GCC" = yes; then
15936 case $archive_cmds in
15937 *'~'*)
15938 # FIXME: we may have to deal with multi-command sequences.
15939 ;;
15940 '$CC '*)
15941 # Test whether the compiler implicitly links with -lc since on some
15942 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15943 # to ld, don't add -lc before -lgcc.
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15945$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015946if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015947 $as_echo_n "(cached) " >&6
15948else
15949 $RM conftest*
15950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015951
cristy0c60a692010-11-04 01:09:47 +000015952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015953 (eval $ac_compile) 2>&5
15954 ac_status=$?
15955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15956 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015957 soname=conftest
15958 lib=conftest
15959 libobjs=conftest.$ac_objext
15960 deplibs=
15961 wl=$lt_prog_compiler_wl
15962 pic_flag=$lt_prog_compiler_pic
15963 compiler_flags=-v
15964 linker_flags=-v
15965 verstring=
15966 output_objdir=.
15967 libname=conftest
15968 lt_save_allow_undefined_flag=$allow_undefined_flag
15969 allow_undefined_flag=
15970 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 +000015971 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15972 ac_status=$?
15973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15974 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015975 then
15976 lt_cv_archive_cmds_need_lc=no
15977 else
15978 lt_cv_archive_cmds_need_lc=yes
15979 fi
15980 allow_undefined_flag=$lt_save_allow_undefined_flag
15981 else
15982 cat conftest.err 1>&5
15983 fi
15984 $RM conftest*
15985
15986fi
15987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15988$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15989 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015990 ;;
15991 esac
15992 fi
15993 ;;
15994esac
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
cristy73bd4a52010-10-05 11:24:23 +000016147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16148$as_echo_n "checking dynamic linker characteristics... " >&6; }
16149
16150if test "$GCC" = yes; then
16151 case $host_os in
16152 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16153 *) lt_awk_arg="/^libraries:/" ;;
16154 esac
cristy0c60a692010-11-04 01:09:47 +000016155 case $host_os in
16156 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16157 *) lt_sed_strip_eq="s,=/,/,g" ;;
16158 esac
16159 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16160 case $lt_search_path_spec in
16161 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016162 # if the path contains ";" then we assume it to be the separator
16163 # otherwise default to the standard path separator (i.e. ":") - it is
16164 # assumed that no part of a normal pathname contains ";" but that should
16165 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016166 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16167 ;;
16168 *)
16169 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16170 ;;
16171 esac
cristy73bd4a52010-10-05 11:24:23 +000016172 # Ok, now we have the path, separated by spaces, we can step through it
16173 # and add multilib dir if necessary.
16174 lt_tmp_lt_search_path_spec=
16175 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16176 for lt_sys_path in $lt_search_path_spec; do
16177 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16178 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16179 else
16180 test -d "$lt_sys_path" && \
16181 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16182 fi
16183 done
cristy0c60a692010-11-04 01:09:47 +000016184 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016185BEGIN {RS=" "; FS="/|\n";} {
16186 lt_foo="";
16187 lt_count=0;
16188 for (lt_i = NF; lt_i > 0; lt_i--) {
16189 if ($lt_i != "" && $lt_i != ".") {
16190 if ($lt_i == "..") {
16191 lt_count++;
16192 } else {
16193 if (lt_count == 0) {
16194 lt_foo="/" $lt_i lt_foo;
16195 } else {
16196 lt_count--;
16197 }
16198 }
16199 }
16200 }
16201 if (lt_foo != "") { lt_freq[lt_foo]++; }
16202 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16203}'`
cristy0c60a692010-11-04 01:09:47 +000016204 # AWK program above erroneously prepends '/' to C:/dos/paths
16205 # for these hosts.
16206 case $host_os in
16207 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16208 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16209 esac
16210 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016211else
16212 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16213fi
16214library_names_spec=
16215libname_spec='lib$name'
16216soname_spec=
16217shrext_cmds=".so"
16218postinstall_cmds=
16219postuninstall_cmds=
16220finish_cmds=
16221finish_eval=
16222shlibpath_var=
16223shlibpath_overrides_runpath=unknown
16224version_type=none
16225dynamic_linker="$host_os ld.so"
16226sys_lib_dlsearch_path_spec="/lib /usr/lib"
16227need_lib_prefix=unknown
16228hardcode_into_libs=no
16229
16230# when you set need_version to no, make sure it does not cause -set_version
16231# flags to be left without arguments
16232need_version=unknown
16233
16234case $host_os in
16235aix3*)
cristy99bd5232011-12-07 14:38:20 +000016236 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016237 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16238 shlibpath_var=LIBPATH
16239
16240 # AIX 3 has no versioning support, so we append a major version to the name.
16241 soname_spec='${libname}${release}${shared_ext}$major'
16242 ;;
16243
16244aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016245 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016246 need_lib_prefix=no
16247 need_version=no
16248 hardcode_into_libs=yes
16249 if test "$host_cpu" = ia64; then
16250 # AIX 5 supports IA64
16251 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16252 shlibpath_var=LD_LIBRARY_PATH
16253 else
16254 # With GCC up to 2.95.x, collect2 would create an import file
16255 # for dependence libraries. The import file would start with
16256 # the line `#! .'. This would cause the generated library to
16257 # depend on `.', always an invalid library. This was fixed in
16258 # development snapshots of GCC prior to 3.0.
16259 case $host_os in
16260 aix4 | aix4.[01] | aix4.[01].*)
16261 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16262 echo ' yes '
16263 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16264 :
16265 else
16266 can_build_shared=no
16267 fi
16268 ;;
16269 esac
16270 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16271 # soname into executable. Probably we can add versioning support to
16272 # collect2, so additional links can be useful in future.
16273 if test "$aix_use_runtimelinking" = yes; then
16274 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16275 # instead of lib<name>.a to let people know that these are not
16276 # typical AIX shared libraries.
16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278 else
16279 # We preserve .a as extension for shared libraries through AIX4.2
16280 # and later when we are not doing run time linking.
16281 library_names_spec='${libname}${release}.a $libname.a'
16282 soname_spec='${libname}${release}${shared_ext}$major'
16283 fi
16284 shlibpath_var=LIBPATH
16285 fi
16286 ;;
16287
16288amigaos*)
16289 case $host_cpu in
16290 powerpc)
16291 # Since July 2007 AmigaOS4 officially supports .so libraries.
16292 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294 ;;
16295 m68k)
16296 library_names_spec='$libname.ixlibrary $libname.a'
16297 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016298 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 +000016299 ;;
16300 esac
16301 ;;
16302
16303beos*)
16304 library_names_spec='${libname}${shared_ext}'
16305 dynamic_linker="$host_os ld.so"
16306 shlibpath_var=LIBRARY_PATH
16307 ;;
16308
16309bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016310 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016311 need_version=no
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16315 shlibpath_var=LD_LIBRARY_PATH
16316 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16317 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16318 # the default ld.so.conf also contains /usr/contrib/lib and
16319 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16320 # libtool to hard-code these into programs
16321 ;;
16322
16323cygwin* | mingw* | pw32* | cegcc*)
16324 version_type=windows
16325 shrext_cmds=".dll"
16326 need_version=no
16327 need_lib_prefix=no
16328
cristyda16f162011-02-19 23:52:17 +000016329 case $GCC,$cc_basename in
16330 yes,*)
16331 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016332 library_names_spec='$libname.dll.a'
16333 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16334 postinstall_cmds='base_file=`basename \${file}`~
16335 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16336 dldir=$destdir/`dirname \$dlpath`~
16337 test -d \$dldir || mkdir -p \$dldir~
16338 $install_prog $dir/$dlname \$dldir/$dlname~
16339 chmod a+x \$dldir/$dlname~
16340 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16341 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16342 fi'
16343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16344 dlpath=$dir/\$dldll~
16345 $RM \$dlpath'
16346 shlibpath_overrides_runpath=yes
16347
16348 case $host_os in
16349 cygwin*)
16350 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16351 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016352
16353 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016354 ;;
16355 mingw* | cegcc*)
16356 # MinGW DLLs use traditional 'lib' prefix
16357 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016358 ;;
16359 pw32*)
16360 # pw32 DLLs use 'pw' prefix rather than 'lib'
16361 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16362 ;;
16363 esac
cristyda16f162011-02-19 23:52:17 +000016364 dynamic_linker='Win32 ld.exe'
16365 ;;
16366
16367 *,cl*)
16368 # Native MSVC
16369 libname_spec='$name'
16370 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16371 library_names_spec='${libname}.dll.lib'
16372
16373 case $build_os in
16374 mingw*)
16375 sys_lib_search_path_spec=
16376 lt_save_ifs=$IFS
16377 IFS=';'
16378 for lt_path in $LIB
16379 do
16380 IFS=$lt_save_ifs
16381 # Let DOS variable expansion print the short 8.3 style file name.
16382 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16383 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16384 done
16385 IFS=$lt_save_ifs
16386 # Convert to MSYS style.
16387 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16388 ;;
16389 cygwin*)
16390 # Convert to unix form, then to dos form, then back to unix form
16391 # but this time dos style (no spaces!) so that the unix form looks
16392 # like /cygdrive/c/PROGRA~1:/cygdr...
16393 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16394 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16395 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16396 ;;
16397 *)
16398 sys_lib_search_path_spec="$LIB"
16399 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16400 # It is most probably a Windows format PATH.
16401 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16402 else
16403 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16404 fi
16405 # FIXME: find the short name or the path components, as spaces are
16406 # common. (e.g. "Program Files" -> "PROGRA~1")
16407 ;;
16408 esac
16409
16410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16411 postinstall_cmds='base_file=`basename \${file}`~
16412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16413 dldir=$destdir/`dirname \$dlpath`~
16414 test -d \$dldir || mkdir -p \$dldir~
16415 $install_prog $dir/$dlname \$dldir/$dlname'
16416 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16417 dlpath=$dir/\$dldll~
16418 $RM \$dlpath'
16419 shlibpath_overrides_runpath=yes
16420 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016421 ;;
16422
16423 *)
cristyda16f162011-02-19 23:52:17 +000016424 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016425 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016426 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016427 ;;
16428 esac
cristy73bd4a52010-10-05 11:24:23 +000016429 # FIXME: first we should search . and the directory the executable is in
16430 shlibpath_var=PATH
16431 ;;
16432
16433darwin* | rhapsody*)
16434 dynamic_linker="$host_os dyld"
16435 version_type=darwin
16436 need_lib_prefix=no
16437 need_version=no
16438 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16439 soname_spec='${libname}${release}${major}$shared_ext'
16440 shlibpath_overrides_runpath=yes
16441 shlibpath_var=DYLD_LIBRARY_PATH
16442 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16443
16444 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16445 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16446 ;;
16447
16448dgux*)
cristy99bd5232011-12-07 14:38:20 +000016449 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016450 need_lib_prefix=no
16451 need_version=no
16452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16453 soname_spec='${libname}${release}${shared_ext}$major'
16454 shlibpath_var=LD_LIBRARY_PATH
16455 ;;
16456
cristy73bd4a52010-10-05 11:24:23 +000016457freebsd* | dragonfly*)
16458 # DragonFly does not have aout. When/if they implement a new
16459 # versioning mechanism, adjust this.
16460 if test -x /usr/bin/objformat; then
16461 objformat=`/usr/bin/objformat`
16462 else
16463 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016464 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016465 *) objformat=elf ;;
16466 esac
16467 fi
16468 version_type=freebsd-$objformat
16469 case $version_type in
16470 freebsd-elf*)
16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16472 need_version=no
16473 need_lib_prefix=no
16474 ;;
16475 freebsd-*)
16476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16477 need_version=yes
16478 ;;
16479 esac
16480 shlibpath_var=LD_LIBRARY_PATH
16481 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016482 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016483 shlibpath_overrides_runpath=yes
16484 ;;
16485 freebsd3.[01]* | freebsdelf3.[01]*)
16486 shlibpath_overrides_runpath=yes
16487 hardcode_into_libs=yes
16488 ;;
16489 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16490 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16491 shlibpath_overrides_runpath=no
16492 hardcode_into_libs=yes
16493 ;;
16494 *) # from 4.6 on, and DragonFly
16495 shlibpath_overrides_runpath=yes
16496 hardcode_into_libs=yes
16497 ;;
16498 esac
16499 ;;
16500
16501gnu*)
cristy99bd5232011-12-07 14:38:20 +000016502 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016503 need_lib_prefix=no
16504 need_version=no
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16506 soname_spec='${libname}${release}${shared_ext}$major'
16507 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016508 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016509 hardcode_into_libs=yes
16510 ;;
16511
cristy0c60a692010-11-04 01:09:47 +000016512haiku*)
cristy99bd5232011-12-07 14:38:20 +000016513 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016514 need_lib_prefix=no
16515 need_version=no
16516 dynamic_linker="$host_os runtime_loader"
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 shlibpath_var=LIBRARY_PATH
16520 shlibpath_overrides_runpath=yes
16521 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16522 hardcode_into_libs=yes
16523 ;;
16524
cristy73bd4a52010-10-05 11:24:23 +000016525hpux9* | hpux10* | hpux11*)
16526 # Give a soname corresponding to the major version so that dld.sl refuses to
16527 # link against other versions.
16528 version_type=sunos
16529 need_lib_prefix=no
16530 need_version=no
16531 case $host_cpu in
16532 ia64*)
16533 shrext_cmds='.so'
16534 hardcode_into_libs=yes
16535 dynamic_linker="$host_os dld.so"
16536 shlibpath_var=LD_LIBRARY_PATH
16537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16539 soname_spec='${libname}${release}${shared_ext}$major'
16540 if test "X$HPUX_IA64_MODE" = X32; then
16541 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16542 else
16543 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16544 fi
16545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16546 ;;
16547 hppa*64*)
16548 shrext_cmds='.sl'
16549 hardcode_into_libs=yes
16550 dynamic_linker="$host_os dld.sl"
16551 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16554 soname_spec='${libname}${release}${shared_ext}$major'
16555 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16557 ;;
16558 *)
16559 shrext_cmds='.sl'
16560 dynamic_linker="$host_os dld.sl"
16561 shlibpath_var=SHLIB_PATH
16562 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564 soname_spec='${libname}${release}${shared_ext}$major'
16565 ;;
16566 esac
cristy0c60a692010-11-04 01:09:47 +000016567 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016568 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016569 # or fails outright, so override atomically:
16570 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016571 ;;
16572
16573interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016574 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016575 need_lib_prefix=no
16576 need_version=no
16577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16578 soname_spec='${libname}${release}${shared_ext}$major'
16579 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16580 shlibpath_var=LD_LIBRARY_PATH
16581 shlibpath_overrides_runpath=no
16582 hardcode_into_libs=yes
16583 ;;
16584
16585irix5* | irix6* | nonstopux*)
16586 case $host_os in
16587 nonstopux*) version_type=nonstopux ;;
16588 *)
16589 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016590 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016591 else
16592 version_type=irix
16593 fi ;;
16594 esac
16595 need_lib_prefix=no
16596 need_version=no
16597 soname_spec='${libname}${release}${shared_ext}$major'
16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16599 case $host_os in
16600 irix5* | nonstopux*)
16601 libsuff= shlibsuff=
16602 ;;
16603 *)
16604 case $LD in # libtool.m4 will add one of these switches to LD
16605 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16606 libsuff= shlibsuff= libmagic=32-bit;;
16607 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16608 libsuff=32 shlibsuff=N32 libmagic=N32;;
16609 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16610 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16611 *) libsuff= shlibsuff= libmagic=never-match;;
16612 esac
16613 ;;
16614 esac
16615 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16616 shlibpath_overrides_runpath=no
16617 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16618 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16619 hardcode_into_libs=yes
16620 ;;
16621
16622# No shared lib support for Linux oldld, aout, or coff.
16623linux*oldld* | linux*aout* | linux*coff*)
16624 dynamic_linker=no
16625 ;;
16626
cristy99bd5232011-12-07 14:38:20 +000016627# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016628linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016629 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016630 need_lib_prefix=no
16631 need_version=no
16632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16633 soname_spec='${libname}${release}${shared_ext}$major'
16634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16635 shlibpath_var=LD_LIBRARY_PATH
16636 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016637
cristy73bd4a52010-10-05 11:24:23 +000016638 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016639 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016640 $as_echo_n "(cached) " >&6
16641else
16642 lt_cv_shlibpath_overrides_runpath=no
16643 save_LDFLAGS=$LDFLAGS
16644 save_libdir=$libdir
16645 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16646 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016648/* end confdefs.h. */
16649
16650int
16651main ()
16652{
16653
16654 ;
16655 return 0;
16656}
16657_ACEOF
16658if ac_fn_c_try_link "$LINENO"; then :
16659 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016660 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016661fi
16662fi
16663rm -f core conftest.err conftest.$ac_objext \
16664 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016665 LDFLAGS=$save_LDFLAGS
16666 libdir=$save_libdir
16667
16668fi
16669
16670 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016671
16672 # This implies no fast_install, which is unacceptable.
16673 # Some rework will be needed to allow for fast_install
16674 # before this can be enabled.
16675 hardcode_into_libs=yes
16676
16677 # Add ABI-specific directories to the system library path.
16678 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16679
16680 # Append ld.so.conf contents to the search path
16681 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016682 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 +000016683 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016684
cristy73bd4a52010-10-05 11:24:23 +000016685 fi
16686
16687 # We used to test for /lib/ld.so.1 and disable shared libraries on
16688 # powerpc, because MkLinux only supported shared libraries with the
16689 # GNU dynamic linker. Since this was broken with cross compilers,
16690 # most powerpc-linux boxes support dynamic linking these days and
16691 # people can always --disable-shared, the test was removed, and we
16692 # assume the GNU/Linux dynamic linker is in use.
16693 dynamic_linker='GNU/Linux ld.so'
16694 ;;
16695
16696netbsd*)
16697 version_type=sunos
16698 need_lib_prefix=no
16699 need_version=no
16700 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16703 dynamic_linker='NetBSD (a.out) ld.so'
16704 else
16705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16706 soname_spec='${libname}${release}${shared_ext}$major'
16707 dynamic_linker='NetBSD ld.elf_so'
16708 fi
16709 shlibpath_var=LD_LIBRARY_PATH
16710 shlibpath_overrides_runpath=yes
16711 hardcode_into_libs=yes
16712 ;;
16713
16714newsos6)
cristy99bd5232011-12-07 14:38:20 +000016715 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16717 shlibpath_var=LD_LIBRARY_PATH
16718 shlibpath_overrides_runpath=yes
16719 ;;
16720
16721*nto* | *qnx*)
16722 version_type=qnx
16723 need_lib_prefix=no
16724 need_version=no
16725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16726 soname_spec='${libname}${release}${shared_ext}$major'
16727 shlibpath_var=LD_LIBRARY_PATH
16728 shlibpath_overrides_runpath=no
16729 hardcode_into_libs=yes
16730 dynamic_linker='ldqnx.so'
16731 ;;
16732
16733openbsd*)
16734 version_type=sunos
16735 sys_lib_dlsearch_path_spec="/usr/lib"
16736 need_lib_prefix=no
16737 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16738 case $host_os in
16739 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16740 *) need_version=no ;;
16741 esac
16742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16744 shlibpath_var=LD_LIBRARY_PATH
16745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16746 case $host_os in
16747 openbsd2.[89] | openbsd2.[89].*)
16748 shlibpath_overrides_runpath=no
16749 ;;
16750 *)
16751 shlibpath_overrides_runpath=yes
16752 ;;
16753 esac
16754 else
16755 shlibpath_overrides_runpath=yes
16756 fi
16757 ;;
16758
16759os2*)
16760 libname_spec='$name'
16761 shrext_cmds=".dll"
16762 need_lib_prefix=no
16763 library_names_spec='$libname${shared_ext} $libname.a'
16764 dynamic_linker='OS/2 ld.exe'
16765 shlibpath_var=LIBPATH
16766 ;;
16767
16768osf3* | osf4* | osf5*)
16769 version_type=osf
16770 need_lib_prefix=no
16771 need_version=no
16772 soname_spec='${libname}${release}${shared_ext}$major'
16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774 shlibpath_var=LD_LIBRARY_PATH
16775 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16776 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16777 ;;
16778
16779rdos*)
16780 dynamic_linker=no
16781 ;;
16782
16783solaris*)
cristy99bd5232011-12-07 14:38:20 +000016784 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016785 need_lib_prefix=no
16786 need_version=no
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788 soname_spec='${libname}${release}${shared_ext}$major'
16789 shlibpath_var=LD_LIBRARY_PATH
16790 shlibpath_overrides_runpath=yes
16791 hardcode_into_libs=yes
16792 # ldd complains unless libraries are executable
16793 postinstall_cmds='chmod +x $lib'
16794 ;;
16795
16796sunos4*)
16797 version_type=sunos
16798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16799 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16800 shlibpath_var=LD_LIBRARY_PATH
16801 shlibpath_overrides_runpath=yes
16802 if test "$with_gnu_ld" = yes; then
16803 need_lib_prefix=no
16804 fi
16805 need_version=yes
16806 ;;
16807
16808sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016809 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16811 soname_spec='${libname}${release}${shared_ext}$major'
16812 shlibpath_var=LD_LIBRARY_PATH
16813 case $host_vendor in
16814 sni)
16815 shlibpath_overrides_runpath=no
16816 need_lib_prefix=no
16817 runpath_var=LD_RUN_PATH
16818 ;;
16819 siemens)
16820 need_lib_prefix=no
16821 ;;
16822 motorola)
16823 need_lib_prefix=no
16824 need_version=no
16825 shlibpath_overrides_runpath=no
16826 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16827 ;;
16828 esac
16829 ;;
16830
16831sysv4*MP*)
16832 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016833 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016834 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16835 soname_spec='$libname${shared_ext}.$major'
16836 shlibpath_var=LD_LIBRARY_PATH
16837 fi
16838 ;;
16839
16840sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16841 version_type=freebsd-elf
16842 need_lib_prefix=no
16843 need_version=no
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16845 soname_spec='${libname}${release}${shared_ext}$major'
16846 shlibpath_var=LD_LIBRARY_PATH
16847 shlibpath_overrides_runpath=yes
16848 hardcode_into_libs=yes
16849 if test "$with_gnu_ld" = yes; then
16850 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16851 else
16852 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16853 case $host_os in
16854 sco3.2v5*)
16855 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16856 ;;
16857 esac
16858 fi
16859 sys_lib_dlsearch_path_spec='/usr/lib'
16860 ;;
16861
16862tpf*)
16863 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016864 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016865 need_lib_prefix=no
16866 need_version=no
16867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868 shlibpath_var=LD_LIBRARY_PATH
16869 shlibpath_overrides_runpath=no
16870 hardcode_into_libs=yes
16871 ;;
16872
16873uts4*)
cristy99bd5232011-12-07 14:38:20 +000016874 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16876 soname_spec='${libname}${release}${shared_ext}$major'
16877 shlibpath_var=LD_LIBRARY_PATH
16878 ;;
16879
16880*)
16881 dynamic_linker=no
16882 ;;
16883esac
16884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16885$as_echo "$dynamic_linker" >&6; }
16886test "$dynamic_linker" = no && can_build_shared=no
16887
16888variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16889if test "$GCC" = yes; then
16890 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16891fi
16892
16893if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16894 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16895fi
16896if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16897 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16898fi
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
cristy0c60a692010-11-04 01:09:47 +000016986
16987
16988
16989
16990
cristy73bd4a52010-10-05 11:24:23 +000016991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16992$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16993hardcode_action=
16994if test -n "$hardcode_libdir_flag_spec" ||
16995 test -n "$runpath_var" ||
16996 test "X$hardcode_automatic" = "Xyes" ; then
16997
16998 # We can hardcode non-existent directories.
16999 if test "$hardcode_direct" != no &&
17000 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17001 # have to relink, otherwise we might link with an installed library
17002 # when we should be linking with a yet-to-be-installed one
17003 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17004 test "$hardcode_minus_L" != no; then
17005 # Linking always hardcodes the temporary library directory.
17006 hardcode_action=relink
17007 else
17008 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17009 hardcode_action=immediate
17010 fi
17011else
17012 # We cannot hardcode anything, or else we can only hardcode existing
17013 # directories.
17014 hardcode_action=unsupported
17015fi
17016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17017$as_echo "$hardcode_action" >&6; }
17018
17019if test "$hardcode_action" = relink ||
17020 test "$inherit_rpath" = yes; then
17021 # Fast installation is not supported
17022 enable_fast_install=no
17023elif test "$shlibpath_overrides_runpath" = yes ||
17024 test "$enable_shared" = no; then
17025 # Fast installation is not necessary
17026 enable_fast_install=needless
17027fi
17028
17029
17030
17031
17032
17033
17034 if test "x$enable_dlopen" != xyes; then
17035 enable_dlopen=unknown
17036 enable_dlopen_self=unknown
17037 enable_dlopen_self_static=unknown
17038else
17039 lt_cv_dlopen=no
17040 lt_cv_dlopen_libs=
17041
17042 case $host_os in
17043 beos*)
17044 lt_cv_dlopen="load_add_on"
17045 lt_cv_dlopen_libs=
17046 lt_cv_dlopen_self=yes
17047 ;;
17048
17049 mingw* | pw32* | cegcc*)
17050 lt_cv_dlopen="LoadLibrary"
17051 lt_cv_dlopen_libs=
17052 ;;
17053
17054 cygwin*)
17055 lt_cv_dlopen="dlopen"
17056 lt_cv_dlopen_libs=
17057 ;;
17058
17059 darwin*)
17060 # if libdl is installed we need to link against it
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17062$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017063if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017064 $as_echo_n "(cached) " >&6
17065else
17066 ac_check_lib_save_LIBS=$LIBS
17067LIBS="-ldl $LIBS"
17068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069/* end confdefs.h. */
17070
17071/* Override any GCC internal prototype to avoid an error.
17072 Use char because int might match the return type of a GCC
17073 builtin and then its argument prototype would still apply. */
17074#ifdef __cplusplus
17075extern "C"
17076#endif
17077char dlopen ();
17078int
17079main ()
17080{
17081return dlopen ();
17082 ;
17083 return 0;
17084}
17085_ACEOF
17086if ac_fn_c_try_link "$LINENO"; then :
17087 ac_cv_lib_dl_dlopen=yes
17088else
17089 ac_cv_lib_dl_dlopen=no
17090fi
17091rm -f core conftest.err conftest.$ac_objext \
17092 conftest$ac_exeext conftest.$ac_ext
17093LIBS=$ac_check_lib_save_LIBS
17094fi
17095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17096$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017097if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17099else
17100
17101 lt_cv_dlopen="dyld"
17102 lt_cv_dlopen_libs=
17103 lt_cv_dlopen_self=yes
17104
17105fi
17106
17107 ;;
17108
17109 *)
17110 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017111if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017112 lt_cv_dlopen="shl_load"
17113else
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17115$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017116if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017117 $as_echo_n "(cached) " >&6
17118else
17119 ac_check_lib_save_LIBS=$LIBS
17120LIBS="-ldld $LIBS"
17121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17122/* end confdefs.h. */
17123
17124/* Override any GCC internal prototype to avoid an error.
17125 Use char because int might match the return type of a GCC
17126 builtin and then its argument prototype would still apply. */
17127#ifdef __cplusplus
17128extern "C"
17129#endif
17130char shl_load ();
17131int
17132main ()
17133{
17134return shl_load ();
17135 ;
17136 return 0;
17137}
17138_ACEOF
17139if ac_fn_c_try_link "$LINENO"; then :
17140 ac_cv_lib_dld_shl_load=yes
17141else
17142 ac_cv_lib_dld_shl_load=no
17143fi
17144rm -f core conftest.err conftest.$ac_objext \
17145 conftest$ac_exeext conftest.$ac_ext
17146LIBS=$ac_check_lib_save_LIBS
17147fi
17148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17149$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017150if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017151 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17152else
17153 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017154if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017155 lt_cv_dlopen="dlopen"
17156else
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17158$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017159if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017160 $as_echo_n "(cached) " >&6
17161else
17162 ac_check_lib_save_LIBS=$LIBS
17163LIBS="-ldl $LIBS"
17164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165/* end confdefs.h. */
17166
17167/* Override any GCC internal prototype to avoid an error.
17168 Use char because int might match the return type of a GCC
17169 builtin and then its argument prototype would still apply. */
17170#ifdef __cplusplus
17171extern "C"
17172#endif
17173char dlopen ();
17174int
17175main ()
17176{
17177return dlopen ();
17178 ;
17179 return 0;
17180}
17181_ACEOF
17182if ac_fn_c_try_link "$LINENO"; then :
17183 ac_cv_lib_dl_dlopen=yes
17184else
17185 ac_cv_lib_dl_dlopen=no
17186fi
17187rm -f core conftest.err conftest.$ac_objext \
17188 conftest$ac_exeext conftest.$ac_ext
17189LIBS=$ac_check_lib_save_LIBS
17190fi
17191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17192$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017193if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017194 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17195else
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17197$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017198if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017199 $as_echo_n "(cached) " >&6
17200else
17201 ac_check_lib_save_LIBS=$LIBS
17202LIBS="-lsvld $LIBS"
17203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17204/* end confdefs.h. */
17205
17206/* Override any GCC internal prototype to avoid an error.
17207 Use char because int might match the return type of a GCC
17208 builtin and then its argument prototype would still apply. */
17209#ifdef __cplusplus
17210extern "C"
17211#endif
17212char dlopen ();
17213int
17214main ()
17215{
17216return dlopen ();
17217 ;
17218 return 0;
17219}
17220_ACEOF
17221if ac_fn_c_try_link "$LINENO"; then :
17222 ac_cv_lib_svld_dlopen=yes
17223else
17224 ac_cv_lib_svld_dlopen=no
17225fi
17226rm -f core conftest.err conftest.$ac_objext \
17227 conftest$ac_exeext conftest.$ac_ext
17228LIBS=$ac_check_lib_save_LIBS
17229fi
17230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17231$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017232if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017233 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17234else
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17236$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017237if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017238 $as_echo_n "(cached) " >&6
17239else
17240 ac_check_lib_save_LIBS=$LIBS
17241LIBS="-ldld $LIBS"
17242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243/* end confdefs.h. */
17244
17245/* Override any GCC internal prototype to avoid an error.
17246 Use char because int might match the return type of a GCC
17247 builtin and then its argument prototype would still apply. */
17248#ifdef __cplusplus
17249extern "C"
17250#endif
17251char dld_link ();
17252int
17253main ()
17254{
17255return dld_link ();
17256 ;
17257 return 0;
17258}
17259_ACEOF
17260if ac_fn_c_try_link "$LINENO"; then :
17261 ac_cv_lib_dld_dld_link=yes
17262else
17263 ac_cv_lib_dld_dld_link=no
17264fi
17265rm -f core conftest.err conftest.$ac_objext \
17266 conftest$ac_exeext conftest.$ac_ext
17267LIBS=$ac_check_lib_save_LIBS
17268fi
17269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17270$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017271if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017272 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17273fi
17274
17275
17276fi
17277
17278
17279fi
17280
17281
17282fi
17283
17284
17285fi
17286
17287
17288fi
17289
17290 ;;
17291 esac
17292
17293 if test "x$lt_cv_dlopen" != xno; then
17294 enable_dlopen=yes
17295 else
17296 enable_dlopen=no
17297 fi
17298
17299 case $lt_cv_dlopen in
17300 dlopen)
17301 save_CPPFLAGS="$CPPFLAGS"
17302 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17303
17304 save_LDFLAGS="$LDFLAGS"
17305 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17306
17307 save_LIBS="$LIBS"
17308 LIBS="$lt_cv_dlopen_libs $LIBS"
17309
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17311$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017312if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017313 $as_echo_n "(cached) " >&6
17314else
17315 if test "$cross_compiling" = yes; then :
17316 lt_cv_dlopen_self=cross
17317else
17318 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17319 lt_status=$lt_dlunknown
17320 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017321#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017322#include "confdefs.h"
17323
17324#if HAVE_DLFCN_H
17325#include <dlfcn.h>
17326#endif
17327
17328#include <stdio.h>
17329
17330#ifdef RTLD_GLOBAL
17331# define LT_DLGLOBAL RTLD_GLOBAL
17332#else
17333# ifdef DL_GLOBAL
17334# define LT_DLGLOBAL DL_GLOBAL
17335# else
17336# define LT_DLGLOBAL 0
17337# endif
17338#endif
17339
17340/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17341 find out it does not work in some platform. */
17342#ifndef LT_DLLAZY_OR_NOW
17343# ifdef RTLD_LAZY
17344# define LT_DLLAZY_OR_NOW RTLD_LAZY
17345# else
17346# ifdef DL_LAZY
17347# define LT_DLLAZY_OR_NOW DL_LAZY
17348# else
17349# ifdef RTLD_NOW
17350# define LT_DLLAZY_OR_NOW RTLD_NOW
17351# else
17352# ifdef DL_NOW
17353# define LT_DLLAZY_OR_NOW DL_NOW
17354# else
17355# define LT_DLLAZY_OR_NOW 0
17356# endif
17357# endif
17358# endif
17359# endif
17360#endif
17361
cristy0c60a692010-11-04 01:09:47 +000017362/* When -fvisbility=hidden is used, assume the code has been annotated
17363 correspondingly for the symbols needed. */
17364#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017365int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017366#endif
17367
cristyda16f162011-02-19 23:52:17 +000017368int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017369int main ()
17370{
17371 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17372 int status = $lt_dlunknown;
17373
17374 if (self)
17375 {
17376 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017377 else
17378 {
17379 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17380 else puts (dlerror ());
17381 }
cristy73bd4a52010-10-05 11:24:23 +000017382 /* dlclose (self); */
17383 }
17384 else
17385 puts (dlerror ());
17386
17387 return status;
17388}
17389_LT_EOF
17390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17391 (eval $ac_link) 2>&5
17392 ac_status=$?
17393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17394 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17395 (./conftest; exit; ) >&5 2>/dev/null
17396 lt_status=$?
17397 case x$lt_status in
17398 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17399 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17400 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17401 esac
17402 else :
17403 # compilation failed
17404 lt_cv_dlopen_self=no
17405 fi
17406fi
17407rm -fr conftest*
17408
17409
17410fi
17411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17412$as_echo "$lt_cv_dlopen_self" >&6; }
17413
17414 if test "x$lt_cv_dlopen_self" = xyes; then
17415 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17417$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017418if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017419 $as_echo_n "(cached) " >&6
17420else
17421 if test "$cross_compiling" = yes; then :
17422 lt_cv_dlopen_self_static=cross
17423else
17424 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17425 lt_status=$lt_dlunknown
17426 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017427#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017428#include "confdefs.h"
17429
17430#if HAVE_DLFCN_H
17431#include <dlfcn.h>
17432#endif
17433
17434#include <stdio.h>
17435
17436#ifdef RTLD_GLOBAL
17437# define LT_DLGLOBAL RTLD_GLOBAL
17438#else
17439# ifdef DL_GLOBAL
17440# define LT_DLGLOBAL DL_GLOBAL
17441# else
17442# define LT_DLGLOBAL 0
17443# endif
17444#endif
17445
17446/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17447 find out it does not work in some platform. */
17448#ifndef LT_DLLAZY_OR_NOW
17449# ifdef RTLD_LAZY
17450# define LT_DLLAZY_OR_NOW RTLD_LAZY
17451# else
17452# ifdef DL_LAZY
17453# define LT_DLLAZY_OR_NOW DL_LAZY
17454# else
17455# ifdef RTLD_NOW
17456# define LT_DLLAZY_OR_NOW RTLD_NOW
17457# else
17458# ifdef DL_NOW
17459# define LT_DLLAZY_OR_NOW DL_NOW
17460# else
17461# define LT_DLLAZY_OR_NOW 0
17462# endif
17463# endif
17464# endif
17465# endif
17466#endif
17467
cristy0c60a692010-11-04 01:09:47 +000017468/* When -fvisbility=hidden is used, assume the code has been annotated
17469 correspondingly for the symbols needed. */
17470#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017471int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017472#endif
17473
cristyda16f162011-02-19 23:52:17 +000017474int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017475int main ()
17476{
17477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17478 int status = $lt_dlunknown;
17479
17480 if (self)
17481 {
17482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017483 else
17484 {
17485 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17486 else puts (dlerror ());
17487 }
cristy73bd4a52010-10-05 11:24:23 +000017488 /* dlclose (self); */
17489 }
17490 else
17491 puts (dlerror ());
17492
17493 return status;
17494}
17495_LT_EOF
17496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17497 (eval $ac_link) 2>&5
17498 ac_status=$?
17499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17500 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17501 (./conftest; exit; ) >&5 2>/dev/null
17502 lt_status=$?
17503 case x$lt_status in
17504 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17505 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17506 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17507 esac
17508 else :
17509 # compilation failed
17510 lt_cv_dlopen_self_static=no
17511 fi
17512fi
17513rm -fr conftest*
17514
17515
17516fi
17517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17518$as_echo "$lt_cv_dlopen_self_static" >&6; }
17519 fi
17520
17521 CPPFLAGS="$save_CPPFLAGS"
17522 LDFLAGS="$save_LDFLAGS"
17523 LIBS="$save_LIBS"
17524 ;;
17525 esac
17526
17527 case $lt_cv_dlopen_self in
17528 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17529 *) enable_dlopen_self=unknown ;;
17530 esac
17531
17532 case $lt_cv_dlopen_self_static in
17533 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17534 *) enable_dlopen_self_static=unknown ;;
17535 esac
17536fi
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554striplib=
17555old_striplib=
17556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17557$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17558if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17559 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17560 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17562$as_echo "yes" >&6; }
17563else
17564# FIXME - insert some real tests, host_os isn't really good enough
17565 case $host_os in
17566 darwin*)
17567 if test -n "$STRIP" ; then
17568 striplib="$STRIP -x"
17569 old_striplib="$STRIP -S"
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17571$as_echo "yes" >&6; }
17572 else
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17574$as_echo "no" >&6; }
17575 fi
17576 ;;
17577 *)
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17579$as_echo "no" >&6; }
17580 ;;
17581 esac
17582fi
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595 # Report which library types will actually be built
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17597$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17599$as_echo "$can_build_shared" >&6; }
17600
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17602$as_echo_n "checking whether to build shared libraries... " >&6; }
17603 test "$can_build_shared" = "no" && enable_shared=no
17604
17605 # On AIX, shared libraries and static libraries use the same namespace, and
17606 # are all built from PIC.
17607 case $host_os in
17608 aix3*)
17609 test "$enable_shared" = yes && enable_static=no
17610 if test -n "$RANLIB"; then
17611 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17612 postinstall_cmds='$RANLIB $lib'
17613 fi
17614 ;;
17615
17616 aix[4-9]*)
17617 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17618 test "$enable_shared" = yes && enable_static=no
17619 fi
17620 ;;
17621 esac
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17623$as_echo "$enable_shared" >&6; }
17624
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17626$as_echo_n "checking whether to build static libraries... " >&6; }
17627 # Make sure either enable_shared or enable_static is yes.
17628 test "$enable_shared" = yes || enable_static=yes
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17630$as_echo "$enable_static" >&6; }
17631
17632
17633
17634
17635fi
17636ac_ext=c
17637ac_cpp='$CPP $CPPFLAGS'
17638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17640ac_compiler_gnu=$ac_cv_c_compiler_gnu
17641
17642CC="$lt_save_CC"
17643
cristy0c60a692010-11-04 01:09:47 +000017644 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17645 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17646 (test "X$CXX" != "Xg++"))) ; then
17647 ac_ext=cpp
17648ac_cpp='$CXXCPP $CPPFLAGS'
17649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17653$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17654if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017655 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017656 $as_echo_n "(cached) " >&6
17657else
17658 # Double quotes because CXXCPP needs to be expanded
17659 for CXXCPP in "$CXX -E" "/lib/cpp"
17660 do
17661 ac_preproc_ok=false
17662for ac_cxx_preproc_warn_flag in '' yes
17663do
17664 # Use a header file that comes with gcc, so configuring glibc
17665 # with a fresh cross-compiler works.
17666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17667 # <limits.h> exists even on freestanding compilers.
17668 # On the NeXT, cc -E runs the code through the compiler's parser,
17669 # not just through cpp. "Syntax error" is here to catch this case.
17670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671/* end confdefs.h. */
17672#ifdef __STDC__
17673# include <limits.h>
17674#else
17675# include <assert.h>
17676#endif
17677 Syntax error
17678_ACEOF
17679if ac_fn_cxx_try_cpp "$LINENO"; then :
17680
17681else
17682 # Broken: fails on valid input.
17683continue
17684fi
cristyda16f162011-02-19 23:52:17 +000017685rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017686
17687 # OK, works on sane cases. Now check whether nonexistent headers
17688 # can be detected and how.
17689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17690/* end confdefs.h. */
17691#include <ac_nonexistent.h>
17692_ACEOF
17693if ac_fn_cxx_try_cpp "$LINENO"; then :
17694 # Broken: success on invalid input.
17695continue
17696else
17697 # Passes both tests.
17698ac_preproc_ok=:
17699break
17700fi
cristyda16f162011-02-19 23:52:17 +000017701rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017702
17703done
17704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017705rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017706if $ac_preproc_ok; then :
17707 break
17708fi
17709
17710 done
17711 ac_cv_prog_CXXCPP=$CXXCPP
17712
17713fi
17714 CXXCPP=$ac_cv_prog_CXXCPP
17715else
17716 ac_cv_prog_CXXCPP=$CXXCPP
17717fi
17718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17719$as_echo "$CXXCPP" >&6; }
17720ac_preproc_ok=false
17721for ac_cxx_preproc_warn_flag in '' yes
17722do
17723 # Use a header file that comes with gcc, so configuring glibc
17724 # with a fresh cross-compiler works.
17725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17726 # <limits.h> exists even on freestanding compilers.
17727 # On the NeXT, cc -E runs the code through the compiler's parser,
17728 # not just through cpp. "Syntax error" is here to catch this case.
17729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17730/* end confdefs.h. */
17731#ifdef __STDC__
17732# include <limits.h>
17733#else
17734# include <assert.h>
17735#endif
17736 Syntax error
17737_ACEOF
17738if ac_fn_cxx_try_cpp "$LINENO"; then :
17739
17740else
17741 # Broken: fails on valid input.
17742continue
17743fi
cristyda16f162011-02-19 23:52:17 +000017744rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017745
17746 # OK, works on sane cases. Now check whether nonexistent headers
17747 # can be detected and how.
17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749/* end confdefs.h. */
17750#include <ac_nonexistent.h>
17751_ACEOF
17752if ac_fn_cxx_try_cpp "$LINENO"; then :
17753 # Broken: success on invalid input.
17754continue
17755else
17756 # Passes both tests.
17757ac_preproc_ok=:
17758break
17759fi
cristyda16f162011-02-19 23:52:17 +000017760rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017761
17762done
17763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017764rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017765if $ac_preproc_ok; then :
17766
17767else
17768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17770as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17771See \`config.log' for more details" "$LINENO" 5; }
17772fi
17773
17774ac_ext=c
17775ac_cpp='$CPP $CPPFLAGS'
17776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17778ac_compiler_gnu=$ac_cv_c_compiler_gnu
17779
17780else
17781 _lt_caught_CXX_error=yes
17782fi
cristy73bd4a52010-10-05 11:24:23 +000017783
17784ac_ext=cpp
17785ac_cpp='$CXXCPP $CPPFLAGS'
17786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17789
17790archive_cmds_need_lc_CXX=no
17791allow_undefined_flag_CXX=
17792always_export_symbols_CXX=no
17793archive_expsym_cmds_CXX=
17794compiler_needs_object_CXX=no
17795export_dynamic_flag_spec_CXX=
17796hardcode_direct_CXX=no
17797hardcode_direct_absolute_CXX=no
17798hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017799hardcode_libdir_separator_CXX=
17800hardcode_minus_L_CXX=no
17801hardcode_shlibpath_var_CXX=unsupported
17802hardcode_automatic_CXX=no
17803inherit_rpath_CXX=no
17804module_cmds_CXX=
17805module_expsym_cmds_CXX=
17806link_all_deplibs_CXX=unknown
17807old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017808reload_flag_CXX=$reload_flag
17809reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017810no_undefined_flag_CXX=
17811whole_archive_flag_spec_CXX=
17812enable_shared_with_static_runtimes_CXX=no
17813
17814# Source file extension for C++ test sources.
17815ac_ext=cpp
17816
17817# Object file extension for compiled C++ test sources.
17818objext=o
17819objext_CXX=$objext
17820
17821# No sense in running all these tests if we already determined that
17822# the CXX compiler isn't working. Some variables (like enable_shared)
17823# are currently assumed to apply to all compilers on this platform,
17824# and will be corrupted by setting them based on a non-working compiler.
17825if test "$_lt_caught_CXX_error" != yes; then
17826 # Code to be used in simple compile tests
17827 lt_simple_compile_test_code="int some_variable = 0;"
17828
17829 # Code to be used in simple link tests
17830 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17831
17832 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17833
17834
17835
17836
17837
17838
17839# If no C compiler was specified, use CC.
17840LTCC=${LTCC-"$CC"}
17841
17842# If no C compiler flags were specified, use CFLAGS.
17843LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17844
17845# Allow CC to be a program name with arguments.
17846compiler=$CC
17847
17848
17849 # save warnings/boilerplate of simple test code
17850 ac_outfile=conftest.$ac_objext
17851echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17852eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17853_lt_compiler_boilerplate=`cat conftest.err`
17854$RM conftest*
17855
17856 ac_outfile=conftest.$ac_objext
17857echo "$lt_simple_link_test_code" >conftest.$ac_ext
17858eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17859_lt_linker_boilerplate=`cat conftest.err`
17860$RM -r conftest*
17861
17862
17863 # Allow CC to be a program name with arguments.
17864 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017865 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017866 lt_save_LD=$LD
17867 lt_save_GCC=$GCC
17868 GCC=$GXX
17869 lt_save_with_gnu_ld=$with_gnu_ld
17870 lt_save_path_LD=$lt_cv_path_LD
17871 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17872 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17873 else
17874 $as_unset lt_cv_prog_gnu_ld
17875 fi
17876 if test -n "${lt_cv_path_LDCXX+set}"; then
17877 lt_cv_path_LD=$lt_cv_path_LDCXX
17878 else
17879 $as_unset lt_cv_path_LD
17880 fi
17881 test -z "${LDCXX+set}" || LD=$LDCXX
17882 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017883 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017884 compiler=$CC
17885 compiler_CXX=$CC
17886 for cc_temp in $compiler""; do
17887 case $cc_temp in
17888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17890 \-*) ;;
17891 *) break;;
17892 esac
17893done
cristy0c60a692010-11-04 01:09:47 +000017894cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017895
17896
17897 if test -n "$compiler"; then
17898 # We don't want -fno-exception when compiling C++ code, so set the
17899 # no_builtin_flag separately
17900 if test "$GXX" = yes; then
17901 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17902 else
17903 lt_prog_compiler_no_builtin_flag_CXX=
17904 fi
17905
17906 if test "$GXX" = yes; then
17907 # Set up default GNU C++ configuration
17908
17909
17910
17911# Check whether --with-gnu-ld was given.
17912if test "${with_gnu_ld+set}" = set; then :
17913 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17914else
17915 with_gnu_ld=no
17916fi
17917
17918ac_prog=ld
17919if test "$GCC" = yes; then
17920 # Check if gcc -print-prog-name=ld gives a path.
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17922$as_echo_n "checking for ld used by $CC... " >&6; }
17923 case $host in
17924 *-*-mingw*)
17925 # gcc leaves a trailing carriage return which upsets mingw
17926 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17927 *)
17928 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17929 esac
17930 case $ac_prog in
17931 # Accept absolute paths.
17932 [\\/]* | ?:[\\/]*)
17933 re_direlt='/[^/][^/]*/\.\./'
17934 # Canonicalize the pathname of ld
17935 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17936 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17937 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17938 done
17939 test -z "$LD" && LD="$ac_prog"
17940 ;;
17941 "")
17942 # If it fails, then pretend we aren't using GCC.
17943 ac_prog=ld
17944 ;;
17945 *)
17946 # If it is relative, then search for the first ld in PATH.
17947 with_gnu_ld=unknown
17948 ;;
17949 esac
17950elif test "$with_gnu_ld" = yes; then
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17952$as_echo_n "checking for GNU ld... " >&6; }
17953else
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17955$as_echo_n "checking for non-GNU ld... " >&6; }
17956fi
cristyda16f162011-02-19 23:52:17 +000017957if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017958 $as_echo_n "(cached) " >&6
17959else
17960 if test -z "$LD"; then
17961 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17962 for ac_dir in $PATH; do
17963 IFS="$lt_save_ifs"
17964 test -z "$ac_dir" && ac_dir=.
17965 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17966 lt_cv_path_LD="$ac_dir/$ac_prog"
17967 # Check to see if the program is GNU ld. I'd rather use --version,
17968 # but apparently some variants of GNU ld only accept -v.
17969 # Break only if it was the GNU/non-GNU ld that we prefer.
17970 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17971 *GNU* | *'with BFD'*)
17972 test "$with_gnu_ld" != no && break
17973 ;;
17974 *)
17975 test "$with_gnu_ld" != yes && break
17976 ;;
17977 esac
17978 fi
17979 done
17980 IFS="$lt_save_ifs"
17981else
17982 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17983fi
17984fi
17985
17986LD="$lt_cv_path_LD"
17987if test -n "$LD"; then
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17989$as_echo "$LD" >&6; }
17990else
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17992$as_echo "no" >&6; }
17993fi
cristy98dddb52010-11-04 00:30:15 +000017994test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17996$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017997if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017998 $as_echo_n "(cached) " >&6
17999else
18000 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18001case `$LD -v 2>&1 </dev/null` in
18002*GNU* | *'with BFD'*)
18003 lt_cv_prog_gnu_ld=yes
18004 ;;
18005*)
18006 lt_cv_prog_gnu_ld=no
18007 ;;
18008esac
18009fi
18010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18011$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18012with_gnu_ld=$lt_cv_prog_gnu_ld
18013
18014
18015
18016
18017
18018
18019
18020 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18021 # archiving commands below assume that GNU ld is being used.
18022 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018023 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18024 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 +000018025
18026 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18027 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18028
18029 # If archive_cmds runs LD, not CC, wlarc should be empty
18030 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18031 # investigate it a little bit more. (MM)
18032 wlarc='${wl}'
18033
18034 # ancient GNU ld didn't support --whole-archive et. al.
18035 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18036 $GREP 'no-whole-archive' > /dev/null; then
18037 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18038 else
18039 whole_archive_flag_spec_CXX=
18040 fi
18041 else
18042 with_gnu_ld=no
18043 wlarc=
18044
18045 # A generic and very simple default shared library creation
18046 # command for GNU C++ for the case where it uses the native
18047 # linker, instead of GNU ld. If possible, this setting should
18048 # overridden to take advantage of the native linker features on
18049 # the platform it is being used on.
18050 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18051 fi
18052
18053 # Commands to make compiler produce verbose output that lists
18054 # what "hidden" libraries, object files and flags are used when
18055 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018056 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018057
18058 else
18059 GXX=no
18060 with_gnu_ld=no
18061 wlarc=
18062 fi
18063
18064 # PORTME: fill in a description of your system's C++ link characteristics
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18066$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18067 ld_shlibs_CXX=yes
18068 case $host_os in
18069 aix3*)
18070 # FIXME: insert proper C++ library support
18071 ld_shlibs_CXX=no
18072 ;;
18073 aix[4-9]*)
18074 if test "$host_cpu" = ia64; then
18075 # On IA64, the linker does run time linking by default, so we don't
18076 # have to do anything special.
18077 aix_use_runtimelinking=no
18078 exp_sym_flag='-Bexport'
18079 no_entry_flag=""
18080 else
18081 aix_use_runtimelinking=no
18082
18083 # Test if we are trying to use run time linking or normal
18084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18085 # need to do runtime linking.
18086 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18087 for ld_flag in $LDFLAGS; do
18088 case $ld_flag in
18089 *-brtl*)
18090 aix_use_runtimelinking=yes
18091 break
18092 ;;
18093 esac
18094 done
18095 ;;
18096 esac
18097
18098 exp_sym_flag='-bexport'
18099 no_entry_flag='-bnoentry'
18100 fi
18101
18102 # When large executables or shared objects are built, AIX ld can
18103 # have problems creating the table of contents. If linking a library
18104 # or program results in "error TOC overflow" add -mminimal-toc to
18105 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18106 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18107
18108 archive_cmds_CXX=''
18109 hardcode_direct_CXX=yes
18110 hardcode_direct_absolute_CXX=yes
18111 hardcode_libdir_separator_CXX=':'
18112 link_all_deplibs_CXX=yes
18113 file_list_spec_CXX='${wl}-f,'
18114
18115 if test "$GXX" = yes; then
18116 case $host_os in aix4.[012]|aix4.[012].*)
18117 # We only want to do this on AIX 4.2 and lower, the check
18118 # below for broken collect2 doesn't work under 4.3+
18119 collect2name=`${CC} -print-prog-name=collect2`
18120 if test -f "$collect2name" &&
18121 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18122 then
18123 # We have reworked collect2
18124 :
18125 else
18126 # We have old collect2
18127 hardcode_direct_CXX=unsupported
18128 # It fails to find uninstalled libraries when the uninstalled
18129 # path is not listed in the libpath. Setting hardcode_minus_L
18130 # to unsupported forces relinking
18131 hardcode_minus_L_CXX=yes
18132 hardcode_libdir_flag_spec_CXX='-L$libdir'
18133 hardcode_libdir_separator_CXX=
18134 fi
18135 esac
18136 shared_flag='-shared'
18137 if test "$aix_use_runtimelinking" = yes; then
18138 shared_flag="$shared_flag "'${wl}-G'
18139 fi
18140 else
18141 # not using gcc
18142 if test "$host_cpu" = ia64; then
18143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18144 # chokes on -Wl,-G. The following line is correct:
18145 shared_flag='-G'
18146 else
18147 if test "$aix_use_runtimelinking" = yes; then
18148 shared_flag='${wl}-G'
18149 else
18150 shared_flag='${wl}-bM:SRE'
18151 fi
18152 fi
18153 fi
18154
18155 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18156 # It seems that -bexpall does not export symbols beginning with
18157 # underscore (_), so it is better to generate a list of symbols to
18158 # export.
18159 always_export_symbols_CXX=yes
18160 if test "$aix_use_runtimelinking" = yes; then
18161 # Warning - without using the other runtime loading flags (-brtl),
18162 # -berok will link without error, but may produce a broken library.
18163 allow_undefined_flag_CXX='-berok'
18164 # Determine the default libpath from the value encoded in an empty
18165 # executable.
cristyda16f162011-02-19 23:52:17 +000018166 if test "${lt_cv_aix_libpath+set}" = set; then
18167 aix_libpath=$lt_cv_aix_libpath
18168else
18169 if ${lt_cv_aix_libpath__CXX+:} false; then :
18170 $as_echo_n "(cached) " >&6
18171else
18172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018173/* end confdefs.h. */
18174
18175int
18176main ()
18177{
18178
18179 ;
18180 return 0;
18181}
18182_ACEOF
18183if ac_fn_cxx_try_link "$LINENO"; then :
18184
cristyda16f162011-02-19 23:52:17 +000018185 lt_aix_libpath_sed='
18186 /Import File Strings/,/^$/ {
18187 /^0/ {
18188 s/^0 *\([^ ]*\) *$/\1/
18189 p
18190 }
18191 }'
18192 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18193 # Check for a 64-bit object if we didn't find anything.
18194 if test -z "$lt_cv_aix_libpath__CXX"; then
18195 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18196 fi
cristy73bd4a52010-10-05 11:24:23 +000018197fi
18198rm -f core conftest.err conftest.$ac_objext \
18199 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018200 if test -z "$lt_cv_aix_libpath__CXX"; then
18201 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18202 fi
18203
18204fi
18205
18206 aix_libpath=$lt_cv_aix_libpath__CXX
18207fi
cristy73bd4a52010-10-05 11:24:23 +000018208
18209 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18210
cristy0c60a692010-11-04 01:09:47 +000018211 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 +000018212 else
18213 if test "$host_cpu" = ia64; then
18214 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18215 allow_undefined_flag_CXX="-z nodefs"
18216 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"
18217 else
18218 # Determine the default libpath from the value encoded in an
18219 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018220 if test "${lt_cv_aix_libpath+set}" = set; then
18221 aix_libpath=$lt_cv_aix_libpath
18222else
18223 if ${lt_cv_aix_libpath__CXX+:} false; then :
18224 $as_echo_n "(cached) " >&6
18225else
18226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018227/* end confdefs.h. */
18228
18229int
18230main ()
18231{
18232
18233 ;
18234 return 0;
18235}
18236_ACEOF
18237if ac_fn_cxx_try_link "$LINENO"; then :
18238
cristyda16f162011-02-19 23:52:17 +000018239 lt_aix_libpath_sed='
18240 /Import File Strings/,/^$/ {
18241 /^0/ {
18242 s/^0 *\([^ ]*\) *$/\1/
18243 p
18244 }
18245 }'
18246 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18247 # Check for a 64-bit object if we didn't find anything.
18248 if test -z "$lt_cv_aix_libpath__CXX"; then
18249 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18250 fi
cristy73bd4a52010-10-05 11:24:23 +000018251fi
18252rm -f core conftest.err conftest.$ac_objext \
18253 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018254 if test -z "$lt_cv_aix_libpath__CXX"; then
18255 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18256 fi
18257
18258fi
18259
18260 aix_libpath=$lt_cv_aix_libpath__CXX
18261fi
cristy73bd4a52010-10-05 11:24:23 +000018262
18263 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18264 # Warning - without using the other run time loading flags,
18265 # -berok will link without error, but may produce a broken library.
18266 no_undefined_flag_CXX=' ${wl}-bernotok'
18267 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018268 if test "$with_gnu_ld" = yes; then
18269 # We only use this code for GNU lds that support --whole-archive.
18270 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18271 else
18272 # Exported symbols can be pulled into shared objects from archives
18273 whole_archive_flag_spec_CXX='$convenience'
18274 fi
cristy73bd4a52010-10-05 11:24:23 +000018275 archive_cmds_need_lc_CXX=yes
18276 # This is similar to how AIX traditionally builds its shared
18277 # libraries.
18278 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'
18279 fi
18280 fi
18281 ;;
18282
18283 beos*)
18284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18285 allow_undefined_flag_CXX=unsupported
18286 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18287 # support --undefined. This deserves some investigation. FIXME
18288 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18289 else
18290 ld_shlibs_CXX=no
18291 fi
18292 ;;
18293
18294 chorus*)
18295 case $cc_basename in
18296 *)
18297 # FIXME: insert proper C++ library support
18298 ld_shlibs_CXX=no
18299 ;;
18300 esac
18301 ;;
18302
18303 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018304 case $GXX,$cc_basename in
18305 ,cl* | no,cl*)
18306 # Native MSVC
18307 # hardcode_libdir_flag_spec is actually meaningless, as there is
18308 # no search path for DLLs.
18309 hardcode_libdir_flag_spec_CXX=' '
18310 allow_undefined_flag_CXX=unsupported
18311 always_export_symbols_CXX=yes
18312 file_list_spec_CXX='@'
18313 # Tell ltmain to make .lib files, not .a files.
18314 libext=lib
18315 # Tell ltmain to make .dll files, not .so files.
18316 shrext_cmds=".dll"
18317 # FIXME: Setting linknames here is a bad hack.
18318 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18319 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18320 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18321 else
18322 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18323 fi~
18324 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18325 linknames='
18326 # The linker will not automatically build a static lib if we build a DLL.
18327 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18328 enable_shared_with_static_runtimes_CXX=yes
18329 # Don't use ranlib
18330 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18331 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18332 lt_tool_outputfile="@TOOL_OUTPUT@"~
18333 case $lt_outputfile in
18334 *.exe|*.EXE) ;;
18335 *)
18336 lt_outputfile="$lt_outputfile.exe"
18337 lt_tool_outputfile="$lt_tool_outputfile.exe"
18338 ;;
18339 esac~
18340 func_to_tool_file "$lt_outputfile"~
18341 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18342 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18343 $RM "$lt_outputfile.manifest";
18344 fi'
18345 ;;
18346 *)
18347 # g++
18348 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18349 # as there is no search path for DLLs.
18350 hardcode_libdir_flag_spec_CXX='-L$libdir'
18351 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18352 allow_undefined_flag_CXX=unsupported
18353 always_export_symbols_CXX=no
18354 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018355
cristyda16f162011-02-19 23:52:17 +000018356 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18357 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'
18358 # If the export-symbols file already is a .def file (1st line
18359 # is EXPORTS), use it as is; otherwise, prepend...
18360 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18361 cp $export_symbols $output_objdir/$soname.def;
18362 else
18363 echo EXPORTS > $output_objdir/$soname.def;
18364 cat $export_symbols >> $output_objdir/$soname.def;
18365 fi~
18366 $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'
18367 else
18368 ld_shlibs_CXX=no
18369 fi
18370 ;;
18371 esac
18372 ;;
cristy73bd4a52010-10-05 11:24:23 +000018373 darwin* | rhapsody*)
18374
18375
18376 archive_cmds_need_lc_CXX=no
18377 hardcode_direct_CXX=no
18378 hardcode_automatic_CXX=yes
18379 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018380 if test "$lt_cv_ld_force_load" = "yes"; then
18381 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 +000018382
cristy0c60a692010-11-04 01:09:47 +000018383 else
18384 whole_archive_flag_spec_CXX=''
18385 fi
cristy73bd4a52010-10-05 11:24:23 +000018386 link_all_deplibs_CXX=yes
18387 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18388 case $cc_basename in
18389 ifort*) _lt_dar_can_shared=yes ;;
18390 *) _lt_dar_can_shared=$GCC ;;
18391 esac
18392 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018393 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018394 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}"
18395 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18396 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}"
18397 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}"
18398 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18399 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}"
18400 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}"
18401 fi
18402
18403 else
18404 ld_shlibs_CXX=no
18405 fi
18406
18407 ;;
18408
18409 dgux*)
18410 case $cc_basename in
18411 ec++*)
18412 # FIXME: insert proper C++ library support
18413 ld_shlibs_CXX=no
18414 ;;
18415 ghcx*)
18416 # Green Hills C++ Compiler
18417 # FIXME: insert proper C++ library support
18418 ld_shlibs_CXX=no
18419 ;;
18420 *)
18421 # FIXME: insert proper C++ library support
18422 ld_shlibs_CXX=no
18423 ;;
18424 esac
18425 ;;
18426
cristy99bd5232011-12-07 14:38:20 +000018427 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018428 # C++ shared libraries reported to be fairly broken before
18429 # switch to ELF
18430 ld_shlibs_CXX=no
18431 ;;
18432
18433 freebsd-elf*)
18434 archive_cmds_need_lc_CXX=no
18435 ;;
18436
18437 freebsd* | dragonfly*)
18438 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18439 # conventions
18440 ld_shlibs_CXX=yes
18441 ;;
18442
18443 gnu*)
18444 ;;
18445
cristy0c60a692010-11-04 01:09:47 +000018446 haiku*)
18447 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18448 link_all_deplibs_CXX=yes
18449 ;;
18450
cristy73bd4a52010-10-05 11:24:23 +000018451 hpux9*)
18452 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18453 hardcode_libdir_separator_CXX=:
18454 export_dynamic_flag_spec_CXX='${wl}-E'
18455 hardcode_direct_CXX=yes
18456 hardcode_minus_L_CXX=yes # Not in the search PATH,
18457 # but as the default
18458 # location of the library.
18459
18460 case $cc_basename in
18461 CC*)
18462 # FIXME: insert proper C++ library support
18463 ld_shlibs_CXX=no
18464 ;;
18465 aCC*)
18466 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'
18467 # Commands to make compiler produce verbose output that lists
18468 # what "hidden" libraries, object files and flags are used when
18469 # linking a shared library.
18470 #
18471 # There doesn't appear to be a way to prevent this compiler from
18472 # explicitly linking system object files so we need to strip them
18473 # from the output so that they don't get included in the library
18474 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018475 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 +000018476 ;;
18477 *)
18478 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018479 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 +000018480 else
18481 # FIXME: insert proper C++ library support
18482 ld_shlibs_CXX=no
18483 fi
18484 ;;
18485 esac
18486 ;;
18487
18488 hpux10*|hpux11*)
18489 if test $with_gnu_ld = no; then
18490 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18491 hardcode_libdir_separator_CXX=:
18492
18493 case $host_cpu in
18494 hppa*64*|ia64*)
18495 ;;
18496 *)
18497 export_dynamic_flag_spec_CXX='${wl}-E'
18498 ;;
18499 esac
18500 fi
18501 case $host_cpu in
18502 hppa*64*|ia64*)
18503 hardcode_direct_CXX=no
18504 hardcode_shlibpath_var_CXX=no
18505 ;;
18506 *)
18507 hardcode_direct_CXX=yes
18508 hardcode_direct_absolute_CXX=yes
18509 hardcode_minus_L_CXX=yes # Not in the search PATH,
18510 # but as the default
18511 # location of the library.
18512 ;;
18513 esac
18514
18515 case $cc_basename in
18516 CC*)
18517 # FIXME: insert proper C++ library support
18518 ld_shlibs_CXX=no
18519 ;;
18520 aCC*)
18521 case $host_cpu in
18522 hppa*64*)
18523 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18524 ;;
18525 ia64*)
18526 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18527 ;;
18528 *)
18529 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18530 ;;
18531 esac
18532 # Commands to make compiler produce verbose output that lists
18533 # what "hidden" libraries, object files and flags are used when
18534 # linking a shared library.
18535 #
18536 # There doesn't appear to be a way to prevent this compiler from
18537 # explicitly linking system object files so we need to strip them
18538 # from the output so that they don't get included in the library
18539 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018540 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 +000018541 ;;
18542 *)
18543 if test "$GXX" = yes; then
18544 if test $with_gnu_ld = no; then
18545 case $host_cpu in
18546 hppa*64*)
18547 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18548 ;;
18549 ia64*)
cristyda16f162011-02-19 23:52:17 +000018550 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 +000018551 ;;
18552 *)
cristyda16f162011-02-19 23:52:17 +000018553 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 +000018554 ;;
18555 esac
18556 fi
18557 else
18558 # FIXME: insert proper C++ library support
18559 ld_shlibs_CXX=no
18560 fi
18561 ;;
18562 esac
18563 ;;
18564
18565 interix[3-9]*)
18566 hardcode_direct_CXX=no
18567 hardcode_shlibpath_var_CXX=no
18568 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18569 export_dynamic_flag_spec_CXX='${wl}-E'
18570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18571 # Instead, shared libraries are loaded at an image base (0x10000000 by
18572 # default) and relocated if they conflict, which is a slow very memory
18573 # consuming and fragmenting process. To avoid this, we pick a random,
18574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18576 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'
18577 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'
18578 ;;
18579 irix5* | irix6*)
18580 case $cc_basename in
18581 CC*)
18582 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018583 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 +000018584
18585 # Archives containing C++ object files must be created using
18586 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18587 # necessary to make sure instantiated templates are included
18588 # in the archive.
18589 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18590 ;;
18591 *)
18592 if test "$GXX" = yes; then
18593 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018594 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 +000018595 else
cristyda16f162011-02-19 23:52:17 +000018596 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 +000018597 fi
18598 fi
18599 link_all_deplibs_CXX=yes
18600 ;;
18601 esac
18602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18603 hardcode_libdir_separator_CXX=:
18604 inherit_rpath_CXX=yes
18605 ;;
18606
cristy0c60a692010-11-04 01:09:47 +000018607 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018608 case $cc_basename in
18609 KCC*)
18610 # Kuck and Associates, Inc. (KAI) C++ Compiler
18611
18612 # KCC will only create a shared library if the output file
18613 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18614 # to its proper name (with version) after linking.
18615 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'
18616 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'
18617 # Commands to make compiler produce verbose output that lists
18618 # what "hidden" libraries, object files and flags are used when
18619 # linking a shared library.
18620 #
18621 # There doesn't appear to be a way to prevent this compiler from
18622 # explicitly linking system object files so we need to strip them
18623 # from the output so that they don't get included in the library
18624 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018625 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 +000018626
18627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18628 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18629
18630 # Archives containing C++ object files must be created using
18631 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18632 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18633 ;;
18634 icpc* | ecpc* )
18635 # Intel C++
18636 with_gnu_ld=yes
18637 # version 8.0 and above of icpc choke on multiply defined symbols
18638 # if we add $predep_objects and $postdep_objects, however 7.1 and
18639 # earlier do not add the objects themselves.
18640 case `$CC -V 2>&1` in
18641 *"Version 7."*)
18642 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18643 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'
18644 ;;
18645 *) # Version 8.0 or newer
18646 tmp_idyn=
18647 case $host_cpu in
18648 ia64*) tmp_idyn=' -i_dynamic';;
18649 esac
18650 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18651 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'
18652 ;;
18653 esac
18654 archive_cmds_need_lc_CXX=no
18655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18657 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18658 ;;
18659 pgCC* | pgcpp*)
18660 # Portland Group C++ compiler
18661 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018662 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018663 prelink_cmds_CXX='tpldir=Template.dir~
18664 rm -rf $tpldir~
18665 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018666 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018667 old_archive_cmds_CXX='tpldir=Template.dir~
18668 rm -rf $tpldir~
18669 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018670 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018671 $RANLIB $oldlib'
18672 archive_cmds_CXX='tpldir=Template.dir~
18673 rm -rf $tpldir~
18674 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018675 $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 +000018676 archive_expsym_cmds_CXX='tpldir=Template.dir~
18677 rm -rf $tpldir~
18678 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018679 $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 +000018680 ;;
cristy0c60a692010-11-04 01:09:47 +000018681 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018682 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18683 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'
18684 ;;
18685 esac
18686
18687 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018689 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 +000018690 ;;
18691 cxx*)
18692 # Compaq C++
18693 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18694 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'
18695
18696 runpath_var=LD_RUN_PATH
18697 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18698 hardcode_libdir_separator_CXX=:
18699
18700 # Commands to make compiler produce verbose output that lists
18701 # what "hidden" libraries, object files and flags are used when
18702 # linking a shared library.
18703 #
18704 # There doesn't appear to be a way to prevent this compiler from
18705 # explicitly linking system object files so we need to strip them
18706 # from the output so that they don't get included in the library
18707 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018708 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 +000018709 ;;
cristy0c60a692010-11-04 01:09:47 +000018710 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018711 # IBM XL 8.0 on PPC, with GNU ld
18712 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18713 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18714 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18715 if test "x$supports_anon_versioning" = xyes; then
18716 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18718 echo "local: *; };" >> $output_objdir/$libname.ver~
18719 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18720 fi
18721 ;;
18722 *)
18723 case `$CC -V 2>&1 | sed 5q` in
18724 *Sun\ C*)
18725 # Sun C++ 5.9
18726 no_undefined_flag_CXX=' -zdefs'
18727 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18728 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'
18729 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018730 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 +000018731 compiler_needs_object_CXX=yes
18732
18733 # Not sure whether something based on
18734 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18735 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018736 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018737
18738 # Archives containing C++ object files must be created using
18739 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18740 # necessary to make sure instantiated templates are included
18741 # in the archive.
18742 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18743 ;;
18744 esac
18745 ;;
18746 esac
18747 ;;
18748
18749 lynxos*)
18750 # FIXME: insert proper C++ library support
18751 ld_shlibs_CXX=no
18752 ;;
18753
18754 m88k*)
18755 # FIXME: insert proper C++ library support
18756 ld_shlibs_CXX=no
18757 ;;
18758
18759 mvs*)
18760 case $cc_basename in
18761 cxx*)
18762 # FIXME: insert proper C++ library support
18763 ld_shlibs_CXX=no
18764 ;;
18765 *)
18766 # FIXME: insert proper C++ library support
18767 ld_shlibs_CXX=no
18768 ;;
18769 esac
18770 ;;
18771
18772 netbsd*)
18773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18774 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18775 wlarc=
18776 hardcode_libdir_flag_spec_CXX='-R$libdir'
18777 hardcode_direct_CXX=yes
18778 hardcode_shlibpath_var_CXX=no
18779 fi
18780 # Workaround some broken pre-1.5 toolchains
18781 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18782 ;;
18783
18784 *nto* | *qnx*)
18785 ld_shlibs_CXX=yes
18786 ;;
18787
18788 openbsd2*)
18789 # C++ shared libraries are fairly broken
18790 ld_shlibs_CXX=no
18791 ;;
18792
18793 openbsd*)
18794 if test -f /usr/libexec/ld.so; then
18795 hardcode_direct_CXX=yes
18796 hardcode_shlibpath_var_CXX=no
18797 hardcode_direct_absolute_CXX=yes
18798 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18799 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18801 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18802 export_dynamic_flag_spec_CXX='${wl}-E'
18803 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18804 fi
cristy0c60a692010-11-04 01:09:47 +000018805 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018806 else
18807 ld_shlibs_CXX=no
18808 fi
18809 ;;
18810
18811 osf3* | osf4* | osf5*)
18812 case $cc_basename in
18813 KCC*)
18814 # Kuck and Associates, Inc. (KAI) C++ Compiler
18815
18816 # KCC will only create a shared library if the output file
18817 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18818 # to its proper name (with version) after linking.
18819 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'
18820
18821 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18822 hardcode_libdir_separator_CXX=:
18823
18824 # Archives containing C++ object files must be created using
18825 # the KAI C++ compiler.
18826 case $host in
18827 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18828 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18829 esac
18830 ;;
18831 RCC*)
18832 # Rational C++ 2.4.1
18833 # FIXME: insert proper C++ library support
18834 ld_shlibs_CXX=no
18835 ;;
18836 cxx*)
18837 case $host in
18838 osf3*)
18839 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018840 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 +000018841 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18842 ;;
18843 *)
18844 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018845 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 +000018846 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18847 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018848 $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 +000018849 $RM $lib.exp'
18850 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18851 ;;
18852 esac
18853
18854 hardcode_libdir_separator_CXX=:
18855
18856 # Commands to make compiler produce verbose output that lists
18857 # what "hidden" libraries, object files and flags are used when
18858 # linking a shared library.
18859 #
18860 # There doesn't appear to be a way to prevent this compiler from
18861 # explicitly linking system object files so we need to strip them
18862 # from the output so that they don't get included in the library
18863 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018864 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 +000018865 ;;
18866 *)
18867 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18868 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18869 case $host in
18870 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018871 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 +000018872 ;;
18873 *)
cristyda16f162011-02-19 23:52:17 +000018874 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 +000018875 ;;
18876 esac
18877
18878 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18879 hardcode_libdir_separator_CXX=:
18880
18881 # Commands to make compiler produce verbose output that lists
18882 # what "hidden" libraries, object files and flags are used when
18883 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018884 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018885
18886 else
18887 # FIXME: insert proper C++ library support
18888 ld_shlibs_CXX=no
18889 fi
18890 ;;
18891 esac
18892 ;;
18893
18894 psos*)
18895 # FIXME: insert proper C++ library support
18896 ld_shlibs_CXX=no
18897 ;;
18898
18899 sunos4*)
18900 case $cc_basename in
18901 CC*)
18902 # Sun C++ 4.x
18903 # FIXME: insert proper C++ library support
18904 ld_shlibs_CXX=no
18905 ;;
18906 lcc*)
18907 # Lucid
18908 # FIXME: insert proper C++ library support
18909 ld_shlibs_CXX=no
18910 ;;
18911 *)
18912 # FIXME: insert proper C++ library support
18913 ld_shlibs_CXX=no
18914 ;;
18915 esac
18916 ;;
18917
18918 solaris*)
18919 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018920 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018921 # Sun C++ 4.2, 5.x and Centerline C++
18922 archive_cmds_need_lc_CXX=yes
18923 no_undefined_flag_CXX=' -zdefs'
18924 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18925 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18926 $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'
18927
18928 hardcode_libdir_flag_spec_CXX='-R$libdir'
18929 hardcode_shlibpath_var_CXX=no
18930 case $host_os in
18931 solaris2.[0-5] | solaris2.[0-5].*) ;;
18932 *)
18933 # The compiler driver will combine and reorder linker options,
18934 # but understands `-z linker_flag'.
18935 # Supported since Solaris 2.6 (maybe 2.5.1?)
18936 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18937 ;;
18938 esac
18939 link_all_deplibs_CXX=yes
18940
cristy0c60a692010-11-04 01:09:47 +000018941 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018942
18943 # Archives containing C++ object files must be created using
18944 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18945 # necessary to make sure instantiated templates are included
18946 # in the archive.
18947 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18948 ;;
18949 gcx*)
18950 # Green Hills C++ Compiler
18951 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18952
18953 # The C++ compiler must be used to create the archive.
18954 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18955 ;;
18956 *)
18957 # GNU C++ compiler with Solaris linker
18958 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18959 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18960 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018961 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 +000018962 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 +000018963 $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 +000018964
18965 # Commands to make compiler produce verbose output that lists
18966 # what "hidden" libraries, object files and flags are used when
18967 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018968 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018969 else
18970 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18971 # platform.
18972 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18973 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18974 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18975
18976 # Commands to make compiler produce verbose output that lists
18977 # what "hidden" libraries, object files and flags are used when
18978 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018979 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018980 fi
18981
18982 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18983 case $host_os in
18984 solaris2.[0-5] | solaris2.[0-5].*) ;;
18985 *)
18986 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18987 ;;
18988 esac
18989 fi
18990 ;;
18991 esac
18992 ;;
18993
18994 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18995 no_undefined_flag_CXX='${wl}-z,text'
18996 archive_cmds_need_lc_CXX=no
18997 hardcode_shlibpath_var_CXX=no
18998 runpath_var='LD_RUN_PATH'
18999
19000 case $cc_basename in
19001 CC*)
19002 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19003 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19004 ;;
19005 *)
19006 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19007 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19008 ;;
19009 esac
19010 ;;
19011
19012 sysv5* | sco3.2v5* | sco5v6*)
19013 # Note: We can NOT use -z defs as we might desire, because we do not
19014 # link with -lc, and that would cause any symbols used from libc to
19015 # always be unresolved, which means just about no library would
19016 # ever link correctly. If we're not using GNU ld we use -z text
19017 # though, which does catch some bad symbols but isn't as heavy-handed
19018 # as -z defs.
19019 no_undefined_flag_CXX='${wl}-z,text'
19020 allow_undefined_flag_CXX='${wl}-z,nodefs'
19021 archive_cmds_need_lc_CXX=no
19022 hardcode_shlibpath_var_CXX=no
19023 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19024 hardcode_libdir_separator_CXX=':'
19025 link_all_deplibs_CXX=yes
19026 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19027 runpath_var='LD_RUN_PATH'
19028
19029 case $cc_basename in
19030 CC*)
19031 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19032 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 +000019033 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19034 '"$old_archive_cmds_CXX"
19035 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19036 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019037 ;;
19038 *)
19039 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19040 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19041 ;;
19042 esac
19043 ;;
19044
19045 tandem*)
19046 case $cc_basename in
19047 NCC*)
19048 # NonStop-UX NCC 3.20
19049 # FIXME: insert proper C++ library support
19050 ld_shlibs_CXX=no
19051 ;;
19052 *)
19053 # FIXME: insert proper C++ library support
19054 ld_shlibs_CXX=no
19055 ;;
19056 esac
19057 ;;
19058
19059 vxworks*)
19060 # FIXME: insert proper C++ library support
19061 ld_shlibs_CXX=no
19062 ;;
19063
19064 *)
19065 # FIXME: insert proper C++ library support
19066 ld_shlibs_CXX=no
19067 ;;
19068 esac
19069
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19071$as_echo "$ld_shlibs_CXX" >&6; }
19072 test "$ld_shlibs_CXX" = no && can_build_shared=no
19073
19074 GCC_CXX="$GXX"
19075 LD_CXX="$LD"
19076
19077 ## CAVEAT EMPTOR:
19078 ## There is no encapsulation within the following macros, do not change
19079 ## the running order or otherwise move them around unless you know exactly
19080 ## what you are doing...
19081 # Dependencies to place before and after the object being linked:
19082predep_objects_CXX=
19083postdep_objects_CXX=
19084predeps_CXX=
19085postdeps_CXX=
19086compiler_lib_search_path_CXX=
19087
19088cat > conftest.$ac_ext <<_LT_EOF
19089class Foo
19090{
19091public:
19092 Foo (void) { a = 0; }
19093private:
19094 int a;
19095};
19096_LT_EOF
19097
cristyda16f162011-02-19 23:52:17 +000019098
19099_lt_libdeps_save_CFLAGS=$CFLAGS
19100case "$CC $CFLAGS " in #(
19101*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19102*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019103*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019104esac
19105
cristy73bd4a52010-10-05 11:24:23 +000019106if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19107 (eval $ac_compile) 2>&5
19108 ac_status=$?
19109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19110 test $ac_status = 0; }; then
19111 # Parse the compiler output and extract the necessary
19112 # objects, libraries and library flags.
19113
19114 # Sentinel used to keep track of whether or not we are before
19115 # the conftest object file.
19116 pre_test_object_deps_done=no
19117
19118 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019119 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019120
19121 -L* | -R* | -l*)
19122 # Some compilers place space between "-{L,R}" and the path.
19123 # Remove the space.
19124 if test $p = "-L" ||
19125 test $p = "-R"; then
19126 prev=$p
19127 continue
cristy73bd4a52010-10-05 11:24:23 +000019128 fi
19129
cristyda16f162011-02-19 23:52:17 +000019130 # Expand the sysroot to ease extracting the directories later.
19131 if test -z "$prev"; then
19132 case $p in
19133 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19134 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19135 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19136 esac
19137 fi
19138 case $p in
19139 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19140 esac
cristy73bd4a52010-10-05 11:24:23 +000019141 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019142 case ${prev} in
19143 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019144 # Internal compiler library paths should come after those
19145 # provided the user. The postdeps already come after the
19146 # user supplied libs so there is no need to process them.
19147 if test -z "$compiler_lib_search_path_CXX"; then
19148 compiler_lib_search_path_CXX="${prev}${p}"
19149 else
19150 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19151 fi
19152 ;;
19153 # The "-l" case would never come before the object being
19154 # linked, so don't bother handling this case.
19155 esac
19156 else
19157 if test -z "$postdeps_CXX"; then
19158 postdeps_CXX="${prev}${p}"
19159 else
19160 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19161 fi
19162 fi
cristyda16f162011-02-19 23:52:17 +000019163 prev=
cristy73bd4a52010-10-05 11:24:23 +000019164 ;;
19165
cristyda16f162011-02-19 23:52:17 +000019166 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019167 *.$objext)
19168 # This assumes that the test object file only shows up
19169 # once in the compiler output.
19170 if test "$p" = "conftest.$objext"; then
19171 pre_test_object_deps_done=yes
19172 continue
19173 fi
19174
19175 if test "$pre_test_object_deps_done" = no; then
19176 if test -z "$predep_objects_CXX"; then
19177 predep_objects_CXX="$p"
19178 else
19179 predep_objects_CXX="$predep_objects_CXX $p"
19180 fi
19181 else
19182 if test -z "$postdep_objects_CXX"; then
19183 postdep_objects_CXX="$p"
19184 else
19185 postdep_objects_CXX="$postdep_objects_CXX $p"
19186 fi
19187 fi
19188 ;;
19189
19190 *) ;; # Ignore the rest.
19191
19192 esac
19193 done
19194
19195 # Clean up.
19196 rm -f a.out a.exe
19197else
19198 echo "libtool.m4: error: problem compiling CXX test program"
19199fi
19200
19201$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019202CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019203
19204# PORTME: override above test on systems where it is broken
19205case $host_os in
19206interix[3-9]*)
19207 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19208 # hack all around it, let's just trust "g++" to DTRT.
19209 predep_objects_CXX=
19210 postdep_objects_CXX=
19211 postdeps_CXX=
19212 ;;
19213
19214linux*)
19215 case `$CC -V 2>&1 | sed 5q` in
19216 *Sun\ C*)
19217 # Sun C++ 5.9
19218
19219 # The more standards-conforming stlport4 library is
19220 # incompatible with the Cstd library. Avoid specifying
19221 # it if it's in CXXFLAGS. Ignore libCrun as
19222 # -library=stlport4 depends on it.
19223 case " $CXX $CXXFLAGS " in
19224 *" -library=stlport4 "*)
19225 solaris_use_stlport4=yes
19226 ;;
19227 esac
19228
19229 if test "$solaris_use_stlport4" != yes; then
19230 postdeps_CXX='-library=Cstd -library=Crun'
19231 fi
19232 ;;
19233 esac
19234 ;;
19235
19236solaris*)
19237 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019238 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019239 # The more standards-conforming stlport4 library is
19240 # incompatible with the Cstd library. Avoid specifying
19241 # it if it's in CXXFLAGS. Ignore libCrun as
19242 # -library=stlport4 depends on it.
19243 case " $CXX $CXXFLAGS " in
19244 *" -library=stlport4 "*)
19245 solaris_use_stlport4=yes
19246 ;;
19247 esac
19248
19249 # Adding this requires a known-good setup of shared libraries for
19250 # Sun compiler versions before 5.6, else PIC objects from an old
19251 # archive will be linked into the output, leading to subtle bugs.
19252 if test "$solaris_use_stlport4" != yes; then
19253 postdeps_CXX='-library=Cstd -library=Crun'
19254 fi
19255 ;;
19256 esac
19257 ;;
19258esac
19259
19260
19261case " $postdeps_CXX " in
19262*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19263esac
19264 compiler_lib_search_dirs_CXX=
19265if test -n "${compiler_lib_search_path_CXX}"; then
19266 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19267fi
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299 lt_prog_compiler_wl_CXX=
19300lt_prog_compiler_pic_CXX=
19301lt_prog_compiler_static_CXX=
19302
cristy73bd4a52010-10-05 11:24:23 +000019303
19304 # C++ specific cases for pic, static, wl, etc.
19305 if test "$GXX" = yes; then
19306 lt_prog_compiler_wl_CXX='-Wl,'
19307 lt_prog_compiler_static_CXX='-static'
19308
19309 case $host_os in
19310 aix*)
19311 # All AIX code is PIC.
19312 if test "$host_cpu" = ia64; then
19313 # AIX 5 now supports IA64 processor
19314 lt_prog_compiler_static_CXX='-Bstatic'
19315 fi
19316 ;;
19317
19318 amigaos*)
19319 case $host_cpu in
19320 powerpc)
19321 # see comment about AmigaOS4 .so support
19322 lt_prog_compiler_pic_CXX='-fPIC'
19323 ;;
19324 m68k)
19325 # FIXME: we need at least 68020 code to build shared libraries, but
19326 # adding the `-m68020' flag to GCC prevents building anything better,
19327 # like `-m68040'.
19328 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19329 ;;
19330 esac
19331 ;;
19332
19333 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19334 # PIC is the default for these OSes.
19335 ;;
19336 mingw* | cygwin* | os2* | pw32* | cegcc*)
19337 # This hack is so that the source file can tell whether it is being
19338 # built for inclusion in a dll (and should export symbols for example).
19339 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19340 # (--disable-auto-import) libraries
19341 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19342 ;;
19343 darwin* | rhapsody*)
19344 # PIC is the default on this platform
19345 # Common symbols not allowed in MH_DYLIB files
19346 lt_prog_compiler_pic_CXX='-fno-common'
19347 ;;
19348 *djgpp*)
19349 # DJGPP does not support shared libraries at all
19350 lt_prog_compiler_pic_CXX=
19351 ;;
cristy0c60a692010-11-04 01:09:47 +000019352 haiku*)
19353 # PIC is the default for Haiku.
19354 # The "-static" flag exists, but is broken.
19355 lt_prog_compiler_static_CXX=
19356 ;;
cristy73bd4a52010-10-05 11:24:23 +000019357 interix[3-9]*)
19358 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19359 # Instead, we relocate shared libraries at runtime.
19360 ;;
19361 sysv4*MP*)
19362 if test -d /usr/nec; then
19363 lt_prog_compiler_pic_CXX=-Kconform_pic
19364 fi
19365 ;;
19366 hpux*)
19367 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19368 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19369 # sets the default TLS model and affects inlining.
19370 case $host_cpu in
19371 hppa*64*)
19372 ;;
19373 *)
19374 lt_prog_compiler_pic_CXX='-fPIC'
19375 ;;
19376 esac
19377 ;;
19378 *qnx* | *nto*)
19379 # QNX uses GNU C++, but need to define -shared option too, otherwise
19380 # it will coredump.
19381 lt_prog_compiler_pic_CXX='-fPIC -shared'
19382 ;;
19383 *)
19384 lt_prog_compiler_pic_CXX='-fPIC'
19385 ;;
19386 esac
19387 else
19388 case $host_os in
19389 aix[4-9]*)
19390 # All AIX code is PIC.
19391 if test "$host_cpu" = ia64; then
19392 # AIX 5 now supports IA64 processor
19393 lt_prog_compiler_static_CXX='-Bstatic'
19394 else
19395 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19396 fi
19397 ;;
19398 chorus*)
19399 case $cc_basename in
19400 cxch68*)
19401 # Green Hills C++ Compiler
19402 # _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"
19403 ;;
19404 esac
19405 ;;
cristyda16f162011-02-19 23:52:17 +000019406 mingw* | cygwin* | os2* | pw32* | cegcc*)
19407 # This hack is so that the source file can tell whether it is being
19408 # built for inclusion in a dll (and should export symbols for example).
19409 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19410 ;;
cristy73bd4a52010-10-05 11:24:23 +000019411 dgux*)
19412 case $cc_basename in
19413 ec++*)
19414 lt_prog_compiler_pic_CXX='-KPIC'
19415 ;;
19416 ghcx*)
19417 # Green Hills C++ Compiler
19418 lt_prog_compiler_pic_CXX='-pic'
19419 ;;
19420 *)
19421 ;;
19422 esac
19423 ;;
19424 freebsd* | dragonfly*)
19425 # FreeBSD uses GNU C++
19426 ;;
19427 hpux9* | hpux10* | hpux11*)
19428 case $cc_basename in
19429 CC*)
19430 lt_prog_compiler_wl_CXX='-Wl,'
19431 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19432 if test "$host_cpu" != ia64; then
19433 lt_prog_compiler_pic_CXX='+Z'
19434 fi
19435 ;;
19436 aCC*)
19437 lt_prog_compiler_wl_CXX='-Wl,'
19438 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19439 case $host_cpu in
19440 hppa*64*|ia64*)
19441 # +Z the default
19442 ;;
19443 *)
19444 lt_prog_compiler_pic_CXX='+Z'
19445 ;;
19446 esac
19447 ;;
19448 *)
19449 ;;
19450 esac
19451 ;;
19452 interix*)
19453 # This is c89, which is MS Visual C++ (no shared libs)
19454 # Anyone wants to do a port?
19455 ;;
19456 irix5* | irix6* | nonstopux*)
19457 case $cc_basename in
19458 CC*)
19459 lt_prog_compiler_wl_CXX='-Wl,'
19460 lt_prog_compiler_static_CXX='-non_shared'
19461 # CC pic flag -KPIC is the default.
19462 ;;
19463 *)
19464 ;;
19465 esac
19466 ;;
cristy0c60a692010-11-04 01:09:47 +000019467 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019468 case $cc_basename in
19469 KCC*)
19470 # KAI C++ Compiler
19471 lt_prog_compiler_wl_CXX='--backend -Wl,'
19472 lt_prog_compiler_pic_CXX='-fPIC'
19473 ;;
19474 ecpc* )
19475 # old Intel C++ for x86_64 which still supported -KPIC.
19476 lt_prog_compiler_wl_CXX='-Wl,'
19477 lt_prog_compiler_pic_CXX='-KPIC'
19478 lt_prog_compiler_static_CXX='-static'
19479 ;;
19480 icpc* )
19481 # Intel C++, used to be incompatible with GCC.
19482 # ICC 10 doesn't accept -KPIC any more.
19483 lt_prog_compiler_wl_CXX='-Wl,'
19484 lt_prog_compiler_pic_CXX='-fPIC'
19485 lt_prog_compiler_static_CXX='-static'
19486 ;;
19487 pgCC* | pgcpp*)
19488 # Portland Group C++ compiler
19489 lt_prog_compiler_wl_CXX='-Wl,'
19490 lt_prog_compiler_pic_CXX='-fpic'
19491 lt_prog_compiler_static_CXX='-Bstatic'
19492 ;;
19493 cxx*)
19494 # Compaq C++
19495 # Make sure the PIC flag is empty. It appears that all Alpha
19496 # Linux and Compaq Tru64 Unix objects are PIC.
19497 lt_prog_compiler_pic_CXX=
19498 lt_prog_compiler_static_CXX='-non_shared'
19499 ;;
cristy0c60a692010-11-04 01:09:47 +000019500 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19501 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019502 lt_prog_compiler_wl_CXX='-Wl,'
19503 lt_prog_compiler_pic_CXX='-qpic'
19504 lt_prog_compiler_static_CXX='-qstaticlink'
19505 ;;
19506 *)
19507 case `$CC -V 2>&1 | sed 5q` in
19508 *Sun\ C*)
19509 # Sun C++ 5.9
19510 lt_prog_compiler_pic_CXX='-KPIC'
19511 lt_prog_compiler_static_CXX='-Bstatic'
19512 lt_prog_compiler_wl_CXX='-Qoption ld '
19513 ;;
19514 esac
19515 ;;
19516 esac
19517 ;;
19518 lynxos*)
19519 ;;
19520 m88k*)
19521 ;;
19522 mvs*)
19523 case $cc_basename in
19524 cxx*)
19525 lt_prog_compiler_pic_CXX='-W c,exportall'
19526 ;;
19527 *)
19528 ;;
19529 esac
19530 ;;
19531 netbsd*)
19532 ;;
19533 *qnx* | *nto*)
19534 # QNX uses GNU C++, but need to define -shared option too, otherwise
19535 # it will coredump.
19536 lt_prog_compiler_pic_CXX='-fPIC -shared'
19537 ;;
19538 osf3* | osf4* | osf5*)
19539 case $cc_basename in
19540 KCC*)
19541 lt_prog_compiler_wl_CXX='--backend -Wl,'
19542 ;;
19543 RCC*)
19544 # Rational C++ 2.4.1
19545 lt_prog_compiler_pic_CXX='-pic'
19546 ;;
19547 cxx*)
19548 # Digital/Compaq C++
19549 lt_prog_compiler_wl_CXX='-Wl,'
19550 # Make sure the PIC flag is empty. It appears that all Alpha
19551 # Linux and Compaq Tru64 Unix objects are PIC.
19552 lt_prog_compiler_pic_CXX=
19553 lt_prog_compiler_static_CXX='-non_shared'
19554 ;;
19555 *)
19556 ;;
19557 esac
19558 ;;
19559 psos*)
19560 ;;
19561 solaris*)
19562 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019563 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019564 # Sun C++ 4.2, 5.x and Centerline C++
19565 lt_prog_compiler_pic_CXX='-KPIC'
19566 lt_prog_compiler_static_CXX='-Bstatic'
19567 lt_prog_compiler_wl_CXX='-Qoption ld '
19568 ;;
19569 gcx*)
19570 # Green Hills C++ Compiler
19571 lt_prog_compiler_pic_CXX='-PIC'
19572 ;;
19573 *)
19574 ;;
19575 esac
19576 ;;
19577 sunos4*)
19578 case $cc_basename in
19579 CC*)
19580 # Sun C++ 4.x
19581 lt_prog_compiler_pic_CXX='-pic'
19582 lt_prog_compiler_static_CXX='-Bstatic'
19583 ;;
19584 lcc*)
19585 # Lucid
19586 lt_prog_compiler_pic_CXX='-pic'
19587 ;;
19588 *)
19589 ;;
19590 esac
19591 ;;
19592 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19593 case $cc_basename in
19594 CC*)
19595 lt_prog_compiler_wl_CXX='-Wl,'
19596 lt_prog_compiler_pic_CXX='-KPIC'
19597 lt_prog_compiler_static_CXX='-Bstatic'
19598 ;;
19599 esac
19600 ;;
19601 tandem*)
19602 case $cc_basename in
19603 NCC*)
19604 # NonStop-UX NCC 3.20
19605 lt_prog_compiler_pic_CXX='-KPIC'
19606 ;;
19607 *)
19608 ;;
19609 esac
19610 ;;
19611 vxworks*)
19612 ;;
19613 *)
19614 lt_prog_compiler_can_build_shared_CXX=no
19615 ;;
19616 esac
19617 fi
19618
19619case $host_os in
19620 # For platforms which do not support PIC, -DPIC is meaningless:
19621 *djgpp*)
19622 lt_prog_compiler_pic_CXX=
19623 ;;
19624 *)
19625 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19626 ;;
19627esac
cristy73bd4a52010-10-05 11:24:23 +000019628
cristyda16f162011-02-19 23:52:17 +000019629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19630$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19631if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19632 $as_echo_n "(cached) " >&6
19633else
19634 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19635fi
19636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19637$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19638lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019639
19640#
19641# Check to make sure the PIC flag actually works.
19642#
19643if test -n "$lt_prog_compiler_pic_CXX"; then
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19645$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019646if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019647 $as_echo_n "(cached) " >&6
19648else
19649 lt_cv_prog_compiler_pic_works_CXX=no
19650 ac_outfile=conftest.$ac_objext
19651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19652 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19653 # Insert the option either (1) after the last *FLAGS variable, or
19654 # (2) before a word containing "conftest.", or (3) at the end.
19655 # Note that $ac_compile itself does not contain backslashes and begins
19656 # with a dollar sign (not a hyphen), so the echo should work correctly.
19657 # The option is referenced via a variable to avoid confusing sed.
19658 lt_compile=`echo "$ac_compile" | $SED \
19659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19661 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019663 (eval "$lt_compile" 2>conftest.err)
19664 ac_status=$?
19665 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019667 if (exit $ac_status) && test -s "$ac_outfile"; then
19668 # The compiler can only warn and ignore the option if not recognized
19669 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19673 lt_cv_prog_compiler_pic_works_CXX=yes
19674 fi
19675 fi
19676 $RM conftest*
19677
19678fi
19679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19680$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19681
19682if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19683 case $lt_prog_compiler_pic_CXX in
19684 "" | " "*) ;;
19685 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19686 esac
19687else
19688 lt_prog_compiler_pic_CXX=
19689 lt_prog_compiler_can_build_shared_CXX=no
19690fi
19691
19692fi
19693
19694
19695
cristyda16f162011-02-19 23:52:17 +000019696
19697
cristy73bd4a52010-10-05 11:24:23 +000019698#
19699# Check to make sure the static flag actually works.
19700#
19701wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19703$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019704if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019705 $as_echo_n "(cached) " >&6
19706else
19707 lt_cv_prog_compiler_static_works_CXX=no
19708 save_LDFLAGS="$LDFLAGS"
19709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19710 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19712 # The linker can only warn and ignore the option if not recognized
19713 # So say no if there are warnings
19714 if test -s conftest.err; then
19715 # Append any errors to the config.log.
19716 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019717 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19719 if diff conftest.exp conftest.er2 >/dev/null; then
19720 lt_cv_prog_compiler_static_works_CXX=yes
19721 fi
19722 else
19723 lt_cv_prog_compiler_static_works_CXX=yes
19724 fi
19725 fi
19726 $RM -r conftest*
19727 LDFLAGS="$save_LDFLAGS"
19728
19729fi
19730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19731$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19732
19733if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19734 :
19735else
19736 lt_prog_compiler_static_CXX=
19737fi
19738
19739
19740
19741
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19743$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019744if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019745 $as_echo_n "(cached) " >&6
19746else
19747 lt_cv_prog_compiler_c_o_CXX=no
19748 $RM -r conftest 2>/dev/null
19749 mkdir conftest
19750 cd conftest
19751 mkdir out
19752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19753
19754 lt_compiler_flag="-o out/conftest2.$ac_objext"
19755 # Insert the option either (1) after the last *FLAGS variable, or
19756 # (2) before a word containing "conftest.", or (3) at the end.
19757 # Note that $ac_compile itself does not contain backslashes and begins
19758 # with a dollar sign (not a hyphen), so the echo should work correctly.
19759 lt_compile=`echo "$ac_compile" | $SED \
19760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19762 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019764 (eval "$lt_compile" 2>out/conftest.err)
19765 ac_status=$?
19766 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19769 then
19770 # The compiler can only warn and ignore the option if not recognized
19771 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19775 lt_cv_prog_compiler_c_o_CXX=yes
19776 fi
19777 fi
19778 chmod u+w . 2>&5
19779 $RM conftest*
19780 # SGI C++ compiler will create directory out/ii_files/ for
19781 # template instantiation
19782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19783 $RM out/* && rmdir out
19784 cd ..
19785 $RM -r conftest
19786 $RM conftest*
19787
19788fi
19789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19790$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19791
19792
19793
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19795$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019796if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019797 $as_echo_n "(cached) " >&6
19798else
19799 lt_cv_prog_compiler_c_o_CXX=no
19800 $RM -r conftest 2>/dev/null
19801 mkdir conftest
19802 cd conftest
19803 mkdir out
19804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19805
19806 lt_compiler_flag="-o out/conftest2.$ac_objext"
19807 # Insert the option either (1) after the last *FLAGS variable, or
19808 # (2) before a word containing "conftest.", or (3) at the end.
19809 # Note that $ac_compile itself does not contain backslashes and begins
19810 # with a dollar sign (not a hyphen), so the echo should work correctly.
19811 lt_compile=`echo "$ac_compile" | $SED \
19812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19814 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019816 (eval "$lt_compile" 2>out/conftest.err)
19817 ac_status=$?
19818 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19821 then
19822 # The compiler can only warn and ignore the option if not recognized
19823 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19827 lt_cv_prog_compiler_c_o_CXX=yes
19828 fi
19829 fi
19830 chmod u+w . 2>&5
19831 $RM conftest*
19832 # SGI C++ compiler will create directory out/ii_files/ for
19833 # template instantiation
19834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19835 $RM out/* && rmdir out
19836 cd ..
19837 $RM -r conftest
19838 $RM conftest*
19839
19840fi
19841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19842$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19843
19844
19845
19846
19847hard_links="nottested"
19848if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19849 # do not overwrite the value of need_locks provided by the user
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19851$as_echo_n "checking if we can lock with hard links... " >&6; }
19852 hard_links=yes
19853 $RM conftest*
19854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19855 touch conftest.a
19856 ln conftest.a conftest.b 2>&5 || hard_links=no
19857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19859$as_echo "$hard_links" >&6; }
19860 if test "$hard_links" = no; then
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19862$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19863 need_locks=warn
19864 fi
19865else
19866 need_locks=no
19867fi
19868
19869
19870
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19872$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19873
19874 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019875 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019876 case $host_os in
19877 aix[4-9]*)
19878 # If we're using GNU nm, then we don't want the "-C" option.
19879 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019880 # Also, AIX nm treats weak defined symbols like other global defined
19881 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019882 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019883 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 +000019884 else
19885 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'
19886 fi
19887 ;;
19888 pw32*)
19889 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019890 ;;
cristy73bd4a52010-10-05 11:24:23 +000019891 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019892 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019893 cl*)
19894 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19895 ;;
cristyda16f162011-02-19 23:52:17 +000019896 *)
19897 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'
19898 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19899 ;;
19900 esac
19901 ;;
cristy73bd4a52010-10-05 11:24:23 +000019902 *)
19903 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019904 ;;
cristy73bd4a52010-10-05 11:24:23 +000019905 esac
cristy73bd4a52010-10-05 11:24:23 +000019906
19907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19908$as_echo "$ld_shlibs_CXX" >&6; }
19909test "$ld_shlibs_CXX" = no && can_build_shared=no
19910
19911with_gnu_ld_CXX=$with_gnu_ld
19912
19913
19914
19915
19916
19917
19918#
19919# Do we need to explicitly link libc?
19920#
19921case "x$archive_cmds_need_lc_CXX" in
19922x|xyes)
19923 # Assume -lc should be added
19924 archive_cmds_need_lc_CXX=yes
19925
19926 if test "$enable_shared" = yes && test "$GCC" = yes; then
19927 case $archive_cmds_CXX in
19928 *'~'*)
19929 # FIXME: we may have to deal with multi-command sequences.
19930 ;;
19931 '$CC '*)
19932 # Test whether the compiler implicitly links with -lc since on some
19933 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19934 # to ld, don't add -lc before -lgcc.
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19936$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019937if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019938 $as_echo_n "(cached) " >&6
19939else
19940 $RM conftest*
19941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019942
cristy0c60a692010-11-04 01:09:47 +000019943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019944 (eval $ac_compile) 2>&5
19945 ac_status=$?
19946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19947 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019948 soname=conftest
19949 lib=conftest
19950 libobjs=conftest.$ac_objext
19951 deplibs=
19952 wl=$lt_prog_compiler_wl_CXX
19953 pic_flag=$lt_prog_compiler_pic_CXX
19954 compiler_flags=-v
19955 linker_flags=-v
19956 verstring=
19957 output_objdir=.
19958 libname=conftest
19959 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19960 allow_undefined_flag_CXX=
19961 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 +000019962 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19963 ac_status=$?
19964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19965 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019966 then
19967 lt_cv_archive_cmds_need_lc_CXX=no
19968 else
19969 lt_cv_archive_cmds_need_lc_CXX=yes
19970 fi
19971 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19972 else
19973 cat conftest.err 1>&5
19974 fi
19975 $RM conftest*
19976
19977fi
19978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19979$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19980 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019981 ;;
19982 esac
19983 fi
19984 ;;
19985esac
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
cristy73bd4a52010-10-05 11:24:23 +000020048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20049$as_echo_n "checking dynamic linker characteristics... " >&6; }
20050
20051library_names_spec=
20052libname_spec='lib$name'
20053soname_spec=
20054shrext_cmds=".so"
20055postinstall_cmds=
20056postuninstall_cmds=
20057finish_cmds=
20058finish_eval=
20059shlibpath_var=
20060shlibpath_overrides_runpath=unknown
20061version_type=none
20062dynamic_linker="$host_os ld.so"
20063sys_lib_dlsearch_path_spec="/lib /usr/lib"
20064need_lib_prefix=unknown
20065hardcode_into_libs=no
20066
20067# when you set need_version to no, make sure it does not cause -set_version
20068# flags to be left without arguments
20069need_version=unknown
20070
20071case $host_os in
20072aix3*)
cristy99bd5232011-12-07 14:38:20 +000020073 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020074 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20075 shlibpath_var=LIBPATH
20076
20077 # AIX 3 has no versioning support, so we append a major version to the name.
20078 soname_spec='${libname}${release}${shared_ext}$major'
20079 ;;
20080
20081aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020082 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020083 need_lib_prefix=no
20084 need_version=no
20085 hardcode_into_libs=yes
20086 if test "$host_cpu" = ia64; then
20087 # AIX 5 supports IA64
20088 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20089 shlibpath_var=LD_LIBRARY_PATH
20090 else
20091 # With GCC up to 2.95.x, collect2 would create an import file
20092 # for dependence libraries. The import file would start with
20093 # the line `#! .'. This would cause the generated library to
20094 # depend on `.', always an invalid library. This was fixed in
20095 # development snapshots of GCC prior to 3.0.
20096 case $host_os in
20097 aix4 | aix4.[01] | aix4.[01].*)
20098 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20099 echo ' yes '
20100 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20101 :
20102 else
20103 can_build_shared=no
20104 fi
20105 ;;
20106 esac
20107 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20108 # soname into executable. Probably we can add versioning support to
20109 # collect2, so additional links can be useful in future.
20110 if test "$aix_use_runtimelinking" = yes; then
20111 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20112 # instead of lib<name>.a to let people know that these are not
20113 # typical AIX shared libraries.
20114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20115 else
20116 # We preserve .a as extension for shared libraries through AIX4.2
20117 # and later when we are not doing run time linking.
20118 library_names_spec='${libname}${release}.a $libname.a'
20119 soname_spec='${libname}${release}${shared_ext}$major'
20120 fi
20121 shlibpath_var=LIBPATH
20122 fi
20123 ;;
20124
20125amigaos*)
20126 case $host_cpu in
20127 powerpc)
20128 # Since July 2007 AmigaOS4 officially supports .so libraries.
20129 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20131 ;;
20132 m68k)
20133 library_names_spec='$libname.ixlibrary $libname.a'
20134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020135 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 +000020136 ;;
20137 esac
20138 ;;
20139
20140beos*)
20141 library_names_spec='${libname}${shared_ext}'
20142 dynamic_linker="$host_os ld.so"
20143 shlibpath_var=LIBRARY_PATH
20144 ;;
20145
20146bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020147 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020148 need_version=no
20149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20150 soname_spec='${libname}${release}${shared_ext}$major'
20151 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20152 shlibpath_var=LD_LIBRARY_PATH
20153 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20154 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20155 # the default ld.so.conf also contains /usr/contrib/lib and
20156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20157 # libtool to hard-code these into programs
20158 ;;
20159
20160cygwin* | mingw* | pw32* | cegcc*)
20161 version_type=windows
20162 shrext_cmds=".dll"
20163 need_version=no
20164 need_lib_prefix=no
20165
cristyda16f162011-02-19 23:52:17 +000020166 case $GCC,$cc_basename in
20167 yes,*)
20168 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020169 library_names_spec='$libname.dll.a'
20170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20171 postinstall_cmds='base_file=`basename \${file}`~
20172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20173 dldir=$destdir/`dirname \$dlpath`~
20174 test -d \$dldir || mkdir -p \$dldir~
20175 $install_prog $dir/$dlname \$dldir/$dlname~
20176 chmod a+x \$dldir/$dlname~
20177 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20178 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20179 fi'
20180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20181 dlpath=$dir/\$dldll~
20182 $RM \$dlpath'
20183 shlibpath_overrides_runpath=yes
20184
20185 case $host_os in
20186 cygwin*)
20187 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20188 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020189
cristy73bd4a52010-10-05 11:24:23 +000020190 ;;
20191 mingw* | cegcc*)
20192 # MinGW DLLs use traditional 'lib' prefix
20193 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020194 ;;
20195 pw32*)
20196 # pw32 DLLs use 'pw' prefix rather than 'lib'
20197 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20198 ;;
20199 esac
cristyda16f162011-02-19 23:52:17 +000020200 dynamic_linker='Win32 ld.exe'
20201 ;;
20202
20203 *,cl*)
20204 # Native MSVC
20205 libname_spec='$name'
20206 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20207 library_names_spec='${libname}.dll.lib'
20208
20209 case $build_os in
20210 mingw*)
20211 sys_lib_search_path_spec=
20212 lt_save_ifs=$IFS
20213 IFS=';'
20214 for lt_path in $LIB
20215 do
20216 IFS=$lt_save_ifs
20217 # Let DOS variable expansion print the short 8.3 style file name.
20218 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20219 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20220 done
20221 IFS=$lt_save_ifs
20222 # Convert to MSYS style.
20223 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20224 ;;
20225 cygwin*)
20226 # Convert to unix form, then to dos form, then back to unix form
20227 # but this time dos style (no spaces!) so that the unix form looks
20228 # like /cygdrive/c/PROGRA~1:/cygdr...
20229 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20230 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20231 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20232 ;;
20233 *)
20234 sys_lib_search_path_spec="$LIB"
20235 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20236 # It is most probably a Windows format PATH.
20237 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20238 else
20239 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20240 fi
20241 # FIXME: find the short name or the path components, as spaces are
20242 # common. (e.g. "Program Files" -> "PROGRA~1")
20243 ;;
20244 esac
20245
20246 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20247 postinstall_cmds='base_file=`basename \${file}`~
20248 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20249 dldir=$destdir/`dirname \$dlpath`~
20250 test -d \$dldir || mkdir -p \$dldir~
20251 $install_prog $dir/$dlname \$dldir/$dlname'
20252 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20253 dlpath=$dir/\$dldll~
20254 $RM \$dlpath'
20255 shlibpath_overrides_runpath=yes
20256 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020257 ;;
20258
20259 *)
cristyda16f162011-02-19 23:52:17 +000020260 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020261 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020262 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020263 ;;
20264 esac
cristy73bd4a52010-10-05 11:24:23 +000020265 # FIXME: first we should search . and the directory the executable is in
20266 shlibpath_var=PATH
20267 ;;
20268
20269darwin* | rhapsody*)
20270 dynamic_linker="$host_os dyld"
20271 version_type=darwin
20272 need_lib_prefix=no
20273 need_version=no
20274 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20275 soname_spec='${libname}${release}${major}$shared_ext'
20276 shlibpath_overrides_runpath=yes
20277 shlibpath_var=DYLD_LIBRARY_PATH
20278 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20279
20280 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20281 ;;
20282
20283dgux*)
cristy99bd5232011-12-07 14:38:20 +000020284 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020285 need_lib_prefix=no
20286 need_version=no
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20288 soname_spec='${libname}${release}${shared_ext}$major'
20289 shlibpath_var=LD_LIBRARY_PATH
20290 ;;
20291
cristy73bd4a52010-10-05 11:24:23 +000020292freebsd* | dragonfly*)
20293 # DragonFly does not have aout. When/if they implement a new
20294 # versioning mechanism, adjust this.
20295 if test -x /usr/bin/objformat; then
20296 objformat=`/usr/bin/objformat`
20297 else
20298 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020299 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020300 *) objformat=elf ;;
20301 esac
20302 fi
20303 version_type=freebsd-$objformat
20304 case $version_type in
20305 freebsd-elf*)
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20307 need_version=no
20308 need_lib_prefix=no
20309 ;;
20310 freebsd-*)
20311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20312 need_version=yes
20313 ;;
20314 esac
20315 shlibpath_var=LD_LIBRARY_PATH
20316 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020317 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020318 shlibpath_overrides_runpath=yes
20319 ;;
20320 freebsd3.[01]* | freebsdelf3.[01]*)
20321 shlibpath_overrides_runpath=yes
20322 hardcode_into_libs=yes
20323 ;;
20324 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20325 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20326 shlibpath_overrides_runpath=no
20327 hardcode_into_libs=yes
20328 ;;
20329 *) # from 4.6 on, and DragonFly
20330 shlibpath_overrides_runpath=yes
20331 hardcode_into_libs=yes
20332 ;;
20333 esac
20334 ;;
20335
20336gnu*)
cristy99bd5232011-12-07 14:38:20 +000020337 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020338 need_lib_prefix=no
20339 need_version=no
20340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20341 soname_spec='${libname}${release}${shared_ext}$major'
20342 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020343 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020344 hardcode_into_libs=yes
20345 ;;
20346
cristy0c60a692010-11-04 01:09:47 +000020347haiku*)
cristy99bd5232011-12-07 14:38:20 +000020348 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020349 need_lib_prefix=no
20350 need_version=no
20351 dynamic_linker="$host_os runtime_loader"
20352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20353 soname_spec='${libname}${release}${shared_ext}$major'
20354 shlibpath_var=LIBRARY_PATH
20355 shlibpath_overrides_runpath=yes
20356 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20357 hardcode_into_libs=yes
20358 ;;
20359
cristy73bd4a52010-10-05 11:24:23 +000020360hpux9* | hpux10* | hpux11*)
20361 # Give a soname corresponding to the major version so that dld.sl refuses to
20362 # link against other versions.
20363 version_type=sunos
20364 need_lib_prefix=no
20365 need_version=no
20366 case $host_cpu in
20367 ia64*)
20368 shrext_cmds='.so'
20369 hardcode_into_libs=yes
20370 dynamic_linker="$host_os dld.so"
20371 shlibpath_var=LD_LIBRARY_PATH
20372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20374 soname_spec='${libname}${release}${shared_ext}$major'
20375 if test "X$HPUX_IA64_MODE" = X32; then
20376 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20377 else
20378 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20379 fi
20380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20381 ;;
20382 hppa*64*)
20383 shrext_cmds='.sl'
20384 hardcode_into_libs=yes
20385 dynamic_linker="$host_os dld.sl"
20386 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20389 soname_spec='${libname}${release}${shared_ext}$major'
20390 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20392 ;;
20393 *)
20394 shrext_cmds='.sl'
20395 dynamic_linker="$host_os dld.sl"
20396 shlibpath_var=SHLIB_PATH
20397 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20399 soname_spec='${libname}${release}${shared_ext}$major'
20400 ;;
20401 esac
cristy0c60a692010-11-04 01:09:47 +000020402 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020403 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020404 # or fails outright, so override atomically:
20405 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020406 ;;
20407
20408interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020409 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020410 need_lib_prefix=no
20411 need_version=no
20412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20413 soname_spec='${libname}${release}${shared_ext}$major'
20414 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20415 shlibpath_var=LD_LIBRARY_PATH
20416 shlibpath_overrides_runpath=no
20417 hardcode_into_libs=yes
20418 ;;
20419
20420irix5* | irix6* | nonstopux*)
20421 case $host_os in
20422 nonstopux*) version_type=nonstopux ;;
20423 *)
20424 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020425 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020426 else
20427 version_type=irix
20428 fi ;;
20429 esac
20430 need_lib_prefix=no
20431 need_version=no
20432 soname_spec='${libname}${release}${shared_ext}$major'
20433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20434 case $host_os in
20435 irix5* | nonstopux*)
20436 libsuff= shlibsuff=
20437 ;;
20438 *)
20439 case $LD in # libtool.m4 will add one of these switches to LD
20440 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20441 libsuff= shlibsuff= libmagic=32-bit;;
20442 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20443 libsuff=32 shlibsuff=N32 libmagic=N32;;
20444 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20445 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20446 *) libsuff= shlibsuff= libmagic=never-match;;
20447 esac
20448 ;;
20449 esac
20450 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20451 shlibpath_overrides_runpath=no
20452 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20453 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20454 hardcode_into_libs=yes
20455 ;;
20456
20457# No shared lib support for Linux oldld, aout, or coff.
20458linux*oldld* | linux*aout* | linux*coff*)
20459 dynamic_linker=no
20460 ;;
20461
cristy99bd5232011-12-07 14:38:20 +000020462# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020463linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020464 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020465 need_lib_prefix=no
20466 need_version=no
20467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20468 soname_spec='${libname}${release}${shared_ext}$major'
20469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20470 shlibpath_var=LD_LIBRARY_PATH
20471 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020472
cristy73bd4a52010-10-05 11:24:23 +000020473 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020474 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020475 $as_echo_n "(cached) " >&6
20476else
20477 lt_cv_shlibpath_overrides_runpath=no
20478 save_LDFLAGS=$LDFLAGS
20479 save_libdir=$libdir
20480 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20481 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020483/* end confdefs.h. */
20484
20485int
20486main ()
20487{
20488
20489 ;
20490 return 0;
20491}
20492_ACEOF
20493if ac_fn_cxx_try_link "$LINENO"; then :
20494 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020495 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020496fi
20497fi
20498rm -f core conftest.err conftest.$ac_objext \
20499 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020500 LDFLAGS=$save_LDFLAGS
20501 libdir=$save_libdir
20502
20503fi
20504
20505 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020506
20507 # This implies no fast_install, which is unacceptable.
20508 # Some rework will be needed to allow for fast_install
20509 # before this can be enabled.
20510 hardcode_into_libs=yes
20511
20512 # Add ABI-specific directories to the system library path.
20513 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20514
20515 # Append ld.so.conf contents to the search path
20516 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020517 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 +000020518 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020519
cristy73bd4a52010-10-05 11:24:23 +000020520 fi
20521
20522 # We used to test for /lib/ld.so.1 and disable shared libraries on
20523 # powerpc, because MkLinux only supported shared libraries with the
20524 # GNU dynamic linker. Since this was broken with cross compilers,
20525 # most powerpc-linux boxes support dynamic linking these days and
20526 # people can always --disable-shared, the test was removed, and we
20527 # assume the GNU/Linux dynamic linker is in use.
20528 dynamic_linker='GNU/Linux ld.so'
20529 ;;
20530
20531netbsd*)
20532 version_type=sunos
20533 need_lib_prefix=no
20534 need_version=no
20535 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20538 dynamic_linker='NetBSD (a.out) ld.so'
20539 else
20540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20541 soname_spec='${libname}${release}${shared_ext}$major'
20542 dynamic_linker='NetBSD ld.elf_so'
20543 fi
20544 shlibpath_var=LD_LIBRARY_PATH
20545 shlibpath_overrides_runpath=yes
20546 hardcode_into_libs=yes
20547 ;;
20548
20549newsos6)
cristy99bd5232011-12-07 14:38:20 +000020550 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20552 shlibpath_var=LD_LIBRARY_PATH
20553 shlibpath_overrides_runpath=yes
20554 ;;
20555
20556*nto* | *qnx*)
20557 version_type=qnx
20558 need_lib_prefix=no
20559 need_version=no
20560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20561 soname_spec='${libname}${release}${shared_ext}$major'
20562 shlibpath_var=LD_LIBRARY_PATH
20563 shlibpath_overrides_runpath=no
20564 hardcode_into_libs=yes
20565 dynamic_linker='ldqnx.so'
20566 ;;
20567
20568openbsd*)
20569 version_type=sunos
20570 sys_lib_dlsearch_path_spec="/usr/lib"
20571 need_lib_prefix=no
20572 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20573 case $host_os in
20574 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20575 *) need_version=no ;;
20576 esac
20577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20579 shlibpath_var=LD_LIBRARY_PATH
20580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20581 case $host_os in
20582 openbsd2.[89] | openbsd2.[89].*)
20583 shlibpath_overrides_runpath=no
20584 ;;
20585 *)
20586 shlibpath_overrides_runpath=yes
20587 ;;
20588 esac
20589 else
20590 shlibpath_overrides_runpath=yes
20591 fi
20592 ;;
20593
20594os2*)
20595 libname_spec='$name'
20596 shrext_cmds=".dll"
20597 need_lib_prefix=no
20598 library_names_spec='$libname${shared_ext} $libname.a'
20599 dynamic_linker='OS/2 ld.exe'
20600 shlibpath_var=LIBPATH
20601 ;;
20602
20603osf3* | osf4* | osf5*)
20604 version_type=osf
20605 need_lib_prefix=no
20606 need_version=no
20607 soname_spec='${libname}${release}${shared_ext}$major'
20608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20609 shlibpath_var=LD_LIBRARY_PATH
20610 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20611 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20612 ;;
20613
20614rdos*)
20615 dynamic_linker=no
20616 ;;
20617
20618solaris*)
cristy99bd5232011-12-07 14:38:20 +000020619 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020620 need_lib_prefix=no
20621 need_version=no
20622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20623 soname_spec='${libname}${release}${shared_ext}$major'
20624 shlibpath_var=LD_LIBRARY_PATH
20625 shlibpath_overrides_runpath=yes
20626 hardcode_into_libs=yes
20627 # ldd complains unless libraries are executable
20628 postinstall_cmds='chmod +x $lib'
20629 ;;
20630
20631sunos4*)
20632 version_type=sunos
20633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20634 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20635 shlibpath_var=LD_LIBRARY_PATH
20636 shlibpath_overrides_runpath=yes
20637 if test "$with_gnu_ld" = yes; then
20638 need_lib_prefix=no
20639 fi
20640 need_version=yes
20641 ;;
20642
20643sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020644 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20646 soname_spec='${libname}${release}${shared_ext}$major'
20647 shlibpath_var=LD_LIBRARY_PATH
20648 case $host_vendor in
20649 sni)
20650 shlibpath_overrides_runpath=no
20651 need_lib_prefix=no
20652 runpath_var=LD_RUN_PATH
20653 ;;
20654 siemens)
20655 need_lib_prefix=no
20656 ;;
20657 motorola)
20658 need_lib_prefix=no
20659 need_version=no
20660 shlibpath_overrides_runpath=no
20661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20662 ;;
20663 esac
20664 ;;
20665
20666sysv4*MP*)
20667 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020668 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020669 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20670 soname_spec='$libname${shared_ext}.$major'
20671 shlibpath_var=LD_LIBRARY_PATH
20672 fi
20673 ;;
20674
20675sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20676 version_type=freebsd-elf
20677 need_lib_prefix=no
20678 need_version=no
20679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20680 soname_spec='${libname}${release}${shared_ext}$major'
20681 shlibpath_var=LD_LIBRARY_PATH
20682 shlibpath_overrides_runpath=yes
20683 hardcode_into_libs=yes
20684 if test "$with_gnu_ld" = yes; then
20685 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20686 else
20687 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20688 case $host_os in
20689 sco3.2v5*)
20690 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20691 ;;
20692 esac
20693 fi
20694 sys_lib_dlsearch_path_spec='/usr/lib'
20695 ;;
20696
20697tpf*)
20698 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020699 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020700 need_lib_prefix=no
20701 need_version=no
20702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20703 shlibpath_var=LD_LIBRARY_PATH
20704 shlibpath_overrides_runpath=no
20705 hardcode_into_libs=yes
20706 ;;
20707
20708uts4*)
cristy99bd5232011-12-07 14:38:20 +000020709 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711 soname_spec='${libname}${release}${shared_ext}$major'
20712 shlibpath_var=LD_LIBRARY_PATH
20713 ;;
20714
20715*)
20716 dynamic_linker=no
20717 ;;
20718esac
20719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20720$as_echo "$dynamic_linker" >&6; }
20721test "$dynamic_linker" = no && can_build_shared=no
20722
20723variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20724if test "$GCC" = yes; then
20725 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20726fi
20727
20728if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20729 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20730fi
20731if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20732 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20733fi
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
cristy0c60a692010-11-04 01:09:47 +000020770
20771
cristy73bd4a52010-10-05 11:24:23 +000020772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20773$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20774hardcode_action_CXX=
20775if test -n "$hardcode_libdir_flag_spec_CXX" ||
20776 test -n "$runpath_var_CXX" ||
20777 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20778
20779 # We can hardcode non-existent directories.
20780 if test "$hardcode_direct_CXX" != no &&
20781 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20782 # have to relink, otherwise we might link with an installed library
20783 # when we should be linking with a yet-to-be-installed one
20784 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20785 test "$hardcode_minus_L_CXX" != no; then
20786 # Linking always hardcodes the temporary library directory.
20787 hardcode_action_CXX=relink
20788 else
20789 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20790 hardcode_action_CXX=immediate
20791 fi
20792else
20793 # We cannot hardcode anything, or else we can only hardcode existing
20794 # directories.
20795 hardcode_action_CXX=unsupported
20796fi
20797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20798$as_echo "$hardcode_action_CXX" >&6; }
20799
20800if test "$hardcode_action_CXX" = relink ||
20801 test "$inherit_rpath_CXX" = yes; then
20802 # Fast installation is not supported
20803 enable_fast_install=no
20804elif test "$shlibpath_overrides_runpath" = yes ||
20805 test "$enable_shared" = no; then
20806 # Fast installation is not necessary
20807 enable_fast_install=needless
20808fi
20809
20810
20811
20812
20813
20814
20815
20816 fi # test -n "$compiler"
20817
20818 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020819 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020820 LDCXX=$LD
20821 LD=$lt_save_LD
20822 GCC=$lt_save_GCC
20823 with_gnu_ld=$lt_save_with_gnu_ld
20824 lt_cv_path_LDCXX=$lt_cv_path_LD
20825 lt_cv_path_LD=$lt_save_path_LD
20826 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20827 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20828fi # test "$_lt_caught_CXX_error" != yes
20829
20830ac_ext=c
20831ac_cpp='$CPP $CPPFLAGS'
20832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20834ac_compiler_gnu=$ac_cv_c_compiler_gnu
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
cristy99bd5232011-12-07 14:38:20 +000020848
20849
cristy73bd4a52010-10-05 11:24:23 +000020850 ac_config_commands="$ac_config_commands libtool"
20851
20852
20853
20854
20855# Only expand once:
20856
20857
20858
cristy3ed852e2009-09-05 21:47:34 +000020859
20860
cristy3ed852e2009-09-05 21:47:34 +000020861# Check to see if building shared libraries
20862libtool_build_shared_libs='no'
20863if test "$enable_shared" = 'yes'; then
20864 libtool_build_shared_libs='yes'
20865fi
20866
20867# Check to see if building static libraries
20868libtool_build_static_libs='no'
20869if test "$enable_static" = 'yes'; then
20870 libtool_build_static_libs='yes'
20871fi
20872
cristy73bd4a52010-10-05 11:24:23 +000020873 if test "${libtool_build_shared_libs}" = 'yes'; then
20874 WITH_SHARED_LIBS_TRUE=
20875 WITH_SHARED_LIBS_FALSE='#'
20876else
20877 WITH_SHARED_LIBS_TRUE='#'
20878 WITH_SHARED_LIBS_FALSE=
20879fi
20880
cristy3ed852e2009-09-05 21:47:34 +000020881#
20882# Enable support for building loadable modules
20883#
cristyaf4cbf32012-10-16 23:47:41 +000020884build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020885
20886# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020887if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020888 withval=$with_modules; with_modules=$withval
20889else
cristy5a1cefd2010-01-06 20:42:35 +000020890 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020891fi
20892
20893
20894# Only allow building loadable modules if we are building shared libraries
20895if test "$with_modules" != 'no' ; then
20896 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020897 { $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 +000020898$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020899 build_modules='no'
20900 else
20901 build_modules='yes'
20902 fi
cristy3ed852e2009-09-05 21:47:34 +000020903fi
cristyc6722092012-10-14 00:19:31 +000020904if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020905
cristy8b350f62009-11-15 23:12:43 +000020906$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020907
cristyfa161182012-12-19 15:45:28 +000020908 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020909fi
cristyc6722092012-10-14 00:19:31 +000020910 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020911 WITH_MODULES_TRUE=
20912 WITH_MODULES_FALSE='#'
20913else
20914 WITH_MODULES_TRUE='#'
20915 WITH_MODULES_FALSE=
20916fi
20917
cristy3ed852e2009-09-05 21:47:34 +000020918
cristy3ed852e2009-09-05 21:47:34 +000020919# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020920# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020921# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020922if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020923 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20924else
20925 enable_delegate_build='no'
20926fi
20927
20928
20929# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020930if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020931 enableval=$enable_deprecated; enable_deprecated=$enableval
20932else
20933 enable_deprecated='no'
20934fi
20935
20936
20937if test "$enable_deprecated" = 'yes'; then
20938
cristy8b350f62009-11-15 23:12:43 +000020939$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020940
20941else
20942 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20943fi
20944
20945# Build a version of ImageMagick which operates uninstalled.
20946# Used to build distributions located via MAGICK_HOME / executable path
20947# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020948if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020949 enableval=$enable_installed; enable_installed=$enableval
20950else
20951 enable_installed='yes'
20952fi
20953
20954
20955if test "$enable_installed" = 'yes'; then
20956
cristy8b350f62009-11-15 23:12:43 +000020957$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020958
20959else
20960 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20961fi
20962
20963# Permit enciphering and deciphering image pixels.
20964# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020965if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020966 enableval=$enable_cipher; enable_cipher=$enableval
20967else
20968 enable_cipher='yes'
20969fi
20970
20971
20972if test "$enable_cipher" = 'yes'; then
20973
cristy8b350f62009-11-15 23:12:43 +000020974$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020975
20976fi
20977
cristy6e3607c2011-09-13 13:59:17 +000020978# Build a zero-configuration version of ImageMagick.
20979# Check whether --enable-zero-configuration was given.
20980if test "${enable_zero_configuration+set}" = set; then :
20981 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020982else
cristy6e3607c2011-09-13 13:59:17 +000020983 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020984fi
20985
20986
cristy6e3607c2011-09-13 13:59:17 +000020987if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020988
cristy6e3607c2011-09-13 13:59:17 +000020989$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020990
cristy81af5702011-09-13 14:20:58 +000020991 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020992fi
20993
20994# Build a high dynamic range version of ImageMagick.
20995# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020996if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020997 enableval=$enable_hdri; enable_hdri=$enableval
20998else
cristy191c0b72012-08-12 16:29:52 +000020999 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021000fi
21001
21002
21003MAGICK_HDRI=""
21004if test "$enable_hdri" = 'yes'; then
21005 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021006 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021007 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021008else
21009 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021010fi
21011
cristye52f12f2012-12-31 15:32:36 +000021012cat >>confdefs.h <<_ACEOF
21013#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21014_ACEOF
21015
21016MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21017CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021018CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021019
cristy3ed852e2009-09-05 21:47:34 +000021020# Build a version of ImageMagick with assert statements.
21021# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021022if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021023 enableval=$enable_assert; enable_assert=$enableval
21024else
21025 enable_assert='yes'
21026fi
21027
21028
21029if test "$enable_assert" = 'no'; then
21030
cristy8b350f62009-11-15 23:12:43 +000021031$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021032
21033fi
21034
cristya448bd22011-10-14 12:38:13 +000021035# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021036
21037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21038$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21039 # Check whether --enable-maintainer-mode was given.
21040if test "${enable_maintainer_mode+set}" = set; then :
21041 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21042else
21043 USE_MAINTAINER_MODE=no
21044fi
21045
21046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21047$as_echo "$USE_MAINTAINER_MODE" >&6; }
21048 if test $USE_MAINTAINER_MODE = yes; then
21049 MAINTAINER_MODE_TRUE=
21050 MAINTAINER_MODE_FALSE='#'
21051else
21052 MAINTAINER_MODE_TRUE='#'
21053 MAINTAINER_MODE_FALSE=
21054fi
21055
21056 MAINT=$MAINTAINER_MODE_TRUE
21057
21058
cristy3ed852e2009-09-05 21:47:34 +000021059
cristy944e51f2013-04-16 18:45:02 +000021060# Enable hugepages support
21061# Check whether --enable-hugepages was given.
21062if test "${enable_hugepages+set}" = set; then :
21063 enableval=$enable_hugepages; enable_hugepages=$enableval
21064else
21065 enable_hugepages='no'
21066fi
21067
21068
cristy3ed852e2009-09-05 21:47:34 +000021069# Enable ccmalloc memory debugging support
21070# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021071if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021072 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21073else
21074 enable_ccmalloc='no'
21075fi
21076
21077
21078# Enable Electric Fence memory debugging support
21079# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021080if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021081 enableval=$enable_efence; enable_efence=$enableval
21082else
21083 enable_efence='no'
21084fi
21085
21086
21087# Enable prof-based profiling support
21088# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021089if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021090 enableval=$enable_prof; enable_prof=$enableval
21091else
21092 enable_prof='no'
21093fi
21094
21095
21096# Enable gprof-based profiling support
21097# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021098if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021099 enableval=$enable_gprof; enable_gprof=$enableval
21100else
21101 enable_gprof='no'
21102fi
21103
21104
21105# Enable gcov-based profiling support
21106# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021107if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021108 enableval=$enable_gcov; enable_gcov=$enableval
21109else
21110 enable_gcov='no'
21111fi
21112
21113
21114enable_profiling='no'
21115if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21116 enable_profiling='yes'
21117 if test "$libtool_build_shared_libs" = 'yes'; then
21118 echo "Warning: Can not profile code using shared libraries"
21119 fi
21120fi
21121
21122# Magick API method prefix
21123
21124# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021125if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021126 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021127else
cristyfc3d0222012-02-07 15:05:57 +000021128 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021129fi
21130
21131
cristyfc3d0222012-02-07 15:05:57 +000021132if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021133
21134cat >>confdefs.h <<_ACEOF
21135#define NAMESPACE_PREFIX $with_method_prefix
21136_ACEOF
21137
cristyfc3d0222012-02-07 15:05:57 +000021138 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021139fi
21140
cristy71d8c202012-03-20 17:05:01 +000021141# Enable legacy support (default no)
21142# Check whether --enable-legacy-support was given.
21143if test "${enable_legacy_support+set}" = set; then :
21144 enableval=$enable_legacy_support; with_legacy_support=$enableval
21145else
21146 with_legacy_support='no'
21147fi
21148
21149 if test "$with_legacy_support" != 'no'; then
21150 LEGACY_SUPPORT_TRUE=
21151 LEGACY_SUPPORT_FALSE='#'
21152else
21153 LEGACY_SUPPORT_TRUE='#'
21154 LEGACY_SUPPORT_FALSE=
21155fi
21156
21157
cristy3ed852e2009-09-05 21:47:34 +000021158# Number of bits in a Quantum
21159
21160# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021161if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021162 withval=$with_quantum_depth; with_quantum_depth=$withval
21163else
21164 with_quantum_depth=16
21165fi
21166
21167
21168if test "$with_quantum_depth" != '8'; then
21169 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21170fi
21171
21172case "${with_quantum_depth}" in
21173 8 ) ;;
21174 16 ) ;;
21175 32 ) ;;
21176 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021177 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021178esac
21179QUANTUM_DEPTH="$with_quantum_depth"
21180
21181cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021182#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021183_ACEOF
21184
cristya371edf2013-02-06 13:42:17 +000021185MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021186CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021187CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021188
cristy01ff9f32012-12-01 18:15:29 +000021189# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021190MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021191if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021192 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021193fi
cristy01ff9f32012-12-01 18:15:29 +000021194
21195
cristy3ed852e2009-09-05 21:47:34 +000021196# Set pixel cache threshold
21197
21198# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021199if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021200 withval=$with_cache; with_cache=$withval
21201else
21202 with_cache=''
21203fi
21204
21205
21206if test "$with_cache" != ''; then
21207
21208cat >>confdefs.h <<_ACEOF
21209#define PixelCacheThreshold $with_cache
21210_ACEOF
21211
21212 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21213fi
21214
21215# Disable/Enable support for full delegate paths
21216
21217# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021218if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021219 withval=$with_frozenpaths; with_frozenpaths=$withval
21220else
21221 with_frozenpaths='no'
21222fi
21223
21224
21225# Enable build/install of Magick++
21226
21227# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021228if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021229 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21230else
21231 with_magick_plus_plus='yes'
21232fi
21233
21234
cristy3a75f062012-09-08 23:29:40 +000021235# Encode the this name into the shared library.
21236
21237# Check whether --with-package-release-name was given.
21238if test "${with_package_release_name+set}" = set; then :
21239 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21240fi
21241
21242
21243
cristy3ed852e2009-09-05 21:47:34 +000021244# Disable build/install of PerlMagick.
21245
21246# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021247if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021248 withval=$with_perl; with_perl=$withval
21249else
cristyb5f4e2f2010-04-25 00:49:11 +000021250 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021251fi
21252
21253
21254# Options to pass when configuring PerlMagick
21255
21256# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021257if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021258 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021259fi
21260
21261
cristy3ed852e2009-09-05 21:47:34 +000021262
21263# Enable umem, object-caching memory allocation library.
21264
21265# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021266if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021267 withval=$with_umem; with_umem=$withval
21268else
21269 with_umem='no'
21270fi
21271
21272if test "$with_umem" != 'yes' ; then
21273 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21274fi
21275
21276#
21277# Specify path to shared libstdc++ if not in normal location
21278#
21279
21280# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021281if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021282 withval=$with_libstdc; with_libstdc=$withval
21283else
21284 with_libstdc=''
21285fi
21286
21287
21288if test "$with_libstdc" != ''; then
21289 if test -d "$with_libstdc"; then
21290 LIBSTDCLDFLAGS="-L$with_libstdc"
21291 fi
21292fi
21293
21294
21295# Does gcc required -traditional?
21296if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021298$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021299if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021300 $as_echo_n "(cached) " >&6
21301else
21302 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021304/* end confdefs.h. */
21305#include <sgtty.h>
21306Autoconf TIOCGETP
21307_ACEOF
21308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021309 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021310 ac_cv_prog_gcc_traditional=yes
21311else
21312 ac_cv_prog_gcc_traditional=no
21313fi
21314rm -f conftest*
21315
21316
21317 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021319/* end confdefs.h. */
21320#include <termio.h>
21321Autoconf TCGETA
21322_ACEOF
21323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021324 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021325 ac_cv_prog_gcc_traditional=yes
21326fi
21327rm -f conftest*
21328
21329 fi
21330fi
cristy8b350f62009-11-15 23:12:43 +000021331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021332$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21333 if test $ac_cv_prog_gcc_traditional = yes; then
21334 CC="$CC -traditional"
21335 fi
21336fi
21337
21338
21339########
21340#
21341# Set defines required to build DLLs and modules using MinGW
21342#
21343########
21344# These options are set for multi-thread DLL module build
21345# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21346# module: _DLL
21347# executable/Magick++: _DLL _MAGICKMOD_
21348MODULE_EXTRA_CPPFLAGS=''
21349LIBRARY_EXTRA_CPPFLAGS=''
21350if test "${native_win32_build}" = 'yes'; then
21351 if test "${libtool_build_shared_libs}" = 'yes'; then
21352 CPPFLAGS="$CPPFLAGS -D_DLL"
21353 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21354 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21355 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021356 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021357 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21358 else
21359 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21360 fi
21361 else
21362 CPPFLAGS="$CPPFLAGS -D_LIB"
21363 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21364 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21365 fi
21366 if test "$with_threads" = 'yes'; then
21367 CPPFLAGS="$CPPFLAGS -D_MT"
21368 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21369 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21370 fi
21371fi
21372
21373
21374
21375# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021377$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021378if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021379 $as_echo_n "(cached) " >&6
21380else
cristy8b350f62009-11-15 23:12:43 +000021381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021382/* end confdefs.h. */
21383#include <stdlib.h>
21384#include <stdarg.h>
21385#include <string.h>
21386#include <float.h>
21387
21388int
21389main ()
21390{
21391
21392 ;
21393 return 0;
21394}
21395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021396if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021397 ac_cv_header_stdc=yes
21398else
cristy8b350f62009-11-15 23:12:43 +000021399 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021400fi
cristy3ed852e2009-09-05 21:47:34 +000021401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21402
21403if test $ac_cv_header_stdc = yes; then
21404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021406/* end confdefs.h. */
21407#include <string.h>
21408
21409_ACEOF
21410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021411 $EGREP "memchr" >/dev/null 2>&1; then :
21412
cristy3ed852e2009-09-05 21:47:34 +000021413else
21414 ac_cv_header_stdc=no
21415fi
21416rm -f conftest*
21417
21418fi
21419
21420if test $ac_cv_header_stdc = yes; then
21421 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021423/* end confdefs.h. */
21424#include <stdlib.h>
21425
21426_ACEOF
21427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021428 $EGREP "free" >/dev/null 2>&1; then :
21429
cristy3ed852e2009-09-05 21:47:34 +000021430else
21431 ac_cv_header_stdc=no
21432fi
21433rm -f conftest*
21434
21435fi
21436
21437if test $ac_cv_header_stdc = yes; then
21438 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021439 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021440 :
21441else
cristy8b350f62009-11-15 23:12:43 +000021442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021443/* end confdefs.h. */
21444#include <ctype.h>
21445#include <stdlib.h>
21446#if ((' ' & 0x0FF) == 0x020)
21447# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21448# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21449#else
21450# define ISLOWER(c) \
21451 (('a' <= (c) && (c) <= 'i') \
21452 || ('j' <= (c) && (c) <= 'r') \
21453 || ('s' <= (c) && (c) <= 'z'))
21454# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21455#endif
21456
21457#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21458int
21459main ()
21460{
21461 int i;
21462 for (i = 0; i < 256; i++)
21463 if (XOR (islower (i), ISLOWER (i))
21464 || toupper (i) != TOUPPER (i))
21465 return 2;
21466 return 0;
21467}
21468_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021469if ac_fn_c_try_run "$LINENO"; then :
21470
cristy3ed852e2009-09-05 21:47:34 +000021471else
cristy8b350f62009-11-15 23:12:43 +000021472 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021473fi
cristy8b350f62009-11-15 23:12:43 +000021474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21475 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021476fi
21477
cristy3ed852e2009-09-05 21:47:34 +000021478fi
21479fi
cristy8b350f62009-11-15 23:12:43 +000021480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021481$as_echo "$ac_cv_header_stdc" >&6; }
21482if test $ac_cv_header_stdc = yes; then
21483
cristy8b350f62009-11-15 23:12:43 +000021484$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021485
21486fi
21487
21488if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021489 { $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 +000021490 header files. Compilation cannot proceed. Please install the ANSI C
21491 headers and rerun this script." >&5
21492$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21493 header files. Compilation cannot proceed. Please install the ANSI C
21494 headers and rerun this script." >&2;};
21495fi
cristya0b81c32010-01-22 02:54:33 +000021496
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21498$as_echo_n "checking whether to enable assertions... " >&6; }
21499 # Check whether --enable-assert was given.
21500if test "${enable_assert+set}" = set; then :
21501 enableval=$enable_assert; ac_enable_assert=$enableval
21502 if test "x$enableval" = xno; then :
21503
21504$as_echo "#define NDEBUG 1" >>confdefs.h
21505
21506elif test "x$enableval" != xyes; then :
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21508$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21509 ac_enable_assert=yes
21510fi
21511else
21512 ac_enable_assert=yes
21513fi
21514
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21516$as_echo "$ac_enable_assert" >&6; }
21517
cristy3ed852e2009-09-05 21:47:34 +000021518ac_header_dirent=no
21519for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21520 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021522$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021523if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021524 $as_echo_n "(cached) " >&6
21525else
cristy8b350f62009-11-15 23:12:43 +000021526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021527/* end confdefs.h. */
21528#include <sys/types.h>
21529#include <$ac_hdr>
21530
21531int
21532main ()
21533{
21534if ((DIR *) 0)
21535return 0;
21536 ;
21537 return 0;
21538}
21539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021540if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021541 eval "$as_ac_Header=yes"
21542else
cristy8b350f62009-11-15 23:12:43 +000021543 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021544fi
cristy3ed852e2009-09-05 21:47:34 +000021545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21546fi
cristy8b350f62009-11-15 23:12:43 +000021547eval ac_res=\$$as_ac_Header
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021549$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021550if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021551 cat >>confdefs.h <<_ACEOF
21552#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21553_ACEOF
21554
21555ac_header_dirent=$ac_hdr; break
21556fi
21557
21558done
21559# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21560if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021562$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021563if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021564 $as_echo_n "(cached) " >&6
21565else
21566 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021568/* end confdefs.h. */
21569
21570/* Override any GCC internal prototype to avoid an error.
21571 Use char because int might match the return type of a GCC
21572 builtin and then its argument prototype would still apply. */
21573#ifdef __cplusplus
21574extern "C"
21575#endif
21576char opendir ();
21577int
21578main ()
21579{
21580return opendir ();
21581 ;
21582 return 0;
21583}
21584_ACEOF
21585for ac_lib in '' dir; do
21586 if test -z "$ac_lib"; then
21587 ac_res="none required"
21588 else
21589 ac_res=-l$ac_lib
21590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21591 fi
cristy8b350f62009-11-15 23:12:43 +000021592 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021593 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021594fi
cristy8b350f62009-11-15 23:12:43 +000021595rm -f core conftest.err conftest.$ac_objext \
21596 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021597 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021598 break
21599fi
21600done
cristyda16f162011-02-19 23:52:17 +000021601if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021602
cristy3ed852e2009-09-05 21:47:34 +000021603else
21604 ac_cv_search_opendir=no
21605fi
21606rm conftest.$ac_ext
21607LIBS=$ac_func_search_save_LIBS
21608fi
cristy8b350f62009-11-15 23:12:43 +000021609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021610$as_echo "$ac_cv_search_opendir" >&6; }
21611ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021612if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21614
21615fi
21616
21617else
cristy8b350f62009-11-15 23:12:43 +000021618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021619$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021620if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021621 $as_echo_n "(cached) " >&6
21622else
21623 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021625/* end confdefs.h. */
21626
21627/* Override any GCC internal prototype to avoid an error.
21628 Use char because int might match the return type of a GCC
21629 builtin and then its argument prototype would still apply. */
21630#ifdef __cplusplus
21631extern "C"
21632#endif
21633char opendir ();
21634int
21635main ()
21636{
21637return opendir ();
21638 ;
21639 return 0;
21640}
21641_ACEOF
21642for ac_lib in '' x; do
21643 if test -z "$ac_lib"; then
21644 ac_res="none required"
21645 else
21646 ac_res=-l$ac_lib
21647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21648 fi
cristy8b350f62009-11-15 23:12:43 +000021649 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021650 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021651fi
cristy8b350f62009-11-15 23:12:43 +000021652rm -f core conftest.err conftest.$ac_objext \
21653 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021654 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021655 break
21656fi
21657done
cristyda16f162011-02-19 23:52:17 +000021658if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021659
cristy3ed852e2009-09-05 21:47:34 +000021660else
21661 ac_cv_search_opendir=no
21662fi
21663rm conftest.$ac_ext
21664LIBS=$ac_func_search_save_LIBS
21665fi
cristy8b350f62009-11-15 23:12:43 +000021666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021667$as_echo "$ac_cv_search_opendir" >&6; }
21668ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021669if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21671
21672fi
21673
21674fi
21675
21676
21677# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021678for 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 +000021679do :
21680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21681ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021682if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021683 cat >>confdefs.h <<_ACEOF
21684#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21685_ACEOF
21686
21687fi
21688
21689done
21690
21691
21692########
21693#
21694# Checks for typedefs, structures, and compiler characteristics.
21695#
21696########
21697
cristy8b350f62009-11-15 23:12:43 +000021698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021699$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021700if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021701 $as_echo_n "(cached) " >&6
21702else
cristy8b350f62009-11-15 23:12:43 +000021703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021704/* end confdefs.h. */
21705
cristy14fefe52012-05-21 00:59:18 +000021706 #include <stdbool.h>
21707 #ifndef bool
21708 "error: bool is not defined"
21709 #endif
21710 #ifndef false
21711 "error: false is not defined"
21712 #endif
21713 #if false
21714 "error: false is not 0"
21715 #endif
21716 #ifndef true
21717 "error: true is not defined"
21718 #endif
21719 #if true != 1
21720 "error: true is not 1"
21721 #endif
21722 #ifndef __bool_true_false_are_defined
21723 "error: __bool_true_false_are_defined is not defined"
21724 #endif
cristy3ed852e2009-09-05 21:47:34 +000021725
cristy14fefe52012-05-21 00:59:18 +000021726 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021727
cristy14fefe52012-05-21 00:59:18 +000021728 char a[true == 1 ? 1 : -1];
21729 char b[false == 0 ? 1 : -1];
21730 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21731 char d[(bool) 0.5 == true ? 1 : -1];
21732 /* See body of main program for 'e'. */
21733 char f[(_Bool) 0.0 == false ? 1 : -1];
21734 char g[true];
21735 char h[sizeof (_Bool)];
21736 char i[sizeof s.t];
21737 enum { j = false, k = true, l = false * true, m = true * 256 };
21738 /* The following fails for
21739 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21740 _Bool n[m];
21741 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21742 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21743 /* Catch a bug in an HP-UX C compiler. See
21744 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21745 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21746 */
21747 _Bool q = true;
21748 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021749
21750int
21751main ()
21752{
21753
cristy14fefe52012-05-21 00:59:18 +000021754 bool e = &s;
21755 *pq |= q;
21756 *pq |= ! q;
21757 /* Refer to every declared value, to avoid compiler optimizations. */
21758 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21759 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021760
21761 ;
21762 return 0;
21763}
21764_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021765if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021766 ac_cv_header_stdbool_h=yes
21767else
cristy8b350f62009-11-15 23:12:43 +000021768 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021769fi
cristy3ed852e2009-09-05 21:47:34 +000021770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21771fi
cristy8b350f62009-11-15 23:12:43 +000021772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021773$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021774 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021775if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021776
21777cat >>confdefs.h <<_ACEOF
21778#define HAVE__BOOL 1
21779_ACEOF
21780
21781
21782fi
21783
cristy14fefe52012-05-21 00:59:18 +000021784
cristy3ed852e2009-09-05 21:47:34 +000021785if test $ac_cv_header_stdbool_h = yes; then
21786
cristy8b350f62009-11-15 23:12:43 +000021787$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021788
21789fi
21790
cristy8b350f62009-11-15 23:12:43 +000021791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021792$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021793if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021794 $as_echo_n "(cached) " >&6
21795else
cristy8b350f62009-11-15 23:12:43 +000021796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021797/* end confdefs.h. */
21798
21799int
21800main ()
21801{
21802
21803volatile int x;
21804int * volatile y = (int *) 0;
21805return !x && !y;
21806 ;
21807 return 0;
21808}
21809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021810if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021811 ac_cv_c_volatile=yes
21812else
cristy8b350f62009-11-15 23:12:43 +000021813 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021814fi
cristy3ed852e2009-09-05 21:47:34 +000021815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21816fi
cristy8b350f62009-11-15 23:12:43 +000021817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021818$as_echo "$ac_cv_c_volatile" >&6; }
21819if test $ac_cv_c_volatile = no; then
21820
cristy8b350f62009-11-15 23:12:43 +000021821$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021822
21823fi
21824
cristy8b350f62009-11-15 23:12:43 +000021825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021826$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021827if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021828 $as_echo_n "(cached) " >&6
21829else
cristy8b350f62009-11-15 23:12:43 +000021830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021831/* end confdefs.h. */
21832#define x(y) #y
21833
21834char *s = x(teststring);
21835_ACEOF
21836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021837 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021838 ac_cv_c_stringize=no
21839else
21840 ac_cv_c_stringize=yes
21841fi
21842rm -f conftest*
21843
21844fi
cristy8b350f62009-11-15 23:12:43 +000021845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021846$as_echo "$ac_cv_c_stringize" >&6; }
21847if test $ac_cv_c_stringize = yes; then
21848
cristy8b350f62009-11-15 23:12:43 +000021849$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021850
21851fi
21852
cristy8b350f62009-11-15 23:12:43 +000021853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021854$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021855if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021856 $as_echo_n "(cached) " >&6
21857else
cristy8b350f62009-11-15 23:12:43 +000021858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021859/* end confdefs.h. */
21860#include <sys/types.h>
21861#include <sys/stat.h>
21862
21863#if defined S_ISBLK && defined S_IFDIR
21864extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21865#endif
21866
21867#if defined S_ISBLK && defined S_IFCHR
21868extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21869#endif
21870
21871#if defined S_ISLNK && defined S_IFREG
21872extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21873#endif
21874
21875#if defined S_ISSOCK && defined S_IFREG
21876extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21877#endif
21878
21879_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021880if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021881 ac_cv_header_stat_broken=no
21882else
cristy8b350f62009-11-15 23:12:43 +000021883 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021884fi
cristy3ed852e2009-09-05 21:47:34 +000021885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21886fi
cristy8b350f62009-11-15 23:12:43 +000021887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021888$as_echo "$ac_cv_header_stat_broken" >&6; }
21889if test $ac_cv_header_stat_broken = yes; then
21890
cristy8b350f62009-11-15 23:12:43 +000021891$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021892
21893fi
21894
cristy8b350f62009-11-15 23:12:43 +000021895{ $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 +000021896$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021897if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021898 $as_echo_n "(cached) " >&6
21899else
cristy8b350f62009-11-15 23:12:43 +000021900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021901/* end confdefs.h. */
21902#include <sys/types.h>
21903#include <sys/time.h>
21904#include <time.h>
21905
21906int
21907main ()
21908{
21909if ((struct tm *) 0)
21910return 0;
21911 ;
21912 return 0;
21913}
21914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021915if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021916 ac_cv_header_time=yes
21917else
cristy8b350f62009-11-15 23:12:43 +000021918 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021919fi
cristy3ed852e2009-09-05 21:47:34 +000021920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21921fi
cristy8b350f62009-11-15 23:12:43 +000021922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021923$as_echo "$ac_cv_header_time" >&6; }
21924if test $ac_cv_header_time = yes; then
21925
cristy8b350f62009-11-15 23:12:43 +000021926$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021927
21928fi
21929
cristy8b350f62009-11-15 23:12:43 +000021930{ $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 +000021931$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021932if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021933 $as_echo_n "(cached) " >&6
21934else
cristy8b350f62009-11-15 23:12:43 +000021935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021936/* end confdefs.h. */
21937#include <sys/types.h>
21938#include <time.h>
21939
21940int
21941main ()
21942{
21943struct tm tm;
21944 int *p = &tm.tm_sec;
21945 return !p;
21946 ;
21947 return 0;
21948}
21949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021950if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021951 ac_cv_struct_tm=time.h
21952else
cristy8b350f62009-11-15 23:12:43 +000021953 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021954fi
cristy3ed852e2009-09-05 21:47:34 +000021955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21956fi
cristy8b350f62009-11-15 23:12:43 +000021957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021958$as_echo "$ac_cv_struct_tm" >&6; }
21959if test $ac_cv_struct_tm = sys/time.h; then
21960
cristy8b350f62009-11-15 23:12:43 +000021961$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021962
21963fi
21964
cristy92703d82010-04-26 00:18:18 +000021965ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21966#include <$ac_cv_struct_tm>
21967
21968"
cristyda16f162011-02-19 23:52:17 +000021969if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021970
21971cat >>confdefs.h <<_ACEOF
21972#define HAVE_STRUCT_TM_TM_ZONE 1
21973_ACEOF
21974
21975
21976fi
21977
21978if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21979
21980$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21981
21982else
21983 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21984"
cristyda16f162011-02-19 23:52:17 +000021985if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021986 ac_have_decl=1
21987else
21988 ac_have_decl=0
21989fi
21990
21991cat >>confdefs.h <<_ACEOF
21992#define HAVE_DECL_TZNAME $ac_have_decl
21993_ACEOF
21994
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21996$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021997if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021998 $as_echo_n "(cached) " >&6
21999else
22000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22001/* end confdefs.h. */
22002#include <time.h>
22003#if !HAVE_DECL_TZNAME
22004extern char *tzname[];
22005#endif
22006
22007int
22008main ()
22009{
22010return tzname[0][0];
22011 ;
22012 return 0;
22013}
22014_ACEOF
22015if ac_fn_c_try_link "$LINENO"; then :
22016 ac_cv_var_tzname=yes
22017else
22018 ac_cv_var_tzname=no
22019fi
22020rm -f core conftest.err conftest.$ac_objext \
22021 conftest$ac_exeext conftest.$ac_ext
22022fi
22023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22024$as_echo "$ac_cv_var_tzname" >&6; }
22025 if test $ac_cv_var_tzname = yes; then
22026
22027$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22028
22029 fi
22030fi
22031
cristy8b350f62009-11-15 23:12:43 +000022032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022033$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022034if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022035 $as_echo_n "(cached) " >&6
22036else
22037 echo '#! /bin/cat
22038exit 69
22039' >conftest
22040chmod u+x conftest
22041(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22042if test $? -ne 69; then
22043 ac_cv_sys_interpreter=yes
22044else
22045 ac_cv_sys_interpreter=no
22046fi
22047rm -f conftest
22048fi
cristy8b350f62009-11-15 23:12:43 +000022049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022050$as_echo "$ac_cv_sys_interpreter" >&6; }
22051interpval=$ac_cv_sys_interpreter
22052
22053
cristye80f9cb2013-01-09 01:09:31 +000022054#
22055# Checks for language qualifiers and semantics.
22056#
22057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22058$as_echo_n "checking whether char is unsigned... " >&6; }
22059if ${ac_cv_c_char_unsigned+:} false; then :
22060 $as_echo_n "(cached) " >&6
22061else
22062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22063/* end confdefs.h. */
22064$ac_includes_default
22065int
22066main ()
22067{
22068static int test_array [1 - 2 * !(((char) -1) < 0)];
22069test_array [0] = 0;
22070return test_array [0];
22071
22072 ;
22073 return 0;
22074}
22075_ACEOF
22076if ac_fn_c_try_compile "$LINENO"; then :
22077 ac_cv_c_char_unsigned=no
22078else
22079 ac_cv_c_char_unsigned=yes
22080fi
22081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082fi
22083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22084$as_echo "$ac_cv_c_char_unsigned" >&6; }
22085if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22086 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22087
22088fi
22089
22090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22091$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22092if ${ac_cv_c_const+:} false; then :
22093 $as_echo_n "(cached) " >&6
22094else
22095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22096/* end confdefs.h. */
22097
22098int
22099main ()
22100{
22101
22102#ifndef __cplusplus
22103 /* Ultrix mips cc rejects this sort of thing. */
22104 typedef int charset[2];
22105 const charset cs = { 0, 0 };
22106 /* SunOS 4.1.1 cc rejects this. */
22107 char const *const *pcpcc;
22108 char **ppc;
22109 /* NEC SVR4.0.2 mips cc rejects this. */
22110 struct point {int x, y;};
22111 static struct point const zero = {0,0};
22112 /* AIX XL C 1.02.0.0 rejects this.
22113 It does not let you subtract one const X* pointer from another in
22114 an arm of an if-expression whose if-part is not a constant
22115 expression */
22116 const char *g = "string";
22117 pcpcc = &g + (g ? g-g : 0);
22118 /* HPUX 7.0 cc rejects these. */
22119 ++pcpcc;
22120 ppc = (char**) pcpcc;
22121 pcpcc = (char const *const *) ppc;
22122 { /* SCO 3.2v4 cc rejects this sort of thing. */
22123 char tx;
22124 char *t = &tx;
22125 char const *s = 0 ? (char *) 0 : (char const *) 0;
22126
22127 *t++ = 0;
22128 if (s) return 0;
22129 }
22130 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22131 int x[] = {25, 17};
22132 const int *foo = &x[0];
22133 ++foo;
22134 }
22135 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22136 typedef const int *iptr;
22137 iptr p = 0;
22138 ++p;
22139 }
22140 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22141 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22142 struct s { int j; const int *ap[3]; } bx;
22143 struct s *b = &bx; b->j = 5;
22144 }
22145 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22146 const int foo = 10;
22147 if (!foo) return 0;
22148 }
22149 return !cs[0] && !zero.x;
22150#endif
22151
22152 ;
22153 return 0;
22154}
22155_ACEOF
22156if ac_fn_c_try_compile "$LINENO"; then :
22157 ac_cv_c_const=yes
22158else
22159 ac_cv_c_const=no
22160fi
22161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22162fi
22163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22164$as_echo "$ac_cv_c_const" >&6; }
22165if test $ac_cv_c_const = no; then
22166
22167$as_echo "#define const /**/" >>confdefs.h
22168
22169fi
22170
cristy8b350f62009-11-15 23:12:43 +000022171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022172$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022173if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022174 $as_echo_n "(cached) " >&6
22175else
22176 ac_cv_c_inline=no
22177for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022179/* end confdefs.h. */
22180#ifndef __cplusplus
22181typedef int foo_t;
22182static $ac_kw foo_t static_foo () {return 0; }
22183$ac_kw foo_t foo () {return 0; }
22184#endif
22185
22186_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022187if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022188 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022189fi
cristy3ed852e2009-09-05 21:47:34 +000022190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22191 test "$ac_cv_c_inline" != no && break
22192done
22193
22194fi
cristy8b350f62009-11-15 23:12:43 +000022195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022196$as_echo "$ac_cv_c_inline" >&6; }
22197
cristy3ed852e2009-09-05 21:47:34 +000022198case $ac_cv_c_inline in
22199 inline | yes) ;;
22200 *)
22201 case $ac_cv_c_inline in
22202 no) ac_val=;;
22203 *) ac_val=$ac_cv_c_inline;;
22204 esac
22205 cat >>confdefs.h <<_ACEOF
22206#ifndef __cplusplus
22207#define inline $ac_val
22208#endif
22209_ACEOF
22210 ;;
22211esac
22212
cristy8b350f62009-11-15 23:12:43 +000022213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022214$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022215if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022216 $as_echo_n "(cached) " >&6
22217else
22218 ac_cv_c_restrict=no
22219 # The order here caters to the fact that C++ does not require restrict.
22220 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022222/* end confdefs.h. */
22223typedef int * int_ptr;
22224 int foo (int_ptr $ac_kw ip) {
22225 return ip[0];
22226 }
22227int
22228main ()
22229{
22230int s[1];
22231 int * $ac_kw t = s;
22232 t[0] = 0;
22233 return foo(t)
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_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022240fi
cristy3ed852e2009-09-05 21:47:34 +000022241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242 test "$ac_cv_c_restrict" != no && break
22243 done
22244
22245fi
cristy8b350f62009-11-15 23:12:43 +000022246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022247$as_echo "$ac_cv_c_restrict" >&6; }
22248
cristy3ed852e2009-09-05 21:47:34 +000022249 case $ac_cv_c_restrict in
22250 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022251 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022252 ;;
22253 *) cat >>confdefs.h <<_ACEOF
22254#define restrict $ac_cv_c_restrict
22255_ACEOF
22256 ;;
22257 esac
22258
cristye80f9cb2013-01-09 01:09:31 +000022259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22260$as_echo_n "checking for working volatile... " >&6; }
22261if ${ac_cv_c_volatile+:} false; then :
22262 $as_echo_n "(cached) " >&6
22263else
22264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22265/* end confdefs.h. */
22266
22267int
22268main ()
22269{
22270
22271volatile int x;
22272int * volatile y = (int *) 0;
22273return !x && !y;
22274 ;
22275 return 0;
22276}
22277_ACEOF
22278if ac_fn_c_try_compile "$LINENO"; then :
22279 ac_cv_c_volatile=yes
22280else
22281 ac_cv_c_volatile=no
22282fi
22283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22284fi
22285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22286$as_echo "$ac_cv_c_volatile" >&6; }
22287if test $ac_cv_c_volatile = no; then
22288
22289$as_echo "#define volatile /**/" >>confdefs.h
22290
22291fi
22292
cristy3ed852e2009-09-05 21:47:34 +000022293
22294# If words are stored with the most significant byte first (like
22295# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022297$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022298if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022299 $as_echo_n "(cached) " >&6
22300else
22301 ac_cv_c_bigendian=unknown
22302 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022304/* end confdefs.h. */
22305#ifndef __APPLE_CC__
22306 not a universal capable compiler
22307 #endif
22308 typedef int dummy;
22309
22310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022311if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022312
22313 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022314 # there are at least two -arch flags with different values.
22315 ac_arch=
22316 ac_prev=
22317 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22318 if test -n "$ac_prev"; then
22319 case $ac_word in
22320 i?86 | x86_64 | ppc | ppc64)
22321 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22322 ac_arch=$ac_word
22323 else
22324 ac_cv_c_bigendian=universal
22325 break
22326 fi
22327 ;;
22328 esac
22329 ac_prev=
22330 elif test "x$ac_word" = "x-arch"; then
22331 ac_prev=arch
22332 fi
22333 done
cristy3ed852e2009-09-05 21:47:34 +000022334fi
cristy3ed852e2009-09-05 21:47:34 +000022335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22336 if test $ac_cv_c_bigendian = unknown; then
22337 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022339/* end confdefs.h. */
22340#include <sys/types.h>
22341 #include <sys/param.h>
22342
22343int
22344main ()
22345{
22346#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22347 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22348 && LITTLE_ENDIAN)
22349 bogus endian macros
22350 #endif
22351
22352 ;
22353 return 0;
22354}
22355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022356if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022357 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022359/* end confdefs.h. */
22360#include <sys/types.h>
22361 #include <sys/param.h>
22362
22363int
22364main ()
22365{
22366#if BYTE_ORDER != BIG_ENDIAN
22367 not big endian
22368 #endif
22369
22370 ;
22371 return 0;
22372}
22373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022374if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022375 ac_cv_c_bigendian=yes
22376else
cristy8b350f62009-11-15 23:12:43 +000022377 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022378fi
cristy3ed852e2009-09-05 21:47:34 +000022379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022380fi
cristy3ed852e2009-09-05 21:47:34 +000022381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22382 fi
22383 if test $ac_cv_c_bigendian = unknown; then
22384 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022386/* end confdefs.h. */
22387#include <limits.h>
22388
22389int
22390main ()
22391{
22392#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22393 bogus endian macros
22394 #endif
22395
22396 ;
22397 return 0;
22398}
22399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022400if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022401 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022403/* end confdefs.h. */
22404#include <limits.h>
22405
22406int
22407main ()
22408{
22409#ifndef _BIG_ENDIAN
22410 not big endian
22411 #endif
22412
22413 ;
22414 return 0;
22415}
22416_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022417if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022418 ac_cv_c_bigendian=yes
22419else
cristy8b350f62009-11-15 23:12:43 +000022420 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022421fi
cristy3ed852e2009-09-05 21:47:34 +000022422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022423fi
cristy3ed852e2009-09-05 21:47:34 +000022424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22425 fi
22426 if test $ac_cv_c_bigendian = unknown; then
22427 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022428 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022429 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022431/* end confdefs.h. */
22432short int ascii_mm[] =
22433 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22434 short int ascii_ii[] =
22435 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22436 int use_ascii (int i) {
22437 return ascii_mm[i] + ascii_ii[i];
22438 }
22439 short int ebcdic_ii[] =
22440 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22441 short int ebcdic_mm[] =
22442 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22443 int use_ebcdic (int i) {
22444 return ebcdic_mm[i] + ebcdic_ii[i];
22445 }
22446 extern int foo;
22447
22448int
22449main ()
22450{
22451return use_ascii (foo) == use_ebcdic (foo);
22452 ;
22453 return 0;
22454}
22455_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022456if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022457 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22458 ac_cv_c_bigendian=yes
22459 fi
22460 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22461 if test "$ac_cv_c_bigendian" = unknown; then
22462 ac_cv_c_bigendian=no
22463 else
22464 # finding both strings is unlikely to happen, but who knows?
22465 ac_cv_c_bigendian=unknown
22466 fi
22467 fi
cristy3ed852e2009-09-05 21:47:34 +000022468fi
cristy3ed852e2009-09-05 21:47:34 +000022469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22470else
cristy8b350f62009-11-15 23:12:43 +000022471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022472/* end confdefs.h. */
22473$ac_includes_default
22474int
22475main ()
22476{
22477
22478 /* Are we little or big endian? From Harbison&Steele. */
22479 union
22480 {
22481 long int l;
22482 char c[sizeof (long int)];
22483 } u;
22484 u.l = 1;
22485 return u.c[sizeof (long int) - 1] == 1;
22486
22487 ;
22488 return 0;
22489}
22490_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022491if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022492 ac_cv_c_bigendian=no
22493else
cristy8b350f62009-11-15 23:12:43 +000022494 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022495fi
cristy8b350f62009-11-15 23:12:43 +000022496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22497 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022498fi
22499
cristy3ed852e2009-09-05 21:47:34 +000022500 fi
22501fi
cristy8b350f62009-11-15 23:12:43 +000022502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022503$as_echo "$ac_cv_c_bigendian" >&6; }
22504 case $ac_cv_c_bigendian in #(
22505 yes)
cristy8b350f62009-11-15 23:12:43 +000022506 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022507;; #(
22508 no)
22509 ;; #(
22510 universal)
22511
cristy8b350f62009-11-15 23:12:43 +000022512$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022513
22514 ;; #(
22515 *)
cristy98dddb52010-11-04 00:30:15 +000022516 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022517 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022518 esac
22519
22520
cristy501c8042011-05-26 17:46:28 +000022521# Define to a suitable type, if standard headers do not define it.
22522ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22523case $ac_cv_c_int8_t in #(
22524 no|yes) ;; #(
22525 *)
cristy3ed852e2009-09-05 21:47:34 +000022526
22527cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022528#define int8_t $ac_cv_c_int8_t
22529_ACEOF
22530;;
22531esac
22532
22533ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22534case $ac_cv_c_int16_t in #(
22535 no|yes) ;; #(
22536 *)
22537
22538cat >>confdefs.h <<_ACEOF
22539#define int16_t $ac_cv_c_int16_t
22540_ACEOF
22541;;
22542esac
22543
22544ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22545case $ac_cv_c_int32_t in #(
22546 no|yes) ;; #(
22547 *)
22548
22549cat >>confdefs.h <<_ACEOF
22550#define int32_t $ac_cv_c_int32_t
22551_ACEOF
22552;;
22553esac
22554
22555ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22556case $ac_cv_c_int64_t in #(
22557 no|yes) ;; #(
22558 *)
22559
22560cat >>confdefs.h <<_ACEOF
22561#define int64_t $ac_cv_c_int64_t
22562_ACEOF
22563;;
22564esac
22565
22566
cristybdabdd62013-03-04 17:43:36 +000022567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22568$as_echo_n "checking for long long int... " >&6; }
22569if ${ac_cv_type_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022570 $as_echo_n "(cached) " >&6
22571else
cristybdabdd62013-03-04 17:43:36 +000022572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022573/* end confdefs.h. */
22574
22575 /* For now, do not test the preprocessor; as of 2007 there are too many
cristybdabdd62013-03-04 17:43:36 +000022576 implementations with broken preprocessors. Perhaps this can
22577 be revisited in 2012. In the meantime, code should not expect
22578 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022579 /* Test literals. */
22580 long long int ll = 9223372036854775807ll;
22581 long long int nll = -9223372036854775807LL;
22582 unsigned long long int ull = 18446744073709551615ULL;
22583 /* Test constant expressions. */
22584 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristybdabdd62013-03-04 17:43:36 +000022585 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022586 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristybdabdd62013-03-04 17:43:36 +000022587 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022588 int i = 63;
22589int
22590main ()
22591{
22592/* Test availability of runtime routines for shift and division. */
22593 long long int llmax = 9223372036854775807ll;
22594 unsigned long long int ullmax = 18446744073709551615ull;
22595 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristybdabdd62013-03-04 17:43:36 +000022596 | (llmax / ll) | (llmax % ll)
22597 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22598 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022599 ;
22600 return 0;
22601}
22602
22603_ACEOF
22604if ac_fn_c_try_link "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000022605 if test "$cross_compiling" = yes; then :
cristy501c8042011-05-26 17:46:28 +000022606 ac_cv_type_long_long_int=yes
22607else
22608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22609/* end confdefs.h. */
22610#include <limits.h>
cristybdabdd62013-03-04 17:43:36 +000022611 #ifndef LLONG_MAX
22612 # define HALF \
22613 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22614 # define LLONG_MAX (HALF - 1 + HALF)
22615 #endif
cristy501c8042011-05-26 17:46:28 +000022616int
22617main ()
22618{
22619long long int n = 1;
cristybdabdd62013-03-04 17:43:36 +000022620 int i;
22621 for (i = 0; ; i++)
22622 {
22623 long long int m = n << i;
22624 if (m >> i != n)
22625 return 1;
22626 if (LLONG_MAX / 2 < m)
22627 break;
22628 }
22629 return 0;
cristy501c8042011-05-26 17:46:28 +000022630 ;
22631 return 0;
22632}
22633_ACEOF
22634if ac_fn_c_try_run "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000022635 ac_cv_type_long_long_int=yes
cristy501c8042011-05-26 17:46:28 +000022636else
22637 ac_cv_type_long_long_int=no
22638fi
22639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22640 conftest.$ac_objext conftest.beam conftest.$ac_ext
22641fi
22642
cristybdabdd62013-03-04 17:43:36 +000022643else
22644 ac_cv_type_long_long_int=no
22645fi
22646rm -f core conftest.err conftest.$ac_objext \
22647 conftest$ac_exeext conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022648fi
22649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22650$as_echo "$ac_cv_type_long_long_int" >&6; }
22651 if test $ac_cv_type_long_long_int = yes; then
22652
22653$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22654
22655 fi
22656
22657
22658
22659 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22660if test "x$ac_cv_type_intmax_t" = xyes; then :
22661
22662$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22663
22664else
22665 test $ac_cv_type_long_long_int = yes \
22666 && ac_type='long long int' \
22667 || ac_type='long int'
22668
22669cat >>confdefs.h <<_ACEOF
22670#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022671_ACEOF
22672
22673fi
22674
22675
cristy501c8042011-05-26 17:46:28 +000022676
22677 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22678if test "x$ac_cv_type_intptr_t" = xyes; then :
22679
22680$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022681
cristy3ed852e2009-09-05 21:47:34 +000022682else
cristy501c8042011-05-26 17:46:28 +000022683 for ac_type in 'int' 'long int' 'long long int'; do
22684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22685/* end confdefs.h. */
22686$ac_includes_default
22687int
22688main ()
22689{
22690static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022691test_array [0] = 0;
22692return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022693
22694 ;
22695 return 0;
22696}
22697_ACEOF
22698if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022699
22700cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022701#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022702_ACEOF
22703
cristy501c8042011-05-26 17:46:28 +000022704 ac_type=
22705fi
22706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22707 test -z "$ac_type" && break
22708 done
cristy3ed852e2009-09-05 21:47:34 +000022709fi
22710
22711
cristy3ed852e2009-09-05 21:47:34 +000022712
cristy501c8042011-05-26 17:46:28 +000022713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22714$as_echo_n "checking for long double... " >&6; }
22715if ${ac_cv_type_long_double+:} false; then :
22716 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022717else
cristy501c8042011-05-26 17:46:28 +000022718 if test "$GCC" = yes; then
22719 ac_cv_type_long_double=yes
22720 else
22721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22722/* end confdefs.h. */
22723/* The Stardent Vistra knows sizeof (long double), but does
22724 not support it. */
22725 long double foo = 0.0L;
22726int
22727main ()
22728{
22729static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22730 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022731test_array [0] = 0;
22732return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022733
cristy501c8042011-05-26 17:46:28 +000022734 ;
22735 return 0;
22736}
cristy3ed852e2009-09-05 21:47:34 +000022737_ACEOF
cristy501c8042011-05-26 17:46:28 +000022738if ac_fn_c_try_compile "$LINENO"; then :
22739 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022740else
cristy501c8042011-05-26 17:46:28 +000022741 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022742fi
cristy501c8042011-05-26 17:46:28 +000022743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22744 fi
cristy3ed852e2009-09-05 21:47:34 +000022745fi
cristy501c8042011-05-26 17:46:28 +000022746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22747$as_echo "$ac_cv_type_long_double" >&6; }
22748 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022749
cristy501c8042011-05-26 17:46:28 +000022750$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022751
cristy501c8042011-05-26 17:46:28 +000022752 fi
22753
cristy3ed852e2009-09-05 21:47:34 +000022754
cristy8b350f62009-11-15 23:12:43 +000022755 { $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 +000022756$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022757if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022758 $as_echo_n "(cached) " >&6
22759else
cristy8b350f62009-11-15 23:12:43 +000022760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022761/* end confdefs.h. */
22762#include <float.h>
22763 long double const a[] =
22764 {
22765 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22766 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22767 };
22768 long double
22769 f (long double x)
22770 {
22771 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22772 + (x ? f (x) : 'c'));
22773 }
22774
22775int
22776main ()
22777{
22778static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22779 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22780 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22781 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22782 && (int) LDBL_EPSILON == 0
22783 )];
cristy14fefe52012-05-21 00:59:18 +000022784test_array [0] = 0;
22785return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022786
22787 ;
22788 return 0;
22789}
22790_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022791if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022792 ac_cv_type_long_double_wider=yes
22793else
cristy8b350f62009-11-15 23:12:43 +000022794 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022795fi
cristy3ed852e2009-09-05 21:47:34 +000022796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22797fi
cristy8b350f62009-11-15 23:12:43 +000022798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022799$as_echo "$ac_cv_type_long_double_wider" >&6; }
22800 if test $ac_cv_type_long_double_wider = yes; then
22801
cristy8b350f62009-11-15 23:12:43 +000022802$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022803
22804 fi
22805
22806
cristy501c8042011-05-26 17:46:28 +000022807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22808$as_echo_n "checking for long long int... " >&6; }
22809if ${ac_cv_type_long_long_int+:} false; then :
22810 $as_echo_n "(cached) " >&6
22811else
cristybdabdd62013-03-04 17:43:36 +000022812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22813/* end confdefs.h. */
22814
22815 /* For now, do not test the preprocessor; as of 2007 there are too many
22816 implementations with broken preprocessors. Perhaps this can
22817 be revisited in 2012. In the meantime, code should not expect
22818 #if to work with literals wider than 32 bits. */
22819 /* Test literals. */
22820 long long int ll = 9223372036854775807ll;
22821 long long int nll = -9223372036854775807LL;
22822 unsigned long long int ull = 18446744073709551615ULL;
22823 /* Test constant expressions. */
22824 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22825 ? 1 : -1)];
22826 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22827 ? 1 : -1)];
22828 int i = 63;
22829int
22830main ()
22831{
22832/* Test availability of runtime routines for shift and division. */
22833 long long int llmax = 9223372036854775807ll;
22834 unsigned long long int ullmax = 18446744073709551615ull;
22835 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22836 | (llmax / ll) | (llmax % ll)
22837 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22838 | (ullmax / ull) | (ullmax % ull));
22839 ;
22840 return 0;
22841}
22842
22843_ACEOF
22844if ac_fn_c_try_link "$LINENO"; then :
22845 if test "$cross_compiling" = yes; then :
cristy501c8042011-05-26 17:46:28 +000022846 ac_cv_type_long_long_int=yes
22847else
22848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22849/* end confdefs.h. */
22850#include <limits.h>
cristybdabdd62013-03-04 17:43:36 +000022851 #ifndef LLONG_MAX
22852 # define HALF \
22853 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22854 # define LLONG_MAX (HALF - 1 + HALF)
22855 #endif
cristy501c8042011-05-26 17:46:28 +000022856int
22857main ()
22858{
22859long long int n = 1;
cristybdabdd62013-03-04 17:43:36 +000022860 int i;
22861 for (i = 0; ; i++)
22862 {
22863 long long int m = n << i;
22864 if (m >> i != n)
22865 return 1;
22866 if (LLONG_MAX / 2 < m)
22867 break;
22868 }
22869 return 0;
cristy501c8042011-05-26 17:46:28 +000022870 ;
22871 return 0;
22872}
22873_ACEOF
22874if ac_fn_c_try_run "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000022875 ac_cv_type_long_long_int=yes
cristy501c8042011-05-26 17:46:28 +000022876else
22877 ac_cv_type_long_long_int=no
22878fi
22879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22880 conftest.$ac_objext conftest.beam conftest.$ac_ext
22881fi
22882
cristybdabdd62013-03-04 17:43:36 +000022883else
22884 ac_cv_type_long_long_int=no
22885fi
22886rm -f core conftest.err conftest.$ac_objext \
22887 conftest$ac_exeext conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022888fi
22889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22890$as_echo "$ac_cv_type_long_long_int" >&6; }
22891 if test $ac_cv_type_long_long_int = yes; then
22892
22893$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22894
22895 fi
22896
22897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22898$as_echo_n "checking for mbstate_t... " >&6; }
22899if ${ac_cv_type_mbstate_t+:} false; then :
22900 $as_echo_n "(cached) " >&6
22901else
22902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22903/* end confdefs.h. */
22904$ac_includes_default
22905# include <wchar.h>
22906int
22907main ()
22908{
22909mbstate_t x; return sizeof x;
22910 ;
22911 return 0;
22912}
22913_ACEOF
22914if ac_fn_c_try_compile "$LINENO"; then :
22915 ac_cv_type_mbstate_t=yes
22916else
22917 ac_cv_type_mbstate_t=no
22918fi
22919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22920fi
22921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22922$as_echo "$ac_cv_type_mbstate_t" >&6; }
22923 if test $ac_cv_type_mbstate_t = yes; then
22924
22925$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22926
22927 else
22928
22929$as_echo "#define mbstate_t int" >>confdefs.h
22930
22931 fi
22932ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22933if test "x$ac_cv_type_mode_t" = xyes; then :
22934
22935else
22936
22937cat >>confdefs.h <<_ACEOF
22938#define mode_t int
22939_ACEOF
22940
22941fi
22942
22943ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22944if test "x$ac_cv_type_off_t" = xyes; then :
22945
22946else
22947
22948cat >>confdefs.h <<_ACEOF
22949#define off_t long int
22950_ACEOF
22951
22952fi
22953
22954ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22955if test "x$ac_cv_type_pid_t" = xyes; then :
22956
22957else
22958
22959cat >>confdefs.h <<_ACEOF
22960#define pid_t int
22961_ACEOF
22962
22963fi
22964
22965ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22966if test "x$ac_cv_type_size_t" = xyes; then :
22967
22968else
22969
22970cat >>confdefs.h <<_ACEOF
22971#define size_t unsigned int
22972_ACEOF
22973
22974fi
22975
22976ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22977if test "x$ac_cv_type_ssize_t" = xyes; then :
22978
22979else
22980
22981cat >>confdefs.h <<_ACEOF
22982#define ssize_t int
22983_ACEOF
22984
22985fi
22986
22987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22988$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22989if ${ac_cv_type_uid_t+:} false; then :
22990 $as_echo_n "(cached) " >&6
22991else
22992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22993/* end confdefs.h. */
22994#include <sys/types.h>
22995
22996_ACEOF
22997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22998 $EGREP "uid_t" >/dev/null 2>&1; then :
22999 ac_cv_type_uid_t=yes
23000else
23001 ac_cv_type_uid_t=no
23002fi
23003rm -f conftest*
23004
23005fi
23006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23007$as_echo "$ac_cv_type_uid_t" >&6; }
23008if test $ac_cv_type_uid_t = no; then
23009
23010$as_echo "#define uid_t int" >>confdefs.h
23011
23012
23013$as_echo "#define gid_t int" >>confdefs.h
23014
23015fi
23016
23017ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23018case $ac_cv_c_uint8_t in #(
23019 no|yes) ;; #(
23020 *)
23021
23022$as_echo "#define _UINT8_T 1" >>confdefs.h
23023
23024
23025cat >>confdefs.h <<_ACEOF
23026#define uint8_t $ac_cv_c_uint8_t
23027_ACEOF
23028;;
23029 esac
23030
23031ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23032case $ac_cv_c_uint16_t in #(
23033 no|yes) ;; #(
23034 *)
23035
23036
23037cat >>confdefs.h <<_ACEOF
23038#define uint16_t $ac_cv_c_uint16_t
23039_ACEOF
23040;;
23041 esac
23042
23043ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23044case $ac_cv_c_uint32_t in #(
23045 no|yes) ;; #(
23046 *)
23047
23048$as_echo "#define _UINT32_T 1" >>confdefs.h
23049
23050
23051cat >>confdefs.h <<_ACEOF
23052#define uint32_t $ac_cv_c_uint32_t
23053_ACEOF
23054;;
23055 esac
23056
23057ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23058case $ac_cv_c_uint64_t in #(
23059 no|yes) ;; #(
23060 *)
23061
23062$as_echo "#define _UINT64_T 1" >>confdefs.h
23063
23064
23065cat >>confdefs.h <<_ACEOF
23066#define uint64_t $ac_cv_c_uint64_t
23067_ACEOF
23068;;
23069 esac
23070
23071
cristybdabdd62013-03-04 17:43:36 +000023072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23073$as_echo_n "checking for unsigned long long int... " >&6; }
23074if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23075 $as_echo_n "(cached) " >&6
23076else
23077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23078/* end confdefs.h. */
23079
23080 /* For now, do not test the preprocessor; as of 2007 there are too many
23081 implementations with broken preprocessors. Perhaps this can
23082 be revisited in 2012. In the meantime, code should not expect
23083 #if to work with literals wider than 32 bits. */
23084 /* Test literals. */
23085 long long int ll = 9223372036854775807ll;
23086 long long int nll = -9223372036854775807LL;
23087 unsigned long long int ull = 18446744073709551615ULL;
23088 /* Test constant expressions. */
23089 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23090 ? 1 : -1)];
23091 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23092 ? 1 : -1)];
23093 int i = 63;
23094int
23095main ()
23096{
23097/* Test availability of runtime routines for shift and division. */
23098 long long int llmax = 9223372036854775807ll;
23099 unsigned long long int ullmax = 18446744073709551615ull;
23100 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23101 | (llmax / ll) | (llmax % ll)
23102 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23103 | (ullmax / ull) | (ullmax % ull));
23104 ;
23105 return 0;
23106}
23107
23108_ACEOF
23109if ac_fn_c_try_link "$LINENO"; then :
23110 ac_cv_type_unsigned_long_long_int=yes
23111else
23112 ac_cv_type_unsigned_long_long_int=no
23113fi
23114rm -f core conftest.err conftest.$ac_objext \
23115 conftest$ac_exeext conftest.$ac_ext
23116fi
23117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23118$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23119 if test $ac_cv_type_unsigned_long_long_int = yes; then
23120
23121$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23122
23123 fi
23124
23125
cristy501c8042011-05-26 17:46:28 +000023126
23127 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23128if test "x$ac_cv_type_uintmax_t" = xyes; then :
23129
23130$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23131
23132else
23133 test $ac_cv_type_unsigned_long_long_int = yes \
23134 && ac_type='unsigned long long int' \
23135 || ac_type='unsigned long int'
23136
23137cat >>confdefs.h <<_ACEOF
23138#define uintmax_t $ac_type
23139_ACEOF
23140
23141fi
23142
23143
23144
23145 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23146if test "x$ac_cv_type_uintptr_t" = xyes; then :
23147
23148$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23149
23150else
23151 for ac_type in 'unsigned int' 'unsigned long int' \
23152 'unsigned long long int'; do
23153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23154/* end confdefs.h. */
23155$ac_includes_default
23156int
23157main ()
23158{
23159static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023160test_array [0] = 0;
23161return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023162
23163 ;
23164 return 0;
23165}
23166_ACEOF
23167if ac_fn_c_try_compile "$LINENO"; then :
23168
23169cat >>confdefs.h <<_ACEOF
23170#define uintptr_t $ac_type
23171_ACEOF
23172
23173 ac_type=
23174fi
23175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23176 test -z "$ac_type" && break
23177 done
23178fi
23179
23180
23181
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23183$as_echo_n "checking for unsigned long long int... " >&6; }
23184if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23185 $as_echo_n "(cached) " >&6
23186else
cristybdabdd62013-03-04 17:43:36 +000023187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023188/* end confdefs.h. */
23189
23190 /* For now, do not test the preprocessor; as of 2007 there are too many
cristybdabdd62013-03-04 17:43:36 +000023191 implementations with broken preprocessors. Perhaps this can
23192 be revisited in 2012. In the meantime, code should not expect
23193 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023194 /* Test literals. */
23195 long long int ll = 9223372036854775807ll;
23196 long long int nll = -9223372036854775807LL;
23197 unsigned long long int ull = 18446744073709551615ULL;
23198 /* Test constant expressions. */
23199 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristybdabdd62013-03-04 17:43:36 +000023200 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023201 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristybdabdd62013-03-04 17:43:36 +000023202 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023203 int i = 63;
23204int
23205main ()
23206{
23207/* Test availability of runtime routines for shift and division. */
23208 long long int llmax = 9223372036854775807ll;
23209 unsigned long long int ullmax = 18446744073709551615ull;
23210 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristybdabdd62013-03-04 17:43:36 +000023211 | (llmax / ll) | (llmax % ll)
23212 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23213 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023214 ;
23215 return 0;
23216}
23217
23218_ACEOF
23219if ac_fn_c_try_link "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000023220 ac_cv_type_unsigned_long_long_int=yes
cristy501c8042011-05-26 17:46:28 +000023221else
23222 ac_cv_type_unsigned_long_long_int=no
23223fi
23224rm -f core conftest.err conftest.$ac_objext \
23225 conftest$ac_exeext conftest.$ac_ext
23226fi
23227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23228$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23229 if test $ac_cv_type_unsigned_long_long_int = yes; then
23230
23231$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23232
23233 fi
23234
23235
cristy9b86f202012-11-28 21:55:35 +000023236# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000023237ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23238"
23239if test "x$ac_cv_type_float_t" = xyes; then :
23240
23241cat >>confdefs.h <<_ACEOF
23242#define HAVE_FLOAT_T 1
23243_ACEOF
23244
23245
23246fi
23247
23248ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23249"
23250if test "x$ac_cv_type_double_t" = xyes; then :
23251
23252cat >>confdefs.h <<_ACEOF
23253#define HAVE_DOUBLE_T 1
23254_ACEOF
23255
23256
23257fi
23258
cristy9b86f202012-11-28 21:55:35 +000023259# The cast to long int works around a bug in the HP C Compiler
23260# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23261# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23262# This bug is HP SR number 8606223364.
23263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23264$as_echo_n "checking size of float_t... " >&6; }
23265if ${ac_cv_sizeof_float_t+:} false; then :
23266 $as_echo_n "(cached) " >&6
23267else
23268 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23269"; then :
23270
23271else
23272 if test "$ac_cv_type_float_t" = yes; then
23273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23275as_fn_error 77 "cannot compute sizeof (float_t)
23276See \`config.log' for more details" "$LINENO" 5; }
23277 else
23278 ac_cv_sizeof_float_t=0
23279 fi
23280fi
23281
23282fi
23283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23284$as_echo "$ac_cv_sizeof_float_t" >&6; }
23285
23286
23287
23288cat >>confdefs.h <<_ACEOF
23289#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23290_ACEOF
23291
23292
23293# The cast to long int works around a bug in the HP C Compiler
23294# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23295# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23296# This bug is HP SR number 8606223364.
23297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23298$as_echo_n "checking size of double_t... " >&6; }
23299if ${ac_cv_sizeof_double_t+:} false; then :
23300 $as_echo_n "(cached) " >&6
23301else
23302 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23303"; then :
23304
23305else
23306 if test "$ac_cv_type_double_t" = yes; then
23307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23309as_fn_error 77 "cannot compute sizeof (double_t)
23310See \`config.log' for more details" "$LINENO" 5; }
23311 else
23312 ac_cv_sizeof_double_t=0
23313 fi
23314fi
23315
23316fi
23317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23318$as_echo "$ac_cv_sizeof_double_t" >&6; }
23319
23320
23321
23322cat >>confdefs.h <<_ACEOF
23323#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23324_ACEOF
23325
23326
23327
23328# Get size of float, double and long double for comparaison.
23329# The cast to long int works around a bug in the HP C Compiler
23330# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23331# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23332# This bug is HP SR number 8606223364.
23333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23334$as_echo_n "checking size of float... " >&6; }
23335if ${ac_cv_sizeof_float+:} false; then :
23336 $as_echo_n "(cached) " >&6
23337else
23338 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23339
23340else
23341 if test "$ac_cv_type_float" = yes; then
23342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23344as_fn_error 77 "cannot compute sizeof (float)
23345See \`config.log' for more details" "$LINENO" 5; }
23346 else
23347 ac_cv_sizeof_float=0
23348 fi
23349fi
23350
23351fi
23352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23353$as_echo "$ac_cv_sizeof_float" >&6; }
23354
23355
23356
23357cat >>confdefs.h <<_ACEOF
23358#define SIZEOF_FLOAT $ac_cv_sizeof_float
23359_ACEOF
23360
23361
23362# The cast to long int works around a bug in the HP C Compiler
23363# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23364# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23365# This bug is HP SR number 8606223364.
23366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23367$as_echo_n "checking size of double... " >&6; }
23368if ${ac_cv_sizeof_double+:} false; then :
23369 $as_echo_n "(cached) " >&6
23370else
23371 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23372
23373else
23374 if test "$ac_cv_type_double" = yes; then
23375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23377as_fn_error 77 "cannot compute sizeof (double)
23378See \`config.log' for more details" "$LINENO" 5; }
23379 else
23380 ac_cv_sizeof_double=0
23381 fi
23382fi
23383
23384fi
23385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23386$as_echo "$ac_cv_sizeof_double" >&6; }
23387
23388
23389
23390cat >>confdefs.h <<_ACEOF
23391#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23392_ACEOF
23393
23394
23395# The cast to long int works around a bug in the HP C Compiler
23396# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23397# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23398# This bug is HP SR number 8606223364.
23399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23400$as_echo_n "checking size of long double... " >&6; }
23401if ${ac_cv_sizeof_long_double+:} false; then :
23402 $as_echo_n "(cached) " >&6
23403else
23404 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23405
23406else
23407 if test "$ac_cv_type_long_double" = yes; then
23408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23410as_fn_error 77 "cannot compute sizeof (long double)
23411See \`config.log' for more details" "$LINENO" 5; }
23412 else
23413 ac_cv_sizeof_long_double=0
23414 fi
23415fi
23416
23417fi
23418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23419$as_echo "$ac_cv_sizeof_long_double" >&6; }
23420
23421
23422
23423cat >>confdefs.h <<_ACEOF
23424#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23425_ACEOF
23426
23427
cristyf0cf9a22012-10-24 12:05:01 +000023428
cristy3ed852e2009-09-05 21:47:34 +000023429# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23430# The cast to long int works around a bug in the HP C Compiler
23431# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23432# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23433# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023435$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023436if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023437 $as_echo_n "(cached) " >&6
23438else
cristy8b350f62009-11-15 23:12:43 +000023439 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 +000023440
cristy3ed852e2009-09-05 21:47:34 +000023441else
cristy8b350f62009-11-15 23:12:43 +000023442 if test "$ac_cv_type_signed_short" = yes; then
23443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023445as_fn_error 77 "cannot compute sizeof (signed short)
23446See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023447 else
23448 ac_cv_sizeof_signed_short=0
23449 fi
23450fi
cristy8b350f62009-11-15 23:12:43 +000023451
cristy3ed852e2009-09-05 21:47:34 +000023452fi
cristy8b350f62009-11-15 23:12:43 +000023453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023454$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23455
23456
23457
23458cat >>confdefs.h <<_ACEOF
23459#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23460_ACEOF
23461
23462
23463
23464# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23465# The cast to long int works around a bug in the HP C Compiler
23466# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23467# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23468# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023470$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023471if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023472 $as_echo_n "(cached) " >&6
23473else
cristy8b350f62009-11-15 23:12:43 +000023474 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 +000023475
cristy3ed852e2009-09-05 21:47:34 +000023476else
cristy8b350f62009-11-15 23:12:43 +000023477 if test "$ac_cv_type_unsigned_short" = yes; then
23478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023480as_fn_error 77 "cannot compute sizeof (unsigned short)
23481See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023482 else
23483 ac_cv_sizeof_unsigned_short=0
23484 fi
23485fi
cristy8b350f62009-11-15 23:12:43 +000023486
cristy3ed852e2009-09-05 21:47:34 +000023487fi
cristy8b350f62009-11-15 23:12:43 +000023488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023489$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23490
23491
23492
23493cat >>confdefs.h <<_ACEOF
23494#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23495_ACEOF
23496
23497
23498
23499# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23500# The cast to long int works around a bug in the HP C Compiler
23501# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23502# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23503# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023505$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023506if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023507 $as_echo_n "(cached) " >&6
23508else
cristy8b350f62009-11-15 23:12:43 +000023509 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 +000023510
cristy3ed852e2009-09-05 21:47:34 +000023511else
cristy8b350f62009-11-15 23:12:43 +000023512 if test "$ac_cv_type_signed_int" = yes; then
23513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023515as_fn_error 77 "cannot compute sizeof (signed int)
23516See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023517 else
23518 ac_cv_sizeof_signed_int=0
23519 fi
23520fi
cristy8b350f62009-11-15 23:12:43 +000023521
cristy3ed852e2009-09-05 21:47:34 +000023522fi
cristy8b350f62009-11-15 23:12:43 +000023523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023524$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23525
23526
23527
23528cat >>confdefs.h <<_ACEOF
23529#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23530_ACEOF
23531
23532
23533
23534# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23535# The cast to long int works around a bug in the HP C Compiler
23536# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23537# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23538# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023540$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023541if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023542 $as_echo_n "(cached) " >&6
23543else
cristy8b350f62009-11-15 23:12:43 +000023544 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 +000023545
cristy3ed852e2009-09-05 21:47:34 +000023546else
cristy8b350f62009-11-15 23:12:43 +000023547 if test "$ac_cv_type_unsigned_int" = yes; then
23548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023550as_fn_error 77 "cannot compute sizeof (unsigned int)
23551See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023552 else
23553 ac_cv_sizeof_unsigned_int=0
23554 fi
23555fi
cristy8b350f62009-11-15 23:12:43 +000023556
cristy3ed852e2009-09-05 21:47:34 +000023557fi
cristy8b350f62009-11-15 23:12:43 +000023558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023559$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23560
23561
23562
23563cat >>confdefs.h <<_ACEOF
23564#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23565_ACEOF
23566
23567
23568
23569# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23570# The cast to long int works around a bug in the HP C Compiler
23571# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23572# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23573# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023575$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023576if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023577 $as_echo_n "(cached) " >&6
23578else
cristy8b350f62009-11-15 23:12:43 +000023579 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 +000023580
cristy3ed852e2009-09-05 21:47:34 +000023581else
cristy8b350f62009-11-15 23:12:43 +000023582 if test "$ac_cv_type_signed_long" = yes; then
23583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023585as_fn_error 77 "cannot compute sizeof (signed long)
23586See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023587 else
23588 ac_cv_sizeof_signed_long=0
23589 fi
23590fi
cristy8b350f62009-11-15 23:12:43 +000023591
cristy3ed852e2009-09-05 21:47:34 +000023592fi
cristy8b350f62009-11-15 23:12:43 +000023593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023594$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23595
23596
23597
23598cat >>confdefs.h <<_ACEOF
23599#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23600_ACEOF
23601
23602
23603
23604# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23605# The cast to long int works around a bug in the HP C Compiler
23606# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23607# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23608# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023610$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023611if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023612 $as_echo_n "(cached) " >&6
23613else
cristy8b350f62009-11-15 23:12:43 +000023614 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 +000023615
cristy3ed852e2009-09-05 21:47:34 +000023616else
cristy8b350f62009-11-15 23:12:43 +000023617 if test "$ac_cv_type_unsigned_long" = yes; then
23618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023620as_fn_error 77 "cannot compute sizeof (unsigned long)
23621See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023622 else
23623 ac_cv_sizeof_unsigned_long=0
23624 fi
23625fi
cristy8b350f62009-11-15 23:12:43 +000023626
cristy3ed852e2009-09-05 21:47:34 +000023627fi
cristy8b350f62009-11-15 23:12:43 +000023628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023629$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23630
23631
23632
23633cat >>confdefs.h <<_ACEOF
23634#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23635_ACEOF
23636
23637
23638
23639# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23640# 'signed long long' is not supported then the value defined is zero.
23641# The cast to long int works around a bug in the HP C Compiler
23642# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23643# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23644# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023646$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023647if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023648 $as_echo_n "(cached) " >&6
23649else
cristy8b350f62009-11-15 23:12:43 +000023650 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 +000023651
cristy3ed852e2009-09-05 21:47:34 +000023652else
cristy8b350f62009-11-15 23:12:43 +000023653 if test "$ac_cv_type_signed_long_long" = yes; then
23654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023656as_fn_error 77 "cannot compute sizeof (signed long long)
23657See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023658 else
23659 ac_cv_sizeof_signed_long_long=0
23660 fi
23661fi
cristy8b350f62009-11-15 23:12:43 +000023662
cristy3ed852e2009-09-05 21:47:34 +000023663fi
cristy8b350f62009-11-15 23:12:43 +000023664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023665$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23666
23667
23668
23669cat >>confdefs.h <<_ACEOF
23670#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23671_ACEOF
23672
23673
23674
23675# Obtain size of a 'unsigned long long' and define as
23676# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23677# supported then the value defined is zero.
23678# The cast to long int works around a bug in the HP C Compiler
23679# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23680# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23681# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023683$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023684if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023685 $as_echo_n "(cached) " >&6
23686else
cristy8b350f62009-11-15 23:12:43 +000023687 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 +000023688
cristy3ed852e2009-09-05 21:47:34 +000023689else
cristy8b350f62009-11-15 23:12:43 +000023690 if test "$ac_cv_type_unsigned_long_long" = yes; then
23691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023693as_fn_error 77 "cannot compute sizeof (unsigned long long)
23694See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023695 else
23696 ac_cv_sizeof_unsigned_long_long=0
23697 fi
23698fi
cristy8b350f62009-11-15 23:12:43 +000023699
cristy3ed852e2009-09-05 21:47:34 +000023700fi
cristy8b350f62009-11-15 23:12:43 +000023701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023702$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23703
23704
23705
23706cat >>confdefs.h <<_ACEOF
23707#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23708_ACEOF
23709
23710
23711
23712# Obtain size of off_t and define as SIZEOF_OFF_T
23713# The cast to long int works around a bug in the HP C Compiler
23714# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23715# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23716# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023718$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023719if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023720 $as_echo_n "(cached) " >&6
23721else
cristy8b350f62009-11-15 23:12:43 +000023722 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023723
cristy3ed852e2009-09-05 21:47:34 +000023724else
cristy8b350f62009-11-15 23:12:43 +000023725 if test "$ac_cv_type_off_t" = yes; then
23726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023728as_fn_error 77 "cannot compute sizeof (off_t)
23729See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023730 else
23731 ac_cv_sizeof_off_t=0
23732 fi
23733fi
cristy8b350f62009-11-15 23:12:43 +000023734
cristy3ed852e2009-09-05 21:47:34 +000023735fi
cristy8b350f62009-11-15 23:12:43 +000023736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023737$as_echo "$ac_cv_sizeof_off_t" >&6; }
23738
23739
23740
23741cat >>confdefs.h <<_ACEOF
23742#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23743_ACEOF
23744
23745
23746
23747# Obtain size of size_t and define as SIZEOF_SIZE_T
23748# The cast to long int works around a bug in the HP C Compiler
23749# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23750# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23751# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023753$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023754if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023755 $as_echo_n "(cached) " >&6
23756else
cristy8b350f62009-11-15 23:12:43 +000023757 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023758
cristy3ed852e2009-09-05 21:47:34 +000023759else
cristy8b350f62009-11-15 23:12:43 +000023760 if test "$ac_cv_type_size_t" = yes; then
23761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023763as_fn_error 77 "cannot compute sizeof (size_t)
23764See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023765 else
23766 ac_cv_sizeof_size_t=0
23767 fi
23768fi
cristy8b350f62009-11-15 23:12:43 +000023769
cristy3ed852e2009-09-05 21:47:34 +000023770fi
cristy8b350f62009-11-15 23:12:43 +000023771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023772$as_echo "$ac_cv_sizeof_size_t" >&6; }
23773
23774
23775
23776cat >>confdefs.h <<_ACEOF
23777#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23778_ACEOF
23779
23780
23781
cristy330e9352010-06-01 18:42:49 +000023782# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23783# The cast to long int works around a bug in the HP C Compiler
23784# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23785# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23786# This bug is HP SR number 8606223364.
23787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23788$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023789if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023790 $as_echo_n "(cached) " >&6
23791else
23792 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23793
23794else
23795 if test "$ac_cv_type_ssize_t" = yes; then
23796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023798as_fn_error 77 "cannot compute sizeof (ssize_t)
23799See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023800 else
23801 ac_cv_sizeof_ssize_t=0
23802 fi
23803fi
23804
23805fi
23806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23807$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23808
23809
23810
23811cat >>confdefs.h <<_ACEOF
23812#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23813_ACEOF
23814
23815
23816
cristy3ed852e2009-09-05 21:47:34 +000023817# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23818# The cast to long int works around a bug in the HP C Compiler
23819# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23820# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23821# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023823$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023824if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023825 $as_echo_n "(cached) " >&6
23826else
cristy8b350f62009-11-15 23:12:43 +000023827 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 +000023828
cristy3ed852e2009-09-05 21:47:34 +000023829else
cristy8b350f62009-11-15 23:12:43 +000023830 if test "$ac_cv_type_unsigned_intp" = yes; then
23831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023833as_fn_error 77 "cannot compute sizeof (unsigned int*)
23834See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023835 else
23836 ac_cv_sizeof_unsigned_intp=0
23837 fi
23838fi
cristy8b350f62009-11-15 23:12:43 +000023839
cristy3ed852e2009-09-05 21:47:34 +000023840fi
cristy8b350f62009-11-15 23:12:43 +000023841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023842$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23843
23844
23845
23846cat >>confdefs.h <<_ACEOF
23847#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23848_ACEOF
23849
23850
23851
23852#
23853# Compute sized types for current CPU and compiler options.
23854#
23855
cristy8b350f62009-11-15 23:12:43 +000023856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023857$as_echo_n "checking for signed 8-bit type... " >&6; }
23858INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23860$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023861
23862
cristy8b350f62009-11-15 23:12:43 +000023863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023864$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23865UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23867$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023868
23869
cristy8b350f62009-11-15 23:12:43 +000023870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023871$as_echo_n "checking for signed 16-bit type... " >&6; }
23872INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23874$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023875
23876
cristy8b350f62009-11-15 23:12:43 +000023877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023878$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23879UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23881$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023882
23883
cristy8b350f62009-11-15 23:12:43 +000023884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023885$as_echo_n "checking for signed 32-bit type... " >&6; }
23886INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023887INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023888if test $ac_cv_sizeof_signed_int -eq 4; then
23889 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023890 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023891elif test $ac_cv_sizeof_signed_long -eq 4; then
23892 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023893 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023894fi
cristyad38abe2012-12-23 23:03:21 +000023895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23896$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023897
23898
cristy6d5e20f2011-04-25 13:48:54 +000023899
cristy8b350f62009-11-15 23:12:43 +000023900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023901$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23902UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023903UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023904if test $ac_cv_sizeof_unsigned_int -eq 4; then
23905 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023906 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023907elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23908 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023909 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023910fi
cristyad38abe2012-12-23 23:03:21 +000023911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23912$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023913
23914
cristy6d5e20f2011-04-25 13:48:54 +000023915
cristy8b350f62009-11-15 23:12:43 +000023916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023917$as_echo_n "checking for signed 64-bit type... " >&6; }
23918INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023919INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023920if test $ac_cv_sizeof_signed_long -eq 8; then
23921 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023922 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023923elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23924 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023925 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023926fi
cristy3a99dcf2011-12-17 01:29:40 +000023927case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023928 mingw* )
23929 INT64_F='"I64"'
23930 ;;
23931esac
cristyad38abe2012-12-23 23:03:21 +000023932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23933$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023934
23935
cristy6d5e20f2011-04-25 13:48:54 +000023936
cristy8b350f62009-11-15 23:12:43 +000023937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023938$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23939UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023940UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023941if test $ac_cv_sizeof_unsigned_long -eq 8; then
23942 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023943 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023944elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23945 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023946 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023947fi
cristy3a99dcf2011-12-17 01:29:40 +000023948case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023949 mingw* )
23950 UINT64_F='"I64"'
23951 ;;
23952esac
cristyad38abe2012-12-23 23:03:21 +000023953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23954$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023955
23956
cristy6d5e20f2011-04-25 13:48:54 +000023957
cristy8b350f62009-11-15 23:12:43 +000023958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023959$as_echo_n "checking for unsigned maximum type... " >&6; }
23960UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023961UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023962if test "$UINT64_T" != 'none'; then
23963 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023964 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023965elif test "$UINT32_T" != 'none'; then
23966 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023967 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023968fi
cristyad38abe2012-12-23 23:03:21 +000023969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23970$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023971
23972
cristy6d5e20f2011-04-25 13:48:54 +000023973
cristy8b350f62009-11-15 23:12:43 +000023974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023975$as_echo_n "checking for pointer difference type... " >&6; }
23976UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023977UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023978if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23979 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023980 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023981elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23982 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023983 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023984fi
cristyad38abe2012-12-23 23:03:21 +000023985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23986$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023987
23988
cristy6d5e20f2011-04-25 13:48:54 +000023989
cristy8b350f62009-11-15 23:12:43 +000023990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023991$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023993/* end confdefs.h. */
23994
23995int
23996main ()
23997{
23998{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23999 ;
24000 return 0;
24001}
24002_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024003if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24005$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024006else
cristyad38abe2012-12-23 23:03:21 +000024007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24008$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024010$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024012/* end confdefs.h. */
24013
24014int
24015main ()
24016{
24017{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24018 ;
24019 return 0;
24020}
24021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024022if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24024$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024025
cristy8b350f62009-11-15 23:12:43 +000024026$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024027
24028else
cristyad38abe2012-12-23 23:03:21 +000024029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24030$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024031
cristy8b350f62009-11-15 23:12:43 +000024032$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024033
24034fi
cristy3ed852e2009-09-05 21:47:34 +000024035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036fi
cristy3ed852e2009-09-05 21:47:34 +000024037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24038
24039########
24040#
24041# Check for functions
24042#
24043########
cristy73bd4a52010-10-05 11:24:23 +000024044for ac_header in stdlib.h unistd.h
24045do :
24046 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24047ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024048if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024049 cat >>confdefs.h <<_ACEOF
24050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24051_ACEOF
24052
24053fi
24054
24055done
24056
24057for ac_func in getpagesize
24058do :
24059 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024060if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024061 cat >>confdefs.h <<_ACEOF
24062#define HAVE_GETPAGESIZE 1
24063_ACEOF
24064
24065fi
24066done
24067
24068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24069$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024070if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024071 $as_echo_n "(cached) " >&6
24072else
24073 if test "$cross_compiling" = yes; then :
24074 magick_cv_func_mmap_fileio=no
24075else
24076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24077/* end confdefs.h. */
24078$ac_includes_default
24079/* malloc might have been renamed as rpl_malloc. */
24080#undef malloc
24081
24082/*
24083 This test is derived from GNU Autoconf's similar macro.
24084 The purpose of this test is to verify that files may be memory
24085 mapped, and that memory mapping and file I/O are coherent.
24086
24087 The test creates a test file, memory maps the file, updates
24088 the file using the memory map, and then reads the file using
24089 file I/O to verify that the file contains the updates.
24090*/
24091
24092#include <fcntl.h>
24093#include <sys/mman.h>
24094
24095#if !STDC_HEADERS && !HAVE_STDLIB_H
24096char *malloc ();
24097#endif
24098
24099/* This mess was copied from the GNU getpagesize.h. */
24100#if !HAVE_GETPAGESIZE
24101/* Assume that all systems that can run configure have sys/param.h. */
24102# if !HAVE_SYS_PARAM_H
24103# define HAVE_SYS_PARAM_H 1
24104# endif
24105
24106# ifdef _SC_PAGESIZE
24107# define getpagesize() sysconf(_SC_PAGESIZE)
24108# else /* no _SC_PAGESIZE */
24109# if HAVE_SYS_PARAM_H
24110# include <sys/param.h>
24111# ifdef EXEC_PAGESIZE
24112# define getpagesize() EXEC_PAGESIZE
24113# else /* no EXEC_PAGESIZE */
24114# ifdef NBPG
24115# define getpagesize() NBPG * CLSIZE
24116# ifndef CLSIZE
24117# define CLSIZE 1
24118# endif /* no CLSIZE */
24119# else /* no NBPG */
24120# ifdef NBPC
24121# define getpagesize() NBPC
24122# else /* no NBPC */
24123# ifdef PAGESIZE
24124# define getpagesize() PAGESIZE
24125# endif /* PAGESIZE */
24126# endif /* no NBPC */
24127# endif /* no NBPG */
24128# endif /* no EXEC_PAGESIZE */
24129# else /* no HAVE_SYS_PARAM_H */
24130# define getpagesize() 8192 /* punt totally */
24131# endif /* no HAVE_SYS_PARAM_H */
24132# endif /* no _SC_PAGESIZE */
24133
24134#endif /* no HAVE_GETPAGESIZE */
24135
24136int
24137main ()
24138{
24139 char *data, *data2, *data3;
24140 int i, pagesize;
24141 int fd;
24142
24143 pagesize = getpagesize ();
24144
24145 /* First, make a file with some known garbage in it. */
24146 data = (char *) malloc (pagesize);
24147 if (!data)
24148 exit (1);
24149 for (i = 0; i < pagesize; ++i)
24150 *(data + i) = rand ();
24151 umask (0);
24152 fd = creat ("conftest.mmap", 0600);
24153 if (fd < 0)
24154 exit (1);
24155 if (write (fd, data, pagesize) != pagesize)
24156 exit (1);
24157 close (fd);
24158
24159 /* Mmap the file as read/write/shared and verify that we see the
24160 same garbage. */
24161 fd = open ("conftest.mmap", O_RDWR);
24162 if (fd < 0)
24163 exit (1);
24164 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24165 if (data2 == 0)
24166 exit (1);
24167 for (i = 0; i < pagesize; ++i)
24168 if (*(data + i) != *(data2 + i))
24169 exit (1);
24170
24171 /* Finally, make sure that changes to the mapped area
24172 percolate back to the file as seen by read(). */
24173 for (i = 0; i < pagesize; ++i)
24174 *(data2 + i) = *(data2 + i) + 1;
24175 data3 = (char *) malloc (pagesize);
24176 if (!data3)
24177 exit (1);
24178 if (read (fd, data3, pagesize) != pagesize)
24179 exit (1);
24180 for (i = 0; i < pagesize; ++i)
24181 if (*(data2 + i) != *(data3 + i))
24182 exit (1);
24183 close (fd);
24184 exit (0);
24185}
24186_ACEOF
24187if ac_fn_c_try_run "$LINENO"; then :
24188 magick_cv_func_mmap_fileio=yes
24189else
24190 magick_cv_func_mmap_fileio=no
24191fi
24192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24193 conftest.$ac_objext conftest.beam conftest.$ac_ext
24194fi
24195
24196fi
24197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24198$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24199if test $magick_cv_func_mmap_fileio = yes; then
24200
24201$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24202
24203fi
24204rm -f conftest.mmap
24205
cristy8b350f62009-11-15 23:12:43 +000024206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024207$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024208if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024209 $as_echo_n "(cached) " >&6
24210else
cristy8b350f62009-11-15 23:12:43 +000024211 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024212 ac_cv_func_closedir_void=yes
24213else
cristy8b350f62009-11-15 23:12:43 +000024214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024215/* end confdefs.h. */
24216$ac_includes_default
24217#include <$ac_header_dirent>
24218#ifndef __cplusplus
24219int closedir ();
24220#endif
24221
24222int
24223main ()
24224{
24225return closedir (opendir (".")) != 0;
24226 ;
24227 return 0;
24228}
24229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024230if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024231 ac_cv_func_closedir_void=no
24232else
cristy8b350f62009-11-15 23:12:43 +000024233 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024234fi
cristy8b350f62009-11-15 23:12:43 +000024235rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24236 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024237fi
24238
cristy3ed852e2009-09-05 21:47:34 +000024239fi
cristy8b350f62009-11-15 23:12:43 +000024240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024241$as_echo "$ac_cv_func_closedir_void" >&6; }
24242if test $ac_cv_func_closedir_void = yes; then
24243
cristy8b350f62009-11-15 23:12:43 +000024244$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024245
24246fi
24247
cristycd4c5312009-11-22 01:19:08 +000024248
24249
24250
24251 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024252do :
24253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024254ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24255"
cristy98dddb52010-11-04 00:30:15 +000024256if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024257 cat >>confdefs.h <<_ACEOF
24258#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24259_ACEOF
24260
24261fi
24262
24263done
24264
cristycd4c5312009-11-22 01:19:08 +000024265
24266
24267
24268
24269
24270
24271
cristy3ed852e2009-09-05 21:47:34 +000024272for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024273do :
24274 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024275if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024276 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024277#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024278_ACEOF
24279
24280fi
24281done
24282
cristy8b350f62009-11-15 23:12:43 +000024283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024284$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024285if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024286 $as_echo_n "(cached) " >&6
24287else
cristy8b350f62009-11-15 23:12:43 +000024288 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024289 ac_cv_func_mmap_fixed_mapped=no
24290else
cristy8b350f62009-11-15 23:12:43 +000024291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024292/* end confdefs.h. */
24293$ac_includes_default
24294/* malloc might have been renamed as rpl_malloc. */
24295#undef malloc
24296
24297/* Thanks to Mike Haertel and Jim Avera for this test.
24298 Here is a matrix of mmap possibilities:
24299 mmap private not fixed
24300 mmap private fixed at somewhere currently unmapped
24301 mmap private fixed at somewhere already mapped
24302 mmap shared not fixed
24303 mmap shared fixed at somewhere currently unmapped
24304 mmap shared fixed at somewhere already mapped
24305 For private mappings, we should verify that changes cannot be read()
24306 back from the file, nor mmap's back from the file at a different
24307 address. (There have been systems where private was not correctly
24308 implemented like the infamous i386 svr4.0, and systems where the
24309 VM page cache was not coherent with the file system buffer cache
24310 like early versions of FreeBSD and possibly contemporary NetBSD.)
24311 For shared mappings, we should conversely verify that changes get
24312 propagated back to all the places they're supposed to be.
24313
24314 Grep wants private fixed already mapped.
24315 The main things grep needs to know about mmap are:
24316 * does it exist and is it safe to write into the mmap'd area
24317 * how to use it (BSD variants) */
24318
24319#include <fcntl.h>
24320#include <sys/mman.h>
24321
24322#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24323char *malloc ();
24324#endif
24325
24326/* This mess was copied from the GNU getpagesize.h. */
24327#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024328# ifdef _SC_PAGESIZE
24329# define getpagesize() sysconf(_SC_PAGESIZE)
24330# else /* no _SC_PAGESIZE */
24331# ifdef HAVE_SYS_PARAM_H
24332# include <sys/param.h>
24333# ifdef EXEC_PAGESIZE
24334# define getpagesize() EXEC_PAGESIZE
24335# else /* no EXEC_PAGESIZE */
24336# ifdef NBPG
24337# define getpagesize() NBPG * CLSIZE
24338# ifndef CLSIZE
24339# define CLSIZE 1
24340# endif /* no CLSIZE */
24341# else /* no NBPG */
24342# ifdef NBPC
24343# define getpagesize() NBPC
24344# else /* no NBPC */
24345# ifdef PAGESIZE
24346# define getpagesize() PAGESIZE
24347# endif /* PAGESIZE */
24348# endif /* no NBPC */
24349# endif /* no NBPG */
24350# endif /* no EXEC_PAGESIZE */
24351# else /* no HAVE_SYS_PARAM_H */
24352# define getpagesize() 8192 /* punt totally */
24353# endif /* no HAVE_SYS_PARAM_H */
24354# endif /* no _SC_PAGESIZE */
24355
24356#endif /* no HAVE_GETPAGESIZE */
24357
24358int
24359main ()
24360{
24361 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024362 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024363 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024364 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024365
24366 pagesize = getpagesize ();
24367
24368 /* First, make a file with some known garbage in it. */
24369 data = (char *) malloc (pagesize);
24370 if (!data)
24371 return 1;
24372 for (i = 0; i < pagesize; ++i)
24373 *(data + i) = rand ();
24374 umask (0);
24375 fd = creat ("conftest.mmap", 0600);
24376 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024377 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024378 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024379 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024380 close (fd);
24381
cristycd4c5312009-11-22 01:19:08 +000024382 /* Next, check that the tail of a page is zero-filled. File must have
24383 non-zero length, otherwise we risk SIGBUS for entire page. */
24384 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24385 if (fd2 < 0)
24386 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024387 cdata2 = "";
24388 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024389 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024390 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024391 if (data2 == MAP_FAILED)
24392 return 6;
24393 for (i = 0; i < pagesize; ++i)
24394 if (*(data2 + i))
24395 return 7;
24396 close (fd2);
24397 if (munmap (data2, pagesize))
24398 return 8;
24399
cristy3ed852e2009-09-05 21:47:34 +000024400 /* Next, try to mmap the file at a fixed address which already has
24401 something else allocated at it. If we can, also make sure that
24402 we see the same garbage. */
24403 fd = open ("conftest.mmap", O_RDWR);
24404 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024405 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024406 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24407 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024408 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024409 for (i = 0; i < pagesize; ++i)
24410 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024411 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024412
24413 /* Finally, make sure that changes to the mapped area do not
24414 percolate back to the file as seen by read(). (This is a bug on
24415 some variants of i386 svr4.0.) */
24416 for (i = 0; i < pagesize; ++i)
24417 *(data2 + i) = *(data2 + i) + 1;
24418 data3 = (char *) malloc (pagesize);
24419 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024420 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024421 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024422 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024423 for (i = 0; i < pagesize; ++i)
24424 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024425 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024426 close (fd);
24427 return 0;
24428}
24429_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024430if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024431 ac_cv_func_mmap_fixed_mapped=yes
24432else
cristy8b350f62009-11-15 23:12:43 +000024433 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024434fi
cristy8b350f62009-11-15 23:12:43 +000024435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24436 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024437fi
24438
cristy3ed852e2009-09-05 21:47:34 +000024439fi
cristy8b350f62009-11-15 23:12:43 +000024440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024441$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24442if test $ac_cv_func_mmap_fixed_mapped = yes; then
24443
cristy8b350f62009-11-15 23:12:43 +000024444$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024445
24446fi
cristycd4c5312009-11-22 01:19:08 +000024447rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024448
cristy3ed852e2009-09-05 21:47:34 +000024449for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024450do :
24451 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024452if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024453 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024454#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024455_ACEOF
24456
24457fi
24458
24459done
24460
cristy3ed852e2009-09-05 21:47:34 +000024461for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024462do :
24463 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24464ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024465if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024466 cat >>confdefs.h <<_ACEOF
24467#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24468_ACEOF
24469
24470fi
24471done
24472
24473if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024475$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024476if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024477 $as_echo_n "(cached) " >&6
24478else
cristy8b350f62009-11-15 23:12:43 +000024479 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024480 ac_cv_func_fork_works=cross
24481else
cristy8b350f62009-11-15 23:12:43 +000024482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024483/* end confdefs.h. */
24484$ac_includes_default
24485int
24486main ()
24487{
24488
24489 /* By Ruediger Kuhlmann. */
24490 return fork () < 0;
24491
24492 ;
24493 return 0;
24494}
24495_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024496if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024497 ac_cv_func_fork_works=yes
24498else
cristy8b350f62009-11-15 23:12:43 +000024499 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024500fi
cristy8b350f62009-11-15 23:12:43 +000024501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24502 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024503fi
24504
cristy3ed852e2009-09-05 21:47:34 +000024505fi
cristy8b350f62009-11-15 23:12:43 +000024506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024507$as_echo "$ac_cv_func_fork_works" >&6; }
24508
24509else
24510 ac_cv_func_fork_works=$ac_cv_func_fork
24511fi
24512if test "x$ac_cv_func_fork_works" = xcross; then
24513 case $host in
24514 *-*-amigaos* | *-*-msdosdjgpp*)
24515 # Override, as these systems have only a dummy fork() stub
24516 ac_cv_func_fork_works=no
24517 ;;
24518 *)
24519 ac_cv_func_fork_works=yes
24520 ;;
24521 esac
cristy8b350f62009-11-15 23:12:43 +000024522 { $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 +000024523$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24524fi
24525ac_cv_func_vfork_works=$ac_cv_func_vfork
24526if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024528$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024529if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024530 $as_echo_n "(cached) " >&6
24531else
cristy8b350f62009-11-15 23:12:43 +000024532 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024533 ac_cv_func_vfork_works=cross
24534else
cristy8b350f62009-11-15 23:12:43 +000024535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024536/* end confdefs.h. */
24537/* Thanks to Paul Eggert for this test. */
24538$ac_includes_default
24539#include <sys/wait.h>
24540#ifdef HAVE_VFORK_H
24541# include <vfork.h>
24542#endif
24543/* On some sparc systems, changes by the child to local and incoming
24544 argument registers are propagated back to the parent. The compiler
24545 is told about this with #include <vfork.h>, but some compilers
24546 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24547 static variable whose address is put into a register that is
24548 clobbered by the vfork. */
24549static void
24550#ifdef __cplusplus
24551sparc_address_test (int arg)
24552# else
24553sparc_address_test (arg) int arg;
24554#endif
24555{
24556 static pid_t child;
24557 if (!child) {
24558 child = vfork ();
24559 if (child < 0) {
24560 perror ("vfork");
24561 _exit(2);
24562 }
24563 if (!child) {
24564 arg = getpid();
24565 write(-1, "", 0);
24566 _exit (arg);
24567 }
24568 }
24569}
24570
24571int
24572main ()
24573{
24574 pid_t parent = getpid ();
24575 pid_t child;
24576
24577 sparc_address_test (0);
24578
24579 child = vfork ();
24580
24581 if (child == 0) {
24582 /* Here is another test for sparc vfork register problems. This
24583 test uses lots of local variables, at least as many local
24584 variables as main has allocated so far including compiler
24585 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24586 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24587 reuse the register of parent for one of the local variables,
24588 since it will think that parent can't possibly be used any more
24589 in this routine. Assigning to the local variable will thus
24590 munge parent in the parent process. */
24591 pid_t
24592 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24593 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24594 /* Convince the compiler that p..p7 are live; otherwise, it might
24595 use the same hardware register for all 8 local variables. */
24596 if (p != p1 || p != p2 || p != p3 || p != p4
24597 || p != p5 || p != p6 || p != p7)
24598 _exit(1);
24599
24600 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24601 from child file descriptors. If the child closes a descriptor
24602 before it execs or exits, this munges the parent's descriptor
24603 as well. Test for this by closing stdout in the child. */
24604 _exit(close(fileno(stdout)) != 0);
24605 } else {
24606 int status;
24607 struct stat st;
24608
24609 while (wait(&status) != child)
24610 ;
24611 return (
24612 /* Was there some problem with vforking? */
24613 child < 0
24614
24615 /* Did the child fail? (This shouldn't happen.) */
24616 || status
24617
24618 /* Did the vfork/compiler bug occur? */
24619 || parent != getpid()
24620
24621 /* Did the file descriptor bug occur? */
24622 || fstat(fileno(stdout), &st) != 0
24623 );
24624 }
24625}
24626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024627if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024628 ac_cv_func_vfork_works=yes
24629else
cristy8b350f62009-11-15 23:12:43 +000024630 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024631fi
cristy8b350f62009-11-15 23:12:43 +000024632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24633 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024634fi
24635
cristy3ed852e2009-09-05 21:47:34 +000024636fi
cristy8b350f62009-11-15 23:12:43 +000024637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024638$as_echo "$ac_cv_func_vfork_works" >&6; }
24639
24640fi;
24641if test "x$ac_cv_func_fork_works" = xcross; then
24642 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024643 { $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 +000024644$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24645fi
24646
24647if test "x$ac_cv_func_vfork_works" = xyes; then
24648
cristy8b350f62009-11-15 23:12:43 +000024649$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024650
24651else
24652
cristy8b350f62009-11-15 23:12:43 +000024653$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024654
24655fi
24656if test "x$ac_cv_func_fork_works" = xyes; then
24657
cristy8b350f62009-11-15 23:12:43 +000024658$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024659
24660fi
24661
cristy8b350f62009-11-15 23:12:43 +000024662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024663$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024664if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024665 $as_echo_n "(cached) " >&6
24666else
cristy8b350f62009-11-15 23:12:43 +000024667 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024668 ac_cv_func_memcmp_working=no
24669else
cristy8b350f62009-11-15 23:12:43 +000024670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024671/* end confdefs.h. */
24672$ac_includes_default
24673int
24674main ()
24675{
24676
24677 /* Some versions of memcmp are not 8-bit clean. */
24678 char c0 = '\100', c1 = '\200', c2 = '\201';
24679 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24680 return 1;
24681
24682 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24683 or more and with at least one buffer not starting on a 4-byte boundary.
24684 William Lewis provided this test program. */
24685 {
24686 char foo[21];
24687 char bar[21];
24688 int i;
24689 for (i = 0; i < 4; i++)
24690 {
24691 char *a = foo + i;
24692 char *b = bar + i;
24693 strcpy (a, "--------01111111");
24694 strcpy (b, "--------10000000");
24695 if (memcmp (a, b, 16) >= 0)
24696 return 1;
24697 }
24698 return 0;
24699 }
24700
24701 ;
24702 return 0;
24703}
24704_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024705if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024706 ac_cv_func_memcmp_working=yes
24707else
cristy8b350f62009-11-15 23:12:43 +000024708 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024709fi
cristy8b350f62009-11-15 23:12:43 +000024710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24711 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024712fi
24713
cristy3ed852e2009-09-05 21:47:34 +000024714fi
cristy8b350f62009-11-15 23:12:43 +000024715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024716$as_echo "$ac_cv_func_memcmp_working" >&6; }
24717test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24718 *" memcmp.$ac_objext "* ) ;;
24719 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24720 ;;
24721esac
24722
24723
cristy3ed852e2009-09-05 21:47:34 +000024724for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024725do :
24726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24727ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024728if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024729 cat >>confdefs.h <<_ACEOF
24730#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24731_ACEOF
24732
24733fi
24734
24735done
24736
cristy8b350f62009-11-15 23:12:43 +000024737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024738$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024739if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024740 $as_echo_n "(cached) " >&6
24741else
24742 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24743 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24744 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024746/* end confdefs.h. */
24747$ac_includes_default
24748#ifdef HAVE_SYS_SELECT_H
24749# include <sys/select.h>
24750#endif
24751#ifdef HAVE_SYS_SOCKET_H
24752# include <sys/socket.h>
24753#endif
24754
24755int
24756main ()
24757{
24758extern int select ($ac_arg1,
24759 $ac_arg234, $ac_arg234, $ac_arg234,
24760 $ac_arg5);
24761 ;
24762 return 0;
24763}
24764_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024765if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024766 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024767fi
cristy3ed852e2009-09-05 21:47:34 +000024768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24769 done
24770 done
24771done
24772# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024773: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024774
24775fi
cristy8b350f62009-11-15 23:12:43 +000024776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024777$as_echo "$ac_cv_func_select_args" >&6; }
24778ac_save_IFS=$IFS; IFS=','
24779set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24780IFS=$ac_save_IFS
24781shift
24782
24783cat >>confdefs.h <<_ACEOF
24784#define SELECT_TYPE_ARG1 $1
24785_ACEOF
24786
24787
24788cat >>confdefs.h <<_ACEOF
24789#define SELECT_TYPE_ARG234 ($2)
24790_ACEOF
24791
24792
24793cat >>confdefs.h <<_ACEOF
24794#define SELECT_TYPE_ARG5 ($3)
24795_ACEOF
24796
24797rm -f conftest*
24798
cristyda16f162011-02-19 23:52:17 +000024799if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024800 $as_echo_n "(cached) " >&6
24801else
24802 ac_cv_func_setvbuf_reversed=no
24803fi
24804
24805
cristy8b350f62009-11-15 23:12:43 +000024806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024807$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024808if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024809 $as_echo_n "(cached) " >&6
24810else
cristy8b350f62009-11-15 23:12:43 +000024811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024812/* end confdefs.h. */
24813#include <sys/types.h>
24814#include <signal.h>
24815
24816int
24817main ()
24818{
24819return *(signal (0, 0)) (0) == 1;
24820 ;
24821 return 0;
24822}
24823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024824if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024825 ac_cv_type_signal=int
24826else
cristy8b350f62009-11-15 23:12:43 +000024827 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024828fi
cristy3ed852e2009-09-05 21:47:34 +000024829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24830fi
cristy8b350f62009-11-15 23:12:43 +000024831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024832$as_echo "$ac_cv_type_signal" >&6; }
24833
24834cat >>confdefs.h <<_ACEOF
24835#define RETSIGTYPE $ac_cv_type_signal
24836_ACEOF
24837
24838
cristy8b350f62009-11-15 23:12:43 +000024839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024840$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024841if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024842 $as_echo_n "(cached) " >&6
24843else
cristy8b350f62009-11-15 23:12:43 +000024844 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024845 ac_cv_func_strtod=no
24846else
cristy8b350f62009-11-15 23:12:43 +000024847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024848/* end confdefs.h. */
24849
24850$ac_includes_default
24851#ifndef strtod
24852double strtod ();
24853#endif
24854int
24855main()
24856{
24857 {
24858 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24859 char *string = " +69";
24860 char *term;
24861 double value;
24862 value = strtod (string, &term);
24863 if (value != 69 || term != (string + 4))
24864 return 1;
24865 }
24866
24867 {
24868 /* Under Solaris 2.4, strtod returns the wrong value for the
24869 terminating character under some conditions. */
24870 char *string = "NaN";
24871 char *term;
24872 strtod (string, &term);
24873 if (term != string && *(term - 1) == 0)
24874 return 1;
24875 }
24876 return 0;
24877}
24878
24879_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024880if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024881 ac_cv_func_strtod=yes
24882else
cristy8b350f62009-11-15 23:12:43 +000024883 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024884fi
cristy8b350f62009-11-15 23:12:43 +000024885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24886 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024887fi
24888
cristy3ed852e2009-09-05 21:47:34 +000024889fi
cristy8b350f62009-11-15 23:12:43 +000024890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024891$as_echo "$ac_cv_func_strtod" >&6; }
24892if test $ac_cv_func_strtod = no; then
24893 case " $LIBOBJS " in
24894 *" strtod.$ac_objext "* ) ;;
24895 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24896 ;;
24897esac
24898
cristy8b350f62009-11-15 23:12:43 +000024899ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024900if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024901
cristy3ed852e2009-09-05 21:47:34 +000024902fi
24903
cristy3ed852e2009-09-05 21:47:34 +000024904if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024906$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024907if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024908 $as_echo_n "(cached) " >&6
24909else
24910 ac_check_lib_save_LIBS=$LIBS
24911LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024913/* end confdefs.h. */
24914
24915/* Override any GCC internal prototype to avoid an error.
24916 Use char because int might match the return type of a GCC
24917 builtin and then its argument prototype would still apply. */
24918#ifdef __cplusplus
24919extern "C"
24920#endif
24921char pow ();
24922int
24923main ()
24924{
24925return pow ();
24926 ;
24927 return 0;
24928}
24929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024930if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024931 ac_cv_lib_m_pow=yes
24932else
cristy8b350f62009-11-15 23:12:43 +000024933 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024934fi
cristy8b350f62009-11-15 23:12:43 +000024935rm -f core conftest.err conftest.$ac_objext \
24936 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024937LIBS=$ac_check_lib_save_LIBS
24938fi
cristy8b350f62009-11-15 23:12:43 +000024939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024940$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024941if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024942 POW_LIB=-lm
24943else
cristy8b350f62009-11-15 23:12:43 +000024944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024945$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24946fi
24947
24948fi
24949
24950fi
24951
cristy7d4a1d62011-10-13 15:54:12 +000024952ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24953if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24954 ac_have_decl=1
24955else
24956 ac_have_decl=0
24957fi
24958
24959cat >>confdefs.h <<_ACEOF
24960#define HAVE_DECL_STRERROR_R $ac_have_decl
24961_ACEOF
24962
24963for ac_func in strerror_r
24964do :
24965 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24966if test "x$ac_cv_func_strerror_r" = xyes; then :
24967 cat >>confdefs.h <<_ACEOF
24968#define HAVE_STRERROR_R 1
24969_ACEOF
24970
24971fi
24972done
24973
24974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24975$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24976if ${ac_cv_func_strerror_r_char_p+:} false; then :
24977 $as_echo_n "(cached) " >&6
24978else
24979
24980 ac_cv_func_strerror_r_char_p=no
24981 if test $ac_cv_have_decl_strerror_r = yes; then
24982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24983/* end confdefs.h. */
24984$ac_includes_default
24985int
24986main ()
24987{
24988
24989 char buf[100];
24990 char x = *strerror_r (0, buf, sizeof buf);
24991 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024992 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024993
24994 ;
24995 return 0;
24996}
24997_ACEOF
24998if ac_fn_c_try_compile "$LINENO"; then :
24999 ac_cv_func_strerror_r_char_p=yes
25000fi
25001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25002 else
25003 # strerror_r is not declared. Choose between
25004 # systems that have relatively inaccessible declarations for the
25005 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25006 # former has a strerror_r that returns char*, while the latter
25007 # has a strerror_r that returns `int'.
25008 # This test should segfault on the DEC system.
25009 if test "$cross_compiling" = yes; then :
25010 :
25011else
25012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25013/* end confdefs.h. */
25014$ac_includes_default
25015 extern char *strerror_r ();
25016int
25017main ()
25018{
25019char buf[100];
25020 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025021 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025022 ;
25023 return 0;
25024}
25025_ACEOF
25026if ac_fn_c_try_run "$LINENO"; then :
25027 ac_cv_func_strerror_r_char_p=yes
25028fi
25029rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25030 conftest.$ac_objext conftest.beam conftest.$ac_ext
25031fi
25032
25033 fi
25034
25035fi
25036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25037$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25038if test $ac_cv_func_strerror_r_char_p = yes; then
25039
25040$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25041
25042fi
25043
cristy3ed852e2009-09-05 21:47:34 +000025044for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025045do :
25046 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025047if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025048 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025049#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025050_ACEOF
25051
cristy8b350f62009-11-15 23:12:43 +000025052ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025053if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025054
cristy8b350f62009-11-15 23:12:43 +000025055$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025056
25057fi
25058
25059fi
25060done
25061
25062
25063
cristy161b9262010-03-20 19:34:32 +000025064#
25065# Find math library
25066#
25067MATH_LIBS=''
25068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25069$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025070if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025071 $as_echo_n "(cached) " >&6
25072else
25073 ac_check_lib_save_LIBS=$LIBS
25074LIBS="-lm $LIBS"
25075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25076/* end confdefs.h. */
25077
25078/* Override any GCC internal prototype to avoid an error.
25079 Use char because int might match the return type of a GCC
25080 builtin and then its argument prototype would still apply. */
25081#ifdef __cplusplus
25082extern "C"
25083#endif
25084char sqrt ();
25085int
25086main ()
25087{
25088return sqrt ();
25089 ;
25090 return 0;
25091}
25092_ACEOF
25093if ac_fn_c_try_link "$LINENO"; then :
25094 ac_cv_lib_m_sqrt=yes
25095else
25096 ac_cv_lib_m_sqrt=no
25097fi
25098rm -f core conftest.err conftest.$ac_objext \
25099 conftest$ac_exeext conftest.$ac_ext
25100LIBS=$ac_check_lib_save_LIBS
25101fi
25102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25103$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025104if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025105 MATH_LIBS="-lm"
25106fi
25107
25108LIBS="$MATH_LIBS $LIBS"
25109
25110
cristy85572162013-01-04 19:19:32 +000025111#
25112# Find socket library
25113#
cristy8a5d7f42013-01-06 15:24:33 +000025114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25115$as_echo_n "checking for library containing gethostbyname... " >&6; }
25116if ${ac_cv_search_gethostbyname+:} false; then :
25117 $as_echo_n "(cached) " >&6
25118else
25119 ac_func_search_save_LIBS=$LIBS
25120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25121/* end confdefs.h. */
25122
25123/* Override any GCC internal prototype to avoid an error.
25124 Use char because int might match the return type of a GCC
25125 builtin and then its argument prototype would still apply. */
25126#ifdef __cplusplus
25127extern "C"
25128#endif
25129char gethostbyname ();
25130int
25131main ()
25132{
25133return gethostbyname ();
25134 ;
25135 return 0;
25136}
25137_ACEOF
25138for ac_lib in '' resolv nsl; do
25139 if test -z "$ac_lib"; then
25140 ac_res="none required"
25141 else
25142 ac_res=-l$ac_lib
25143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25144 fi
25145 if ac_fn_c_try_link "$LINENO"; then :
25146 ac_cv_search_gethostbyname=$ac_res
25147fi
25148rm -f core conftest.err conftest.$ac_objext \
25149 conftest$ac_exeext
25150 if ${ac_cv_search_gethostbyname+:} false; then :
25151 break
25152fi
25153done
25154if ${ac_cv_search_gethostbyname+:} false; then :
25155
25156else
25157 ac_cv_search_gethostbyname=no
25158fi
25159rm conftest.$ac_ext
25160LIBS=$ac_func_search_save_LIBS
25161fi
25162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25163$as_echo "$ac_cv_search_gethostbyname" >&6; }
25164ac_res=$ac_cv_search_gethostbyname
25165if test "$ac_res" != no; then :
25166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25167
25168fi
25169
cristy85572162013-01-04 19:19:32 +000025170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25171$as_echo_n "checking for library containing socket... " >&6; }
25172if ${ac_cv_search_socket+:} false; then :
25173 $as_echo_n "(cached) " >&6
25174else
25175 ac_func_search_save_LIBS=$LIBS
25176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25177/* end confdefs.h. */
25178
25179/* Override any GCC internal prototype to avoid an error.
25180 Use char because int might match the return type of a GCC
25181 builtin and then its argument prototype would still apply. */
25182#ifdef __cplusplus
25183extern "C"
25184#endif
25185char socket ();
25186int
25187main ()
25188{
25189return socket ();
25190 ;
25191 return 0;
25192}
25193_ACEOF
25194for ac_lib in '' socket; do
25195 if test -z "$ac_lib"; then
25196 ac_res="none required"
25197 else
25198 ac_res=-l$ac_lib
25199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25200 fi
25201 if ac_fn_c_try_link "$LINENO"; then :
25202 ac_cv_search_socket=$ac_res
25203fi
25204rm -f core conftest.err conftest.$ac_objext \
25205 conftest$ac_exeext
25206 if ${ac_cv_search_socket+:} false; then :
25207 break
25208fi
25209done
25210if ${ac_cv_search_socket+:} false; then :
25211
25212else
25213 ac_cv_search_socket=no
25214fi
25215rm conftest.$ac_ext
25216LIBS=$ac_func_search_save_LIBS
25217fi
25218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25219$as_echo "$ac_cv_search_socket" >&6; }
25220ac_res=$ac_cv_search_socket
25221if test "$ac_res" != no; then :
25222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25223
cristy85572162013-01-04 19:19:32 +000025224
cristy8a5d7f42013-01-06 15:24:33 +000025225$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025226
cristy03f187e2013-01-24 00:22:19 +000025227 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025228
25229fi
25230
25231
25232for 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 +000025233do :
25234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25235ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025236if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025237 cat >>confdefs.h <<_ACEOF
25238#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25239_ACEOF
25240
25241fi
25242done
25243
25244
cristye43a45e2009-09-28 14:49:00 +000025245#
25246# Check for clock_gettime().
25247#
cristy8b350f62009-11-15 23:12:43 +000025248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025249$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025250if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025251 $as_echo_n "(cached) " >&6
25252else
25253 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025255/* end confdefs.h. */
25256
25257/* Override any GCC internal prototype to avoid an error.
25258 Use char because int might match the return type of a GCC
25259 builtin and then its argument prototype would still apply. */
25260#ifdef __cplusplus
25261extern "C"
25262#endif
25263char clock_gettime ();
25264int
25265main ()
25266{
25267return clock_gettime ();
25268 ;
25269 return 0;
25270}
25271_ACEOF
25272for ac_lib in '' rt; do
25273 if test -z "$ac_lib"; then
25274 ac_res="none required"
25275 else
25276 ac_res=-l$ac_lib
25277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25278 fi
cristy8b350f62009-11-15 23:12:43 +000025279 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025280 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025281fi
cristy8b350f62009-11-15 23:12:43 +000025282rm -f core conftest.err conftest.$ac_objext \
25283 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025284 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025285 break
25286fi
25287done
cristyda16f162011-02-19 23:52:17 +000025288if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025289
cristye43a45e2009-09-28 14:49:00 +000025290else
25291 ac_cv_search_clock_gettime=no
25292fi
25293rm conftest.$ac_ext
25294LIBS=$ac_func_search_save_LIBS
25295fi
cristy8b350f62009-11-15 23:12:43 +000025296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025297$as_echo "$ac_cv_search_clock_gettime" >&6; }
25298ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025299if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25301
25302
cristy8b350f62009-11-15 23:12:43 +000025303$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025304
cristy8b350f62009-11-15 23:12:43 +000025305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025306$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025308/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025309
25310 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025311int
25312main ()
25313{
25314clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025315 ;
25316 return 0;
25317}
25318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025319if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025320
cristyad38abe2012-12-23 23:03:21 +000025321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25322$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025323
cristy8b350f62009-11-15 23:12:43 +000025324$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025325
25326
25327else
cristyad38abe2012-12-23 23:03:21 +000025328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25329$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025330
25331fi
cristye43a45e2009-09-28 14:49:00 +000025332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333
25334else
25335
cristy8b350f62009-11-15 23:12:43 +000025336 for ac_func in gettimeofday ftime
25337do :
25338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25339ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025340if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025341 cat >>confdefs.h <<_ACEOF
25342#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25343_ACEOF
25344 break
25345fi
25346done
25347
25348
25349
25350fi
25351
25352
cristy3ed852e2009-09-05 21:47:34 +000025353########
25354#
25355# Check for function prototypes
25356#
25357########
25358
cristy8b350f62009-11-15 23:12:43 +000025359ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025360#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025361"
cristyda16f162011-02-19 23:52:17 +000025362if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025363 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025364else
cristy8b350f62009-11-15 23:12:43 +000025365 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025366fi
25367
cristy3ed852e2009-09-05 21:47:34 +000025368cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025369#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025370_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025371ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025372#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025373"
cristyda16f162011-02-19 23:52:17 +000025374if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025375 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025376else
cristy8b350f62009-11-15 23:12:43 +000025377 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025378fi
25379
cristy3ed852e2009-09-05 21:47:34 +000025380cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025381#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025382_ACEOF
25383
25384
cristy8b350f62009-11-15 23:12:43 +000025385ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025386#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025387"
cristyda16f162011-02-19 23:52:17 +000025388if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025389 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025390else
cristy8b350f62009-11-15 23:12:43 +000025391 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025392fi
25393
cristy3ed852e2009-09-05 21:47:34 +000025394cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025395#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025396_ACEOF
25397
25398
cristy8b350f62009-11-15 23:12:43 +000025399ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025400#include <stdio.h>
25401#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025402"
cristyda16f162011-02-19 23:52:17 +000025403if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025404 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025405else
cristy8b350f62009-11-15 23:12:43 +000025406 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025407fi
25408
cristy3ed852e2009-09-05 21:47:34 +000025409cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025410#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025411_ACEOF
25412
25413
cristy3ed852e2009-09-05 21:47:34 +000025414########
25415#
25416# C++ Support Tests (For Magick++)
25417#
25418########
25419have_magick_plus_plus='no'
25420if test "$with_magick_plus_plus" = 'yes'; then
25421 OLIBS="$LIBS"
25422 LIBS=''
25423 ac_ext=cpp
25424ac_cpp='$CXXCPP $CPPFLAGS'
25425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25428
25429
25430 # Full set of headers used...
25431 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25432 # functional iomanip iosfwd iostream iterator list string strstream utility
25433 ac_ext=cpp
25434ac_cpp='$CXXCPP $CPPFLAGS'
25435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25438
25439 ac_ext=cpp
25440ac_cpp='$CXXCPP $CPPFLAGS'
25441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25444if test -z "$CXX"; then
25445 if test -n "$CCC"; then
25446 CXX=$CCC
25447 else
25448 if test -n "$ac_tool_prefix"; then
25449 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25450 do
25451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025455if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025456 $as_echo_n "(cached) " >&6
25457else
25458 if test -n "$CXX"; then
25459 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25460else
25461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25462for as_dir in $PATH
25463do
25464 IFS=$as_save_IFS
25465 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025466 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025468 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025470 break 2
25471 fi
25472done
cristy8b350f62009-11-15 23:12:43 +000025473 done
cristy3ed852e2009-09-05 21:47:34 +000025474IFS=$as_save_IFS
25475
25476fi
25477fi
25478CXX=$ac_cv_prog_CXX
25479if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025481$as_echo "$CXX" >&6; }
25482else
cristy8b350f62009-11-15 23:12:43 +000025483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025484$as_echo "no" >&6; }
25485fi
25486
25487
25488 test -n "$CXX" && break
25489 done
25490fi
25491if test -z "$CXX"; then
25492 ac_ct_CXX=$CXX
25493 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25494do
25495 # Extract the first word of "$ac_prog", so it can be a program name with args.
25496set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025499if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025500 $as_echo_n "(cached) " >&6
25501else
25502 if test -n "$ac_ct_CXX"; then
25503 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25504else
25505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25506for as_dir in $PATH
25507do
25508 IFS=$as_save_IFS
25509 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025512 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025514 break 2
25515 fi
25516done
cristy8b350f62009-11-15 23:12:43 +000025517 done
cristy3ed852e2009-09-05 21:47:34 +000025518IFS=$as_save_IFS
25519
25520fi
25521fi
25522ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25523if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025525$as_echo "$ac_ct_CXX" >&6; }
25526else
cristy8b350f62009-11-15 23:12:43 +000025527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025528$as_echo "no" >&6; }
25529fi
25530
25531
25532 test -n "$ac_ct_CXX" && break
25533done
25534
25535 if test "x$ac_ct_CXX" = x; then
25536 CXX="g++"
25537 else
25538 case $cross_compiling:$ac_tool_warned in
25539yes:)
cristy8b350f62009-11-15 23:12:43 +000025540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25542ac_tool_warned=yes ;;
25543esac
25544 CXX=$ac_ct_CXX
25545 fi
25546fi
25547
25548 fi
25549fi
25550# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025551$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025552set X $ac_compile
25553ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025554for ac_option in --version -v -V -qversion; do
25555 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025556case "(($ac_try" in
25557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25558 *) ac_try_echo=$ac_try;;
25559esac
cristy8b350f62009-11-15 23:12:43 +000025560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25561$as_echo "$ac_try_echo"; } >&5
25562 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025563 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025564 if test -s conftest.err; then
25565 sed '10a\
25566... rest of stderr output deleted ...
25567 10q' conftest.err >conftest.er1
25568 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025569 fi
cristycd4c5312009-11-22 01:19:08 +000025570 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25572 test $ac_status = 0; }
25573done
cristy3ed852e2009-09-05 21:47:34 +000025574
cristy8b350f62009-11-15 23:12:43 +000025575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025576$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025577if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025578 $as_echo_n "(cached) " >&6
25579else
cristy8b350f62009-11-15 23:12:43 +000025580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025581/* end confdefs.h. */
25582
25583int
25584main ()
25585{
25586#ifndef __GNUC__
25587 choke me
25588#endif
25589
25590 ;
25591 return 0;
25592}
25593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025594if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025595 ac_compiler_gnu=yes
25596else
cristy8b350f62009-11-15 23:12:43 +000025597 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025598fi
cristy3ed852e2009-09-05 21:47:34 +000025599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25600ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25601
25602fi
cristy8b350f62009-11-15 23:12:43 +000025603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025604$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25605if test $ac_compiler_gnu = yes; then
25606 GXX=yes
25607else
25608 GXX=
25609fi
25610ac_test_CXXFLAGS=${CXXFLAGS+set}
25611ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025613$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025614if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025615 $as_echo_n "(cached) " >&6
25616else
25617 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25618 ac_cxx_werror_flag=yes
25619 ac_cv_prog_cxx_g=no
25620 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025622/* end confdefs.h. */
25623
25624int
25625main ()
25626{
25627
25628 ;
25629 return 0;
25630}
25631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025632if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025633 ac_cv_prog_cxx_g=yes
25634else
cristy8b350f62009-11-15 23:12:43 +000025635 CXXFLAGS=""
25636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025637/* end confdefs.h. */
25638
25639int
25640main ()
25641{
25642
25643 ;
25644 return 0;
25645}
25646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025647if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025648
cristy8b350f62009-11-15 23:12:43 +000025649else
25650 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025651 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025653/* end confdefs.h. */
25654
25655int
25656main ()
25657{
25658
25659 ;
25660 return 0;
25661}
25662_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025663if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025664 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025665fi
cristy3ed852e2009-09-05 21:47:34 +000025666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25667fi
cristy3ed852e2009-09-05 21:47:34 +000025668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25669fi
cristy3ed852e2009-09-05 21:47:34 +000025670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25671 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25672fi
cristy8b350f62009-11-15 23:12:43 +000025673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025674$as_echo "$ac_cv_prog_cxx_g" >&6; }
25675if test "$ac_test_CXXFLAGS" = set; then
25676 CXXFLAGS=$ac_save_CXXFLAGS
25677elif test $ac_cv_prog_cxx_g = yes; then
25678 if test "$GXX" = yes; then
25679 CXXFLAGS="-g -O2"
25680 else
25681 CXXFLAGS="-g"
25682 fi
25683else
25684 if test "$GXX" = yes; then
25685 CXXFLAGS="-O2"
25686 else
25687 CXXFLAGS=
25688 fi
25689fi
25690ac_ext=cpp
25691ac_cpp='$CXXCPP $CPPFLAGS'
25692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25695
cristy73bd4a52010-10-05 11:24:23 +000025696depcc="$CXX" am_compiler_list=
25697
25698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25699$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025700if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025701 $as_echo_n "(cached) " >&6
25702else
25703 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25704 # We make a subdir and do the tests there. Otherwise we can end up
25705 # making bogus files that we don't know about and never remove. For
25706 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025707 # making a dummy file named 'D' -- because '-MD' means "put the output
25708 # in D".
cristy7247bba2012-02-05 16:37:27 +000025709 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025710 mkdir conftest.dir
25711 # Copy depcomp to subdir because otherwise we won't find it if we're
25712 # using a relative directory.
25713 cp "$am_depcomp" conftest.dir
25714 cd conftest.dir
25715 # We will build objects and dependencies in a subdirectory because
25716 # it helps to detect inapplicable dependency modes. For instance
25717 # both Tru64's cc and ICC support -MD to output dependencies as a
25718 # side effect of compilation, but ICC will put the dependencies in
25719 # the current directory while Tru64 will put them in the object
25720 # directory.
25721 mkdir sub
25722
25723 am_cv_CXX_dependencies_compiler_type=none
25724 if test "$am_compiler_list" = ""; then
25725 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25726 fi
25727 am__universal=false
25728 case " $depcc " in #(
25729 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25730 esac
25731
25732 for depmode in $am_compiler_list; do
25733 # Setup a source with many dependencies, because some compilers
25734 # like to wrap large dependency lists on column 80 (with \), and
25735 # we should not choose a depcomp mode which is confused by this.
25736 #
25737 # We need to recreate these files for each test, as the compiler may
25738 # overwrite some of them when testing with obscure command lines.
25739 # This happens at least with the AIX C compiler.
25740 : > sub/conftest.c
25741 for i in 1 2 3 4 5 6; do
25742 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025743 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25744 # Solaris 10 /bin/sh.
25745 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025746 done
25747 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25748
cristyc0890a62012-07-19 00:18:20 +000025749 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025750 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025751 # handle '-M -o', and we need to detect this. Also, some Intel
25752 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025753 am__obj=sub/conftest.${OBJEXT-o}
25754 am__minus_obj="-o $am__obj"
25755 case $depmode in
25756 gcc)
25757 # This depmode causes a compiler race in universal mode.
25758 test "$am__universal" = false || continue
25759 ;;
25760 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025761 # After this tag, mechanisms are not by side-effect, so they'll
25762 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025763 if test "x$enable_dependency_tracking" = xyes; then
25764 continue
25765 else
25766 break
25767 fi
25768 ;;
cristy7247bba2012-02-05 16:37:27 +000025769 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025770 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025771 # not run yet. These depmodes are late enough in the game, and
25772 # so weak that their functioning should not be impacted.
25773 am__obj=conftest.${OBJEXT-o}
25774 am__minus_obj=
25775 ;;
25776 none) break ;;
25777 esac
25778 if depmode=$depmode \
25779 source=sub/conftest.c object=$am__obj \
25780 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25781 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25782 >/dev/null 2>conftest.err &&
25783 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25784 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25785 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25786 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25787 # icc doesn't choke on unknown options, it will just issue warnings
25788 # or remarks (even with -Werror). So we grep stderr for any message
25789 # that says an option was ignored or not supported.
25790 # When given -MP, icc 7.0 and 7.1 complain thusly:
25791 # icc: Command line warning: ignoring option '-M'; no argument required
25792 # The diagnosis changed in icc 8.0:
25793 # icc: Command line remark: option '-MP' not supported
25794 if (grep 'ignoring option' conftest.err ||
25795 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25796 am_cv_CXX_dependencies_compiler_type=$depmode
25797 break
25798 fi
25799 fi
25800 done
25801
25802 cd ..
25803 rm -rf conftest.dir
25804else
25805 am_cv_CXX_dependencies_compiler_type=none
25806fi
25807
25808fi
25809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25810$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25811CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25812
25813 if
25814 test "x$enable_dependency_tracking" != xno \
25815 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25816 am__fastdepCXX_TRUE=
25817 am__fastdepCXX_FALSE='#'
25818else
25819 am__fastdepCXX_TRUE='#'
25820 am__fastdepCXX_FALSE=
25821fi
25822
25823
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25825$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025826if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025827 $as_echo_n "(cached) " >&6
25828else
25829
25830 ac_ext=cpp
25831ac_cpp='$CXXCPP $CPPFLAGS'
25832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25835
25836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25837/* end confdefs.h. */
25838
25839int f(int x){return 1;}
25840int f(char x){return 1;}
25841int f(bool x){return 1;}
25842
25843int
25844main ()
25845{
25846bool b = true; return f(b);
25847 ;
25848 return 0;
25849}
25850_ACEOF
25851if ac_fn_cxx_try_compile "$LINENO"; then :
25852 ax_cv_cxx_bool=yes
25853else
25854 ax_cv_cxx_bool=no
25855fi
25856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25857 ac_ext=cpp
25858ac_cpp='$CXXCPP $CPPFLAGS'
25859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25862
25863
25864fi
25865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25866$as_echo "$ax_cv_cxx_bool" >&6; }
25867if test "$ax_cv_cxx_bool" = yes; then
25868
25869$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25870
25871fi
25872
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25874$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025875if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025876 $as_echo_n "(cached) " >&6
25877else
25878
25879 ac_ext=cpp
25880ac_cpp='$CXXCPP $CPPFLAGS'
25881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25884
25885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25886/* end confdefs.h. */
25887namespace Outer { namespace Inner { int i = 0; }}
25888int
25889main ()
25890{
25891using namespace Outer::Inner; return i;
25892 ;
25893 return 0;
25894}
25895_ACEOF
25896if ac_fn_cxx_try_compile "$LINENO"; then :
25897 ax_cv_cxx_namespaces=yes
25898else
25899 ax_cv_cxx_namespaces=no
25900fi
25901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25902 ac_ext=cpp
25903ac_cpp='$CXXCPP $CPPFLAGS'
25904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25907
25908
25909fi
25910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25911$as_echo "$ax_cv_cxx_namespaces" >&6; }
25912if test "$ax_cv_cxx_namespaces" = yes; then
25913
25914$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25915
25916fi
25917
25918
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25920$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025921if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025922 $as_echo_n "(cached) " >&6
25923else
25924
25925 ac_ext=cpp
25926ac_cpp='$CXXCPP $CPPFLAGS'
25927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25930
25931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25932/* end confdefs.h. */
25933#include <iostream>
25934 std::istream& is = std::cin;
25935int
25936main ()
25937{
25938
25939 ;
25940 return 0;
25941}
25942_ACEOF
25943if ac_fn_cxx_try_compile "$LINENO"; then :
25944 ax_cv_cxx_have_std_namespace=yes
25945else
25946 ax_cv_cxx_have_std_namespace=no
25947fi
25948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
25956fi
25957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25958$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25959 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25960
25961$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25962
25963 fi
25964
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25966$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025967if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025968 $as_echo_n "(cached) " >&6
25969else
25970
25971
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25979/* end confdefs.h. */
25980#include <iostream>
25981#include <map>
25982#include <iomanip>
25983#include <cmath>
25984#ifdef HAVE_NAMESPACES
25985using namespace std;
25986#endif
25987int
25988main ()
25989{
25990return 0;
25991 ;
25992 return 0;
25993}
25994_ACEOF
25995if ac_fn_cxx_try_compile "$LINENO"; then :
25996 ac_cv_cxx_have_std_libs=yes
25997else
25998 ac_cv_cxx_have_std_libs=no
25999fi
26000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26001 ac_ext=cpp
26002ac_cpp='$CXXCPP $CPPFLAGS'
26003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26006
26007
26008fi
26009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26010$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26011if test "$ac_cv_cxx_have_std_libs" = yes; then
26012
26013$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26014
26015fi
26016
cristy3ed852e2009-09-05 21:47:34 +000026017
26018 OPENMP_CXXFLAGS=
26019 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026020if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026021 enableval=$enable_openmp;
26022fi
26023
26024 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26026$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026027if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026028 $as_echo_n "(cached) " >&6
26029else
cristy8b350f62009-11-15 23:12:43 +000026030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26031/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026032
26033#ifndef _OPENMP
26034 choke me
26035#endif
26036#include <omp.h>
26037int main () { return omp_get_num_threads (); }
26038
26039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026040if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026041 ac_cv_prog_cxx_openmp='none needed'
26042else
cristy8b350f62009-11-15 23:12:43 +000026043 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026044 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26045 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026046 ac_save_CXXFLAGS=$CXXFLAGS
26047 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26049/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026050
26051#ifndef _OPENMP
26052 choke me
26053#endif
26054#include <omp.h>
26055int main () { return omp_get_num_threads (); }
26056
26057_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026058if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026059 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026060fi
cristy8b350f62009-11-15 23:12:43 +000026061rm -f core conftest.err conftest.$ac_objext \
26062 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026063 CXXFLAGS=$ac_save_CXXFLAGS
26064 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26065 break
26066 fi
26067 done
26068fi
cristy8b350f62009-11-15 23:12:43 +000026069rm -f core conftest.err conftest.$ac_objext \
26070 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026071fi
cristy8b350f62009-11-15 23:12:43 +000026072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026073$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26074 case $ac_cv_prog_cxx_openmp in #(
26075 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026076 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026077 *)
cristy8b350f62009-11-15 23:12:43 +000026078 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026079 esac
26080 fi
26081
26082
26083 ac_ext=c
26084ac_cpp='$CPP $CPPFLAGS'
26085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26087ac_compiler_gnu=$ac_cv_c_compiler_gnu
26088
26089
cristy8b350f62009-11-15 23:12:43 +000026090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026091$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26092 if \
cristy964cb7f2010-04-25 23:18:00 +000026093 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026094 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026095 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026096 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026097 have_magick_plus_plus='yes'
26098 else
26099 have_magick_plus_plus='no (failed tests)'
26100 fi
cristyad38abe2012-12-23 23:03:21 +000026101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26102$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026103 LIBS="$OLIBS"
26104fi
cristy73bd4a52010-10-05 11:24:23 +000026105 if test "$have_magick_plus_plus" = 'yes'; then
26106 WITH_MAGICK_PLUS_PLUS_TRUE=
26107 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26108else
26109 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26110 WITH_MAGICK_PLUS_PLUS_FALSE=
26111fi
26112
cristy3ed852e2009-09-05 21:47:34 +000026113
26114# Only check for delegate libraries in subdirectories if requested.
26115if test "$enable_delegate_build" != 'no'; then
26116 # Check for delegate sub-directories and add -I & -L options as required.
26117 # This presumes that delegates are installed as detailed in the ImageMagick
26118 # README. If delegates are installed in a standard location where the
26119 # compiler will automatically find them then these options should not be
26120 # required.
26121
26122 #
26123 # Most delegates have includes in the same directory as the library, but not all...
26124 #
26125 # Includes
cristy2542fc62011-12-06 17:50:25 +000026126 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026127 if test -d "$builddir/$dir"; then
26128 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26129 else
26130 if test -d "$srcdirfull/$dir"; then
26131 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26132 fi
26133 fi
26134 done
26135
26136 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026137 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026138 if test -d "$builddir/$dir/.libs"; then
26139 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26140 else
26141 if test -d "$srcdirfull/$dir/.libs"; then
26142 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26143 fi
26144 fi
26145 if test -d "$builddir/$dir"; then
26146 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26147 else
26148 if test -d "$srcdirfull/$dir"; then
26149 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26150 fi
26151 fi
26152 done
26153fi
26154
26155# Assume that delegate headers reside under same directory as ImageMagick
26156# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026157MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026158
26159#
26160# Find the X11 RGB database
26161#
cristy8b350f62009-11-15 23:12:43 +000026162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026163$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026164if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026165 $as_echo_n "(cached) " >&6
26166else
26167 # Look for the header file in a standard set of common directories.
26168# Check X11 before X11Rn because it is often a symlink to the current release.
26169 for ac_dir in \
26170 /lib/usr/lib/X11 \
26171 /usr/X11/lib \
26172 /usr/X11R4/lib \
26173 /usr/X11R5/lib \
26174 /usr/X11R6/lib \
26175 /usr/X11R7/lib \
26176 /usr/X386/lib \
26177 /usr/XFree86/lib/X11 \
26178 /usr/athena/lib \
26179 /usr/lib \
26180 /usr/lib/X11 \
26181 /usr/lib/X11R4 \
26182 /usr/lib/X11R5 \
26183 /usr/lib/X11R6 \
26184 /usr/lib/X11R7 \
26185 /usr/local/X11/lib \
26186 /usr/local/X11R4/lib \
26187 /usr/local/X11R5/lib \
26188 /usr/local/X11R6/lib \
26189 /usr/local/lib \
26190 /usr/local/lib/X11 \
26191 /usr/local/lib/X11R4 \
26192 /usr/local/lib/X11R5 \
26193 /usr/local/lib/X11R6 \
26194 /usr/local/lib/X11R7 \
26195 /usr/local/x11r5/lib \
26196 /usr/lpp/Xamples/lib \
26197 /usr/openwin/lib \
26198 /usr/openwin/share/lib \
26199 /usr/unsupported/lib \
26200 /usr/x386/lib \
26201 ; do
26202 if test -f "$ac_dir/X11/rgb.txt"; then
26203 im_cv_x_configure="$ac_dir/X11/"
26204 break
26205 elif test -f "$ac_dir/rgb.txt"; then
26206 im_cv_x_configure="$ac_dir/"
26207 break
26208 fi
26209
26210 done
26211fi
cristy8b350f62009-11-15 23:12:43 +000026212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026213$as_echo "$im_cv_x_configure" >&6; }
26214X11_CONFIGURE_PATH="$im_cv_x_configure"
26215case "${build_os}" in
26216 mingw* )
26217 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26218 ;;
26219esac
26220
26221cat >>confdefs.h <<_ACEOF
26222#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26223_ACEOF
26224
26225
26226#
26227# Find OpenMP library
26228#
26229GOMP_LIBS=''
26230if test "$enable_openmp" != 'no'; then
26231 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026232 # Open64 (passes for GCC but uses different OpenMP implementation)
26233 if test "x$GOMP_LIBS" = x ; then
26234 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26236$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26237if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26238 $as_echo_n "(cached) " >&6
26239else
26240 ac_check_lib_save_LIBS=$LIBS
26241LIBS="-lopenmp $LIBS"
26242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26243/* end confdefs.h. */
26244
26245/* Override any GCC internal prototype to avoid an error.
26246 Use char because int might match the return type of a GCC
26247 builtin and then its argument prototype would still apply. */
26248#ifdef __cplusplus
26249extern "C"
26250#endif
26251char omp_get_num_procs ();
26252int
26253main ()
26254{
26255return omp_get_num_procs ();
26256 ;
26257 return 0;
26258}
26259_ACEOF
26260if ac_fn_c_try_link "$LINENO"; then :
26261 ac_cv_lib_openmp_omp_get_num_procs=yes
26262else
26263 ac_cv_lib_openmp_omp_get_num_procs=no
26264fi
26265rm -f core conftest.err conftest.$ac_objext \
26266 conftest$ac_exeext conftest.$ac_ext
26267LIBS=$ac_check_lib_save_LIBS
26268fi
26269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26270$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26271if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26272 GOMP_LIBS="-lopenmp"
26273fi
26274
26275 fi
26276 fi
26277 # GCC
26278 if test "x$GOMP_LIBS" = x ; then
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026280$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026281if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026282 $as_echo_n "(cached) " >&6
26283else
26284 ac_check_lib_save_LIBS=$LIBS
26285LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026287/* end confdefs.h. */
26288
26289/* Override any GCC internal prototype to avoid an error.
26290 Use char because int might match the return type of a GCC
26291 builtin and then its argument prototype would still apply. */
26292#ifdef __cplusplus
26293extern "C"
26294#endif
26295char GOMP_parallel_start ();
26296int
26297main ()
26298{
26299return GOMP_parallel_start ();
26300 ;
26301 return 0;
26302}
26303_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026304if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026305 ac_cv_lib_gomp_GOMP_parallel_start=yes
26306else
cristy8b350f62009-11-15 23:12:43 +000026307 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026308fi
cristy8b350f62009-11-15 23:12:43 +000026309rm -f core conftest.err conftest.$ac_objext \
26310 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026311LIBS=$ac_check_lib_save_LIBS
26312fi
cristy8b350f62009-11-15 23:12:43 +000026313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026314$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026315if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026316 GOMP_LIBS="-lgomp"
26317fi
cristy18307f12011-12-30 01:20:16 +000026318
26319 fi
cristy3ed852e2009-09-05 21:47:34 +000026320 else
cristy18307f12011-12-30 01:20:16 +000026321 # Sun CC
26322 if test "x$GOMP_LIBS" = x ; then
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026324$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026325if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026326 $as_echo_n "(cached) " >&6
26327else
26328 ac_check_lib_save_LIBS=$LIBS
26329LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026331/* end confdefs.h. */
26332
26333/* Override any GCC internal prototype to avoid an error.
26334 Use char because int might match the return type of a GCC
26335 builtin and then its argument prototype would still apply. */
26336#ifdef __cplusplus
26337extern "C"
26338#endif
26339char sunw_mp_register_warn ();
26340int
26341main ()
26342{
26343return sunw_mp_register_warn ();
26344 ;
26345 return 0;
26346}
26347_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026348if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026349 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26350else
cristy8b350f62009-11-15 23:12:43 +000026351 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026352fi
cristy8b350f62009-11-15 23:12:43 +000026353rm -f core conftest.err conftest.$ac_objext \
26354 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026355LIBS=$ac_check_lib_save_LIBS
26356fi
cristy8b350f62009-11-15 23:12:43 +000026357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026358$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026359if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026360 GOMP_LIBS="-lmtsk"
26361fi
cristy18307f12011-12-30 01:20:16 +000026362
26363 fi
26364 # AIX xlc
26365 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026367$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026368if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026369 $as_echo_n "(cached) " >&6
26370else
26371 ac_check_lib_save_LIBS=$LIBS
26372LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026374/* end confdefs.h. */
26375
26376/* Override any GCC internal prototype to avoid an error.
26377 Use char because int might match the return type of a GCC
26378 builtin and then its argument prototype would still apply. */
26379#ifdef __cplusplus
26380extern "C"
26381#endif
26382char _xlsmpFlush ();
26383int
26384main ()
26385{
26386return _xlsmpFlush ();
26387 ;
26388 return 0;
26389}
26390_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026391if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026392 ac_cv_lib_xlsmp__xlsmpFlush=yes
26393else
cristy8b350f62009-11-15 23:12:43 +000026394 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026395fi
cristy8b350f62009-11-15 23:12:43 +000026396rm -f core conftest.err conftest.$ac_objext \
26397 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026398LIBS=$ac_check_lib_save_LIBS
26399fi
cristy8b350f62009-11-15 23:12:43 +000026400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026401$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026402if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026403 GOMP_LIBS="-lxlsmp"
26404fi
cristy18307f12011-12-30 01:20:16 +000026405
26406 fi
26407 # SGI IRIX 6.5 MIPSpro C/C++
26408 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026410$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026411if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026412 $as_echo_n "(cached) " >&6
26413else
26414 ac_check_lib_save_LIBS=$LIBS
26415LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026417/* end confdefs.h. */
26418
26419/* Override any GCC internal prototype to avoid an error.
26420 Use char because int might match the return type of a GCC
26421 builtin and then its argument prototype would still apply. */
26422#ifdef __cplusplus
26423extern "C"
26424#endif
26425char mp_destroy ();
26426int
26427main ()
26428{
26429return mp_destroy ();
26430 ;
26431 return 0;
26432}
26433_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026434if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026435 ac_cv_lib_mp_mp_destroy=yes
26436else
cristy8b350f62009-11-15 23:12:43 +000026437 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026438fi
cristy8b350f62009-11-15 23:12:43 +000026439rm -f core conftest.err conftest.$ac_objext \
26440 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026441LIBS=$ac_check_lib_save_LIBS
26442fi
cristy8b350f62009-11-15 23:12:43 +000026443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026444$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026445if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026446 GOMP_LIBS="-lmp"
26447fi
cristy18307f12011-12-30 01:20:16 +000026448
26449 fi
cristy3ed852e2009-09-05 21:47:34 +000026450 fi
26451 LIBS="$GOMP_LIBS $LIBS"
26452fi
26453
26454
26455#
26456# Find Posix threads library
26457#
26458THREAD_LIBS=''
26459if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26460
26461 if test "x$PTHREAD_LIBS" = "x"; then
26462 case "${host_cpu}-${host_os}" in
26463 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026464
26465
26466
26467ac_ext=c
26468ac_cpp='$CPP $CPPFLAGS'
26469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26471ac_compiler_gnu=$ac_cv_c_compiler_gnu
26472
26473magick_pthread_lib_ok=no
26474
26475LIB=-lc_r
26476save_LIBS="$LIBS"
26477LIBS="$LIBS $LIB"
26478
26479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26480$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26482/* end confdefs.h. */
26483#include <pthread.h>
26484int
26485main ()
26486{
26487 pthread_t th;
26488 pthread_join(th, 0);
26489 pthread_attr_init(0);
26490 pthread_cleanup_push(0, 0);
26491 pthread_create(0,0,0,0);
26492 pthread_cleanup_pop(0);
26493 ;
26494 return 0;
26495}
26496_ACEOF
26497if ac_fn_c_try_link "$LINENO"; then :
26498 magick_pthread_lib_ok=yes
26499fi
26500rm -f core conftest.err conftest.$ac_objext \
26501 conftest$ac_exeext conftest.$ac_ext
26502
26503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26504$as_echo "${magick_pthread_lib_ok}" >&6; }
26505if test "$magick_pthread_lib_ok" = yes
26506then
26507 PTHREAD_LIBS=-lc_r
26508 :
26509else
26510
26511 :
26512fi
26513
26514LIBS="$save_LIBS"
26515
26516ac_ext=c
26517ac_cpp='$CPP $CPPFLAGS'
26518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26520ac_compiler_gnu=$ac_cv_c_compiler_gnu
26521
26522 ;;
cristy3ed852e2009-09-05 21:47:34 +000026523 esac
26524 fi
26525
26526 for lib in pthread pthreads; do
26527 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026528
26529
26530
26531ac_ext=c
26532ac_cpp='$CPP $CPPFLAGS'
26533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26535ac_compiler_gnu=$ac_cv_c_compiler_gnu
26536
26537magick_pthread_lib_ok=no
26538
26539LIB=-l$lib
26540save_LIBS="$LIBS"
26541LIBS="$LIBS $LIB"
26542
26543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26544$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26546/* end confdefs.h. */
26547#include <pthread.h>
26548int
26549main ()
26550{
26551 pthread_t th;
26552 pthread_join(th, 0);
26553 pthread_attr_init(0);
26554 pthread_cleanup_push(0, 0);
26555 pthread_create(0,0,0,0);
26556 pthread_cleanup_pop(0);
26557 ;
26558 return 0;
26559}
26560_ACEOF
26561if ac_fn_c_try_link "$LINENO"; then :
26562 magick_pthread_lib_ok=yes
26563fi
26564rm -f core conftest.err conftest.$ac_objext \
26565 conftest$ac_exeext conftest.$ac_ext
26566
26567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26568$as_echo "${magick_pthread_lib_ok}" >&6; }
26569if test "$magick_pthread_lib_ok" = yes
26570then
26571 PTHREAD_LIBS=-l$lib
26572 :
26573else
26574
26575 :
26576fi
26577
26578LIBS="$save_LIBS"
26579
26580ac_ext=c
26581ac_cpp='$CPP $CPPFLAGS'
26582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26584ac_compiler_gnu=$ac_cv_c_compiler_gnu
26585
26586
cristy3ed852e2009-09-05 21:47:34 +000026587 fi
26588 done
26589
26590 THREAD_LIBS="$PTHREAD_LIBS"
26591 LIBS="$LIBS $THREAD_LIBS"
26592fi
26593
26594
26595#
26596# Check for umem.
26597#
26598have_umem='no'
26599UMEM_LIBS=''
26600if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026602$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26604$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026605 failed=0
26606 passed=0
cristy8b350f62009-11-15 23:12:43 +000026607 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026608if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026609 passed=`expr $passed + 1`
26610else
26611 failed=`expr $failed + 1`
26612fi
26613
26614
cristy8b350f62009-11-15 23:12:43 +000026615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026616$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026617if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026618 $as_echo_n "(cached) " >&6
26619else
26620 ac_check_lib_save_LIBS=$LIBS
26621LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026623/* end confdefs.h. */
26624
26625/* Override any GCC internal prototype to avoid an error.
26626 Use char because int might match the return type of a GCC
26627 builtin and then its argument prototype would still apply. */
26628#ifdef __cplusplus
26629extern "C"
26630#endif
26631char umem_alloc ();
26632int
26633main ()
26634{
26635return umem_alloc ();
26636 ;
26637 return 0;
26638}
26639_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026640if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026641 ac_cv_lib_umem_umem_alloc=yes
26642else
cristy8b350f62009-11-15 23:12:43 +000026643 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026644fi
cristy8b350f62009-11-15 23:12:43 +000026645rm -f core conftest.err conftest.$ac_objext \
26646 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026647LIBS=$ac_check_lib_save_LIBS
26648fi
cristy8b350f62009-11-15 23:12:43 +000026649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026650$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026651if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026652 passed=`expr $passed + 1`
26653else
26654 failed=`expr $failed + 1`
26655fi
26656
cristy8b350f62009-11-15 23:12:43 +000026657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026658$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026659if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026660 $as_echo_n "(cached) " >&6
26661else
26662 ac_check_lib_save_LIBS=$LIBS
26663LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026665/* end confdefs.h. */
26666
26667/* Override any GCC internal prototype to avoid an error.
26668 Use char because int might match the return type of a GCC
26669 builtin and then its argument prototype would still apply. */
26670#ifdef __cplusplus
26671extern "C"
26672#endif
26673char umem_free ();
26674int
26675main ()
26676{
26677return umem_free ();
26678 ;
26679 return 0;
26680}
26681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026682if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026683 ac_cv_lib_umem_umem_free=yes
26684else
cristy8b350f62009-11-15 23:12:43 +000026685 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026686fi
cristy8b350f62009-11-15 23:12:43 +000026687rm -f core conftest.err conftest.$ac_objext \
26688 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026689LIBS=$ac_check_lib_save_LIBS
26690fi
cristy8b350f62009-11-15 23:12:43 +000026691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026692$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026693if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026694 passed=`expr $passed + 1`
26695else
26696 failed=`expr $failed + 1`
26697fi
26698
cristy8b350f62009-11-15 23:12:43 +000026699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026700$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26701 if test $passed -gt 0; then
26702 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26704$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026705 have_umem='no (failed tests)'
26706 else
26707 UMEM_LIBS='-lumem'
26708 LIBS="$UMEM_LIBS $LIBS"
26709
cristy8b350f62009-11-15 23:12:43 +000026710$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026711
cristyad38abe2012-12-23 23:03:21 +000026712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26713$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026714 have_umem='yes'
26715 fi
26716 else
cristyad38abe2012-12-23 23:03:21 +000026717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26718$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026719 fi
26720fi
cristy73bd4a52010-10-05 11:24:23 +000026721 if test "$have_umem" = 'yes'; then
26722 HasUMEM_TRUE=
26723 HasUMEM_FALSE='#'
26724else
26725 HasUMEM_TRUE='#'
26726 HasUMEM_FALSE=
26727fi
26728
cristy3ed852e2009-09-05 21:47:34 +000026729
26730
26731#
26732# Add support for ccmalloc memory debugging library if requested
26733#
26734have_ccmalloc='no'
26735CCMALLOC_LIBS=''
26736if test "$enable_ccmalloc" = 'yes'; then
26737 # Extract the first word of "ccmalloc", so it can be a program name with args.
26738set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026741if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026742 $as_echo_n "(cached) " >&6
26743else
26744 case $CCMALLOCDelegate in
26745 [\\/]* | ?:[\\/]*)
26746 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26747 ;;
26748 *)
26749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26750for as_dir in $PATH
26751do
26752 IFS=$as_save_IFS
26753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026756 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026758 break 2
26759 fi
26760done
cristy8b350f62009-11-15 23:12:43 +000026761 done
cristy3ed852e2009-09-05 21:47:34 +000026762IFS=$as_save_IFS
26763
26764 ;;
26765esac
26766fi
26767CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26768if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026770$as_echo "$CCMALLOCDelegate" >&6; }
26771else
cristy8b350f62009-11-15 23:12:43 +000026772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026773$as_echo "no" >&6; }
26774fi
26775
26776
26777 if test -n "$CCMALLOCDelegate"; then
26778 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26779 OLIBS="$LIBS"
26780 # Assume that gcc is used with ccmalloc.
26781 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026783$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026784if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026785 $as_echo_n "(cached) " >&6
26786else
26787 ac_check_lib_save_LIBS=$LIBS
26788LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026790/* end confdefs.h. */
26791
26792/* Override any GCC internal prototype to avoid an error.
26793 Use char because int might match the return type of a GCC
26794 builtin and then its argument prototype would still apply. */
26795#ifdef __cplusplus
26796extern "C"
26797#endif
26798char ccmalloc_malloc ();
26799int
26800main ()
26801{
26802return ccmalloc_malloc ();
26803 ;
26804 return 0;
26805}
26806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026807if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026808 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26809else
cristy8b350f62009-11-15 23:12:43 +000026810 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026811fi
cristy8b350f62009-11-15 23:12:43 +000026812rm -f core conftest.err conftest.$ac_objext \
26813 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026814LIBS=$ac_check_lib_save_LIBS
26815fi
cristy8b350f62009-11-15 23:12:43 +000026816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026817$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026818if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026819 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26820fi
26821
26822 if test -n "$CCMALLOC_LIBS"; then
26823 LIBS="$OLIBS"
26824 LIBS="$LIBS $CCMALLOC_LIBS"
26825 have_ccmalloc='yes'
26826 else
26827 LIBS="$OLIBS"
26828 fi
26829 fi
26830fi
26831
26832#
cristy944e51f2013-04-16 18:45:02 +000026833# Add support for 'huge pages' if requested
26834#
26835if test "x$enable_hugepages" != "xno"; then :
26836
26837
26838$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26839
26840
26841fi
26842
26843#
cristy3ed852e2009-09-05 21:47:34 +000026844# Add support for efence memory debugging library if requested
26845#
26846if test "$enable_efence" = 'yes'; then
26847 EFENCE_LIBS='-lefence'
26848 LIBS="$EFENCE_LIBS $LIBS"
26849fi
26850
cristy3ed852e2009-09-05 21:47:34 +000026851
26852#
26853# Check for BZLIB
26854#
26855
26856
26857# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026858if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026859 withval=$with_bzlib; with_bzlib=$withval
26860else
26861 with_bzlib='yes'
26862fi
26863
26864
26865if test "$with_bzlib" != 'yes'; then
26866 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26867fi
26868
26869have_bzlib='no'
26870if test "$with_bzlib" != 'no'; then
26871 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26873$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026875$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26877$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026878 failed=0
26879 passed=0
26880 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026881 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026882if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026883 passed=`expr $passed + 1`
26884else
26885 failed=`expr $failed + 1`
26886fi
26887
26888
cristy8b350f62009-11-15 23:12:43 +000026889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026890$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026891if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026892 $as_echo_n "(cached) " >&6
26893else
26894 ac_check_lib_save_LIBS=$LIBS
26895LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026897/* end confdefs.h. */
26898
26899/* Override any GCC internal prototype to avoid an error.
26900 Use char because int might match the return type of a GCC
26901 builtin and then its argument prototype would still apply. */
26902#ifdef __cplusplus
26903extern "C"
26904#endif
26905char BZ2_bzDecompress ();
26906int
26907main ()
26908{
26909return BZ2_bzDecompress ();
26910 ;
26911 return 0;
26912}
26913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026914if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026915 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26916else
cristy8b350f62009-11-15 23:12:43 +000026917 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026918fi
cristy8b350f62009-11-15 23:12:43 +000026919rm -f core conftest.err conftest.$ac_objext \
26920 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026921LIBS=$ac_check_lib_save_LIBS
26922fi
cristy8b350f62009-11-15 23:12:43 +000026923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026924$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026925if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026926 found_libbz=`expr $found_libbz + 1`
26927fi
26928
26929 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026931$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026932if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026933 $as_echo_n "(cached) " >&6
26934else
26935 ac_check_lib_save_LIBS=$LIBS
26936LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026938/* end confdefs.h. */
26939
26940/* Override any GCC internal prototype to avoid an error.
26941 Use char because int might match the return type of a GCC
26942 builtin and then its argument prototype would still apply. */
26943#ifdef __cplusplus
26944extern "C"
26945#endif
26946char _imp__BZ2_decompress ();
26947int
26948main ()
26949{
26950return _imp__BZ2_decompress ();
26951 ;
26952 return 0;
26953}
26954_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026955if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026956 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26957else
cristy8b350f62009-11-15 23:12:43 +000026958 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026959fi
cristy8b350f62009-11-15 23:12:43 +000026960rm -f core conftest.err conftest.$ac_objext \
26961 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026962LIBS=$ac_check_lib_save_LIBS
26963fi
cristy8b350f62009-11-15 23:12:43 +000026964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026965$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026966if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026967 found_libbz=`expr $found_libbz + 1`
26968fi
26969
26970 fi
26971 if test $found_libbz -gt 0; then
26972 passed=`expr $passed + 1`
26973 else
26974 failed=`expr $failed + 1`
26975 fi
cristy8b350f62009-11-15 23:12:43 +000026976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026977$as_echo_n "checking if BZLIB package is complete... " >&6; }
26978 if test $passed -gt 0; then
26979 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26981$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026982 have_bzlib='no (failed tests)'
26983 else
26984 BZLIB_LIBS='-lbz2'
26985 LIBS="$BZLIB_LIBS $LIBS"
26986
cristy8b350f62009-11-15 23:12:43 +000026987$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026988
cristyad38abe2012-12-23 23:03:21 +000026989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26990$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026991 have_bzlib='yes'
26992 fi
26993 else
cristyad38abe2012-12-23 23:03:21 +000026994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26995$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026996 fi
26997fi
cristy73bd4a52010-10-05 11:24:23 +000026998 if test "$have_bzlib" = 'yes'; then
26999 BZLIB_DELEGATE_TRUE=
27000 BZLIB_DELEGATE_FALSE='#'
27001else
27002 BZLIB_DELEGATE_TRUE='#'
27003 BZLIB_DELEGATE_FALSE=
27004fi
27005
cristy3ed852e2009-09-05 21:47:34 +000027006
27007
27008#
27009# Find the X11 include and library directories.
27010#
27011IPC_LIBS=''
27012X11_LIBS=''
27013XEXT_LIBS=''
27014XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027016$as_echo_n "checking for X... " >&6; }
27017
27018
27019# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027020if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027021 withval=$with_x;
27022fi
27023
27024# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27025if test "x$with_x" = xno; then
27026 # The user explicitly disabled X.
27027 have_x=disabled
27028else
27029 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027030 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027031 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027032 $as_echo_n "(cached) " >&6
27033else
27034 # One or both of the vars are not set, and there is no cached value.
27035ac_x_includes=no ac_x_libraries=no
27036rm -f -r conftest.dir
27037if mkdir conftest.dir; then
27038 cd conftest.dir
27039 cat >Imakefile <<'_ACEOF'
27040incroot:
27041 @echo incroot='${INCROOT}'
27042usrlibdir:
27043 @echo usrlibdir='${USRLIBDIR}'
27044libdir:
27045 @echo libdir='${LIBDIR}'
27046_ACEOF
27047 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027048 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027049 for ac_var in incroot usrlibdir libdir; do
27050 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27051 done
27052 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27053 for ac_extension in a so sl dylib la dll; do
27054 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27055 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27056 ac_im_usrlibdir=$ac_im_libdir; break
27057 fi
27058 done
27059 # Screen out bogus values from the imake configuration. They are
27060 # bogus both because they are the default anyway, and because
27061 # using them would break gcc on systems where it needs fixed includes.
27062 case $ac_im_incroot in
27063 /usr/include) ac_x_includes= ;;
27064 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27065 esac
27066 case $ac_im_usrlibdir in
27067 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27068 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27069 esac
27070 fi
27071 cd ..
27072 rm -f -r conftest.dir
27073fi
27074
27075# Standard set of common directories for X headers.
27076# Check X11 before X11Rn because it is often a symlink to the current release.
27077ac_x_header_dirs='
27078/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027079/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027080/usr/X11R6/include
27081/usr/X11R5/include
27082/usr/X11R4/include
27083
27084/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027085/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027086/usr/include/X11R6
27087/usr/include/X11R5
27088/usr/include/X11R4
27089
27090/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027091/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027092/usr/local/X11R6/include
27093/usr/local/X11R5/include
27094/usr/local/X11R4/include
27095
27096/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027097/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027098/usr/local/include/X11R6
27099/usr/local/include/X11R5
27100/usr/local/include/X11R4
27101
27102/usr/X386/include
27103/usr/x386/include
27104/usr/XFree86/include/X11
27105
27106/usr/include
27107/usr/local/include
27108/usr/unsupported/include
27109/usr/athena/include
27110/usr/local/x11r5/include
27111/usr/lpp/Xamples/include
27112
27113/usr/openwin/include
27114/usr/openwin/share/include'
27115
27116if test "$ac_x_includes" = no; then
27117 # Guess where to find include files, by looking for Xlib.h.
27118 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027120/* end confdefs.h. */
27121#include <X11/Xlib.h>
27122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027123if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027124 # We can compile using X headers with no special include directory.
27125ac_x_includes=
27126else
cristyc7083c12009-10-14 03:16:55 +000027127 for ac_dir in $ac_x_header_dirs; do
27128 if test -r "$ac_dir/X11/Xlib.h"; then
27129 ac_x_includes=$ac_dir
27130 break
27131 fi
27132done
27133fi
cristyda16f162011-02-19 23:52:17 +000027134rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027135fi # $ac_x_includes = no
27136
27137if test "$ac_x_libraries" = no; then
27138 # Check for the libraries.
27139 # See if we find them without any special options.
27140 # Don't add to $LIBS permanently.
27141 ac_save_LIBS=$LIBS
27142 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027144/* end confdefs.h. */
27145#include <X11/Xlib.h>
27146int
27147main ()
27148{
27149XrmInitialize ()
27150 ;
27151 return 0;
27152}
27153_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027154if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027155 LIBS=$ac_save_LIBS
27156# We can link X programs with no special library path.
27157ac_x_libraries=
27158else
cristy8b350f62009-11-15 23:12:43 +000027159 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027160for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27161do
27162 # Don't even attempt the hair of trying to link an X program!
27163 for ac_extension in a so sl dylib la dll; do
27164 if test -r "$ac_dir/libX11.$ac_extension"; then
27165 ac_x_libraries=$ac_dir
27166 break 2
27167 fi
27168 done
27169done
27170fi
cristy8b350f62009-11-15 23:12:43 +000027171rm -f core conftest.err conftest.$ac_objext \
27172 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027173fi # $ac_x_libraries = no
27174
27175case $ac_x_includes,$ac_x_libraries in #(
27176 no,* | *,no | *\'*)
27177 # Didn't find X, or a directory has "'" in its name.
27178 ac_cv_have_x="have_x=no";; #(
27179 *)
27180 # Record where we found X for the cache.
27181 ac_cv_have_x="have_x=yes\
27182 ac_x_includes='$ac_x_includes'\
27183 ac_x_libraries='$ac_x_libraries'"
27184esac
27185fi
27186;; #(
27187 *) have_x=yes;;
27188 esac
27189 eval "$ac_cv_have_x"
27190fi # $with_x != no
27191
27192if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027194$as_echo "$have_x" >&6; }
27195 no_x=yes
27196else
27197 # If each of the values was on the command line, it overrides each guess.
27198 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27199 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27200 # Update the cache value to reflect the command line values.
27201 ac_cv_have_x="have_x=yes\
27202 ac_x_includes='$x_includes'\
27203 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027205$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27206fi
27207
cristy3ed852e2009-09-05 21:47:34 +000027208if test "$no_x" = yes; then
27209 # Not all programs may use this symbol, but it does not hurt to define it.
27210
cristy8b350f62009-11-15 23:12:43 +000027211$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027212
27213 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27214else
27215 if test -n "$x_includes"; then
27216 X_CFLAGS="$X_CFLAGS -I$x_includes"
27217 fi
27218
27219 # It would also be nice to do this for all -L options, not just this one.
27220 if test -n "$x_libraries"; then
27221 X_LIBS="$X_LIBS -L$x_libraries"
27222 # For Solaris; some versions of Sun CC require a space after -R and
27223 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027225$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27226 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27227 ac_xsave_c_werror_flag=$ac_c_werror_flag
27228 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027230/* end confdefs.h. */
27231
27232int
27233main ()
27234{
27235
27236 ;
27237 return 0;
27238}
27239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027240if ac_fn_c_try_link "$LINENO"; then :
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027242$as_echo "no" >&6; }
27243 X_LIBS="$X_LIBS -R$x_libraries"
27244else
cristy8b350f62009-11-15 23:12:43 +000027245 LIBS="$ac_xsave_LIBS -R $x_libraries"
27246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027247/* end confdefs.h. */
27248
27249int
27250main ()
27251{
27252
27253 ;
27254 return 0;
27255}
27256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027257if ac_fn_c_try_link "$LINENO"; then :
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027259$as_echo "yes" >&6; }
27260 X_LIBS="$X_LIBS -R $x_libraries"
27261else
cristy8b350f62009-11-15 23:12:43 +000027262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027263$as_echo "neither works" >&6; }
27264fi
cristy8b350f62009-11-15 23:12:43 +000027265rm -f core conftest.err conftest.$ac_objext \
27266 conftest$ac_exeext conftest.$ac_ext
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 +000027270 ac_c_werror_flag=$ac_xsave_c_werror_flag
27271 LIBS=$ac_xsave_LIBS
27272 fi
27273
27274 # Check for system-dependent libraries X programs must link with.
27275 # Do this before checking for the system-independent R6 libraries
27276 # (-lICE), since we may need -lsocket or whatever for X linking.
27277
27278 if test "$ISC" = yes; then
27279 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27280 else
27281 # Martyn Johnson says this is needed for Ultrix, if the X
27282 # libraries were built with DECnet support. And Karl Berry says
27283 # the Alpha needs dnet_stub (dnet does not exist).
27284 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027286/* end confdefs.h. */
27287
27288/* Override any GCC internal prototype to avoid an error.
27289 Use char because int might match the return type of a GCC
27290 builtin and then its argument prototype would still apply. */
27291#ifdef __cplusplus
27292extern "C"
27293#endif
27294char XOpenDisplay ();
27295int
27296main ()
27297{
27298return XOpenDisplay ();
27299 ;
27300 return 0;
27301}
27302_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027303if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027304
cristy8b350f62009-11-15 23:12:43 +000027305else
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027307$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027308if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027309 $as_echo_n "(cached) " >&6
27310else
27311 ac_check_lib_save_LIBS=$LIBS
27312LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027314/* end confdefs.h. */
27315
27316/* Override any GCC internal prototype to avoid an error.
27317 Use char because int might match the return type of a GCC
27318 builtin and then its argument prototype would still apply. */
27319#ifdef __cplusplus
27320extern "C"
27321#endif
27322char dnet_ntoa ();
27323int
27324main ()
27325{
27326return dnet_ntoa ();
27327 ;
27328 return 0;
27329}
27330_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027331if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027332 ac_cv_lib_dnet_dnet_ntoa=yes
27333else
cristy8b350f62009-11-15 23:12:43 +000027334 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027335fi
cristy8b350f62009-11-15 23:12:43 +000027336rm -f core conftest.err conftest.$ac_objext \
27337 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027338LIBS=$ac_check_lib_save_LIBS
27339fi
cristy8b350f62009-11-15 23:12:43 +000027340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027341$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027342if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027343 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27344fi
27345
27346 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027348$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027349if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027350 $as_echo_n "(cached) " >&6
27351else
27352 ac_check_lib_save_LIBS=$LIBS
27353LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027355/* end confdefs.h. */
27356
27357/* Override any GCC internal prototype to avoid an error.
27358 Use char because int might match the return type of a GCC
27359 builtin and then its argument prototype would still apply. */
27360#ifdef __cplusplus
27361extern "C"
27362#endif
27363char dnet_ntoa ();
27364int
27365main ()
27366{
27367return dnet_ntoa ();
27368 ;
27369 return 0;
27370}
27371_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027372if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027373 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27374else
cristy8b350f62009-11-15 23:12:43 +000027375 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027376fi
cristy8b350f62009-11-15 23:12:43 +000027377rm -f core conftest.err conftest.$ac_objext \
27378 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027379LIBS=$ac_check_lib_save_LIBS
27380fi
cristy8b350f62009-11-15 23:12:43 +000027381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027382$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027383if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027384 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27385fi
27386
27387 fi
27388fi
cristy8b350f62009-11-15 23:12:43 +000027389rm -f core conftest.err conftest.$ac_objext \
27390 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027391 LIBS="$ac_xsave_LIBS"
27392
27393 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27394 # to get the SysV transport functions.
27395 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27396 # needs -lnsl.
27397 # The nsl library prevents programs from opening the X display
27398 # on Irix 5.2, according to T.E. Dickey.
27399 # The functions gethostbyname, getservbyname, and inet_addr are
27400 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027401 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027402if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027403
cristy3ed852e2009-09-05 21:47:34 +000027404fi
27405
cristy3ed852e2009-09-05 21:47:34 +000027406 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027408$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027409if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027410 $as_echo_n "(cached) " >&6
27411else
27412 ac_check_lib_save_LIBS=$LIBS
27413LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027415/* end confdefs.h. */
27416
27417/* Override any GCC internal prototype to avoid an error.
27418 Use char because int might match the return type of a GCC
27419 builtin and then its argument prototype would still apply. */
27420#ifdef __cplusplus
27421extern "C"
27422#endif
27423char gethostbyname ();
27424int
27425main ()
27426{
27427return gethostbyname ();
27428 ;
27429 return 0;
27430}
27431_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027432if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027433 ac_cv_lib_nsl_gethostbyname=yes
27434else
cristy8b350f62009-11-15 23:12:43 +000027435 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027436fi
cristy8b350f62009-11-15 23:12:43 +000027437rm -f core conftest.err conftest.$ac_objext \
27438 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027439LIBS=$ac_check_lib_save_LIBS
27440fi
cristy8b350f62009-11-15 23:12:43 +000027441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027442$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027443if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027444 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27445fi
27446
27447 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027449$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027450if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027451 $as_echo_n "(cached) " >&6
27452else
27453 ac_check_lib_save_LIBS=$LIBS
27454LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027456/* end confdefs.h. */
27457
27458/* Override any GCC internal prototype to avoid an error.
27459 Use char because int might match the return type of a GCC
27460 builtin and then its argument prototype would still apply. */
27461#ifdef __cplusplus
27462extern "C"
27463#endif
27464char gethostbyname ();
27465int
27466main ()
27467{
27468return gethostbyname ();
27469 ;
27470 return 0;
27471}
27472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027473if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027474 ac_cv_lib_bsd_gethostbyname=yes
27475else
cristy8b350f62009-11-15 23:12:43 +000027476 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027477fi
cristy8b350f62009-11-15 23:12:43 +000027478rm -f core conftest.err conftest.$ac_objext \
27479 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027480LIBS=$ac_check_lib_save_LIBS
27481fi
cristy8b350f62009-11-15 23:12:43 +000027482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027483$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027484if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027485 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27486fi
27487
27488 fi
27489 fi
27490
27491 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27492 # socket/setsockopt and other routines are undefined under SCO ODT
27493 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27494 # on later versions), says Simon Leinen: it contains gethostby*
27495 # variants that don't use the name server (or something). -lsocket
27496 # must be given before -lnsl if both are needed. We assume that
27497 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027498 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027499if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027500
cristy3ed852e2009-09-05 21:47:34 +000027501fi
27502
cristy3ed852e2009-09-05 21:47:34 +000027503 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027505$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027506if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027507 $as_echo_n "(cached) " >&6
27508else
27509 ac_check_lib_save_LIBS=$LIBS
27510LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027512/* end confdefs.h. */
27513
27514/* Override any GCC internal prototype to avoid an error.
27515 Use char because int might match the return type of a GCC
27516 builtin and then its argument prototype would still apply. */
27517#ifdef __cplusplus
27518extern "C"
27519#endif
27520char connect ();
27521int
27522main ()
27523{
27524return connect ();
27525 ;
27526 return 0;
27527}
27528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027529if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027530 ac_cv_lib_socket_connect=yes
27531else
cristy8b350f62009-11-15 23:12:43 +000027532 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027533fi
cristy8b350f62009-11-15 23:12:43 +000027534rm -f core conftest.err conftest.$ac_objext \
27535 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027536LIBS=$ac_check_lib_save_LIBS
27537fi
cristy8b350f62009-11-15 23:12:43 +000027538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027539$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027540if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027541 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27542fi
27543
27544 fi
27545
27546 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027547 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027548if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027549
cristy3ed852e2009-09-05 21:47:34 +000027550fi
27551
cristy3ed852e2009-09-05 21:47:34 +000027552 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027554$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027555if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027556 $as_echo_n "(cached) " >&6
27557else
27558 ac_check_lib_save_LIBS=$LIBS
27559LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027561/* end confdefs.h. */
27562
27563/* Override any GCC internal prototype to avoid an error.
27564 Use char because int might match the return type of a GCC
27565 builtin and then its argument prototype would still apply. */
27566#ifdef __cplusplus
27567extern "C"
27568#endif
27569char remove ();
27570int
27571main ()
27572{
27573return remove ();
27574 ;
27575 return 0;
27576}
27577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027578if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027579 ac_cv_lib_posix_remove=yes
27580else
cristy8b350f62009-11-15 23:12:43 +000027581 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027582fi
cristy8b350f62009-11-15 23:12:43 +000027583rm -f core conftest.err conftest.$ac_objext \
27584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027585LIBS=$ac_check_lib_save_LIBS
27586fi
cristy8b350f62009-11-15 23:12:43 +000027587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027588$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027589if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027590 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27591fi
27592
27593 fi
27594
27595 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027596 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027597if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027598
cristy3ed852e2009-09-05 21:47:34 +000027599fi
27600
cristy3ed852e2009-09-05 21:47:34 +000027601 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027603$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027604if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027605 $as_echo_n "(cached) " >&6
27606else
27607 ac_check_lib_save_LIBS=$LIBS
27608LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027610/* end confdefs.h. */
27611
27612/* Override any GCC internal prototype to avoid an error.
27613 Use char because int might match the return type of a GCC
27614 builtin and then its argument prototype would still apply. */
27615#ifdef __cplusplus
27616extern "C"
27617#endif
27618char shmat ();
27619int
27620main ()
27621{
27622return shmat ();
27623 ;
27624 return 0;
27625}
27626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027628 ac_cv_lib_ipc_shmat=yes
27629else
cristy8b350f62009-11-15 23:12:43 +000027630 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027631fi
cristy8b350f62009-11-15 23:12:43 +000027632rm -f core conftest.err conftest.$ac_objext \
27633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027634LIBS=$ac_check_lib_save_LIBS
27635fi
cristy8b350f62009-11-15 23:12:43 +000027636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027637$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027638if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027639 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27640fi
27641
27642 fi
27643 fi
27644
27645 # Check for libraries that X11R6 Xt/Xaw programs need.
27646 ac_save_LDFLAGS=$LDFLAGS
27647 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27648 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27649 # check for ICE first), but we must link in the order -lSM -lICE or
27650 # we get undefined symbols. So assume we have SM if we have ICE.
27651 # These have to be linked with before -lX11, unlike the other
27652 # libraries we check for below, so use a different variable.
27653 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027655$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027656if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027657 $as_echo_n "(cached) " >&6
27658else
27659 ac_check_lib_save_LIBS=$LIBS
27660LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027662/* end confdefs.h. */
27663
27664/* Override any GCC internal prototype to avoid an error.
27665 Use char because int might match the return type of a GCC
27666 builtin and then its argument prototype would still apply. */
27667#ifdef __cplusplus
27668extern "C"
27669#endif
27670char IceConnectionNumber ();
27671int
27672main ()
27673{
27674return IceConnectionNumber ();
27675 ;
27676 return 0;
27677}
27678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027679if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027680 ac_cv_lib_ICE_IceConnectionNumber=yes
27681else
cristy8b350f62009-11-15 23:12:43 +000027682 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027683fi
cristy8b350f62009-11-15 23:12:43 +000027684rm -f core conftest.err conftest.$ac_objext \
27685 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027686LIBS=$ac_check_lib_save_LIBS
27687fi
cristy8b350f62009-11-15 23:12:43 +000027688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027689$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027690if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027691 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27692fi
27693
27694 LDFLAGS=$ac_save_LDFLAGS
27695
27696fi
27697
27698if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27700$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027702$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27704$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027705 LDFLAGS="$LDFLAGS $X_LIBS"
27706 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27707 LIBS="$X11_LIBS $LIBS"
27708 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27709
27710
cristy8b350f62009-11-15 23:12:43 +000027711$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027712
27713 #
27714 # Check for X11 shared memory extension
27715 #
27716 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027717 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027718if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027719 have_shmctl='yes'
27720fi
27721
27722 if test "$have_shmctl" != 'yes'; then
27723 PERSIST_LIBS=$LIBS
27724 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027726/* end confdefs.h. */
27727
27728/* Override any GCC internal prototype to avoid an error.
27729 Use char because int might match the return type of a GCC
27730 builtin and then its argument prototype would still apply. */
27731#ifdef __cplusplus
27732extern "C"
27733#endif
27734char shmctl ();
27735int
27736main ()
27737{
27738return shmctl ();
27739 ;
27740 return 0;
27741}
27742_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027743if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027744 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027745fi
cristy8b350f62009-11-15 23:12:43 +000027746rm -f core conftest.err conftest.$ac_objext \
27747 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027748 LIBS=$PERSIST_LIBS
27749 fi
27750
27751 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027753$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027754if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027755 $as_echo_n "(cached) " >&6
27756else
27757 ac_check_lib_save_LIBS=$LIBS
27758LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027760/* end confdefs.h. */
27761
27762/* Override any GCC internal prototype to avoid an error.
27763 Use char because int might match the return type of a GCC
27764 builtin and then its argument prototype would still apply. */
27765#ifdef __cplusplus
27766extern "C"
27767#endif
27768char XShmAttach ();
27769int
27770main ()
27771{
27772return XShmAttach ();
27773 ;
27774 return 0;
27775}
27776_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027777if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027778 ac_cv_lib_Xext_XShmAttach=yes
27779else
cristy8b350f62009-11-15 23:12:43 +000027780 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027781fi
cristy8b350f62009-11-15 23:12:43 +000027782rm -f core conftest.err conftest.$ac_objext \
27783 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027784LIBS=$ac_check_lib_save_LIBS
27785fi
cristy8b350f62009-11-15 23:12:43 +000027786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027787$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027788if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027789 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027790$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027791
27792fi
27793
27794 fi
27795
27796 #
27797 # Check for X11 shape extension
27798 #
cristy8b350f62009-11-15 23:12:43 +000027799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027800$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027801if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027802 $as_echo_n "(cached) " >&6
27803else
27804 ac_check_lib_save_LIBS=$LIBS
27805LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027807/* end confdefs.h. */
27808
27809/* Override any GCC internal prototype to avoid an error.
27810 Use char because int might match the return type of a GCC
27811 builtin and then its argument prototype would still apply. */
27812#ifdef __cplusplus
27813extern "C"
27814#endif
27815char XShapeCombineMask ();
27816int
27817main ()
27818{
27819return XShapeCombineMask ();
27820 ;
27821 return 0;
27822}
27823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027824if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027825 ac_cv_lib_Xext_XShapeCombineMask=yes
27826else
cristy8b350f62009-11-15 23:12:43 +000027827 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027828fi
cristy8b350f62009-11-15 23:12:43 +000027829rm -f core conftest.err conftest.$ac_objext \
27830 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027831LIBS=$ac_check_lib_save_LIBS
27832fi
cristy8b350f62009-11-15 23:12:43 +000027833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027834$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027835if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027836 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027837$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027838
27839fi
27840
cristy8b350f62009-11-15 23:12:43 +000027841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027842$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027843if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027844 $as_echo_n "(cached) " >&6
27845else
27846 ac_check_lib_save_LIBS=$LIBS
27847LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027849/* end confdefs.h. */
27850
27851/* Override any GCC internal prototype to avoid an error.
27852 Use char because int might match the return type of a GCC
27853 builtin and then its argument prototype would still apply. */
27854#ifdef __cplusplus
27855extern "C"
27856#endif
27857char XtSetEventDispatcher ();
27858int
27859main ()
27860{
27861return XtSetEventDispatcher ();
27862 ;
27863 return 0;
27864}
27865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027866if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027867 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27868else
cristy8b350f62009-11-15 23:12:43 +000027869 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027870fi
cristy8b350f62009-11-15 23:12:43 +000027871rm -f core conftest.err conftest.$ac_objext \
27872 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027873LIBS=$ac_check_lib_save_LIBS
27874fi
cristy8b350f62009-11-15 23:12:43 +000027875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027876$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027877if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027878 XT_LIBS='-lXt'
27879fi
27880
27881 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27882fi
27883if test "$no_x" != 'yes'; then
27884 have_x='yes'
27885else
27886 have_x='no'
27887fi
cristy73bd4a52010-10-05 11:24:23 +000027888 if test "$have_x" = 'yes'; then
27889 X11_DELEGATE_TRUE=
27890 X11_DELEGATE_FALSE='#'
27891else
27892 X11_DELEGATE_TRUE='#'
27893 X11_DELEGATE_FALSE=
27894fi
27895
cristy3ed852e2009-09-05 21:47:34 +000027896
27897
27898
27899
27900#
27901# Check for ZLIB
27902#
27903
27904# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027905if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027906 withval=$with_zlib; with_zlib=$withval
27907else
27908 with_zlib='yes'
27909fi
27910
27911
27912if test "$with_zlib" != 'yes'; then
27913 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27914fi
27915
27916have_zlib='no'
27917ZLIB_LIBS=''
27918if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27920$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027922$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27924$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027925 ZLIB_LIBS=''
27926 failed=0
27927 passed=0
cristy8b350f62009-11-15 23:12:43 +000027928 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027929if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027930 passed=`expr $passed + 1`
27931else
27932 failed=`expr $failed + 1`
27933fi
27934
27935
cristy8b350f62009-11-15 23:12:43 +000027936 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027937if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027938 passed=`expr $passed + 1`
27939else
27940 failed=`expr $failed + 1`
27941fi
27942
27943
cristy8b350f62009-11-15 23:12:43 +000027944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027945$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027946if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027947 $as_echo_n "(cached) " >&6
27948else
27949 ac_check_lib_save_LIBS=$LIBS
27950LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027952/* end confdefs.h. */
27953
27954/* Override any GCC internal prototype to avoid an error.
27955 Use char because int might match the return type of a GCC
27956 builtin and then its argument prototype would still apply. */
27957#ifdef __cplusplus
27958extern "C"
27959#endif
27960char compress ();
27961int
27962main ()
27963{
27964return compress ();
27965 ;
27966 return 0;
27967}
27968_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027969if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027970 ac_cv_lib_z_compress=yes
27971else
cristy8b350f62009-11-15 23:12:43 +000027972 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027973fi
cristy8b350f62009-11-15 23:12:43 +000027974rm -f core conftest.err conftest.$ac_objext \
27975 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027976LIBS=$ac_check_lib_save_LIBS
27977fi
cristy8b350f62009-11-15 23:12:43 +000027978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027979$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027980if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027981 passed=`expr $passed + 1`
27982else
27983 failed=`expr $failed + 1`
27984fi
27985
cristy8b350f62009-11-15 23:12:43 +000027986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027987$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027988if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027989 $as_echo_n "(cached) " >&6
27990else
27991 ac_check_lib_save_LIBS=$LIBS
27992LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027994/* end confdefs.h. */
27995
27996/* Override any GCC internal prototype to avoid an error.
27997 Use char because int might match the return type of a GCC
27998 builtin and then its argument prototype would still apply. */
27999#ifdef __cplusplus
28000extern "C"
28001#endif
28002char uncompress ();
28003int
28004main ()
28005{
28006return uncompress ();
28007 ;
28008 return 0;
28009}
28010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028011if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028012 ac_cv_lib_z_uncompress=yes
28013else
cristy8b350f62009-11-15 23:12:43 +000028014 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028015fi
cristy8b350f62009-11-15 23:12:43 +000028016rm -f core conftest.err conftest.$ac_objext \
28017 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028018LIBS=$ac_check_lib_save_LIBS
28019fi
cristy8b350f62009-11-15 23:12:43 +000028020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028021$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028022if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028023 passed=`expr $passed + 1`
28024else
28025 failed=`expr $failed + 1`
28026fi
28027
cristy8b350f62009-11-15 23:12:43 +000028028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028029$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028030if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028031 $as_echo_n "(cached) " >&6
28032else
28033 ac_check_lib_save_LIBS=$LIBS
28034LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028036/* end confdefs.h. */
28037
28038/* Override any GCC internal prototype to avoid an error.
28039 Use char because int might match the return type of a GCC
28040 builtin and then its argument prototype would still apply. */
28041#ifdef __cplusplus
28042extern "C"
28043#endif
28044char deflate ();
28045int
28046main ()
28047{
28048return deflate ();
28049 ;
28050 return 0;
28051}
28052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028053if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028054 ac_cv_lib_z_deflate=yes
28055else
cristy8b350f62009-11-15 23:12:43 +000028056 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028057fi
cristy8b350f62009-11-15 23:12:43 +000028058rm -f core conftest.err conftest.$ac_objext \
28059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028060LIBS=$ac_check_lib_save_LIBS
28061fi
cristy8b350f62009-11-15 23:12:43 +000028062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028063$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028064if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028065 passed=`expr $passed + 1`
28066else
28067 failed=`expr $failed + 1`
28068fi
28069
cristy8b350f62009-11-15 23:12:43 +000028070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028071$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028072if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028073 $as_echo_n "(cached) " >&6
28074else
28075 ac_check_lib_save_LIBS=$LIBS
28076LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028078/* end confdefs.h. */
28079
28080/* Override any GCC internal prototype to avoid an error.
28081 Use char because int might match the return type of a GCC
28082 builtin and then its argument prototype would still apply. */
28083#ifdef __cplusplus
28084extern "C"
28085#endif
28086char inflate ();
28087int
28088main ()
28089{
28090return inflate ();
28091 ;
28092 return 0;
28093}
28094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028095if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028096 ac_cv_lib_z_inflate=yes
28097else
cristy8b350f62009-11-15 23:12:43 +000028098 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028099fi
cristy8b350f62009-11-15 23:12:43 +000028100rm -f core conftest.err conftest.$ac_objext \
28101 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028102LIBS=$ac_check_lib_save_LIBS
28103fi
cristy8b350f62009-11-15 23:12:43 +000028104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028105$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028106if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028107 passed=`expr $passed + 1`
28108else
28109 failed=`expr $failed + 1`
28110fi
28111
cristy8b350f62009-11-15 23:12:43 +000028112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028113$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028114if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028115 $as_echo_n "(cached) " >&6
28116else
28117 ac_check_lib_save_LIBS=$LIBS
28118LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028120/* end confdefs.h. */
28121
28122/* Override any GCC internal prototype to avoid an error.
28123 Use char because int might match the return type of a GCC
28124 builtin and then its argument prototype would still apply. */
28125#ifdef __cplusplus
28126extern "C"
28127#endif
28128char gzseek ();
28129int
28130main ()
28131{
28132return gzseek ();
28133 ;
28134 return 0;
28135}
28136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028137if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028138 ac_cv_lib_z_gzseek=yes
28139else
cristy8b350f62009-11-15 23:12:43 +000028140 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028141fi
cristy8b350f62009-11-15 23:12:43 +000028142rm -f core conftest.err conftest.$ac_objext \
28143 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028144LIBS=$ac_check_lib_save_LIBS
28145fi
cristy8b350f62009-11-15 23:12:43 +000028146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028147$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028148if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028149 passed=`expr $passed + 1`
28150else
28151 failed=`expr $failed + 1`
28152fi
28153
cristy8b350f62009-11-15 23:12:43 +000028154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028155$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028156if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028157 $as_echo_n "(cached) " >&6
28158else
28159 ac_check_lib_save_LIBS=$LIBS
28160LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028162/* end confdefs.h. */
28163
28164/* Override any GCC internal prototype to avoid an error.
28165 Use char because int might match the return type of a GCC
28166 builtin and then its argument prototype would still apply. */
28167#ifdef __cplusplus
28168extern "C"
28169#endif
28170char gztell ();
28171int
28172main ()
28173{
28174return gztell ();
28175 ;
28176 return 0;
28177}
28178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028179if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028180 ac_cv_lib_z_gztell=yes
28181else
cristy8b350f62009-11-15 23:12:43 +000028182 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028183fi
cristy8b350f62009-11-15 23:12:43 +000028184rm -f core conftest.err conftest.$ac_objext \
28185 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028186LIBS=$ac_check_lib_save_LIBS
28187fi
cristy8b350f62009-11-15 23:12:43 +000028188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028189$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028190if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028191 passed=`expr $passed + 1`
28192else
28193 failed=`expr $failed + 1`
28194fi
28195
cristy8b350f62009-11-15 23:12:43 +000028196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028197$as_echo_n "checking if ZLIB package is complete... " >&6; }
28198 if test $passed -gt 0; then
28199 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28201$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028202 have_zlib='no (failed tests)'
28203 else
28204 ZLIB_LIBS='-lz'
28205 LIBS="$ZLIB_LIBS $LIBS"
28206
cristy8b350f62009-11-15 23:12:43 +000028207$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028208
cristyad38abe2012-12-23 23:03:21 +000028209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28210$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028211 have_zlib='yes'
28212 fi
28213 else
cristyad38abe2012-12-23 23:03:21 +000028214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28215$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028216 fi
28217fi
cristy73bd4a52010-10-05 11:24:23 +000028218 if test "$have_zlib" = 'yes'; then
28219 ZLIB_DELEGATE_TRUE=
28220 ZLIB_DELEGATE_FALSE='#'
28221else
28222 ZLIB_DELEGATE_TRUE='#'
28223 ZLIB_DELEGATE_FALSE=
28224fi
28225
cristy3ed852e2009-09-05 21:47:34 +000028226
28227
cristy5eef09f2012-10-16 12:08:28 +000028228# whether modules are built or not.
28229with_ltdl='yes'
28230have_ltdl='no'
28231LTDL_LIBS=''
28232if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28234$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28236$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28238$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028239 failed=0
28240 passed=0
28241 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28242if test "x$ac_cv_header_ltdl_h" = xyes; then :
28243 passed=`expr $passed + 1`
28244else
28245 failed=`expr $failed + 1`
28246fi
28247
28248
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28250$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28251if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28252 $as_echo_n "(cached) " >&6
28253else
28254 ac_check_lib_save_LIBS=$LIBS
28255LIBS="-lltdl $LIBS"
28256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28257/* end confdefs.h. */
28258
28259/* Override any GCC internal prototype to avoid an error.
28260 Use char because int might match the return type of a GCC
28261 builtin and then its argument prototype would still apply. */
28262#ifdef __cplusplus
28263extern "C"
28264#endif
28265char lt_dlinit ();
28266int
28267main ()
28268{
28269return lt_dlinit ();
28270 ;
28271 return 0;
28272}
28273_ACEOF
28274if ac_fn_c_try_link "$LINENO"; then :
28275 ac_cv_lib_ltdl_lt_dlinit=yes
28276else
28277 ac_cv_lib_ltdl_lt_dlinit=no
28278fi
28279rm -f core conftest.err conftest.$ac_objext \
28280 conftest$ac_exeext conftest.$ac_ext
28281LIBS=$ac_check_lib_save_LIBS
28282fi
28283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28284$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28285if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28286 passed=`expr $passed + 1`
28287else
28288 failed=`expr $failed + 1`
28289fi
28290
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28292$as_echo_n "checking if libltdl package is complete... " >&6; }
28293 if test $passed -gt 0 ; then
28294 if test $failed -gt 0 ; then
28295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28296$as_echo "no -- some components failed test" >&6; }
28297 have_ltdl='no (failed tests)'
28298 else
28299 LTDL_LIBS='-lltdl'
28300 LIBS="$LTDL_LIBS $LIBS"
28301
28302$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28303
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28305$as_echo "yes" >&6; }
28306 have_ltdl='yes'
28307 fi
28308 else
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28310$as_echo "no" >&6; }
28311 fi
cristyaf4cbf32012-10-16 23:47:41 +000028312 if test "$have_ltdl" != 'yes' ; then
28313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28315as_fn_error 1 "libltdl is required for modules build
28316See \`config.log' for more details" "$LINENO" 5; }
28317 fi
cristy5eef09f2012-10-16 12:08:28 +000028318fi
28319 if test "$have_ltdl" != 'no'; then
28320 WITH_LTDL_TRUE=
28321 WITH_LTDL_FALSE='#'
28322else
28323 WITH_LTDL_TRUE='#'
28324 WITH_LTDL_FALSE=
28325fi
28326
28327
cristy3ed852e2009-09-05 21:47:34 +000028328#
28329# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28330#
28331LIB_DL=''
28332if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028334$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028335if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028336 $as_echo_n "(cached) " >&6
28337else
28338 ac_check_lib_save_LIBS=$LIBS
28339LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028341/* end confdefs.h. */
28342
28343/* Override any GCC internal prototype to avoid an error.
28344 Use char because int might match the return type of a GCC
28345 builtin and then its argument prototype would still apply. */
28346#ifdef __cplusplus
28347extern "C"
28348#endif
28349char dlopen ();
28350int
28351main ()
28352{
28353return dlopen ();
28354 ;
28355 return 0;
28356}
28357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028358if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028359 ac_cv_lib_dl_dlopen=yes
28360else
cristy8b350f62009-11-15 23:12:43 +000028361 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028362fi
cristy8b350f62009-11-15 23:12:43 +000028363rm -f core conftest.err conftest.$ac_objext \
28364 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028365LIBS=$ac_check_lib_save_LIBS
28366fi
cristy8b350f62009-11-15 23:12:43 +000028367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028368$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028369if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028370 LIB_DL='-ldl'
28371fi
28372
28373 LIBS="$LIB_DL $LIBS"
28374fi
28375
28376
28377
28378#
28379# Check for Autotrace delegate library.
28380#
28381
28382# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028383if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028384 withval=$with_autotrace; with_autotrace=$withval
28385else
28386 with_autotrace='no'
28387fi
28388
28389
28390if test "$with_autotrace" != 'yes'; then
28391 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28392fi
28393
28394have_autotrace='no'
28395AUTOTRACE_CFLAGS=""
28396AUTOTRACE_LIBS=""
28397AUTOTRACE_PKG=""
28398if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28400$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028401
28402pkg_failed=no
28403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28404$as_echo_n "checking for AUTOTRACE... " >&6; }
28405
28406if test -n "$AUTOTRACE_CFLAGS"; then
28407 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28408 elif test -n "$PKG_CONFIG"; then
28409 if test -n "$PKG_CONFIG" && \
28410 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28411 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28412 ac_status=$?
28413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28414 test $ac_status = 0; }; then
28415 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28416else
28417 pkg_failed=yes
28418fi
28419 else
28420 pkg_failed=untried
28421fi
28422if test -n "$AUTOTRACE_LIBS"; then
28423 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28424 elif test -n "$PKG_CONFIG"; then
28425 if test -n "$PKG_CONFIG" && \
28426 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28427 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28428 ac_status=$?
28429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28430 test $ac_status = 0; }; then
28431 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28432else
28433 pkg_failed=yes
28434fi
28435 else
28436 pkg_failed=untried
28437fi
28438
28439
28440
28441if test $pkg_failed = yes; then
28442
28443if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28444 _pkg_short_errors_supported=yes
28445else
28446 _pkg_short_errors_supported=no
28447fi
28448 if test $_pkg_short_errors_supported = yes; then
28449 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28450 else
28451 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28452 fi
28453 # Put the nasty error message in config.log where it belongs
28454 echo "$AUTOTRACE_PKG_ERRORS" >&5
28455
28456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28457$as_echo "no" >&6; }
28458 have_autotrace=no
28459elif test $pkg_failed = untried; then
28460 have_autotrace=no
28461else
28462 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28463 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28465$as_echo "yes" >&6; }
28466 have_autotrace=yes
28467fi
cristyad38abe2012-12-23 23:03:21 +000028468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28469$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028470fi
28471
28472if test "$have_autotrace" = 'yes'; then
28473 failed=0
28474
cristy8b350f62009-11-15 23:12:43 +000028475$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028476
cristyc6722092012-10-14 00:19:31 +000028477 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028478 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028479 fi
28480fi
28481
cristy73bd4a52010-10-05 11:24:23 +000028482 if test "$have_autotrace" = 'yes'; then
28483 AUTOTRACE_DELEGATE_TRUE=
28484 AUTOTRACE_DELEGATE_FALSE='#'
28485else
28486 AUTOTRACE_DELEGATE_TRUE='#'
28487 AUTOTRACE_DELEGATE_FALSE=
28488fi
28489
cristy3ed852e2009-09-05 21:47:34 +000028490
28491
28492
28493
28494#
28495# Check for Display Postscript delegate library.
28496#
28497
28498# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028499if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028500 withval=$with_dps; with_dps=$withval
28501else
28502 with_dps='yes'
28503fi
28504
28505
28506if test "$with_dps" != 'yes'; then
28507 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28508fi
28509
28510have_dps='no'
28511DPS_LIBS=''
28512if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28514$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028516$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28518$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028519 failed=0
28520 passed=0
28521 PERSIST_CPPFLAGS="$CPPFLAGS"
28522 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028523 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 +000028524if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028525 passed=`expr $passed + 1`
28526else
28527 failed=`expr $failed + 1`
28528fi
28529
28530
28531 # DPS issues:
28532 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28533 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28534 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28535 # ImageMagick itself doesn't use -lXt.
28536 have_libdps='no'
28537 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028539$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028540if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028541 $as_echo_n "(cached) " >&6
28542else
28543 ac_check_lib_save_LIBS=$LIBS
28544LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028546/* end confdefs.h. */
28547
28548/* Override any GCC internal prototype to avoid an error.
28549 Use char because int might match the return type of a GCC
28550 builtin and then its argument prototype would still apply. */
28551#ifdef __cplusplus
28552extern "C"
28553#endif
28554char DPSInitialize ();
28555int
28556main ()
28557{
28558return DPSInitialize ();
28559 ;
28560 return 0;
28561}
28562_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028563if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028564 ac_cv_lib_dps_DPSInitialize=yes
28565else
cristy8b350f62009-11-15 23:12:43 +000028566 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028567fi
cristy8b350f62009-11-15 23:12:43 +000028568rm -f core conftest.err conftest.$ac_objext \
28569 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028570LIBS=$ac_check_lib_save_LIBS
28571fi
cristy8b350f62009-11-15 23:12:43 +000028572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028573$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028574if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028575 have_libdps='yes'
28576else
28577 have_libdps='no'
28578fi
28579
28580 if test "$have_libdps" != 'yes'; then
28581 # Unset cache variable so we can try again.
28582 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028584$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028585if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028586 $as_echo_n "(cached) " >&6
28587else
28588 ac_check_lib_save_LIBS=$LIBS
28589LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028591/* end confdefs.h. */
28592
28593/* Override any GCC internal prototype to avoid an error.
28594 Use char because int might match the return type of a GCC
28595 builtin and then its argument prototype would still apply. */
28596#ifdef __cplusplus
28597extern "C"
28598#endif
28599char DPSInitialize ();
28600int
28601main ()
28602{
28603return DPSInitialize ();
28604 ;
28605 return 0;
28606}
28607_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028608if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028609 ac_cv_lib_dps_DPSInitialize=yes
28610else
cristy8b350f62009-11-15 23:12:43 +000028611 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028612fi
cristy8b350f62009-11-15 23:12:43 +000028613rm -f core conftest.err conftest.$ac_objext \
28614 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028615LIBS=$ac_check_lib_save_LIBS
28616fi
cristy8b350f62009-11-15 23:12:43 +000028617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028618$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028619if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028620 have_libdps='yes'
28621else
28622 have_libdps='no'
28623fi
28624
28625 if test "$have_libdps" = 'yes'; then
28626 LIBDPS_XT='-lXt'
28627 fi
28628 fi
28629 if test "$have_libdps" = 'yes'; then
28630 passed=`expr $passed + 1`
28631 else
28632 failed=`expr $failed + 1`
28633 fi
cristy8b350f62009-11-15 23:12:43 +000028634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028635$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028636if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028637 $as_echo_n "(cached) " >&6
28638else
28639 ac_check_lib_save_LIBS=$LIBS
28640LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028642/* end confdefs.h. */
28643
28644/* Override any GCC internal prototype to avoid an error.
28645 Use char because int might match the return type of a GCC
28646 builtin and then its argument prototype would still apply. */
28647#ifdef __cplusplus
28648extern "C"
28649#endif
28650char XDPSPixelsPerPoint ();
28651int
28652main ()
28653{
28654return XDPSPixelsPerPoint ();
28655 ;
28656 return 0;
28657}
28658_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028659if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028660 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28661else
cristy8b350f62009-11-15 23:12:43 +000028662 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028663fi
cristy8b350f62009-11-15 23:12:43 +000028664rm -f core conftest.err conftest.$ac_objext \
28665 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028666LIBS=$ac_check_lib_save_LIBS
28667fi
cristy8b350f62009-11-15 23:12:43 +000028668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028669$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028670if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028671 passed=`expr $passed + 1`
28672else
28673 failed=`expr $failed + 1`
28674fi
28675
cristy8b350f62009-11-15 23:12:43 +000028676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028677$as_echo_n "checking if DPS package is complete... " >&6; }
28678 if test $passed -gt 0; then
28679 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28681$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028682 have_dps='no (failed tests)'
28683 CPPFLAGS="$PERSIST_CPPFLAGS"
28684 else
28685 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28686 LIBS="$DPS_LIBS $LIBS"
28687
cristy8b350f62009-11-15 23:12:43 +000028688$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028689
cristyad38abe2012-12-23 23:03:21 +000028690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28691$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028692 have_dps='yes'
28693 fi
28694 else
cristyad38abe2012-12-23 23:03:21 +000028695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28696$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028697 CPPFLAGS=$PERSIST_CPPFLAGS
28698 fi
28699fi
cristy73bd4a52010-10-05 11:24:23 +000028700 if test "$have_dps" = 'yes'; then
28701 DPS_DELEGATE_TRUE=
28702 DPS_DELEGATE_FALSE='#'
28703else
28704 DPS_DELEGATE_TRUE='#'
28705 DPS_DELEGATE_FALSE=
28706fi
28707
cristy3ed852e2009-09-05 21:47:34 +000028708
28709
28710
28711#
28712# Check for DJVU delegate library.
28713#
28714
28715# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028716if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028717 withval=$with_djvu; with_djvu=$withval
28718else
28719 with_djvu='yes'
28720fi
28721
28722
28723if test "$with_djvu" != 'yes'; then
28724 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28725fi
28726
28727have_djvu='no'
28728DJVU_LIBS=''
28729if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28731$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028733$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28735$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028736 failed=0
28737 passed=0
cristy8b350f62009-11-15 23:12:43 +000028738 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 +000028739if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028740 passed=`expr $passed + 1`
28741else
28742 failed=`expr $failed + 1`
28743fi
28744
28745
cristy8b350f62009-11-15 23:12:43 +000028746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028747$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028748if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028749 $as_echo_n "(cached) " >&6
28750else
28751 ac_check_lib_save_LIBS=$LIBS
28752LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028754/* end confdefs.h. */
28755
28756/* Override any GCC internal prototype to avoid an error.
28757 Use char because int might match the return type of a GCC
28758 builtin and then its argument prototype would still apply. */
28759#ifdef __cplusplus
28760extern "C"
28761#endif
28762char ddjvu_context_create ();
28763int
28764main ()
28765{
28766return ddjvu_context_create ();
28767 ;
28768 return 0;
28769}
28770_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028771if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028772 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28773else
cristy8b350f62009-11-15 23:12:43 +000028774 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028775fi
cristy8b350f62009-11-15 23:12:43 +000028776rm -f core conftest.err conftest.$ac_objext \
28777 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028778LIBS=$ac_check_lib_save_LIBS
28779fi
cristy8b350f62009-11-15 23:12:43 +000028780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028781$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028782if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028783 passed=`expr $passed + 1`
28784else
28785 failed=`expr $failed + 1`
28786fi
28787
cristy8b350f62009-11-15 23:12:43 +000028788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028789$as_echo_n "checking if DJVU package is complete... " >&6; }
28790 if test $passed -gt 0; then
28791 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28793$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028794 have_djvu='no (failed tests)'
28795 else
28796 DJVU_LIBS='-ldjvulibre'
28797 LIBS="$DJVU_LIBS $LIBS"
28798
cristy8b350f62009-11-15 23:12:43 +000028799$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028800
cristyad38abe2012-12-23 23:03:21 +000028801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28802$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028803 have_djvu='yes'
28804 fi
28805 else
cristyad38abe2012-12-23 23:03:21 +000028806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28807$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028808 fi
28809fi
cristy73bd4a52010-10-05 11:24:23 +000028810 if test "$have_djvu" = 'yes'; then
28811 DJVU_DELEGATE_TRUE=
28812 DJVU_DELEGATE_FALSE='#'
28813else
28814 DJVU_DELEGATE_TRUE='#'
28815 DJVU_DELEGATE_FALSE=
28816fi
28817
cristy3ed852e2009-09-05 21:47:34 +000028818
28819
28820
28821#
cristy430a7312010-01-21 20:44:04 +000028822# Set DejaVu font directory.
28823#
28824
28825# Check whether --with-dejavu-font-dir was given.
28826if test "${with_dejavu_font_dir+set}" = set; then :
28827 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28828else
28829 with_dejavu_font_dir='default'
28830fi
28831
28832
28833if test "$with_dejavu_font_dir" != 'default'; then
28834 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28835fi
28836
28837
28838#
cristy3ed852e2009-09-05 21:47:34 +000028839# Check for FFTW delegate library.
28840#
28841
28842# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028843if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028844 withval=$with_fftw; with_fftw=$withval
28845else
28846 with_fftw='yes'
28847fi
28848
28849
28850if test "$with_fftw" != 'yes'; then
28851 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28852fi
28853
cristy81beccd2011-10-03 18:17:24 +000028854have_fftw='no'
28855FFTW_LIBS=''
28856if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28858$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28860$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28862$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028863 failed=0
28864 passed=0
28865 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28866if test "x$ac_cv_header_fftw3_h" = xyes; then :
28867 passed=`expr $passed + 1`
28868else
28869 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028870fi
28871
cristy81beccd2011-10-03 18:17:24 +000028872
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28874$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28875if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28876 $as_echo_n "(cached) " >&6
28877else
28878 ac_check_lib_save_LIBS=$LIBS
28879LIBS="-lfftw3 $LIBS"
28880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28881/* end confdefs.h. */
28882
28883/* Override any GCC internal prototype to avoid an error.
28884 Use char because int might match the return type of a GCC
28885 builtin and then its argument prototype would still apply. */
28886#ifdef __cplusplus
28887extern "C"
28888#endif
28889char fftw_execute ();
28890int
28891main ()
28892{
28893return fftw_execute ();
28894 ;
28895 return 0;
28896}
28897_ACEOF
28898if ac_fn_c_try_link "$LINENO"; then :
28899 ac_cv_lib_fftw3_fftw_execute=yes
28900else
28901 ac_cv_lib_fftw3_fftw_execute=no
28902fi
28903rm -f core conftest.err conftest.$ac_objext \
28904 conftest$ac_exeext conftest.$ac_ext
28905LIBS=$ac_check_lib_save_LIBS
28906fi
28907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28908$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28909if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28910 passed=`expr $passed + 1`
28911else
28912 failed=`expr $failed + 1`
28913fi
28914
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28916$as_echo_n "checking if FFTW package is complete... " >&6; }
28917 if test $passed -gt 0; then
28918 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28920$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028921 have_fftw='no (failed tests)'
28922 else
28923 FFTW_LIBS='-lfftw3'
28924 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028925
cristy8b350f62009-11-15 23:12:43 +000028926$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028927
cristyad38abe2012-12-23 23:03:21 +000028928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28929$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028930 have_fftw='yes'
28931 fi
28932 else
cristyad38abe2012-12-23 23:03:21 +000028933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28934$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028935 fi
28936fi
cristy73bd4a52010-10-05 11:24:23 +000028937 if test "$have_fftw" = 'yes'; then
28938 FFTW_DELEGATE_TRUE=
28939 FFTW_DELEGATE_FALSE='#'
28940else
28941 FFTW_DELEGATE_TRUE='#'
28942 FFTW_DELEGATE_FALSE=
28943fi
28944
cristy3ed852e2009-09-05 21:47:34 +000028945
28946
28947
28948#
28949# Check for FlashPIX delegate library.
28950#
28951
28952# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028953if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028954 withval=$with_fpx; with_fpx=$withval
28955else
28956 with_fpx='yes'
28957fi
28958
28959
28960if test "$with_fpx" != 'yes'; then
28961 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28962fi
28963
28964have_fpx='no'
28965FPX_LIBS=''
28966if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28968$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028970$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28972$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028973 failed=0
28974 passed=0
28975 ac_ext=cpp
28976ac_cpp='$CXXCPP $CPPFLAGS'
28977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28980
28981
cristy8b350f62009-11-15 23:12:43 +000028982ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028983if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028984 passed=`expr $passed + 1`
28985else
28986 failed=`expr $failed + 1`
28987fi
28988
28989
cristy8b350f62009-11-15 23:12:43 +000028990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028991$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028992if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028993 $as_echo_n "(cached) " >&6
28994else
28995 ac_check_lib_save_LIBS=$LIBS
28996LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028998/* end confdefs.h. */
28999
29000/* Override any GCC internal prototype to avoid an error.
29001 Use char because int might match the return type of a GCC
29002 builtin and then its argument prototype would still apply. */
29003#ifdef __cplusplus
29004extern "C"
29005#endif
29006char FPX_OpenImageByFilename ();
29007int
29008main ()
29009{
29010return FPX_OpenImageByFilename ();
29011 ;
29012 return 0;
29013}
29014_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029015if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029016 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29017else
cristy8b350f62009-11-15 23:12:43 +000029018 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029019fi
cristy8b350f62009-11-15 23:12:43 +000029020rm -f core conftest.err conftest.$ac_objext \
29021 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029022LIBS=$ac_check_lib_save_LIBS
29023fi
cristy8b350f62009-11-15 23:12:43 +000029024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029025$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029026if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029027 passed=`expr $passed + 1`
29028else
29029 failed=`expr $failed + 1`
29030fi
29031
29032 ac_ext=c
29033ac_cpp='$CPP $CPPFLAGS'
29034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29036ac_compiler_gnu=$ac_cv_c_compiler_gnu
29037
cristy8b350f62009-11-15 23:12:43 +000029038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029039$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29040 if test $passed -gt 0; then
29041 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29043$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029044 have_fpx='no (failed tests)'
29045 else
29046 FPX_LIBS='-lfpx'
29047
cristy8b350f62009-11-15 23:12:43 +000029048$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029049
cristyad38abe2012-12-23 23:03:21 +000029050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29051$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029052 have_fpx='yes'
29053 PERLMAINCC="$CXX"
29054 fi
29055 else
cristyad38abe2012-12-23 23:03:21 +000029056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29057$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029058 fi
29059fi
cristy73bd4a52010-10-05 11:24:23 +000029060 if test "$have_fpx" = 'yes'; then
29061 FPX_DELEGATE_TRUE=
29062 FPX_DELEGATE_FALSE='#'
29063else
29064 FPX_DELEGATE_TRUE='#'
29065 FPX_DELEGATE_FALSE=
29066fi
29067
cristy3ed852e2009-09-05 21:47:34 +000029068
29069
29070
29071#
29072# Check for fontconfig delegate library.
29073#
29074
29075# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029076if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029077 withval=$with_fontconfig; with_fontconfig=$withval
29078else
cristyfc3d0222012-02-07 15:05:57 +000029079 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029080fi
29081
29082
29083if test "$with_fontconfig" != 'yes'; then
29084 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29085fi
29086
29087have_fontconfig='no'
29088FONTCONFIG_CFLAGS=""
29089FONTCONFIG_LIBS=""
29090FONTCONFIG_PKG=""
29091if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29093$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029094
29095pkg_failed=no
29096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29097$as_echo_n "checking for FONTCONFIG... " >&6; }
29098
29099if test -n "$FONTCONFIG_CFLAGS"; then
29100 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29101 elif test -n "$PKG_CONFIG"; then
29102 if test -n "$PKG_CONFIG" && \
29103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29104 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29105 ac_status=$?
29106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29107 test $ac_status = 0; }; then
29108 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29109else
29110 pkg_failed=yes
29111fi
29112 else
29113 pkg_failed=untried
29114fi
29115if test -n "$FONTCONFIG_LIBS"; then
29116 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29117 elif test -n "$PKG_CONFIG"; then
29118 if test -n "$PKG_CONFIG" && \
29119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29120 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29121 ac_status=$?
29122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29123 test $ac_status = 0; }; then
29124 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29125else
29126 pkg_failed=yes
29127fi
29128 else
29129 pkg_failed=untried
29130fi
29131
29132
29133
29134if test $pkg_failed = yes; then
29135
29136if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29137 _pkg_short_errors_supported=yes
29138else
29139 _pkg_short_errors_supported=no
29140fi
29141 if test $_pkg_short_errors_supported = yes; then
29142 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29143 else
29144 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29145 fi
29146 # Put the nasty error message in config.log where it belongs
29147 echo "$FONTCONFIG_PKG_ERRORS" >&5
29148
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29150$as_echo "no" >&6; }
29151 have_fontconfig=no
29152elif test $pkg_failed = untried; then
29153 have_fontconfig=no
29154else
29155 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29156 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29158$as_echo "yes" >&6; }
29159 have_fontconfig=yes
29160fi
cristyad38abe2012-12-23 23:03:21 +000029161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29162$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029163fi
29164
29165if test "$have_fontconfig" = 'yes'; then
29166
cristy8b350f62009-11-15 23:12:43 +000029167$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029168
cristyc6722092012-10-14 00:19:31 +000029169 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029170 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029171 fi
cristy3ed852e2009-09-05 21:47:34 +000029172fi
29173
cristy73bd4a52010-10-05 11:24:23 +000029174 if test "$have_fontconfig" = 'yes'; then
29175 FONTCONFIG_DELEGATE_TRUE=
29176 FONTCONFIG_DELEGATE_FALSE='#'
29177else
29178 FONTCONFIG_DELEGATE_TRUE='#'
29179 FONTCONFIG_DELEGATE_FALSE=
29180fi
29181
cristy3ed852e2009-09-05 21:47:34 +000029182
29183
29184
29185
29186#
cristy03f187e2013-01-24 00:22:19 +000029187# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029188#
29189
29190# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029191if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029192 withval=$with_freetype; with_freetype=$withval
29193else
29194 with_freetype='yes'
29195fi
29196
29197
cristy3ed852e2009-09-05 21:47:34 +000029198if test "$with_freetype" != 'yes'; then
29199 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29200fi
29201
cristy81beccd2011-10-03 18:17:24 +000029202have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029203FREETYPE_CFLAGS=""
29204FREETYPE_LIBS=""
29205FREETYPE_PKG=""
29206if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29208$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029209
29210pkg_failed=no
29211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29212$as_echo_n "checking for FREETYPE... " >&6; }
29213
29214if test -n "$FREETYPE_CFLAGS"; then
29215 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29216 elif test -n "$PKG_CONFIG"; then
29217 if test -n "$PKG_CONFIG" && \
29218 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29219 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29220 ac_status=$?
29221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29222 test $ac_status = 0; }; then
29223 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29224else
29225 pkg_failed=yes
29226fi
29227 else
29228 pkg_failed=untried
29229fi
29230if test -n "$FREETYPE_LIBS"; then
29231 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29232 elif test -n "$PKG_CONFIG"; then
29233 if test -n "$PKG_CONFIG" && \
29234 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29235 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29236 ac_status=$?
29237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29238 test $ac_status = 0; }; then
29239 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29240else
29241 pkg_failed=yes
29242fi
29243 else
29244 pkg_failed=untried
29245fi
29246
29247
29248
29249if test $pkg_failed = yes; then
29250
29251if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29252 _pkg_short_errors_supported=yes
29253else
29254 _pkg_short_errors_supported=no
29255fi
29256 if test $_pkg_short_errors_supported = yes; then
29257 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29258 else
29259 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29260 fi
29261 # Put the nasty error message in config.log where it belongs
29262 echo "$FREETYPE_PKG_ERRORS" >&5
29263
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29265$as_echo "no" >&6; }
29266 have_freetype=no
29267elif test $pkg_failed = untried; then
29268 have_freetype=no
29269else
29270 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29271 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29273$as_echo "yes" >&6; }
29274 have_freetype=yes
29275fi
cristyad38abe2012-12-23 23:03:21 +000029276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29277$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029278fi
29279
cristy03f187e2013-01-24 00:22:19 +000029280if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029281
cristy8b350f62009-11-15 23:12:43 +000029282$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029283
cristy03f187e2013-01-24 00:22:19 +000029284 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029285fi
cristy03f187e2013-01-24 00:22:19 +000029286
cristy73bd4a52010-10-05 11:24:23 +000029287 if test "$have_freetype" = 'yes'; then
29288 FREETYPE_DELEGATE_TRUE=
29289 FREETYPE_DELEGATE_FALSE='#'
29290else
29291 FREETYPE_DELEGATE_TRUE='#'
29292 FREETYPE_DELEGATE_FALSE=
29293fi
29294
cristy3ed852e2009-09-05 21:47:34 +000029295
29296
29297
cristy03f187e2013-01-24 00:22:19 +000029298
cristy3ed852e2009-09-05 21:47:34 +000029299#
29300# Check for Ghostscript library or framework.
29301#
29302# Test for iapi.h & test for gsapi_new_instance in -lgs
29303# or -framework Ghostscript
29304
29305
29306# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029307if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029308 withval=$with_gslib; with_gslib=$withval
29309else
29310 with_gslib='no'
29311fi
29312
29313
cristyb7931f12009-09-25 10:22:21 +000029314gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029315if test "$with_gslib" != 'yes'; then
29316 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29317fi
29318
29319have_gslib='no'
29320GS_LIBS=''
29321if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29323$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029325$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29327$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029328 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029329 failed=0
29330 passed=0
cristy8b350f62009-11-15 23:12:43 +000029331 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 +000029332if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029333 passed=`expr $passed + 1`
29334else
29335 failed=`expr $failed + 1`
29336fi
29337
29338
cristy8b350f62009-11-15 23:12:43 +000029339 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 +000029340if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029341 passed=`expr $passed + 1`
29342else
29343 failed=`expr $failed + 1`
29344fi
29345
29346
cristy73bd4a52010-10-05 11:24:23 +000029347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29348$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029349if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029350 $as_echo_n "(cached) " >&6
29351else
29352 ac_check_framework_save_LIBS=$LIBS
29353LIBS="-framework Ghostscript $LIBS"
29354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29355/* end confdefs.h. */
29356
29357/* Override any GCC internal prototype to avoid an error.
29358 Use char because int might match the return type of a GCC
29359 builtin and then its argument prototype would still apply. */
29360#ifdef __cplusplus
29361extern "C"
29362#endif
29363char gsapi_new_instance ();
29364int
29365main ()
29366{
29367return gsapi_new_instance ();
29368 ;
29369 return 0;
29370}
29371_ACEOF
29372if ac_fn_c_try_link "$LINENO"; then :
29373 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29374else
29375 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29376fi
29377rm -f core conftest.err conftest.$ac_objext \
29378 conftest$ac_exeext conftest.$ac_ext
29379LIBS=$ac_check_framework_save_LIBS
29380fi
29381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29382$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29383if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29384 framework=`expr $framework + 1`
29385else
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029387$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029388if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029389 $as_echo_n "(cached) " >&6
29390else
29391 ac_check_lib_save_LIBS=$LIBS
29392LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029394/* end confdefs.h. */
29395
29396/* Override any GCC internal prototype to avoid an error.
29397 Use char because int might match the return type of a GCC
29398 builtin and then its argument prototype would still apply. */
29399#ifdef __cplusplus
29400extern "C"
29401#endif
29402char gsapi_new_instance ();
29403int
29404main ()
29405{
29406return gsapi_new_instance ();
29407 ;
29408 return 0;
29409}
29410_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029411if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029412 ac_cv_lib_gs_gsapi_new_instance=yes
29413else
cristy8b350f62009-11-15 23:12:43 +000029414 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029415fi
cristy8b350f62009-11-15 23:12:43 +000029416rm -f core conftest.err conftest.$ac_objext \
29417 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029418LIBS=$ac_check_lib_save_LIBS
29419fi
cristy8b350f62009-11-15 23:12:43 +000029420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029421$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029422if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029423 passed=`expr $passed + 1`
29424else
29425 failed=`expr $failed + 1`
29426fi
cristy73bd4a52010-10-05 11:24:23 +000029427
29428fi
cristy8b350f62009-11-15 23:12:43 +000029429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029430$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29431 if test $passed -gt 0; then
29432 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29434$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029435 have_gslib='no (failed tests)'
29436 else
29437 if test $framework -gt 0; then
29438 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029439 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29441$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029442 else
cristyad38abe2012-12-23 23:03:21 +000029443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29444$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029445 GS_LIBS='-lgs'
29446 fi
29447 LIBS="$GS_LIBS $LIBS"
29448
cristy8b350f62009-11-15 23:12:43 +000029449$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029450
29451 have_gslib='yes'
29452 fi
29453 else
cristyad38abe2012-12-23 23:03:21 +000029454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29455$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029456 fi
29457fi
cristy73bd4a52010-10-05 11:24:23 +000029458 if test "$have_gslib" = 'yes'; then
29459 GS_DELEGATE_TRUE=
29460 GS_DELEGATE_FALSE='#'
29461else
29462 GS_DELEGATE_TRUE='#'
29463 GS_DELEGATE_FALSE=
29464fi
29465
cristy3ed852e2009-09-05 21:47:34 +000029466
29467
29468# Set default font search path
29469
29470# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029471if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029472 withval=$with_fontpath; with_fontpath=$withval
29473else
29474 with_fontpath=''
29475fi
29476
29477
29478if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29479 with_fontpath=''
29480else
29481
29482cat >>confdefs.h <<_ACEOF
29483#define MAGICK_FONT_PATH "$with_fontpath"
29484_ACEOF
29485
29486fi
29487if test "$with_fontpath=" != ''; then
29488 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29489fi
29490
29491# Set Ghostscript font directory
29492
29493# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029494if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029495 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29496else
29497 with_gs_font_dir='default'
29498fi
29499
29500
29501if test "$with_gs_font_dir" != 'default'; then
29502 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29503fi
29504
29505
29506#
29507# Check for GVC delegate library.
29508#
29509
29510# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029511if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029512 withval=$with_gvc; with_gvc=$withval
29513else
cristy1b70dc82012-07-01 23:15:05 +000029514 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029515fi
29516
29517
29518if test "$with_gvc" != 'yes'; then
29519 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29520fi
29521
29522GVC_PKG=""
29523if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29525$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029526
29527pkg_failed=no
29528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29529$as_echo_n "checking for GVC... " >&6; }
29530
29531if test -n "$GVC_CFLAGS"; then
29532 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29533 elif test -n "$PKG_CONFIG"; then
29534 if test -n "$PKG_CONFIG" && \
29535 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29536 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29537 ac_status=$?
29538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29539 test $ac_status = 0; }; then
29540 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29541else
29542 pkg_failed=yes
29543fi
29544 else
29545 pkg_failed=untried
29546fi
29547if test -n "$GVC_LIBS"; then
29548 pkg_cv_GVC_LIBS="$GVC_LIBS"
29549 elif test -n "$PKG_CONFIG"; then
29550 if test -n "$PKG_CONFIG" && \
29551 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29552 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29553 ac_status=$?
29554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29555 test $ac_status = 0; }; then
29556 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29557else
29558 pkg_failed=yes
29559fi
29560 else
29561 pkg_failed=untried
29562fi
29563
29564
29565
29566if test $pkg_failed = yes; then
29567
29568if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29569 _pkg_short_errors_supported=yes
29570else
29571 _pkg_short_errors_supported=no
29572fi
29573 if test $_pkg_short_errors_supported = yes; then
29574 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29575 else
29576 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29577 fi
29578 # Put the nasty error message in config.log where it belongs
29579 echo "$GVC_PKG_ERRORS" >&5
29580
29581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29582$as_echo "no" >&6; }
29583 have_gvc=no
29584elif test $pkg_failed = untried; then
29585 have_gvc=no
29586else
29587 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29588 GVC_LIBS=$pkg_cv_GVC_LIBS
29589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29590$as_echo "yes" >&6; }
29591 have_gvc=yes
29592fi
cristyad38abe2012-12-23 23:03:21 +000029593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29594$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029595fi
29596
29597if test "$have_gvc" = 'yes'; then
29598
cristy8b350f62009-11-15 23:12:43 +000029599$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029600
cristyc6722092012-10-14 00:19:31 +000029601 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029602 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29603 fi
29604fi
29605
cristy73bd4a52010-10-05 11:24:23 +000029606 if test "$have_gvc" = 'yes'; then
29607 GVC_DELEGATE_TRUE=
29608 GVC_DELEGATE_FALSE='#'
29609else
29610 GVC_DELEGATE_TRUE='#'
29611 GVC_DELEGATE_FALSE=
29612fi
29613
cristy3ed852e2009-09-05 21:47:34 +000029614
29615
29616
29617
29618#
29619# Check for JBIG delegate library.
29620#
29621
29622
29623# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029624if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029625 withval=$with_jbig; with_jbig=$withval
29626else
29627 with_jbig='yes'
29628fi
29629
29630
29631have_jbig='no'
29632JBIG_LIBS=''
29633if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29635$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029637$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29639$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029640 failed=0
29641 passed=0
cristy8b350f62009-11-15 23:12:43 +000029642 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029643if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029644 passed=`expr $passed + 1`
29645else
29646 failed=`expr $failed + 1`
29647fi
29648
29649
cristy8b350f62009-11-15 23:12:43 +000029650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029651$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029652if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029653 $as_echo_n "(cached) " >&6
29654else
29655 ac_check_lib_save_LIBS=$LIBS
29656LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029658/* end confdefs.h. */
29659
29660/* Override any GCC internal prototype to avoid an error.
29661 Use char because int might match the return type of a GCC
29662 builtin and then its argument prototype would still apply. */
29663#ifdef __cplusplus
29664extern "C"
29665#endif
29666char jbg_dec_init ();
29667int
29668main ()
29669{
29670return jbg_dec_init ();
29671 ;
29672 return 0;
29673}
29674_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029675if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029676 ac_cv_lib_jbig_jbg_dec_init=yes
29677else
cristy8b350f62009-11-15 23:12:43 +000029678 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029679fi
cristy8b350f62009-11-15 23:12:43 +000029680rm -f core conftest.err conftest.$ac_objext \
29681 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029682LIBS=$ac_check_lib_save_LIBS
29683fi
cristy8b350f62009-11-15 23:12:43 +000029684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029685$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029686if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029687 passed=`expr $passed + 1`
29688else
29689 failed=`expr $failed + 1`
29690fi
29691
cristy8b350f62009-11-15 23:12:43 +000029692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029693$as_echo_n "checking if JBIG package is complete... " >&6; }
29694 if test $passed -gt 0; then
29695 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29697$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029698 have_jbig='no (failed tests)'
29699 else
29700 JBIG_LIBS='-ljbig'
29701 LIBS="$JBIG_LIBS $LIBS"
29702
cristy8b350f62009-11-15 23:12:43 +000029703$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029704
cristyad38abe2012-12-23 23:03:21 +000029705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29706$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029707 have_jbig='yes'
29708 fi
29709 else
cristyad38abe2012-12-23 23:03:21 +000029710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29711$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029712 fi
29713fi
cristy73bd4a52010-10-05 11:24:23 +000029714 if test "$have_jbig" = 'yes'; then
29715 JBIG_DELEGATE_TRUE=
29716 JBIG_DELEGATE_FALSE='#'
29717else
29718 JBIG_DELEGATE_TRUE='#'
29719 JBIG_DELEGATE_FALSE=
29720fi
29721
cristy3ed852e2009-09-05 21:47:34 +000029722
29723
29724
29725#
29726# Check for JPEG delegate library.
29727#
29728
29729# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029730if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029731 withval=$with_jpeg; with_jpeg=$withval
29732else
29733 with_jpeg='yes'
29734fi
29735
29736
29737if test "$with_jpeg" != 'yes'; then
29738 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29739fi
29740
29741have_jpeg='no'
29742JPEG_LIBS=''
29743if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29745$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029747$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29749$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029750 failed=0
29751 passed=0
cristy8b350f62009-11-15 23:12:43 +000029752 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029753if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029754 passed=`expr $passed + 1`
29755else
29756 failed=`expr $failed + 1`
29757fi
29758
29759
cristy8b350f62009-11-15 23:12:43 +000029760 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029761if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029762 passed=`expr $passed + 1`
29763else
29764 failed=`expr $failed + 1`
29765fi
29766
29767
cristy8b350f62009-11-15 23:12:43 +000029768 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029769if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029770 passed=`expr $passed + 1`
29771else
29772 failed=`expr $failed + 1`
29773fi
29774
29775
cristy8b350f62009-11-15 23:12:43 +000029776 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029777if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029778 passed=`expr $passed + 1`
29779else
29780 failed=`expr $failed + 1`
29781fi
29782
29783
cristy8b350f62009-11-15 23:12:43 +000029784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029785$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029786if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029787 $as_echo_n "(cached) " >&6
29788else
29789 ac_check_lib_save_LIBS=$LIBS
29790LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029792/* end confdefs.h. */
29793
29794/* Override any GCC internal prototype to avoid an error.
29795 Use char because int might match the return type of a GCC
29796 builtin and then its argument prototype would still apply. */
29797#ifdef __cplusplus
29798extern "C"
29799#endif
29800char jpeg_read_header ();
29801int
29802main ()
29803{
29804return jpeg_read_header ();
29805 ;
29806 return 0;
29807}
29808_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029809if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029810 ac_cv_lib_jpeg_jpeg_read_header=yes
29811else
cristy8b350f62009-11-15 23:12:43 +000029812 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029813fi
cristy8b350f62009-11-15 23:12:43 +000029814rm -f core conftest.err conftest.$ac_objext \
29815 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029816LIBS=$ac_check_lib_save_LIBS
29817fi
cristy8b350f62009-11-15 23:12:43 +000029818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029819$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029820if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029821 passed=`expr $passed + 1`
29822else
29823 failed=`expr $failed + 1`
29824fi
29825
29826
29827# Test for compatible JPEG library
29828if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029830$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029831if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029832 $as_echo_n "(cached) " >&6
29833else
cristy8b350f62009-11-15 23:12:43 +000029834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029835/* end confdefs.h. */
29836#include <stdio.h>
29837#include <stdlib.h>
29838#include <jpeglib.h>
29839
29840int
29841main ()
29842{
29843
29844#if JPEG_LIB_VERSION < 62
29845#error IJG JPEG library must be version 6b or newer!
29846#endif
29847return 0;
29848
29849 ;
29850 return 0;
29851}
29852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029853if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029854 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29855else
cristy8b350f62009-11-15 23:12:43 +000029856 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029857fi
cristy3ed852e2009-09-05 21:47:34 +000029858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29859fi
cristy8b350f62009-11-15 23:12:43 +000029860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029861$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29862fi
cristy8b350f62009-11-15 23:12:43 +000029863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029864$as_echo_n "checking if JPEG package is complete... " >&6; }
29865 if test $passed -gt 0; then
29866 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29868$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029869 have_jpeg='no (failed tests)'
29870 else
29871 JPEG_LIBS='-ljpeg'
29872 LIBS="$JPEG_LIBS $LIBS"
29873
cristy8b350f62009-11-15 23:12:43 +000029874$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029875
cristyad38abe2012-12-23 23:03:21 +000029876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29877$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029878 have_jpeg='yes'
29879 fi
29880 else
cristyad38abe2012-12-23 23:03:21 +000029881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29882$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029883 fi
29884fi
cristy73bd4a52010-10-05 11:24:23 +000029885 if test "$have_jpeg" = 'yes'; then
29886 JPEG_DELEGATE_TRUE=
29887 JPEG_DELEGATE_FALSE='#'
29888else
29889 JPEG_DELEGATE_TRUE='#'
29890 JPEG_DELEGATE_FALSE=
29891fi
29892
cristy3ed852e2009-09-05 21:47:34 +000029893
29894
29895
29896#
29897# Check for JPEG Version 2 delegate library.
29898#
29899
29900# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029901if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029902 withval=$with_jp2; with_jp2=$withval
29903else
29904 with_jp2='yes'
29905fi
29906
29907
29908if test "$with_jp2" != 'yes'; then
29909 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29910fi
29911
29912have_jp2='no'
29913JP2_LIBS=''
29914if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29916$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029918$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29920$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029921 failed=0
29922 passed=0
cristy8b350f62009-11-15 23:12:43 +000029923 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 +000029924if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029925 passed=`expr $passed + 1`
29926else
29927 failed=`expr $failed + 1`
29928fi
29929
29930
cristy8b350f62009-11-15 23:12:43 +000029931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029932$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029933if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029934 $as_echo_n "(cached) " >&6
29935else
29936 ac_check_lib_save_LIBS=$LIBS
29937LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029939/* end confdefs.h. */
29940
29941/* Override any GCC internal prototype to avoid an error.
29942 Use char because int might match the return type of a GCC
29943 builtin and then its argument prototype would still apply. */
29944#ifdef __cplusplus
29945extern "C"
29946#endif
29947char jas_stream_fopen ();
29948int
29949main ()
29950{
29951return jas_stream_fopen ();
29952 ;
29953 return 0;
29954}
29955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029956if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029957 ac_cv_lib_jasper_jas_stream_fopen=yes
29958else
cristy8b350f62009-11-15 23:12:43 +000029959 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029960fi
cristy8b350f62009-11-15 23:12:43 +000029961rm -f core conftest.err conftest.$ac_objext \
29962 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029963LIBS=$ac_check_lib_save_LIBS
29964fi
cristy8b350f62009-11-15 23:12:43 +000029965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029966$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029967if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029968 passed=`expr $passed + 1`
29969else
29970 failed=`expr $failed + 1`
29971fi
29972
cristy8b350f62009-11-15 23:12:43 +000029973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029974$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29975 if test $passed -gt 0; then
29976 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29978$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029979 have_jp2='no (failed tests)'
29980 else
29981 JP2_LIBS='-ljasper'
29982 LIBS="$JP2_LIBS $LIBS"
29983
cristy8b350f62009-11-15 23:12:43 +000029984$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029985
cristyad38abe2012-12-23 23:03:21 +000029986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29987$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029988 have_jp2='yes'
29989 fi
29990 else
cristyad38abe2012-12-23 23:03:21 +000029991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29992$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029993 fi
29994fi
cristy73bd4a52010-10-05 11:24:23 +000029995 if test "$have_jp2" = 'yes'; then
29996 JP2_DELEGATE_TRUE=
29997 JP2_DELEGATE_FALSE='#'
29998else
29999 JP2_DELEGATE_TRUE='#'
30000 JP2_DELEGATE_FALSE=
30001fi
30002
cristy3ed852e2009-09-05 21:47:34 +000030003
30004
30005
30006#
30007# Check for LCMS delegate library.
30008#
cristy71203402010-06-18 13:12:03 +000030009# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030010
30011# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030012if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030013 withval=$with_lcms; with_lcms=$withval
30014else
30015 with_lcms='yes'
30016fi
30017
cristy71203402010-06-18 13:12:03 +000030018if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030019 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30020fi
30021
cristy71203402010-06-18 13:12:03 +000030022# Disable LCMS2.
30023
30024# Check whether --with-lcms2 was given.
30025if test "${with_lcms2+set}" = set; then :
30026 withval=$with_lcms2; with_lcms2=$withval
30027else
30028 with_lcms2='yes'
30029fi
30030
30031if test "$with_lcms2" != 'yes' ; then
30032 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30033fi
30034
30035have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030036LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030037if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30039$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30041$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30043$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030044 failed=0
30045 passed=0
30046 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030047
30048 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030049 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030050if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030051 have_lcms_header='yes'
30052fi
30053
30054
30055 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030056
30057$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30058
cristy71203402010-06-18 13:12:03 +000030059 passed=`expr $passed + 1`
30060 fi
30061
30062 # Check for <lcms2/lcms2.h)
30063 if test "$have_lcms_header" != 'yes'; then
30064 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 +000030065if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030066 have_lcms_header='yes'
30067fi
30068
30069
cristy71203402010-06-18 13:12:03 +000030070 if test "$have_lcms_header" = 'yes'; then
30071 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030072
cristy71203402010-06-18 13:12:03 +000030073$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030074
cristy71203402010-06-18 13:12:03 +000030075 fi
cristyd09bcf92010-03-25 03:04:45 +000030076 fi
cristy71203402010-06-18 13:12:03 +000030077
30078 # Failed to find lcms header?
30079 if test "$have_lcms_header" != 'yes'; then
30080 failed=`expr $failed + 1`
30081 fi
30082
30083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30084$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030085if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030086 $as_echo_n "(cached) " >&6
30087else
30088 ac_check_lib_save_LIBS=$LIBS
30089LIBS="-llcms2 $LIBS"
30090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30091/* end confdefs.h. */
30092
30093/* Override any GCC internal prototype to avoid an error.
30094 Use char because int might match the return type of a GCC
30095 builtin and then its argument prototype would still apply. */
30096#ifdef __cplusplus
30097extern "C"
30098#endif
cristy71203402010-06-18 13:12:03 +000030099char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030100int
30101main ()
30102{
cristy71203402010-06-18 13:12:03 +000030103return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030104 ;
30105 return 0;
30106}
30107_ACEOF
30108if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030109 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030110else
cristy71203402010-06-18 13:12:03 +000030111 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030112fi
30113rm -f core conftest.err conftest.$ac_objext \
30114 conftest$ac_exeext conftest.$ac_ext
30115LIBS=$ac_check_lib_save_LIBS
30116fi
cristy71203402010-06-18 13:12:03 +000030117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30118$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030119if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030120 passed=`expr $passed + 1`
30121else
30122 failed=`expr $failed + 1`
30123fi
30124
cristy71203402010-06-18 13:12:03 +000030125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30126$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030127 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030128 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30130$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030131 have_lcms2='no (failed tests)'
30132 else
30133 LCMS_LIBS='-llcms2'
30134 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30136$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030137 have_lcms2='yes'
30138 fi
cristyd09bcf92010-03-25 03:04:45 +000030139 else
cristyad38abe2012-12-23 23:03:21 +000030140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30141$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030142 fi
30143fi
30144
cristy71203402010-06-18 13:12:03 +000030145#
30146# Check for LCMS v1 (1.11 or later)
30147#
30148if test $have_lcms2 = 'yes'; then
30149 with_lcms='no'
30150fi
30151
30152have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030153if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30155$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30157$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30159$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030160 failed=0
30161 passed=0
30162 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030163
30164 # Check for <lcms.h>
30165 if test "$have_lcms_header" != 'yes'; then
30166 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030167if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030168 have_lcms_header='yes'
30169fi
30170
30171
cristy71203402010-06-18 13:12:03 +000030172 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030173 passed=`expr $passed + 1`
30174
cristy8b350f62009-11-15 23:12:43 +000030175$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030176
cristy71203402010-06-18 13:12:03 +000030177 fi
30178 fi
30179
30180 # Check for <lcms/lcms.h>
30181 if test "$have_lcms_header" != 'yes'; then
30182 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 +000030183if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030184 have_lcms_header='yes'
30185fi
30186
30187
cristy71203402010-06-18 13:12:03 +000030188 if test "$have_lcms_header" = 'yes'; then
30189 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030190
cristy8b350f62009-11-15 23:12:43 +000030191$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030192
cristy71203402010-06-18 13:12:03 +000030193 fi
cristy3ed852e2009-09-05 21:47:34 +000030194 fi
cristy71203402010-06-18 13:12:03 +000030195
30196 # Failed to find lcms header?
30197 if test "$have_lcms_header" != 'yes'; then
30198 failed=`expr $failed + 1`
30199 fi
30200
30201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30202$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030203if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030204 $as_echo_n "(cached) " >&6
30205else
30206 ac_check_lib_save_LIBS=$LIBS
30207LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030209/* end confdefs.h. */
30210
30211/* Override any GCC internal prototype to avoid an error.
30212 Use char because int might match the return type of a GCC
30213 builtin and then its argument prototype would still apply. */
30214#ifdef __cplusplus
30215extern "C"
30216#endif
cristy71203402010-06-18 13:12:03 +000030217char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030218int
30219main ()
30220{
cristy71203402010-06-18 13:12:03 +000030221return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030222 ;
30223 return 0;
30224}
30225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030226if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030227 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030228else
cristy71203402010-06-18 13:12:03 +000030229 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030230fi
cristy8b350f62009-11-15 23:12:43 +000030231rm -f core conftest.err conftest.$ac_objext \
30232 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030233LIBS=$ac_check_lib_save_LIBS
30234fi
cristy71203402010-06-18 13:12:03 +000030235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30236$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030237if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030238 passed=`expr $passed + 1`
30239else
30240 failed=`expr $failed + 1`
30241fi
30242
cristy8b350f62009-11-15 23:12:43 +000030243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030244$as_echo_n "checking if LCMS package is complete... " >&6; }
30245 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030246 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30248$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030249 have_lcms='no (failed tests)'
30250 else
30251 LCMS_LIBS='-llcms'
30252 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30254$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030255 have_lcms='yes'
30256 fi
cristy3ed852e2009-09-05 21:47:34 +000030257 else
cristyad38abe2012-12-23 23:03:21 +000030258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30259$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030260 fi
30261fi
cristy71203402010-06-18 13:12:03 +000030262
cristy73bd4a52010-10-05 11:24:23 +000030263 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30264 LCMS_DELEGATE_TRUE=
30265 LCMS_DELEGATE_FALSE='#'
30266else
30267 LCMS_DELEGATE_TRUE='#'
30268 LCMS_DELEGATE_FALSE=
30269fi
30270
cristy71203402010-06-18 13:12:03 +000030271if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30272
30273$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30274
30275fi
30276
cristy3ed852e2009-09-05 21:47:34 +000030277
30278
30279
30280#
30281# Check for the LQR (Liquid Rescale) delegate library.
30282#
30283
30284# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030285if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030286 withval=$with_lqr; with_lqr=$withval
30287else
30288 with_lqr='yes'
30289fi
30290
30291
30292if test "$with_lqr" != 'yes'; then
30293 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30294fi
30295
30296have_lqr='no'
30297LQR_CFLAGS=""
30298LQR_LIBS=""
30299LQR_PKG=""
30300if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30302$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030303
30304pkg_failed=no
30305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30306$as_echo_n "checking for LQR... " >&6; }
30307
30308if test -n "$LQR_CFLAGS"; then
30309 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30310 elif test -n "$PKG_CONFIG"; then
30311 if test -n "$PKG_CONFIG" && \
30312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30313 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30314 ac_status=$?
30315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30316 test $ac_status = 0; }; then
30317 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30318else
30319 pkg_failed=yes
30320fi
30321 else
30322 pkg_failed=untried
30323fi
30324if test -n "$LQR_LIBS"; then
30325 pkg_cv_LQR_LIBS="$LQR_LIBS"
30326 elif test -n "$PKG_CONFIG"; then
30327 if test -n "$PKG_CONFIG" && \
30328 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30329 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30330 ac_status=$?
30331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30332 test $ac_status = 0; }; then
30333 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30334else
30335 pkg_failed=yes
30336fi
30337 else
30338 pkg_failed=untried
30339fi
30340
30341
30342
30343if test $pkg_failed = yes; then
30344
30345if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30346 _pkg_short_errors_supported=yes
30347else
30348 _pkg_short_errors_supported=no
30349fi
30350 if test $_pkg_short_errors_supported = yes; then
30351 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30352 else
30353 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30354 fi
30355 # Put the nasty error message in config.log where it belongs
30356 echo "$LQR_PKG_ERRORS" >&5
30357
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30359$as_echo "no" >&6; }
30360 have_lqr=no
30361elif test $pkg_failed = untried; then
30362 have_lqr=no
30363else
30364 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30365 LQR_LIBS=$pkg_cv_LQR_LIBS
30366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30367$as_echo "yes" >&6; }
30368 have_lqr=yes
30369fi
cristyad38abe2012-12-23 23:03:21 +000030370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30371$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030372fi
30373
30374if test "$have_lqr" = 'yes'; then
30375
cristy8b350f62009-11-15 23:12:43 +000030376$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030377
30378 CFLAGS="$LQR_CFLAGS $CFLAGS"
30379fi
30380
cristy73bd4a52010-10-05 11:24:23 +000030381 if test "$have_lqr" = 'yes'; then
30382 LQR_DELEGATE_TRUE=
30383 LQR_DELEGATE_FALSE='#'
30384else
30385 LQR_DELEGATE_TRUE='#'
30386 LQR_DELEGATE_FALSE=
30387fi
30388
cristy3ed852e2009-09-05 21:47:34 +000030389
30390
30391
30392
cristy81beccd2011-10-03 18:17:24 +000030393# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030394
30395# Check whether --with-lzma was given.
30396if test "${with_lzma+set}" = set; then :
30397 withval=$with_lzma; with_lzma=$withval
30398else
30399 with_lzma='yes'
30400fi
30401
cristy81beccd2011-10-03 18:17:24 +000030402if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030403 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30404fi
30405
cristyb94e5002011-11-14 13:20:10 +000030406LZMA_PKG=""
30407if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30409$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030410
30411pkg_failed=no
30412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030413$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030414
30415if test -n "$LZMA_CFLAGS"; then
30416 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30417 elif test -n "$PKG_CONFIG"; then
30418 if test -n "$PKG_CONFIG" && \
30419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30420 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30421 ac_status=$?
30422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30423 test $ac_status = 0; }; then
30424 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30425else
30426 pkg_failed=yes
30427fi
30428 else
30429 pkg_failed=untried
30430fi
30431if test -n "$LZMA_LIBS"; then
30432 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30433 elif test -n "$PKG_CONFIG"; then
30434 if test -n "$PKG_CONFIG" && \
30435 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30436 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30437 ac_status=$?
30438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30439 test $ac_status = 0; }; then
30440 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30441else
30442 pkg_failed=yes
30443fi
30444 else
30445 pkg_failed=untried
30446fi
30447
30448
30449
30450if test $pkg_failed = yes; then
30451
30452if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30453 _pkg_short_errors_supported=yes
30454else
30455 _pkg_short_errors_supported=no
30456fi
30457 if test $_pkg_short_errors_supported = yes; then
30458 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30459 else
30460 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30461 fi
30462 # Put the nasty error message in config.log where it belongs
30463 echo "$LZMA_PKG_ERRORS" >&5
30464
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30466$as_echo "no" >&6; }
30467 have_lzma=no
30468elif test $pkg_failed = untried; then
30469 have_lzma=no
30470else
30471 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30472 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30474$as_echo "yes" >&6; }
30475 have_lzma=yes
30476fi
cristyad38abe2012-12-23 23:03:21 +000030477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30478$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030479fi
30480
cristyb94e5002011-11-14 13:20:10 +000030481if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030482
30483$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30484
cristyc6722092012-10-14 00:19:31 +000030485 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030486 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030487 fi
cristyfbb0ef02010-12-19 02:32:11 +000030488fi
cristyb94e5002011-11-14 13:20:10 +000030489
cristyfbb0ef02010-12-19 02:32:11 +000030490 if test "$have_lzma" = 'yes'; then
30491 LZMA_DELEGATE_TRUE=
30492 LZMA_DELEGATE_FALSE='#'
30493else
30494 LZMA_DELEGATE_TRUE='#'
30495 LZMA_DELEGATE_FALSE=
30496fi
30497
30498
30499
30500
cristyb94e5002011-11-14 13:20:10 +000030501
cristy3ed852e2009-09-05 21:47:34 +000030502#
30503# Check for the OpenEXR delegate library.
30504#
30505
30506# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030507if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030508 withval=$with_openexr; with_openexr=$withval
30509else
30510 with_openexr='yes'
30511fi
30512
30513
30514if test "$with_openexr" != 'yes'; then
30515 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30516fi
30517
30518have_openexr='no'
30519OPENEXR_CFLAGS=""
30520OPENEXR_LIBS=""
30521OPENEXR_PKG=""
30522if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30524$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030525
30526pkg_failed=no
30527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30528$as_echo_n "checking for OPENEXR... " >&6; }
30529
30530if test -n "$OPENEXR_CFLAGS"; then
30531 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30532 elif test -n "$PKG_CONFIG"; then
30533 if test -n "$PKG_CONFIG" && \
30534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30535 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30536 ac_status=$?
30537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30538 test $ac_status = 0; }; then
30539 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30540else
30541 pkg_failed=yes
30542fi
30543 else
30544 pkg_failed=untried
30545fi
30546if test -n "$OPENEXR_LIBS"; then
30547 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30548 elif test -n "$PKG_CONFIG"; then
30549 if test -n "$PKG_CONFIG" && \
30550 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30551 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30552 ac_status=$?
30553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30554 test $ac_status = 0; }; then
30555 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30556else
30557 pkg_failed=yes
30558fi
30559 else
30560 pkg_failed=untried
30561fi
30562
30563
30564
30565if test $pkg_failed = yes; then
30566
30567if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30568 _pkg_short_errors_supported=yes
30569else
30570 _pkg_short_errors_supported=no
30571fi
30572 if test $_pkg_short_errors_supported = yes; then
30573 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30574 else
30575 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30576 fi
30577 # Put the nasty error message in config.log where it belongs
30578 echo "$OPENEXR_PKG_ERRORS" >&5
30579
30580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30581$as_echo "no" >&6; }
30582 have_openexr=no
30583elif test $pkg_failed = untried; then
30584 have_openexr=no
30585else
30586 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30587 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30589$as_echo "yes" >&6; }
30590 have_openexr=yes
30591fi
cristyad38abe2012-12-23 23:03:21 +000030592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30593$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030594fi
30595
30596if test "$have_openexr" = 'yes'; then
30597
cristy8b350f62009-11-15 23:12:43 +000030598$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030599
cristyc6722092012-10-14 00:19:31 +000030600 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030601 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30602 fi
30603fi
30604
cristy73bd4a52010-10-05 11:24:23 +000030605 if test "$have_openexr" = 'yes'; then
30606 OPENEXR_DELEGATE_TRUE=
30607 OPENEXR_DELEGATE_FALSE='#'
30608else
30609 OPENEXR_DELEGATE_TRUE='#'
30610 OPENEXR_DELEGATE_FALSE=
30611fi
30612
cristy3ed852e2009-09-05 21:47:34 +000030613
30614
30615
30616
30617#
cristy41cbe8a2011-10-27 01:35:18 +000030618# Check for PANGO delegate library.
30619#
30620
30621# Check whether --with-pango was given.
30622if test "${with_pango+set}" = set; then :
30623 withval=$with_pango; with_pango=$withval
30624else
cristyfc3d0222012-02-07 15:05:57 +000030625 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030626fi
30627
30628
30629if test "$with_pango" != 'yes'; then
30630 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30631fi
30632
30633have_pango='no'
cristya054b762012-03-26 23:16:00 +000030634have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030635PANGO_CFLAGS=""
30636PANGO_LIBS=""
30637PANGO_PKG=""
30638if test "x$with_pango" = "xyes"; then
30639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30640$as_echo "-------------------------------------------------------------" >&6; }
30641
30642pkg_failed=no
30643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30644$as_echo_n "checking for PANGO... " >&6; }
30645
30646if test -n "$PANGO_CFLAGS"; then
30647 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30648 elif test -n "$PKG_CONFIG"; then
30649 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30651 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030652 ac_status=$?
30653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30654 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030655 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030656else
30657 pkg_failed=yes
30658fi
30659 else
30660 pkg_failed=untried
30661fi
30662if test -n "$PANGO_LIBS"; then
30663 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30664 elif test -n "$PKG_CONFIG"; then
30665 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030666 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30667 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030668 ac_status=$?
30669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30670 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030671 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030672else
30673 pkg_failed=yes
30674fi
30675 else
30676 pkg_failed=untried
30677fi
30678
30679
30680
30681if test $pkg_failed = yes; then
30682
30683if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30684 _pkg_short_errors_supported=yes
30685else
30686 _pkg_short_errors_supported=no
30687fi
30688 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030689 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030690 else
cristya054b762012-03-26 23:16:00 +000030691 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030692 fi
30693 # Put the nasty error message in config.log where it belongs
30694 echo "$PANGO_PKG_ERRORS" >&5
30695
30696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30697$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030698 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030699elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030700 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030701else
30702 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30703 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30705$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030706 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030707fi
30708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30709$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030710
30711pkg_failed=no
30712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30713$as_echo_n "checking for PANGO... " >&6; }
30714
30715if test -n "$PANGO_CFLAGS"; then
30716 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30717 elif test -n "$PKG_CONFIG"; then
30718 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30720 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030721 ac_status=$?
30722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30723 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030724 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030725else
30726 pkg_failed=yes
30727fi
30728 else
30729 pkg_failed=untried
30730fi
30731if test -n "$PANGO_LIBS"; then
30732 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30733 elif test -n "$PKG_CONFIG"; then
30734 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30736 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030737 ac_status=$?
30738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30739 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030740 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030741else
30742 pkg_failed=yes
30743fi
30744 else
30745 pkg_failed=untried
30746fi
30747
30748
30749
30750if test $pkg_failed = yes; then
30751
30752if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30753 _pkg_short_errors_supported=yes
30754else
30755 _pkg_short_errors_supported=no
30756fi
30757 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030758 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030759 else
cristy2542fc62011-12-06 17:50:25 +000030760 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030761 fi
30762 # Put the nasty error message in config.log where it belongs
30763 echo "$PANGO_PKG_ERRORS" >&5
30764
30765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30766$as_echo "no" >&6; }
30767 have_pango=no
30768elif test $pkg_failed = untried; then
30769 have_pango=no
30770else
30771 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30772 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30774$as_echo "yes" >&6; }
30775 have_pango=yes
30776fi
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30778$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030779fi
30780
30781if test "$have_pango" = 'yes'; then
30782
30783$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30784
cristyc6722092012-10-14 00:19:31 +000030785 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030786 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30787 fi
30788fi
30789
cristya054b762012-03-26 23:16:00 +000030790if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030791
cristya054b762012-03-26 23:16:00 +000030792$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030793
cristyc6722092012-10-14 00:19:31 +000030794 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030795 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030796 fi
30797fi
30798
30799 if test "$have_pango" = 'yes'; then
30800 PANGO_DELEGATE_TRUE=
30801 PANGO_DELEGATE_FALSE='#'
30802else
30803 PANGO_DELEGATE_TRUE='#'
30804 PANGO_DELEGATE_FALSE=
30805fi
30806
cristya054b762012-03-26 23:16:00 +000030807 if test "$have_pangocairo" = 'yes'; then
30808 PANGOCAIRO_DELEGATE_TRUE=
30809 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030810else
cristya054b762012-03-26 23:16:00 +000030811 PANGOCAIRO_DELEGATE_TRUE='#'
30812 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030813fi
30814
30815
30816
30817
30818
30819#
cristy3ed852e2009-09-05 21:47:34 +000030820# Check for PNG delegate library.
30821#
30822
30823# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030824if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030825 withval=$with_png; with_png=$withval
30826else
30827 with_png='yes'
30828fi
30829
30830
30831if test "$with_png" != 'yes'; then
30832 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30833fi
30834
cristy81beccd2011-10-03 18:17:24 +000030835have_png='no'
30836PNG_LIBS=''
30837
30838if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30840$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30842$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30844$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030845 failed=0
30846 passed=0
30847 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30848if test "x$ac_cv_header_png_h" = xyes; then :
30849 passed=`expr $passed + 1`
30850else
30851 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030852fi
30853
cristy81beccd2011-10-03 18:17:24 +000030854
30855
30856 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030857 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030858 if test "$have_png" = 'no' ; then
30859 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030860 pnglib='png'
30861 else
30862 pnglib="png1${var}"
30863 fi
30864
30865# Test for compatible LIBPNG library
30866 failed=0
30867 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030868 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030869 if test "${pnglib}" != 'png' ; then
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30871$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30873/* end confdefs.h. */
30874#include <stdio.h>
30875#include <stdlib.h>
30876#include <png.h>
30877
30878int
30879main ()
30880{
30881
30882#if PNG_LIBPNG_VER_MINOR != ${var}
30883#error LIBPNG library must be version 1${var}!
30884Kaboom, Kaboom
30885#endif
30886return 0;
30887
30888 ;
30889 return 0;
30890}
30891_ACEOF
30892if ac_fn_c_try_compile "$LINENO"; then :
30893 ac_cv_libpng_ok='yes'
30894else
30895 ac_cv_libpng_ok='no'
30896fi
30897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30898 if test "$ac_cv_libpng_ok" = 'yes' ; then
30899 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30901$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030902 else
30903 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30905$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030906 fi
30907 else
30908 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30910$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030911 fi
30912 fi
30913
30914 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030915 if test "1${var}" = '17' ; then
30916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30917$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30918if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30919 $as_echo_n "(cached) " >&6
30920else
30921 ac_check_lib_save_LIBS=$LIBS
30922LIBS="-lpng17 $LIBS"
30923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30924/* end confdefs.h. */
30925
30926/* Override any GCC internal prototype to avoid an error.
30927 Use char because int might match the return type of a GCC
30928 builtin and then its argument prototype would still apply. */
30929#ifdef __cplusplus
30930extern "C"
30931#endif
30932char png_get_io_ptr ();
30933int
30934main ()
30935{
30936return png_get_io_ptr ();
30937 ;
30938 return 0;
30939}
30940_ACEOF
30941if ac_fn_c_try_link "$LINENO"; then :
30942 ac_cv_lib_png17_png_get_io_ptr=yes
30943else
30944 ac_cv_lib_png17_png_get_io_ptr=no
30945fi
30946rm -f core conftest.err conftest.$ac_objext \
30947 conftest$ac_exeext conftest.$ac_ext
30948LIBS=$ac_check_lib_save_LIBS
30949fi
30950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30951$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30952if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30953 passed=`expr $passed + 1`
30954else
30955 failed=`expr $failed + 1`
30956fi
30957
30958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30959$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30960if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30961 $as_echo_n "(cached) " >&6
30962else
30963 ac_check_lib_save_LIBS=$LIBS
30964LIBS="-lpng17 $LIBS"
30965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30966/* end confdefs.h. */
30967
30968/* Override any GCC internal prototype to avoid an error.
30969 Use char because int might match the return type of a GCC
30970 builtin and then its argument prototype would still apply. */
30971#ifdef __cplusplus
30972extern "C"
30973#endif
30974char png_longjmp ();
30975int
30976main ()
30977{
30978return png_longjmp ();
30979 ;
30980 return 0;
30981}
30982_ACEOF
30983if ac_fn_c_try_link "$LINENO"; then :
30984 ac_cv_lib_png17_png_longjmp=yes
30985else
30986 ac_cv_lib_png17_png_longjmp=no
30987fi
30988rm -f core conftest.err conftest.$ac_objext \
30989 conftest$ac_exeext conftest.$ac_ext
30990LIBS=$ac_check_lib_save_LIBS
30991fi
30992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30993$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30994if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30995 passed=`expr $passed + 1`
30996else
30997 failed=`expr $failed + 1`
30998fi
30999
31000 fi
31001 if test "1${var}" = '16' ; then
31002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31003$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31004if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31005 $as_echo_n "(cached) " >&6
31006else
31007 ac_check_lib_save_LIBS=$LIBS
31008LIBS="-lpng16 $LIBS"
31009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31010/* end confdefs.h. */
31011
31012/* Override any GCC internal prototype to avoid an error.
31013 Use char because int might match the return type of a GCC
31014 builtin and then its argument prototype would still apply. */
31015#ifdef __cplusplus
31016extern "C"
31017#endif
31018char png_get_io_ptr ();
31019int
31020main ()
31021{
31022return png_get_io_ptr ();
31023 ;
31024 return 0;
31025}
31026_ACEOF
31027if ac_fn_c_try_link "$LINENO"; then :
31028 ac_cv_lib_png16_png_get_io_ptr=yes
31029else
31030 ac_cv_lib_png16_png_get_io_ptr=no
31031fi
31032rm -f core conftest.err conftest.$ac_objext \
31033 conftest$ac_exeext conftest.$ac_ext
31034LIBS=$ac_check_lib_save_LIBS
31035fi
31036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31037$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31038if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31039 passed=`expr $passed + 1`
31040else
31041 failed=`expr $failed + 1`
31042fi
31043
31044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31045$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31046if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31047 $as_echo_n "(cached) " >&6
31048else
31049 ac_check_lib_save_LIBS=$LIBS
31050LIBS="-lpng16 $LIBS"
31051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31052/* end confdefs.h. */
31053
31054/* Override any GCC internal prototype to avoid an error.
31055 Use char because int might match the return type of a GCC
31056 builtin and then its argument prototype would still apply. */
31057#ifdef __cplusplus
31058extern "C"
31059#endif
31060char png_longjmp ();
31061int
31062main ()
31063{
31064return png_longjmp ();
31065 ;
31066 return 0;
31067}
31068_ACEOF
31069if ac_fn_c_try_link "$LINENO"; then :
31070 ac_cv_lib_png16_png_longjmp=yes
31071else
31072 ac_cv_lib_png16_png_longjmp=no
31073fi
31074rm -f core conftest.err conftest.$ac_objext \
31075 conftest$ac_exeext conftest.$ac_ext
31076LIBS=$ac_check_lib_save_LIBS
31077fi
31078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31079$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31080if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31081 passed=`expr $passed + 1`
31082else
31083 failed=`expr $failed + 1`
31084fi
31085
31086 fi
cristy81beccd2011-10-03 18:17:24 +000031087 if test "1${var}" = '15' ; then
31088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31089$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31090if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31091 $as_echo_n "(cached) " >&6
31092else
31093 ac_check_lib_save_LIBS=$LIBS
31094LIBS="-lpng15 $LIBS"
31095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31096/* end confdefs.h. */
31097
31098/* Override any GCC internal prototype to avoid an error.
31099 Use char because int might match the return type of a GCC
31100 builtin and then its argument prototype would still apply. */
31101#ifdef __cplusplus
31102extern "C"
31103#endif
31104char png_get_io_ptr ();
31105int
31106main ()
31107{
31108return png_get_io_ptr ();
31109 ;
31110 return 0;
31111}
31112_ACEOF
31113if ac_fn_c_try_link "$LINENO"; then :
31114 ac_cv_lib_png15_png_get_io_ptr=yes
31115else
31116 ac_cv_lib_png15_png_get_io_ptr=no
31117fi
31118rm -f core conftest.err conftest.$ac_objext \
31119 conftest$ac_exeext conftest.$ac_ext
31120LIBS=$ac_check_lib_save_LIBS
31121fi
31122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31123$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31124if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31125 passed=`expr $passed + 1`
31126else
31127 failed=`expr $failed + 1`
31128fi
31129
31130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31131$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31132if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31133 $as_echo_n "(cached) " >&6
31134else
31135 ac_check_lib_save_LIBS=$LIBS
31136LIBS="-lpng15 $LIBS"
31137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31138/* end confdefs.h. */
31139
31140/* Override any GCC internal prototype to avoid an error.
31141 Use char because int might match the return type of a GCC
31142 builtin and then its argument prototype would still apply. */
31143#ifdef __cplusplus
31144extern "C"
31145#endif
31146char png_longjmp ();
31147int
31148main ()
31149{
31150return png_longjmp ();
31151 ;
31152 return 0;
31153}
31154_ACEOF
31155if ac_fn_c_try_link "$LINENO"; then :
31156 ac_cv_lib_png15_png_longjmp=yes
31157else
31158 ac_cv_lib_png15_png_longjmp=no
31159fi
31160rm -f core conftest.err conftest.$ac_objext \
31161 conftest$ac_exeext conftest.$ac_ext
31162LIBS=$ac_check_lib_save_LIBS
31163fi
31164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31165$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31166if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31167 passed=`expr $passed + 1`
31168else
31169 failed=`expr $failed + 1`
31170fi
31171
31172 fi
31173 if test "1${var}" = '14' ; then
31174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31175$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31176if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31177 $as_echo_n "(cached) " >&6
31178else
31179 ac_check_lib_save_LIBS=$LIBS
31180LIBS="-lpng14 $LIBS"
31181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31182/* end confdefs.h. */
31183
31184/* Override any GCC internal prototype to avoid an error.
31185 Use char because int might match the return type of a GCC
31186 builtin and then its argument prototype would still apply. */
31187#ifdef __cplusplus
31188extern "C"
31189#endif
31190char png_get_io_ptr ();
31191int
31192main ()
31193{
31194return png_get_io_ptr ();
31195 ;
31196 return 0;
31197}
31198_ACEOF
31199if ac_fn_c_try_link "$LINENO"; then :
31200 ac_cv_lib_png14_png_get_io_ptr=yes
31201else
31202 ac_cv_lib_png14_png_get_io_ptr=no
31203fi
31204rm -f core conftest.err conftest.$ac_objext \
31205 conftest$ac_exeext conftest.$ac_ext
31206LIBS=$ac_check_lib_save_LIBS
31207fi
31208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31209$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31210if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31211 passed=`expr $passed + 1`
31212else
31213 failed=`expr $failed + 1`
31214fi
31215
31216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31217$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31218if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31219 $as_echo_n "(cached) " >&6
31220else
31221 ac_check_lib_save_LIBS=$LIBS
31222LIBS="-lpng14 $LIBS"
31223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31224/* end confdefs.h. */
31225
31226/* Override any GCC internal prototype to avoid an error.
31227 Use char because int might match the return type of a GCC
31228 builtin and then its argument prototype would still apply. */
31229#ifdef __cplusplus
31230extern "C"
31231#endif
31232char png_get_io_state ();
31233int
31234main ()
31235{
31236return png_get_io_state ();
31237 ;
31238 return 0;
31239}
31240_ACEOF
31241if ac_fn_c_try_link "$LINENO"; then :
31242 ac_cv_lib_png14_png_get_io_state=yes
31243else
31244 ac_cv_lib_png14_png_get_io_state=no
31245fi
31246rm -f core conftest.err conftest.$ac_objext \
31247 conftest$ac_exeext conftest.$ac_ext
31248LIBS=$ac_check_lib_save_LIBS
31249fi
31250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31251$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31252if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31253 passed=`expr $passed + 1`
31254else
31255 failed=`expr $failed + 1`
31256fi
31257
31258 fi
31259 if test "1${var}" = '12' ; then
31260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31261$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31262if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31263 $as_echo_n "(cached) " >&6
31264else
31265 ac_check_lib_save_LIBS=$LIBS
31266LIBS="-lpng12 $LIBS"
31267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31268/* end confdefs.h. */
31269
31270/* Override any GCC internal prototype to avoid an error.
31271 Use char because int might match the return type of a GCC
31272 builtin and then its argument prototype would still apply. */
31273#ifdef __cplusplus
31274extern "C"
31275#endif
31276char png_get_io_ptr ();
31277int
31278main ()
31279{
31280return png_get_io_ptr ();
31281 ;
31282 return 0;
31283}
31284_ACEOF
31285if ac_fn_c_try_link "$LINENO"; then :
31286 ac_cv_lib_png12_png_get_io_ptr=yes
31287else
31288 ac_cv_lib_png12_png_get_io_ptr=no
31289fi
31290rm -f core conftest.err conftest.$ac_objext \
31291 conftest$ac_exeext conftest.$ac_ext
31292LIBS=$ac_check_lib_save_LIBS
31293fi
31294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31295$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31296if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31297 passed=`expr $passed + 1`
31298else
31299 failed=`expr $failed + 1`
31300fi
31301
31302 fi
31303 if test "1${var}" = '1' ; then
31304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31305$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31306if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31307 $as_echo_n "(cached) " >&6
31308else
31309 ac_check_lib_save_LIBS=$LIBS
31310LIBS="-lpng $LIBS"
31311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31312/* end confdefs.h. */
31313
31314/* Override any GCC internal prototype to avoid an error.
31315 Use char because int might match the return type of a GCC
31316 builtin and then its argument prototype would still apply. */
31317#ifdef __cplusplus
31318extern "C"
31319#endif
31320char png_get_io_ptr ();
31321int
31322main ()
31323{
31324return png_get_io_ptr ();
31325 ;
31326 return 0;
31327}
31328_ACEOF
31329if ac_fn_c_try_link "$LINENO"; then :
31330 ac_cv_lib_png_png_get_io_ptr=yes
31331else
31332 ac_cv_lib_png_png_get_io_ptr=no
31333fi
31334rm -f core conftest.err conftest.$ac_objext \
31335 conftest$ac_exeext conftest.$ac_ext
31336LIBS=$ac_check_lib_save_LIBS
31337fi
31338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31339$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31340if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31341 passed=`expr $passed + 1`
31342else
31343 failed=`expr $failed + 1`
31344fi
31345
31346 fi
31347 if test $passed -gt 0 -a $failed -le 0 ; then
31348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31349$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31350 if test $passed -gt 0 ; then
31351 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31353$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031354 have_png='no (failed tests)'
31355 else
31356 PNG_LIBS="-l${pnglib}"
31357 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031358
cristy8b350f62009-11-15 23:12:43 +000031359$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031360
cristyad38abe2012-12-23 23:03:21 +000031361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31362$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031363 have_png='yes'
31364 fi
31365 fi
31366 fi
31367 fi
31368 fi
31369 done
31370 fi
cristy3ed852e2009-09-05 21:47:34 +000031371fi
cristy64877302011-08-23 19:10:31 +000031372
cristy73bd4a52010-10-05 11:24:23 +000031373 if test "$have_png" = 'yes'; then
31374 PNG_DELEGATE_TRUE=
31375 PNG_DELEGATE_FALSE='#'
31376else
31377 PNG_DELEGATE_TRUE='#'
31378 PNG_DELEGATE_FALSE=
31379fi
31380
cristy3ed852e2009-09-05 21:47:34 +000031381
cristy50d3f5c2011-09-10 20:09:06 +000031382
cristy3ed852e2009-09-05 21:47:34 +000031383
31384
31385#
31386# Check for RSVG delegate library.
31387#
31388
31389# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031390if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031391 withval=$with_rsvg; with_rsvg=$withval
31392else
cristy1164d5f2012-08-15 00:58:25 +000031393 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031394fi
31395
31396
31397if test "$with_rsvg" != 'yes'; then
31398 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31399fi
31400
31401have_rsvg='no'
31402have_cairo='no'
31403RSVG_CFLAGS=""
31404RSVG_LIBS=""
31405RSVG_PKG=""
31406if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31408$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031409
31410pkg_failed=no
31411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31412$as_echo_n "checking for RSVG... " >&6; }
31413
31414if test -n "$RSVG_CFLAGS"; then
31415 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31416 elif test -n "$PKG_CONFIG"; then
31417 if test -n "$PKG_CONFIG" && \
31418 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31419 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31420 ac_status=$?
31421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31422 test $ac_status = 0; }; then
31423 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31424else
31425 pkg_failed=yes
31426fi
31427 else
31428 pkg_failed=untried
31429fi
31430if test -n "$RSVG_LIBS"; then
31431 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31432 elif test -n "$PKG_CONFIG"; then
31433 if test -n "$PKG_CONFIG" && \
31434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31435 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31436 ac_status=$?
31437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31438 test $ac_status = 0; }; then
31439 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31440else
31441 pkg_failed=yes
31442fi
31443 else
31444 pkg_failed=untried
31445fi
31446
31447
31448
31449if test $pkg_failed = yes; then
31450
31451if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31452 _pkg_short_errors_supported=yes
31453else
31454 _pkg_short_errors_supported=no
31455fi
31456 if test $_pkg_short_errors_supported = yes; then
31457 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31458 else
31459 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31460 fi
31461 # Put the nasty error message in config.log where it belongs
31462 echo "$RSVG_PKG_ERRORS" >&5
31463
31464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31465$as_echo "no" >&6; }
31466 have_rsvg=no
31467elif test $pkg_failed = untried; then
31468 have_rsvg=no
31469else
31470 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31471 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31473$as_echo "yes" >&6; }
31474 have_rsvg=yes
31475fi
cristyad38abe2012-12-23 23:03:21 +000031476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31477$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031478
31479pkg_failed=no
31480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31481$as_echo_n "checking for CAIRO_SVG... " >&6; }
31482
31483if test -n "$CAIRO_SVG_CFLAGS"; then
31484 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31485 elif test -n "$PKG_CONFIG"; then
31486 if test -n "$PKG_CONFIG" && \
31487 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31488 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31489 ac_status=$?
31490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31491 test $ac_status = 0; }; then
31492 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31493else
31494 pkg_failed=yes
31495fi
31496 else
31497 pkg_failed=untried
31498fi
31499if test -n "$CAIRO_SVG_LIBS"; then
31500 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31501 elif test -n "$PKG_CONFIG"; then
31502 if test -n "$PKG_CONFIG" && \
31503 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31504 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31505 ac_status=$?
31506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31507 test $ac_status = 0; }; then
31508 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31509else
31510 pkg_failed=yes
31511fi
31512 else
31513 pkg_failed=untried
31514fi
31515
31516
31517
31518if test $pkg_failed = yes; then
31519
31520if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31521 _pkg_short_errors_supported=yes
31522else
31523 _pkg_short_errors_supported=no
31524fi
31525 if test $_pkg_short_errors_supported = yes; then
31526 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31527 else
31528 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31529 fi
31530 # Put the nasty error message in config.log where it belongs
31531 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31532
31533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31534$as_echo "no" >&6; }
31535 have_cairo=no
31536elif test $pkg_failed = untried; then
31537 have_cairo=no
31538else
31539 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31540 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31542$as_echo "yes" >&6; }
31543 have_cairo=yes
31544fi
cristyad38abe2012-12-23 23:03:21 +000031545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31546$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031547fi
31548
31549if test "$have_rsvg" = 'yes'; then
31550
cristy8b350f62009-11-15 23:12:43 +000031551$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031552
cristyc6722092012-10-14 00:19:31 +000031553 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031554 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31555 fi
31556fi
31557
31558if test "$have_cairo" = 'yes'; then
31559
cristy8b350f62009-11-15 23:12:43 +000031560$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031561
cristyc6722092012-10-14 00:19:31 +000031562 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031563 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31564 fi
31565fi
31566
cristy73bd4a52010-10-05 11:24:23 +000031567 if test "$have_rsvg" = 'yes'; then
31568 RSVG_DELEGATE_TRUE=
31569 RSVG_DELEGATE_FALSE='#'
31570else
31571 RSVG_DELEGATE_TRUE='#'
31572 RSVG_DELEGATE_FALSE=
31573fi
31574
31575 if test "$have_cairo" = 'yes'; then
31576 CAIRO_DELEGATE_TRUE=
31577 CAIRO_DELEGATE_FALSE='#'
31578else
31579 CAIRO_DELEGATE_TRUE='#'
31580 CAIRO_DELEGATE_FALSE=
31581fi
31582
cristy3ed852e2009-09-05 21:47:34 +000031583
31584
31585
31586
31587#
31588# Check for TIFF delegate library.
31589#
31590
31591# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031592if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031593 withval=$with_tiff; with_tiff=$withval
31594else
31595 with_tiff='yes'
31596fi
31597
31598
31599if test "$with_tiff" != 'yes'; then
31600 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31601fi
31602
31603have_tiff='no'
31604TIFF_LIBS=''
31605if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31607$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031609$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31611$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031612 failed=0
31613 passed=0
cristy8b350f62009-11-15 23:12:43 +000031614 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031615if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031616 passed=`expr $passed + 1`
31617else
31618 failed=`expr $failed + 1`
31619fi
31620
31621
cristy8b350f62009-11-15 23:12:43 +000031622 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031623if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031624 passed=`expr $passed + 1`
31625else
31626 failed=`expr $failed + 1`
31627fi
31628
31629
cristy8b350f62009-11-15 23:12:43 +000031630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031631$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031632if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031633 $as_echo_n "(cached) " >&6
31634else
31635 ac_check_lib_save_LIBS=$LIBS
31636LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031638/* end confdefs.h. */
31639
31640/* Override any GCC internal prototype to avoid an error.
31641 Use char because int might match the return type of a GCC
31642 builtin and then its argument prototype would still apply. */
31643#ifdef __cplusplus
31644extern "C"
31645#endif
31646char TIFFOpen ();
31647int
31648main ()
31649{
31650return TIFFOpen ();
31651 ;
31652 return 0;
31653}
31654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031655if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031656 ac_cv_lib_tiff_TIFFOpen=yes
31657else
cristy8b350f62009-11-15 23:12:43 +000031658 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031659fi
cristy8b350f62009-11-15 23:12:43 +000031660rm -f core conftest.err conftest.$ac_objext \
31661 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031662LIBS=$ac_check_lib_save_LIBS
31663fi
cristy8b350f62009-11-15 23:12:43 +000031664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031665$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031666if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031667 passed=`expr $passed + 1`
31668else
31669 failed=`expr $failed + 1`
31670fi
31671
cristy8b350f62009-11-15 23:12:43 +000031672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031673$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031674if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031675 $as_echo_n "(cached) " >&6
31676else
31677 ac_check_lib_save_LIBS=$LIBS
31678LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031680/* end confdefs.h. */
31681
31682/* Override any GCC internal prototype to avoid an error.
31683 Use char because int might match the return type of a GCC
31684 builtin and then its argument prototype would still apply. */
31685#ifdef __cplusplus
31686extern "C"
31687#endif
31688char TIFFClientOpen ();
31689int
31690main ()
31691{
31692return TIFFClientOpen ();
31693 ;
31694 return 0;
31695}
31696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031697if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031698 ac_cv_lib_tiff_TIFFClientOpen=yes
31699else
cristy8b350f62009-11-15 23:12:43 +000031700 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031701fi
cristy8b350f62009-11-15 23:12:43 +000031702rm -f core conftest.err conftest.$ac_objext \
31703 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031704LIBS=$ac_check_lib_save_LIBS
31705fi
cristy8b350f62009-11-15 23:12:43 +000031706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031707$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031708if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031709 passed=`expr $passed + 1`
31710else
31711 failed=`expr $failed + 1`
31712fi
31713
cristy8b350f62009-11-15 23:12:43 +000031714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031715$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031716if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031717 $as_echo_n "(cached) " >&6
31718else
31719 ac_check_lib_save_LIBS=$LIBS
31720LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031722/* end confdefs.h. */
31723
31724/* Override any GCC internal prototype to avoid an error.
31725 Use char because int might match the return type of a GCC
31726 builtin and then its argument prototype would still apply. */
31727#ifdef __cplusplus
31728extern "C"
31729#endif
31730char TIFFIsByteSwapped ();
31731int
31732main ()
31733{
31734return TIFFIsByteSwapped ();
31735 ;
31736 return 0;
31737}
31738_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031739if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031740 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31741else
cristy8b350f62009-11-15 23:12:43 +000031742 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031743fi
cristy8b350f62009-11-15 23:12:43 +000031744rm -f core conftest.err conftest.$ac_objext \
31745 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031746LIBS=$ac_check_lib_save_LIBS
31747fi
cristy8b350f62009-11-15 23:12:43 +000031748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031749$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031750if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031751 passed=`expr $passed + 1`
31752else
31753 failed=`expr $failed + 1`
31754fi
31755
cristy8b350f62009-11-15 23:12:43 +000031756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031757$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031758if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031759 $as_echo_n "(cached) " >&6
31760else
31761 ac_check_lib_save_LIBS=$LIBS
31762LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031764/* end confdefs.h. */
31765
31766/* Override any GCC internal prototype to avoid an error.
31767 Use char because int might match the return type of a GCC
31768 builtin and then its argument prototype would still apply. */
31769#ifdef __cplusplus
31770extern "C"
31771#endif
31772char TIFFReadRGBATile ();
31773int
31774main ()
31775{
31776return TIFFReadRGBATile ();
31777 ;
31778 return 0;
31779}
31780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031781if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031782 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31783else
cristy8b350f62009-11-15 23:12:43 +000031784 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031785fi
cristy8b350f62009-11-15 23:12:43 +000031786rm -f core conftest.err conftest.$ac_objext \
31787 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031788LIBS=$ac_check_lib_save_LIBS
31789fi
cristy8b350f62009-11-15 23:12:43 +000031790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031791$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031792if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031793 passed=`expr $passed + 1`
31794else
31795 failed=`expr $failed + 1`
31796fi
31797
cristy8b350f62009-11-15 23:12:43 +000031798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031799$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031800if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031801 $as_echo_n "(cached) " >&6
31802else
31803 ac_check_lib_save_LIBS=$LIBS
31804LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031806/* end confdefs.h. */
31807
31808/* Override any GCC internal prototype to avoid an error.
31809 Use char because int might match the return type of a GCC
31810 builtin and then its argument prototype would still apply. */
31811#ifdef __cplusplus
31812extern "C"
31813#endif
31814char TIFFReadRGBAStrip ();
31815int
31816main ()
31817{
31818return TIFFReadRGBAStrip ();
31819 ;
31820 return 0;
31821}
31822_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031823if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031824 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31825else
cristy8b350f62009-11-15 23:12:43 +000031826 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031827fi
cristy8b350f62009-11-15 23:12:43 +000031828rm -f core conftest.err conftest.$ac_objext \
31829 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031830LIBS=$ac_check_lib_save_LIBS
31831fi
cristy8b350f62009-11-15 23:12:43 +000031832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031833$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031834if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031835 passed=`expr $passed + 1`
31836else
31837 failed=`expr $failed + 1`
31838fi
31839
cristy8b350f62009-11-15 23:12:43 +000031840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031841$as_echo_n "checking if TIFF package is complete... " >&6; }
31842 if test $passed -gt 0; then
31843 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31845$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031846 have_tiff='no (failed tests)'
31847 else
31848 TIFF_LIBS='-ltiff'
31849 LIBS="$TIFF_LIBS $LIBS"
31850
cristy8b350f62009-11-15 23:12:43 +000031851$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031852
cristyad38abe2012-12-23 23:03:21 +000031853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31854$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031855 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031856 for ac_header in tiffconf.h
31857do :
31858 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031859if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031860 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031861#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031862_ACEOF
31863
31864fi
31865
31866done
31867
cristy8b350f62009-11-15 23:12:43 +000031868 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031869 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31870 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31871 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031872do :
31873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31874ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031875if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031876 cat >>confdefs.h <<_ACEOF
31877#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31878_ACEOF
31879
31880fi
31881done
31882
31883 fi
31884 else
cristyad38abe2012-12-23 23:03:21 +000031885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31886$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031887 fi
31888fi
cristy73bd4a52010-10-05 11:24:23 +000031889 if test "$have_tiff" = 'yes'; then
31890 TIFF_DELEGATE_TRUE=
31891 TIFF_DELEGATE_FALSE='#'
31892else
31893 TIFF_DELEGATE_TRUE='#'
31894 TIFF_DELEGATE_FALSE=
31895fi
31896
cristy3ed852e2009-09-05 21:47:34 +000031897
31898
31899
31900#
cristyb1860752011-03-14 00:27:46 +000031901# Check for WEBP delegate library.
31902#
31903
31904# Check whether --with-webp was given.
31905if test "${with_webp+set}" = set; then :
31906 withval=$with_webp; with_webp=$withval
31907else
31908 with_webp='yes'
31909fi
31910
31911
31912if test "$with_webp" != 'yes'; then
31913 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31914fi
31915
31916have_webp='no'
31917WEBP_LIBS=''
31918if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31920$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31922$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31924$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031925 failed=0
31926 passed=0
31927 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31928if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31929 passed=`expr $passed + 1`
31930else
31931 failed=`expr $failed + 1`
31932fi
31933
31934
cristy6d670312013-03-22 23:23:01 +000031935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31936$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31937if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031938 $as_echo_n "(cached) " >&6
31939else
31940 ac_check_lib_save_LIBS=$LIBS
31941LIBS="-lwebp $LIBS"
31942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31943/* end confdefs.h. */
31944
31945/* Override any GCC internal prototype to avoid an error.
31946 Use char because int might match the return type of a GCC
31947 builtin and then its argument prototype would still apply. */
31948#ifdef __cplusplus
31949extern "C"
31950#endif
cristy6d670312013-03-22 23:23:01 +000031951char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031952int
31953main ()
31954{
cristy6d670312013-03-22 23:23:01 +000031955return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031956 ;
31957 return 0;
31958}
31959_ACEOF
31960if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031961 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031962else
cristy6d670312013-03-22 23:23:01 +000031963 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031964fi
31965rm -f core conftest.err conftest.$ac_objext \
31966 conftest$ac_exeext conftest.$ac_ext
31967LIBS=$ac_check_lib_save_LIBS
31968fi
cristy6d670312013-03-22 23:23:01 +000031969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31970$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31971if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031972 passed=`expr $passed + 1`
31973else
31974 failed=`expr $failed + 1`
31975fi
31976
31977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31978$as_echo_n "checking if WEBP package is complete... " >&6; }
31979 if test $passed -gt 0; then
31980 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31982$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031983 have_webp='no (failed tests)'
31984 else
31985 WEBP_LIBS='-lwebp'
31986 LIBS="$WEBP_LIBS $LIBS"
31987
31988$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31989
cristyad38abe2012-12-23 23:03:21 +000031990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31991$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031992 have_webp='yes'
31993 fi
31994 else
cristyad38abe2012-12-23 23:03:21 +000031995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31996$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031997 fi
31998fi
31999 if test "$have_webp" = 'yes'; then
32000 WEBP_DELEGATE_TRUE=
32001 WEBP_DELEGATE_FALSE='#'
32002else
32003 WEBP_DELEGATE_TRUE='#'
32004 WEBP_DELEGATE_FALSE=
32005fi
32006
32007
32008
32009
32010#
cristy3ed852e2009-09-05 21:47:34 +000032011# Set Windows font directory.
32012#
32013
32014# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032015if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032016 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32017else
32018 with_windows_font_dir=''
32019fi
32020
32021if test "$with_windows_font_dir" != '' ; then
32022 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32023fi
32024
32025
32026#
32027# Check for WMF delegate library.
32028#
32029
32030# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032031if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032032 withval=$with_wmf; with_wmf=$withval
32033else
cristyfc3d0222012-02-07 15:05:57 +000032034 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032035fi
32036
32037
32038if test "$with_wmf" != 'yes'; then
32039 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32040fi
32041
32042have_wmf='no'
32043WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032044WMF_LIBS_DEPS=''
32045OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032046if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32048$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032050$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32052$as_echo "" >&6; }
32053 have_libwmf='no'
32054 have_libwmflite='no'
32055 have_libwmf_ipa_h='no'
32056
32057 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32058"
32059if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32060 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032061fi
32062
32063
cristy03f7cf92011-12-15 01:40:41 +000032064 if test "$have_libwmf_ipa_h" = 'yes'; then
32065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32066$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32067if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032068 $as_echo_n "(cached) " >&6
32069else
32070 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032071LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032073/* end confdefs.h. */
32074
32075/* Override any GCC internal prototype to avoid an error.
32076 Use char because int might match the return type of a GCC
32077 builtin and then its argument prototype would still apply. */
32078#ifdef __cplusplus
32079extern "C"
32080#endif
cristy03f7cf92011-12-15 01:40:41 +000032081char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032082int
32083main ()
32084{
cristy03f7cf92011-12-15 01:40:41 +000032085return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032086 ;
32087 return 0;
32088}
32089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032090if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032091 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032092else
cristy03f7cf92011-12-15 01:40:41 +000032093 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032094fi
cristy8b350f62009-11-15 23:12:43 +000032095rm -f core conftest.err conftest.$ac_objext \
32096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032097LIBS=$ac_check_lib_save_LIBS
32098fi
cristy03f7cf92011-12-15 01:40:41 +000032099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32100$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32101if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32102 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032103fi
32104
cristy03f7cf92011-12-15 01:40:41 +000032105 if test "$have_libwmflite" = 'yes'; then
32106
32107$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32108
32109 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032110 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032111 have_wmf='yes'
32112 else
32113 WMF_LIBS_DEPS=''
32114 WMF_CONFIG_LIBS=`libwmf-config --libs`
32115 for lib in xml2 expat freetype jpeg png z; do
32116 testlib="-l${lib}"
32117 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32118 done
32119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32120$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32121if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32122 $as_echo_n "(cached) " >&6
32123else
32124 ac_check_lib_save_LIBS=$LIBS
32125LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32127/* end confdefs.h. */
32128
32129/* Override any GCC internal prototype to avoid an error.
32130 Use char because int might match the return type of a GCC
32131 builtin and then its argument prototype would still apply. */
32132#ifdef __cplusplus
32133extern "C"
32134#endif
32135char wmf_api_create ();
32136int
32137main ()
32138{
32139return wmf_api_create ();
32140 ;
32141 return 0;
32142}
32143_ACEOF
32144if ac_fn_c_try_link "$LINENO"; then :
32145 ac_cv_lib_wmf_wmf_api_create=yes
32146else
32147 ac_cv_lib_wmf_wmf_api_create=no
32148fi
32149rm -f core conftest.err conftest.$ac_objext \
32150 conftest$ac_exeext conftest.$ac_ext
32151LIBS=$ac_check_lib_save_LIBS
32152fi
32153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32154$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32155if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32156 have_libwmf='yes'
32157fi
32158
32159 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032160
cristy8b350f62009-11-15 23:12:43 +000032161$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032162
cristy03f7cf92011-12-15 01:40:41 +000032163 WMF_LIBS='-lwmf'
32164 LIBS="$WMF_LIBS $LIBS"
32165 have_wmf='yes'
32166 else
32167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32168$as_echo "no -- some components failed test" >&6; }
32169 have_wmf='no (failed tests)'
32170 have_wmflite='no (failed tests)'
32171 LIBS="$OLIBS"
32172 WMF_LIBS=''
32173 fi
glennrp33e524b2011-08-24 17:41:57 +000032174 fi
cristy03f7cf92011-12-15 01:40:41 +000032175 fi
32176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32177$as_echo_n "checking if WMF package is complete... " >&6; }
32178 if test "$have_wmf" = 'yes'; then
32179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32180$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032181 else
cristy03f7cf92011-12-15 01:40:41 +000032182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32183$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032184 fi
cristy3ed852e2009-09-05 21:47:34 +000032185fi
cristy73bd4a52010-10-05 11:24:23 +000032186 if test "$have_wmf" = 'yes'; then
32187 WMF_DELEGATE_TRUE=
32188 WMF_DELEGATE_FALSE='#'
32189else
32190 WMF_DELEGATE_TRUE='#'
32191 WMF_DELEGATE_FALSE=
32192fi
32193
cristy3ed852e2009-09-05 21:47:34 +000032194
32195
32196
cristy81beccd2011-10-03 18:17:24 +000032197
32198
cristy3ed852e2009-09-05 21:47:34 +000032199#
32200# Check for XML delegate library.
32201#
32202
32203# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032204if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032205 withval=$with_xml; with_xml=$withval
32206else
cristyfc3d0222012-02-07 15:05:57 +000032207 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032208fi
32209
32210
cristy81beccd2011-10-03 18:17:24 +000032211if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032212 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32213fi
32214
cristy81beccd2011-10-03 18:17:24 +000032215have_xml='no'
32216XML_LIBS=''
32217if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32219$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32221$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32223$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032224 PERSIST_LDFLAGS=$LDFLAGS
32225 PERSIST_CPPFLAGS=$CPPFLAGS
32226 xml2_config=''
32227 # Extract the first word of "xml2-config", so it can be a program name with args.
32228set dummy xml2-config; ac_word=$2
32229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32230$as_echo_n "checking for $ac_word... " >&6; }
32231if ${ac_cv_path_xml2_config+:} false; then :
32232 $as_echo_n "(cached) " >&6
32233else
32234 case $xml2_config in
32235 [\\/]* | ?:[\\/]*)
32236 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32237 ;;
32238 *)
32239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32240for as_dir in $PATH
32241do
32242 IFS=$as_save_IFS
32243 test -z "$as_dir" && as_dir=.
32244 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032246 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32248 break 2
32249 fi
32250done
32251 done
32252IFS=$as_save_IFS
32253
32254 ;;
32255esac
32256fi
32257xml2_config=$ac_cv_path_xml2_config
32258if test -n "$xml2_config"; then
32259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32260$as_echo "$xml2_config" >&6; }
32261else
32262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32263$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032264fi
32265
cristy81beccd2011-10-03 18:17:24 +000032266 if test -n "$xml2_config"; then
32267 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32268 # the shared library installed under /usr/lib, whereas the package
32269 # installs itself under $prefix/libxml and $prefix/lib.
32270 xml2_prefix=`xml2-config --prefix`
32271 if test -d "${xml2_prefix}/include/libxml2"; then
32272 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32273 fi
32274 if test "${xml2_prefix}" != '/usr'; then
32275 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32276 fi
32277 fi
32278 failed=0
32279 passed=0
32280 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32281if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32282 passed=`expr $passed + 1`
32283else
32284 failed=`expr $failed + 1`
32285fi
32286
32287
32288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32289$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32290if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32291 $as_echo_n "(cached) " >&6
32292else
32293 ac_check_lib_save_LIBS=$LIBS
32294LIBS="-lxml2 $LIBS"
32295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32296/* end confdefs.h. */
32297
32298/* Override any GCC internal prototype to avoid an error.
32299 Use char because int might match the return type of a GCC
32300 builtin and then its argument prototype would still apply. */
32301#ifdef __cplusplus
32302extern "C"
32303#endif
32304char xmlSAXVersion ();
32305int
32306main ()
32307{
32308return xmlSAXVersion ();
32309 ;
32310 return 0;
32311}
32312_ACEOF
32313if ac_fn_c_try_link "$LINENO"; then :
32314 ac_cv_lib_xml2_xmlSAXVersion=yes
32315else
32316 ac_cv_lib_xml2_xmlSAXVersion=no
32317fi
32318rm -f core conftest.err conftest.$ac_objext \
32319 conftest$ac_exeext conftest.$ac_ext
32320LIBS=$ac_check_lib_save_LIBS
32321fi
32322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32323$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32324if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32325 passed=`expr $passed + 1`
32326else
32327 failed=`expr $failed + 1`
32328fi
32329
32330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32331$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32332if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32333 $as_echo_n "(cached) " >&6
32334else
32335 ac_check_lib_save_LIBS=$LIBS
32336LIBS="-lxml2 $LIBS"
32337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32338/* end confdefs.h. */
32339
32340/* Override any GCC internal prototype to avoid an error.
32341 Use char because int might match the return type of a GCC
32342 builtin and then its argument prototype would still apply. */
32343#ifdef __cplusplus
32344extern "C"
32345#endif
32346char xmlParseChunk ();
32347int
32348main ()
32349{
32350return xmlParseChunk ();
32351 ;
32352 return 0;
32353}
32354_ACEOF
32355if ac_fn_c_try_link "$LINENO"; then :
32356 ac_cv_lib_xml2_xmlParseChunk=yes
32357else
32358 ac_cv_lib_xml2_xmlParseChunk=no
32359fi
32360rm -f core conftest.err conftest.$ac_objext \
32361 conftest$ac_exeext conftest.$ac_ext
32362LIBS=$ac_check_lib_save_LIBS
32363fi
32364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32365$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32366if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32367 passed=`expr $passed + 1`
32368else
32369 failed=`expr $failed + 1`
32370fi
32371
32372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32373$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32374if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32375 $as_echo_n "(cached) " >&6
32376else
32377 ac_check_lib_save_LIBS=$LIBS
32378LIBS="-lxml2 $LIBS"
32379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32380/* end confdefs.h. */
32381
32382/* Override any GCC internal prototype to avoid an error.
32383 Use char because int might match the return type of a GCC
32384 builtin and then its argument prototype would still apply. */
32385#ifdef __cplusplus
32386extern "C"
32387#endif
32388char xmlCreatePushParserCtxt ();
32389int
32390main ()
32391{
32392return xmlCreatePushParserCtxt ();
32393 ;
32394 return 0;
32395}
32396_ACEOF
32397if ac_fn_c_try_link "$LINENO"; then :
32398 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32399else
32400 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32401fi
32402rm -f core conftest.err conftest.$ac_objext \
32403 conftest$ac_exeext conftest.$ac_ext
32404LIBS=$ac_check_lib_save_LIBS
32405fi
32406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32407$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32408if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32409 passed=`expr $passed + 1`
32410else
32411 failed=`expr $failed + 1`
32412fi
32413
32414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32415$as_echo_n "checking if XML package is complete... " >&6; }
32416 if test $passed -gt 0; then
32417 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32419$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032420 have_xml='no (failed tests)'
32421 LDFLAGS="$PERSIST_LDFLAGS"
32422 CPPFLAGS="$PERSIST_CPPFLAGS"
32423 else
32424 XML_LIBS='-lxml2'
32425 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032426
cristy8b350f62009-11-15 23:12:43 +000032427$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032428
cristyad38abe2012-12-23 23:03:21 +000032429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32430$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032431 have_xml='yes'
32432 fi
32433 else
cristyad38abe2012-12-23 23:03:21 +000032434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32435$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032436 fi
32437fi
cristy73bd4a52010-10-05 11:24:23 +000032438 if test "$have_xml" = 'yes'; then
32439 XML_DELEGATE_TRUE=
32440 XML_DELEGATE_FALSE='#'
32441else
32442 XML_DELEGATE_TRUE='#'
32443 XML_DELEGATE_FALSE=
32444fi
32445
cristy3ed852e2009-09-05 21:47:34 +000032446
32447
32448
32449# Substitute compiler name to build/link PerlMagick
32450#
32451
32452
32453#
32454# Configure install Paths
32455#
cristy7def36a2011-10-28 19:04:41 +000032456
cristy2a11bef2011-10-28 18:33:11 +000032457# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032458INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032459INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32460DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032461case "${build_os}" in
32462 mingw* )
32463 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32464 ;;
32465esac
32466
32467cat >>confdefs.h <<_ACEOF
32468#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32469_ACEOF
32470
32471
cristy3ed852e2009-09-05 21:47:34 +000032472
cristye52f12f2012-12-31 15:32:36 +000032473# Path to ImageMagick header files (arch part)
32474INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32475DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32476case "${build_os}" in
32477 mingw* )
32478 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32479 ;;
32480esac
32481
32482cat >>confdefs.h <<_ACEOF
32483#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32484_ACEOF
32485
32486
32487
cristy3ed852e2009-09-05 21:47:34 +000032488# Subdirectory under lib to place ImageMagick lib files
32489LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32490
32491cat >>confdefs.h <<_ACEOF
32492#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32493_ACEOF
32494
32495
32496# Path to ImageMagick bin directory
32497EXECUTABLE_PATH="${BIN_DIR}"
32498DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32499case "${build_os}" in
32500 mingw* )
32501 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32502 ;;
32503esac
32504
32505cat >>confdefs.h <<_ACEOF
32506#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32507_ACEOF
32508
32509
32510
32511# Path to ImageMagick lib
32512LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32513DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32514case "${build_os}" in
32515 mingw* )
32516 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32517 ;;
32518esac
32519
32520cat >>confdefs.h <<_ACEOF
32521#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32522_ACEOF
32523
32524
32525
cristy3ed852e2009-09-05 21:47:34 +000032526#
cristy8d0ff762013-03-10 20:33:28 +000032527# path to local binaries
32528if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32529 LIB_BIN_BASEDIRNAME="bin"
32530fi
32531
32532cat >>confdefs.h <<_ACEOF
32533#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32534_ACEOF
32535
32536
32537
32538if test "x$LIB_BIN_DIR" = "x"; then
32539 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32540fi
32541
32542
32543LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32544
32545LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32546
32547
32548#
cristy01ff9f32012-12-01 18:15:29 +000032549# path to modules lib
32550if test "x$MODULES_BASEDIRNAME" = "x"; then
32551 MODULES_BASEDIRNAME="modules"
32552fi
cristy3ed852e2009-09-05 21:47:34 +000032553
32554cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032555#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032556_ACEOF
32557
cristy01ff9f32012-12-01 18:15:29 +000032558
32559
32560if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032561 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32562else
cristy3ed852e2009-09-05 21:47:34 +000032563
32564cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032565#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032566_ACEOF
32567
cristycf4a3c22012-12-02 21:47:25 +000032568fi
cristy01ff9f32012-12-01 18:15:29 +000032569
32570
cristy371d4812012-12-01 19:48:10 +000032571MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032572
32573MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32574
32575
32576#
32577# path to coders lib
32578if test "x$CODER_DIRNAME" = "x"; then
32579 CODER_DIRNAME="coders"
32580fi
32581
32582cat >>confdefs.h <<_ACEOF
32583#define CODER_DIRNAME "$CODER_DIRNAME"
32584_ACEOF
32585
32586
32587
cristy371d4812012-12-01 19:48:10 +000032588CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032589CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032590
32591
32592#
32593# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032594#
32595# path to coders lib
32596if test "x$FILTER_DIRNAME" = "x"; then
32597 FILTER_DIRNAME="filters"
32598fi
cristy3ed852e2009-09-05 21:47:34 +000032599
32600cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032601#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032602_ACEOF
32603
cristy3ed852e2009-09-05 21:47:34 +000032604
cristy3ed852e2009-09-05 21:47:34 +000032605
cristy371d4812012-12-01 19:48:10 +000032606FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032607FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032608
32609
32610#
32611# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032612DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032613DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32614DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032615case "${build_os}" in
32616 mingw* )
32617 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32618 ;;
32619esac
32620
32621cat >>confdefs.h <<_ACEOF
32622#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32623_ACEOF
32624
32625
32626
cristy2a11bef2011-10-28 18:33:11 +000032627# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032628CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032629
32630cat >>confdefs.h <<_ACEOF
32631#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32632_ACEOF
32633
cristy7def36a2011-10-28 19:04:41 +000032634CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032635DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32636case "${build_os}" in
32637 mingw* )
32638 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32639 ;;
32640esac
32641
32642cat >>confdefs.h <<_ACEOF
32643#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32644_ACEOF
32645
32646
32647
cristy2a11bef2011-10-28 18:33:11 +000032648# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032649SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032650
32651cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032652#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032653_ACEOF
32654
cristy670aa3c2011-11-03 00:54:00 +000032655SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032656DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032657case "${build_os}" in
32658 mingw* )
cristy4f820712011-04-01 12:35:43 +000032659 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032660 ;;
32661esac
32662
32663cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032664#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032665_ACEOF
32666
32667
32668
cristy54378032012-12-04 15:52:20 +000032669#
32670# Subdirectory to place architecture-dependent configuration files.
32671if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32672 SHAREARCH_BASEDIRNAME="config"
32673fi
cristy670aa3c2011-11-03 00:54:00 +000032674
32675cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032676#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032677_ACEOF
32678
cristy54378032012-12-04 15:52:20 +000032679
32680
32681if test "x$SHAREARCH_DIRNAME" = "x"; then
32682 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32683else
cristy670aa3c2011-11-03 00:54:00 +000032684
32685cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032686#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032687_ACEOF
32688
cristy54378032012-12-04 15:52:20 +000032689fi
32690
32691
32692SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32693
32694SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032695
32696
cristy3ed852e2009-09-05 21:47:34 +000032697#
32698# program_transform_name is formed for use in a Makefile, so create a
32699# modified version for use in a shell script.
32700configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32701
32702# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32704$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032706$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32708$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032709AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032710BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032711BZIPDelegateDefault='bzip2'
32712BrowseDelegateDefault='xdg-open'
32713CGMDecodeDelegateDefault='ralcgm'
32714CatDelegateDefault='cat'
32715DNGDecodeDelegateDefault='ufraw-batch'
32716GVCDecodeDelegateDefault='dot'
32717DVIDecodeDelegateDefault='dvips'
32718EchoDelegateDefault='echo'
32719EditorDelegateDefault='xterm'
32720FIGDecodeDelegateDefault='fig2dev'
32721ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32722DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32723MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32724GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032725HPGLDecodeDelegateDefault='hp2xx'
32726HTMLDecodeDelegateDefault='html2ps'
32727ILBMDecodeDelegateDefault='ilbmtoppm'
32728ILBMEncodeDelegateDefault='ppmtoilbm'
32729LPDelegateDefault='lp'
32730LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032731LaunchDelegateDefault='gimp'
32732MANDelegateDefault='groff'
32733MPEGDecodeDelegateDefault='ffmpeg'
32734MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032735MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032736MVDelegateDefault='mv'
32737PCLDelegateDefault='pcl6'
32738PGPDecodeDelegateDefault='pgpv'
32739POVDelegateDefault='povray'
32740if test "$native_win32_build" = 'yes'; then
32741 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032742elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032743 PSDelegateDefault='gsc'
32744else
32745 PSDelegateDefault='gs'
32746fi
32747RLEEncodeDelegateDefault='rawtorle'
32748RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032749RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032750SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032751SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032752TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032753UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032754WMFDecodeDelegateDefault='wmf2eps'
32755WWWDecodeDelegateDefault='curl'
32756XPSDelegateDefault='gxps'
32757ZipDelegateDefault='gzip'
32758
32759# Search for delegates
32760# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32761set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032763$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032764if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032765 $as_echo_n "(cached) " >&6
32766else
32767 case $AutotraceDecodeDelegate in
32768 [\\/]* | ?:[\\/]*)
32769 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32770 ;;
32771 *)
32772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32773for as_dir in $PATH
32774do
32775 IFS=$as_save_IFS
32776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032779 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032781 break 2
32782 fi
32783done
cristy8b350f62009-11-15 23:12:43 +000032784 done
cristy3ed852e2009-09-05 21:47:34 +000032785IFS=$as_save_IFS
32786
32787 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32788 ;;
32789esac
32790fi
32791AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32792if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032794$as_echo "$AutotraceDecodeDelegate" >&6; }
32795else
cristy8b350f62009-11-15 23:12:43 +000032796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032797$as_echo "no" >&6; }
32798fi
32799
32800
cristy3ed852e2009-09-05 21:47:34 +000032801# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32802set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032804$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032805if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032806 $as_echo_n "(cached) " >&6
32807else
32808 case $BlenderDecodeDelegate in
32809 [\\/]* | ?:[\\/]*)
32810 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32811 ;;
32812 *)
32813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32814for as_dir in $PATH
32815do
32816 IFS=$as_save_IFS
32817 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032820 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032822 break 2
32823 fi
32824done
cristy8b350f62009-11-15 23:12:43 +000032825 done
cristy3ed852e2009-09-05 21:47:34 +000032826IFS=$as_save_IFS
32827
32828 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32829 ;;
32830esac
32831fi
32832BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32833if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032835$as_echo "$BlenderDecodeDelegate" >&6; }
32836else
cristy8b350f62009-11-15 23:12:43 +000032837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032838$as_echo "no" >&6; }
32839fi
32840
32841
32842# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32843set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032845$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032846if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032847 $as_echo_n "(cached) " >&6
32848else
32849 case $BZIPDelegate in
32850 [\\/]* | ?:[\\/]*)
32851 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32852 ;;
32853 *)
32854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32855for as_dir in $PATH
32856do
32857 IFS=$as_save_IFS
32858 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032859 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032861 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032863 break 2
32864 fi
32865done
cristy8b350f62009-11-15 23:12:43 +000032866 done
cristy3ed852e2009-09-05 21:47:34 +000032867IFS=$as_save_IFS
32868
32869 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32870 ;;
32871esac
32872fi
32873BZIPDelegate=$ac_cv_path_BZIPDelegate
32874if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032876$as_echo "$BZIPDelegate" >&6; }
32877else
cristy8b350f62009-11-15 23:12:43 +000032878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032879$as_echo "no" >&6; }
32880fi
32881
32882
cristyc59f0e72012-08-27 12:59:33 +000032883for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32884do
32885 # Extract the first word of "$ac_prog", so it can be a program name with args.
32886set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032888$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032889if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032890 $as_echo_n "(cached) " >&6
32891else
32892 case $BrowseDelegate in
32893 [\\/]* | ?:[\\/]*)
32894 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32895 ;;
32896 *)
32897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32898for as_dir in $PATH
32899do
32900 IFS=$as_save_IFS
32901 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032902 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032904 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032906 break 2
32907 fi
32908done
cristy8b350f62009-11-15 23:12:43 +000032909 done
cristy3ed852e2009-09-05 21:47:34 +000032910IFS=$as_save_IFS
32911
cristy3ed852e2009-09-05 21:47:34 +000032912 ;;
32913esac
32914fi
32915BrowseDelegate=$ac_cv_path_BrowseDelegate
32916if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032918$as_echo "$BrowseDelegate" >&6; }
32919else
cristy8b350f62009-11-15 23:12:43 +000032920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032921$as_echo "no" >&6; }
32922fi
32923
32924
cristyc59f0e72012-08-27 12:59:33 +000032925 test -n "$BrowseDelegate" && break
32926done
32927test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32928
cristy3ed852e2009-09-05 21:47:34 +000032929# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32930set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032933if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032934 $as_echo_n "(cached) " >&6
32935else
32936 case $CGMDecodeDelegate in
32937 [\\/]* | ?:[\\/]*)
32938 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32939 ;;
32940 *)
32941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32942for as_dir in $PATH
32943do
32944 IFS=$as_save_IFS
32945 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032948 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032950 break 2
32951 fi
32952done
cristy8b350f62009-11-15 23:12:43 +000032953 done
cristy3ed852e2009-09-05 21:47:34 +000032954IFS=$as_save_IFS
32955
32956 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32957 ;;
32958esac
32959fi
32960CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32961if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032963$as_echo "$CGMDecodeDelegate" >&6; }
32964else
cristy8b350f62009-11-15 23:12:43 +000032965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032966$as_echo "no" >&6; }
32967fi
32968
32969
32970# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32971set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032973$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032974if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032975 $as_echo_n "(cached) " >&6
32976else
32977 case $CatDelegate in
32978 [\\/]* | ?:[\\/]*)
32979 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32980 ;;
32981 *)
32982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32983for as_dir in $PATH
32984do
32985 IFS=$as_save_IFS
32986 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032987 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032989 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032991 break 2
32992 fi
32993done
cristy8b350f62009-11-15 23:12:43 +000032994 done
cristy3ed852e2009-09-05 21:47:34 +000032995IFS=$as_save_IFS
32996
32997 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32998 ;;
32999esac
33000fi
33001CatDelegate=$ac_cv_path_CatDelegate
33002if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033004$as_echo "$CatDelegate" >&6; }
33005else
cristy8b350f62009-11-15 23:12:43 +000033006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033007$as_echo "no" >&6; }
33008fi
33009
33010
33011# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33012set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033014$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033015if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033016 $as_echo_n "(cached) " >&6
33017else
33018 case $DNGDecodeDelegate in
33019 [\\/]* | ?:[\\/]*)
33020 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33021 ;;
33022 *)
33023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33024for as_dir in $PATH
33025do
33026 IFS=$as_save_IFS
33027 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033028 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033030 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033032 break 2
33033 fi
33034done
cristy8b350f62009-11-15 23:12:43 +000033035 done
cristy3ed852e2009-09-05 21:47:34 +000033036IFS=$as_save_IFS
33037
33038 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33039 ;;
33040esac
33041fi
33042DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33043if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033045$as_echo "$DNGDecodeDelegate" >&6; }
33046else
cristy8b350f62009-11-15 23:12:43 +000033047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033048$as_echo "no" >&6; }
33049fi
33050
33051
33052# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33053set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033055$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033056if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033057 $as_echo_n "(cached) " >&6
33058else
33059 case $GVCDecodeDelegate in
33060 [\\/]* | ?:[\\/]*)
33061 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33062 ;;
33063 *)
33064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33065for as_dir in $PATH
33066do
33067 IFS=$as_save_IFS
33068 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033069 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033071 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033073 break 2
33074 fi
33075done
cristy8b350f62009-11-15 23:12:43 +000033076 done
cristy3ed852e2009-09-05 21:47:34 +000033077IFS=$as_save_IFS
33078
33079 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33080 ;;
33081esac
33082fi
33083GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33084if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033086$as_echo "$GVCDecodeDelegate" >&6; }
33087else
cristy8b350f62009-11-15 23:12:43 +000033088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033089$as_echo "no" >&6; }
33090fi
33091
33092
33093# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33094set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033096$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033097if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033098 $as_echo_n "(cached) " >&6
33099else
33100 case $DVIDecodeDelegate in
33101 [\\/]* | ?:[\\/]*)
33102 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33103 ;;
33104 *)
33105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33106for as_dir in $PATH
33107do
33108 IFS=$as_save_IFS
33109 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033110 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033112 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033114 break 2
33115 fi
33116done
cristy8b350f62009-11-15 23:12:43 +000033117 done
cristy3ed852e2009-09-05 21:47:34 +000033118IFS=$as_save_IFS
33119
33120 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33121 ;;
33122esac
33123fi
33124DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33125if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033127$as_echo "$DVIDecodeDelegate" >&6; }
33128else
cristy8b350f62009-11-15 23:12:43 +000033129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033130$as_echo "no" >&6; }
33131fi
33132
33133
33134# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33135set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033137$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033138if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033139 $as_echo_n "(cached) " >&6
33140else
33141 case $EchoDelegate in
33142 [\\/]* | ?:[\\/]*)
33143 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33144 ;;
33145 *)
33146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33147for as_dir in $PATH
33148do
33149 IFS=$as_save_IFS
33150 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033151 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033153 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033155 break 2
33156 fi
33157done
cristy8b350f62009-11-15 23:12:43 +000033158 done
cristy3ed852e2009-09-05 21:47:34 +000033159IFS=$as_save_IFS
33160
33161 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33162 ;;
33163esac
33164fi
33165EchoDelegate=$ac_cv_path_EchoDelegate
33166if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033168$as_echo "$EchoDelegate" >&6; }
33169else
cristy8b350f62009-11-15 23:12:43 +000033170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033171$as_echo "no" >&6; }
33172fi
33173
33174
33175# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33176set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033178$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033179if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033180 $as_echo_n "(cached) " >&6
33181else
33182 case $EditorDelegate in
33183 [\\/]* | ?:[\\/]*)
33184 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33185 ;;
33186 *)
33187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33188for as_dir in $PATH
33189do
33190 IFS=$as_save_IFS
33191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033194 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033196 break 2
33197 fi
33198done
cristy8b350f62009-11-15 23:12:43 +000033199 done
cristy3ed852e2009-09-05 21:47:34 +000033200IFS=$as_save_IFS
33201
33202 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33203 ;;
33204esac
33205fi
33206EditorDelegate=$ac_cv_path_EditorDelegate
33207if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033209$as_echo "$EditorDelegate" >&6; }
33210else
cristy8b350f62009-11-15 23:12:43 +000033211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033212$as_echo "no" >&6; }
33213fi
33214
33215
33216# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33217set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033219$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033220if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033221 $as_echo_n "(cached) " >&6
33222else
33223 case $FIGDecodeDelegate in
33224 [\\/]* | ?:[\\/]*)
33225 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33226 ;;
33227 *)
33228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33229for as_dir in $PATH
33230do
33231 IFS=$as_save_IFS
33232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033235 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033237 break 2
33238 fi
33239done
cristy8b350f62009-11-15 23:12:43 +000033240 done
cristy3ed852e2009-09-05 21:47:34 +000033241IFS=$as_save_IFS
33242
33243 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33244 ;;
33245esac
33246fi
33247FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33248if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033250$as_echo "$FIGDecodeDelegate" >&6; }
33251else
cristy8b350f62009-11-15 23:12:43 +000033252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033253$as_echo "no" >&6; }
33254fi
33255
33256
33257# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33258set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033260$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033261if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033262 $as_echo_n "(cached) " >&6
33263else
33264 case $ConvertDelegate in
33265 [\\/]* | ?:[\\/]*)
33266 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33267 ;;
33268 *)
33269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33270for as_dir in $PATH
33271do
33272 IFS=$as_save_IFS
33273 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033276 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033278 break 2
33279 fi
33280done
cristy8b350f62009-11-15 23:12:43 +000033281 done
cristy3ed852e2009-09-05 21:47:34 +000033282IFS=$as_save_IFS
33283
33284 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33285 ;;
33286esac
33287fi
33288ConvertDelegate=$ac_cv_path_ConvertDelegate
33289if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033291$as_echo "$ConvertDelegate" >&6; }
33292else
cristy8b350f62009-11-15 23:12:43 +000033293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033294$as_echo "no" >&6; }
33295fi
33296
33297
33298# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33299set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033301$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033302if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033303 $as_echo_n "(cached) " >&6
33304else
33305 case $DisplayDelegate in
33306 [\\/]* | ?:[\\/]*)
33307 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33308 ;;
33309 *)
33310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33311for as_dir in $PATH
33312do
33313 IFS=$as_save_IFS
33314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033317 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033319 break 2
33320 fi
33321done
cristy8b350f62009-11-15 23:12:43 +000033322 done
cristy3ed852e2009-09-05 21:47:34 +000033323IFS=$as_save_IFS
33324
33325 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33326 ;;
33327esac
33328fi
33329DisplayDelegate=$ac_cv_path_DisplayDelegate
33330if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033332$as_echo "$DisplayDelegate" >&6; }
33333else
cristy8b350f62009-11-15 23:12:43 +000033334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033335$as_echo "no" >&6; }
33336fi
33337
33338
33339# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33340set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033343if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033344 $as_echo_n "(cached) " >&6
33345else
33346 case $MogrifyDelegate in
33347 [\\/]* | ?:[\\/]*)
33348 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33349 ;;
33350 *)
33351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33352for as_dir in $PATH
33353do
33354 IFS=$as_save_IFS
33355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033358 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033360 break 2
33361 fi
33362done
cristy8b350f62009-11-15 23:12:43 +000033363 done
cristy3ed852e2009-09-05 21:47:34 +000033364IFS=$as_save_IFS
33365
33366 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33367 ;;
33368esac
33369fi
33370MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33371if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033373$as_echo "$MogrifyDelegate" >&6; }
33374else
cristy8b350f62009-11-15 23:12:43 +000033375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033376$as_echo "no" >&6; }
33377fi
33378
33379
33380# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33381set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033383$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033384if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033385 $as_echo_n "(cached) " >&6
33386else
33387 case $GnuplotDecodeDelegate in
33388 [\\/]* | ?:[\\/]*)
33389 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33390 ;;
33391 *)
33392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33393for as_dir in $PATH
33394do
33395 IFS=$as_save_IFS
33396 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033399 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033401 break 2
33402 fi
33403done
cristy8b350f62009-11-15 23:12:43 +000033404 done
cristy3ed852e2009-09-05 21:47:34 +000033405IFS=$as_save_IFS
33406
33407 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33408 ;;
33409esac
33410fi
33411GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33412if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033414$as_echo "$GnuplotDecodeDelegate" >&6; }
33415else
cristy8b350f62009-11-15 23:12:43 +000033416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033417$as_echo "no" >&6; }
33418fi
33419
33420
cristy3ed852e2009-09-05 21:47:34 +000033421# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33422set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033424$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033425if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033426 $as_echo_n "(cached) " >&6
33427else
33428 case $HPGLDecodeDelegate in
33429 [\\/]* | ?:[\\/]*)
33430 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33431 ;;
33432 *)
33433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33434for as_dir in $PATH
33435do
33436 IFS=$as_save_IFS
33437 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033438 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033440 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033442 break 2
33443 fi
33444done
cristy8b350f62009-11-15 23:12:43 +000033445 done
cristy3ed852e2009-09-05 21:47:34 +000033446IFS=$as_save_IFS
33447
33448 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33449 ;;
33450esac
33451fi
33452HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33453if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033455$as_echo "$HPGLDecodeDelegate" >&6; }
33456else
cristy8b350f62009-11-15 23:12:43 +000033457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033458$as_echo "no" >&6; }
33459fi
33460
33461
33462# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33463set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033466if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033467 $as_echo_n "(cached) " >&6
33468else
33469 case $HTMLDecodeDelegate in
33470 [\\/]* | ?:[\\/]*)
33471 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33472 ;;
33473 *)
33474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33475for as_dir in $PATH
33476do
33477 IFS=$as_save_IFS
33478 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033481 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033483 break 2
33484 fi
33485done
cristy8b350f62009-11-15 23:12:43 +000033486 done
cristy3ed852e2009-09-05 21:47:34 +000033487IFS=$as_save_IFS
33488
33489 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33490 ;;
33491esac
33492fi
33493HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33494if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033496$as_echo "$HTMLDecodeDelegate" >&6; }
33497else
cristy8b350f62009-11-15 23:12:43 +000033498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033499$as_echo "no" >&6; }
33500fi
33501
33502
33503# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33504set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033506$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033507if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033508 $as_echo_n "(cached) " >&6
33509else
33510 case $ILBMDecodeDelegate in
33511 [\\/]* | ?:[\\/]*)
33512 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33513 ;;
33514 *)
33515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33516for as_dir in $PATH
33517do
33518 IFS=$as_save_IFS
33519 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033520 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033522 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033524 break 2
33525 fi
33526done
cristy8b350f62009-11-15 23:12:43 +000033527 done
cristy3ed852e2009-09-05 21:47:34 +000033528IFS=$as_save_IFS
33529
33530 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33531 ;;
33532esac
33533fi
33534ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33535if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033537$as_echo "$ILBMDecodeDelegate" >&6; }
33538else
cristy8b350f62009-11-15 23:12:43 +000033539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033540$as_echo "no" >&6; }
33541fi
33542
33543
33544# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33545set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033547$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033548if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033549 $as_echo_n "(cached) " >&6
33550else
33551 case $ILBMEncodeDelegate in
33552 [\\/]* | ?:[\\/]*)
33553 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33554 ;;
33555 *)
33556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33557for as_dir in $PATH
33558do
33559 IFS=$as_save_IFS
33560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033563 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033565 break 2
33566 fi
33567done
cristy8b350f62009-11-15 23:12:43 +000033568 done
cristy3ed852e2009-09-05 21:47:34 +000033569IFS=$as_save_IFS
33570
33571 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33572 ;;
33573esac
33574fi
33575ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33576if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033578$as_echo "$ILBMEncodeDelegate" >&6; }
33579else
cristy8b350f62009-11-15 23:12:43 +000033580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033581$as_echo "no" >&6; }
33582fi
33583
33584
33585# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33586set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033588$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033589if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033590 $as_echo_n "(cached) " >&6
33591else
33592 case $LPDelegate in
33593 [\\/]* | ?:[\\/]*)
33594 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33595 ;;
33596 *)
33597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33598for as_dir in $PATH
33599do
33600 IFS=$as_save_IFS
33601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033604 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033606 break 2
33607 fi
33608done
cristy8b350f62009-11-15 23:12:43 +000033609 done
cristy3ed852e2009-09-05 21:47:34 +000033610IFS=$as_save_IFS
33611
33612 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33613 ;;
33614esac
33615fi
33616LPDelegate=$ac_cv_path_LPDelegate
33617if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033619$as_echo "$LPDelegate" >&6; }
33620else
cristy8b350f62009-11-15 23:12:43 +000033621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033622$as_echo "no" >&6; }
33623fi
33624
33625
33626# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33627set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033630if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033631 $as_echo_n "(cached) " >&6
33632else
33633 case $LPRDelegate in
33634 [\\/]* | ?:[\\/]*)
33635 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33636 ;;
33637 *)
33638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33639for as_dir in $PATH
33640do
33641 IFS=$as_save_IFS
33642 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033643 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033645 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033647 break 2
33648 fi
33649done
cristy8b350f62009-11-15 23:12:43 +000033650 done
cristy3ed852e2009-09-05 21:47:34 +000033651IFS=$as_save_IFS
33652
33653 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33654 ;;
33655esac
33656fi
33657LPRDelegate=$ac_cv_path_LPRDelegate
33658if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033660$as_echo "$LPRDelegate" >&6; }
33661else
cristy8b350f62009-11-15 23:12:43 +000033662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033663$as_echo "no" >&6; }
33664fi
33665
33666
cristy3ed852e2009-09-05 21:47:34 +000033667# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33668set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033670$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033671if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033672 $as_echo_n "(cached) " >&6
33673else
33674 case $LaunchDelegate in
33675 [\\/]* | ?:[\\/]*)
33676 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33677 ;;
33678 *)
33679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33680for as_dir in $PATH
33681do
33682 IFS=$as_save_IFS
33683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033686 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033688 break 2
33689 fi
33690done
cristy8b350f62009-11-15 23:12:43 +000033691 done
cristy3ed852e2009-09-05 21:47:34 +000033692IFS=$as_save_IFS
33693
33694 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33695 ;;
33696esac
33697fi
33698LaunchDelegate=$ac_cv_path_LaunchDelegate
33699if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033701$as_echo "$LaunchDelegate" >&6; }
33702else
cristy8b350f62009-11-15 23:12:43 +000033703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033704$as_echo "no" >&6; }
33705fi
33706
33707
33708# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33709set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033711$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033712if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033713 $as_echo_n "(cached) " >&6
33714else
33715 case $MANDelegate in
33716 [\\/]* | ?:[\\/]*)
33717 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33718 ;;
33719 *)
33720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33721for as_dir in $PATH
33722do
33723 IFS=$as_save_IFS
33724 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033725 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033727 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033729 break 2
33730 fi
33731done
cristy8b350f62009-11-15 23:12:43 +000033732 done
cristy3ed852e2009-09-05 21:47:34 +000033733IFS=$as_save_IFS
33734
33735 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33736 ;;
33737esac
33738fi
33739MANDelegate=$ac_cv_path_MANDelegate
33740if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033742$as_echo "$MANDelegate" >&6; }
33743else
cristy8b350f62009-11-15 23:12:43 +000033744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033745$as_echo "no" >&6; }
33746fi
33747
33748
33749# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33750set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033752$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033753if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033754 $as_echo_n "(cached) " >&6
33755else
33756 case $MPEGDecodeDelegate in
33757 [\\/]* | ?:[\\/]*)
33758 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33759 ;;
33760 *)
33761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33762for as_dir in $PATH
33763do
33764 IFS=$as_save_IFS
33765 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033768 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033770 break 2
33771 fi
33772done
cristy8b350f62009-11-15 23:12:43 +000033773 done
cristy3ed852e2009-09-05 21:47:34 +000033774IFS=$as_save_IFS
33775
33776 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33777 ;;
33778esac
33779fi
33780MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33781if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033783$as_echo "$MPEGDecodeDelegate" >&6; }
33784else
cristy8b350f62009-11-15 23:12:43 +000033785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033786$as_echo "no" >&6; }
33787fi
33788
33789
33790# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33791set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033794if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033795 $as_echo_n "(cached) " >&6
33796else
33797 case $MPEGEncodeDelegate in
33798 [\\/]* | ?:[\\/]*)
33799 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33800 ;;
33801 *)
33802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33803for as_dir in $PATH
33804do
33805 IFS=$as_save_IFS
33806 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033809 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033811 break 2
33812 fi
33813done
cristy8b350f62009-11-15 23:12:43 +000033814 done
cristy3ed852e2009-09-05 21:47:34 +000033815IFS=$as_save_IFS
33816
33817 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33818 ;;
33819esac
33820fi
33821MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33822if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033824$as_echo "$MPEGEncodeDelegate" >&6; }
33825else
cristy8b350f62009-11-15 23:12:43 +000033826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033827$as_echo "no" >&6; }
33828fi
33829
33830
cristy935c86e2010-06-05 23:50:07 +000033831# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33832set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33834$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033835if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033836 $as_echo_n "(cached) " >&6
33837else
33838 case $MrSIDDecodeDelegate in
33839 [\\/]* | ?:[\\/]*)
33840 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33841 ;;
33842 *)
33843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33844for as_dir in $PATH
33845do
33846 IFS=$as_save_IFS
33847 test -z "$as_dir" && as_dir=.
33848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033850 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33852 break 2
33853 fi
33854done
33855 done
33856IFS=$as_save_IFS
33857
33858 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33859 ;;
33860esac
33861fi
33862MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33863if test -n "$MrSIDDecodeDelegate"; then
33864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33865$as_echo "$MrSIDDecodeDelegate" >&6; }
33866else
33867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33868$as_echo "no" >&6; }
33869fi
33870
33871
cristy3ed852e2009-09-05 21:47:34 +000033872# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33873set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033875$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033876if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033877 $as_echo_n "(cached) " >&6
33878else
33879 case $MVDelegate in
33880 [\\/]* | ?:[\\/]*)
33881 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33882 ;;
33883 *)
33884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33885for as_dir in $PATH
33886do
33887 IFS=$as_save_IFS
33888 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033891 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033893 break 2
33894 fi
33895done
cristy8b350f62009-11-15 23:12:43 +000033896 done
cristy3ed852e2009-09-05 21:47:34 +000033897IFS=$as_save_IFS
33898
33899 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33900 ;;
33901esac
33902fi
33903MVDelegate=$ac_cv_path_MVDelegate
33904if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033906$as_echo "$MVDelegate" >&6; }
33907else
cristy8b350f62009-11-15 23:12:43 +000033908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033909$as_echo "no" >&6; }
33910fi
33911
33912
33913# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33914set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033917if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033918 $as_echo_n "(cached) " >&6
33919else
33920 case $PCLDelegate in
33921 [\\/]* | ?:[\\/]*)
33922 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33923 ;;
33924 *)
33925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33926for as_dir in $PATH
33927do
33928 IFS=$as_save_IFS
33929 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033930 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033932 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033934 break 2
33935 fi
33936done
cristy8b350f62009-11-15 23:12:43 +000033937 done
cristy3ed852e2009-09-05 21:47:34 +000033938IFS=$as_save_IFS
33939
33940 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33941 ;;
33942esac
33943fi
33944PCLDelegate=$ac_cv_path_PCLDelegate
33945if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033947$as_echo "$PCLDelegate" >&6; }
33948else
cristy8b350f62009-11-15 23:12:43 +000033949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033950$as_echo "no" >&6; }
33951fi
33952
33953
33954# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33955set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033957$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033958if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033959 $as_echo_n "(cached) " >&6
33960else
33961 case $PGPDecodeDelegate in
33962 [\\/]* | ?:[\\/]*)
33963 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33964 ;;
33965 *)
33966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33967for as_dir in $PATH
33968do
33969 IFS=$as_save_IFS
33970 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033971 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033973 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033975 break 2
33976 fi
33977done
cristy8b350f62009-11-15 23:12:43 +000033978 done
cristy3ed852e2009-09-05 21:47:34 +000033979IFS=$as_save_IFS
33980
33981 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33982 ;;
33983esac
33984fi
33985PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33986if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033988$as_echo "$PGPDecodeDelegate" >&6; }
33989else
cristy8b350f62009-11-15 23:12:43 +000033990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033991$as_echo "no" >&6; }
33992fi
33993
33994
33995# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33996set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033998$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033999if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034000 $as_echo_n "(cached) " >&6
34001else
34002 case $POVDelegate in
34003 [\\/]* | ?:[\\/]*)
34004 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34005 ;;
34006 *)
34007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34008for as_dir in $PATH
34009do
34010 IFS=$as_save_IFS
34011 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034012 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034014 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034016 break 2
34017 fi
34018done
cristy8b350f62009-11-15 23:12:43 +000034019 done
cristy3ed852e2009-09-05 21:47:34 +000034020IFS=$as_save_IFS
34021
34022 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34023 ;;
34024esac
34025fi
34026POVDelegate=$ac_cv_path_POVDelegate
34027if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034029$as_echo "$POVDelegate" >&6; }
34030else
cristy8b350f62009-11-15 23:12:43 +000034031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034032$as_echo "no" >&6; }
34033fi
34034
34035
34036for ac_prog in gsx gsc "$PSDelegateDefault"
34037do
34038 # Extract the first word of "$ac_prog", so it can be a program name with args.
34039set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034041$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034042if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034043 $as_echo_n "(cached) " >&6
34044else
34045 case $PSDelegate in
34046 [\\/]* | ?:[\\/]*)
34047 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34048 ;;
34049 *)
34050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34051for as_dir in $PATH
34052do
34053 IFS=$as_save_IFS
34054 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034055 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034057 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034059 break 2
34060 fi
34061done
cristy8b350f62009-11-15 23:12:43 +000034062 done
cristy3ed852e2009-09-05 21:47:34 +000034063IFS=$as_save_IFS
34064
34065 ;;
34066esac
34067fi
34068PSDelegate=$ac_cv_path_PSDelegate
34069if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034071$as_echo "$PSDelegate" >&6; }
34072else
cristy8b350f62009-11-15 23:12:43 +000034073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034074$as_echo "no" >&6; }
34075fi
34076
34077
34078 test -n "$PSDelegate" && break
34079done
34080test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34081
34082# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34083set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034086if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034087 $as_echo_n "(cached) " >&6
34088else
34089 case $RLEEncodeDelegate in
34090 [\\/]* | ?:[\\/]*)
34091 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34092 ;;
34093 *)
34094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34095for as_dir in $PATH
34096do
34097 IFS=$as_save_IFS
34098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034101 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034103 break 2
34104 fi
34105done
cristy8b350f62009-11-15 23:12:43 +000034106 done
cristy3ed852e2009-09-05 21:47:34 +000034107IFS=$as_save_IFS
34108
34109 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34110 ;;
34111esac
34112fi
34113RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34114if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034116$as_echo "$RLEEncodeDelegate" >&6; }
34117else
cristy8b350f62009-11-15 23:12:43 +000034118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034119$as_echo "no" >&6; }
34120fi
34121
34122
34123# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34124set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034127if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034128 $as_echo_n "(cached) " >&6
34129else
34130 case $RMDelegate in
34131 [\\/]* | ?:[\\/]*)
34132 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34133 ;;
34134 *)
34135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34136for as_dir in $PATH
34137do
34138 IFS=$as_save_IFS
34139 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034142 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034144 break 2
34145 fi
34146done
cristy8b350f62009-11-15 23:12:43 +000034147 done
cristy3ed852e2009-09-05 21:47:34 +000034148IFS=$as_save_IFS
34149
34150 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34151 ;;
34152esac
34153fi
34154RMDelegate=$ac_cv_path_RMDelegate
34155if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034157$as_echo "$RMDelegate" >&6; }
34158else
cristy8b350f62009-11-15 23:12:43 +000034159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034160$as_echo "no" >&6; }
34161fi
34162
34163
cristy4689cf02010-02-17 21:15:45 +000034164# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34165set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34167$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034168if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034169 $as_echo_n "(cached) " >&6
34170else
34171 case $RSVGDecodeDelegate in
34172 [\\/]* | ?:[\\/]*)
34173 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34174 ;;
34175 *)
34176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34177for as_dir in $PATH
34178do
34179 IFS=$as_save_IFS
34180 test -z "$as_dir" && as_dir=.
34181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034183 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34185 break 2
34186 fi
34187done
34188 done
34189IFS=$as_save_IFS
34190
34191 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34192 ;;
34193esac
34194fi
34195RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34196if test -n "$RSVGDecodeDelegate"; then
34197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34198$as_echo "$RSVGDecodeDelegate" >&6; }
34199else
34200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34201$as_echo "no" >&6; }
34202fi
34203
34204
cristy3ed852e2009-09-05 21:47:34 +000034205# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34206set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034208$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034209if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034210 $as_echo_n "(cached) " >&6
34211else
34212 case $SCANDecodeDelegate in
34213 [\\/]* | ?:[\\/]*)
34214 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34215 ;;
34216 *)
34217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34218for as_dir in $PATH
34219do
34220 IFS=$as_save_IFS
34221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034224 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034226 break 2
34227 fi
34228done
cristy8b350f62009-11-15 23:12:43 +000034229 done
cristy3ed852e2009-09-05 21:47:34 +000034230IFS=$as_save_IFS
34231
34232 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34233 ;;
34234esac
34235fi
34236SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34237if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034239$as_echo "$SCANDecodeDelegate" >&6; }
34240else
cristy8b350f62009-11-15 23:12:43 +000034241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034242$as_echo "no" >&6; }
34243fi
34244
34245
cristyec6934f2012-08-14 18:38:40 +000034246# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34247set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34249$as_echo_n "checking for $ac_word... " >&6; }
34250if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34251 $as_echo_n "(cached) " >&6
34252else
34253 case $SVGDecodeDelegate in
34254 [\\/]* | ?:[\\/]*)
34255 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34256 ;;
34257 *)
34258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34259for as_dir in $PATH
34260do
34261 IFS=$as_save_IFS
34262 test -z "$as_dir" && as_dir=.
34263 for ac_exec_ext in '' $ac_executable_extensions; do
34264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34265 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34267 break 2
34268 fi
34269done
34270 done
34271IFS=$as_save_IFS
34272
34273 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34274 ;;
34275esac
34276fi
34277SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34278if test -n "$SVGDecodeDelegate"; then
34279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34280$as_echo "$SVGDecodeDelegate" >&6; }
34281else
34282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34283$as_echo "no" >&6; }
34284fi
34285
34286
cristy3ed852e2009-09-05 21:47:34 +000034287# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34288set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034290$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034291if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034292 $as_echo_n "(cached) " >&6
34293else
34294 case $TXTDelegate in
34295 [\\/]* | ?:[\\/]*)
34296 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34297 ;;
34298 *)
34299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34300for as_dir in $PATH
34301do
34302 IFS=$as_save_IFS
34303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034306 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034308 break 2
34309 fi
34310done
cristy8b350f62009-11-15 23:12:43 +000034311 done
cristy3ed852e2009-09-05 21:47:34 +000034312IFS=$as_save_IFS
34313
34314 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34315 ;;
34316esac
34317fi
34318TXTDelegate=$ac_cv_path_TXTDelegate
34319if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034321$as_echo "$TXTDelegate" >&6; }
34322else
cristy8b350f62009-11-15 23:12:43 +000034323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034324$as_echo "no" >&6; }
34325fi
34326
34327
cristy5ac9ac82010-07-29 13:24:24 +000034328# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34329set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34331$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034332if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034333 $as_echo_n "(cached) " >&6
34334else
34335 case $UniconvertorDelegate in
34336 [\\/]* | ?:[\\/]*)
34337 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34338 ;;
34339 *)
34340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34341for as_dir in $PATH
34342do
34343 IFS=$as_save_IFS
34344 test -z "$as_dir" && as_dir=.
34345 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034347 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34349 break 2
34350 fi
34351done
34352 done
34353IFS=$as_save_IFS
34354
34355 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34356 ;;
34357esac
34358fi
34359UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34360if test -n "$UniconvertorDelegate"; then
34361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34362$as_echo "$UniconvertorDelegate" >&6; }
34363else
34364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34365$as_echo "no" >&6; }
34366fi
34367
34368
cristy3ed852e2009-09-05 21:47:34 +000034369# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34370set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034373if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034374 $as_echo_n "(cached) " >&6
34375else
34376 case $WMFDecodeDelegate in
34377 [\\/]* | ?:[\\/]*)
34378 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34379 ;;
34380 *)
34381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34382for as_dir in $PATH
34383do
34384 IFS=$as_save_IFS
34385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034388 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034390 break 2
34391 fi
34392done
cristy8b350f62009-11-15 23:12:43 +000034393 done
cristy3ed852e2009-09-05 21:47:34 +000034394IFS=$as_save_IFS
34395
34396 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34397 ;;
34398esac
34399fi
34400WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34401if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034403$as_echo "$WMFDecodeDelegate" >&6; }
34404else
cristy8b350f62009-11-15 23:12:43 +000034405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034406$as_echo "no" >&6; }
34407fi
34408
34409
34410# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34411set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034413$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034414if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034415 $as_echo_n "(cached) " >&6
34416else
34417 case $WWWDecodeDelegate in
34418 [\\/]* | ?:[\\/]*)
34419 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34420 ;;
34421 *)
34422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34423for as_dir in $PATH
34424do
34425 IFS=$as_save_IFS
34426 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034427 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034429 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034431 break 2
34432 fi
34433done
cristy8b350f62009-11-15 23:12:43 +000034434 done
cristy3ed852e2009-09-05 21:47:34 +000034435IFS=$as_save_IFS
34436
34437 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34438 ;;
34439esac
34440fi
34441WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34442if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034444$as_echo "$WWWDecodeDelegate" >&6; }
34445else
cristy8b350f62009-11-15 23:12:43 +000034446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034447$as_echo "no" >&6; }
34448fi
34449
34450
34451# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34452set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034455if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034456 $as_echo_n "(cached) " >&6
34457else
34458 case $XPSDelegate in
34459 [\\/]* | ?:[\\/]*)
34460 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34461 ;;
34462 *)
34463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34464for as_dir in $PATH
34465do
34466 IFS=$as_save_IFS
34467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034470 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034472 break 2
34473 fi
34474done
cristy8b350f62009-11-15 23:12:43 +000034475 done
cristy3ed852e2009-09-05 21:47:34 +000034476IFS=$as_save_IFS
34477
34478 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34479 ;;
34480esac
34481fi
34482XPSDelegate=$ac_cv_path_XPSDelegate
34483if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034485$as_echo "$XPSDelegate" >&6; }
34486else
cristy8b350f62009-11-15 23:12:43 +000034487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034488$as_echo "no" >&6; }
34489fi
34490
34491
34492# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34493set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034496if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034497 $as_echo_n "(cached) " >&6
34498else
34499 case $ZipDelegate in
34500 [\\/]* | ?:[\\/]*)
34501 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34502 ;;
34503 *)
34504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34505for as_dir in $PATH
34506do
34507 IFS=$as_save_IFS
34508 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034511 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034513 break 2
34514 fi
34515done
cristy8b350f62009-11-15 23:12:43 +000034516 done
cristy3ed852e2009-09-05 21:47:34 +000034517IFS=$as_save_IFS
34518
34519 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34520 ;;
34521esac
34522fi
34523ZipDelegate=$ac_cv_path_ZipDelegate
34524if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034526$as_echo "$ZipDelegate" >&6; }
34527else
cristy8b350f62009-11-15 23:12:43 +000034528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034529$as_echo "no" >&6; }
34530fi
34531
34532
34533
34534# Prefer lpr to lp; lp needs options tacked on.
34535if test "$LPRDelegate" != no; then
34536 PrintDelegate="$LPRDelegate"
34537else
34538 PrintDelegate="$LPDelegate -c -s"
34539fi
34540
34541
34542# Installed ImageMagick utiltity paths
34543ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34544DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34545MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34546
34547# Set delegate booleans
34548have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34549have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34550have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34551have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34552have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034553have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034554have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34555have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034556have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34557have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34558
34559#
34560# Test for font directories
34561#
34562type_include_files=''
34563
cristy430a7312010-01-21 20:44:04 +000034564# Dejavu fonts.
34565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34566$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34567dejavu_font_dir=''
34568if test "${with_dejavu_font_dir}" != 'default'; then
34569 dejavu_font_dir="${with_dejavu_font_dir}/"
34570else
34571 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34572 if test -f "${font_dir}DejaVuSerif.ttf"; then
34573 dejavu_font_dir="${font_dir}"
34574 break 1
34575 fi
34576 done
34577fi
34578if test "${dejavu_font_dir}x" != 'x'; then
34579 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34581$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034582else
cristyad38abe2012-12-23 23:03:21 +000034583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34584$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034585fi
34586
34587
cristy3ed852e2009-09-05 21:47:34 +000034588# Windows
34589windows_font_dir=''
34590if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34591 windows_font_dir="${with_windows_font_dir}/"
34592fi
cristy430a7312010-01-21 20:44:04 +000034593if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034594 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34595 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34596 fi
34597 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34598 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34599 fi
34600 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34601 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34602 fi
34603fi
cristy430a7312010-01-21 20:44:04 +000034604if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034605 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34606fi
34607
34608
34609# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034611$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34612ghostscript_font_dir=''
34613if test "${with_gs_font_dir}" != 'default'; then
34614 ghostscript_font_dir="${with_gs_font_dir}/"
34615else
34616 if test "${native_win32_build}" = 'yes'; then
34617 # Native Windows Build
34618 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34619 if test -f "${font_dir}a010013l.pfb"; then
34620 ghostscript_font_dir="$font_dir"
34621 break 1
34622 fi
34623 done
34624 if test "${PSDelegate}" != 'gswin32c'; then
34625 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34626 fi
34627 else
34628 # Linux / Mac OS X / Unix Build
34629 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
34630 if test -f "${font_dir}a010013l.pfb"; then
34631 ghostscript_font_dir="${font_dir}"
34632 break 1
34633 fi
34634 done
34635 if test "${ghostscript_font_dir}x" = 'x'; then
34636 if test "$PSDelegate" != 'gs'; then
34637 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34638 fi
34639 fi
34640 fi
34641fi
34642if test "${ghostscript_font_dir}x" != 'x'; then
34643 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34645$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034646else
cristyad38abe2012-12-23 23:03:21 +000034647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34648$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034649fi
34650
34651case "${build_os}" in
34652 mingw* )
34653 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34654 ;;
34655esac
34656
34657
34658
34659#
34660# Handle case where user doesn't want frozen paths
34661#
34662if test "$with_frozenpaths" != 'yes'; then
34663 # Re-set delegate definitions to default (no paths)
34664 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034665 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34666 BZIPDelegate="$BZIPDelegateDefault"
34667 BrowseDelegate="$BrowseDelegateDefault"
34668 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34669 CatDelegate="$CatDelegateDefault"
34670 ConvertDelegate="$ConvertDelegateDefault"
34671 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34672 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34673 EchoDelegate="$EchoDelegateDefault"
34674 EditorDelegate="$EditorDelegateDefault"
34675 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34676 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34677 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34678 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34679 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34680 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34681 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034682 LaunchDelegate="$LaunchDelegateDefault"
34683 MANDelegate="$MANDelegateDefault"
34684 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34685 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034686 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034687 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34688 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034689 PCLDelegate="$PCLDelegateDefault"
34690 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34691 POVDelegate="$POVDelegateDefault"
34692 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034693 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34694 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034695 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034696 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034697 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034698 ShowImageDelegate="$ShowImageDelegateDefault"
34699 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034700 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034701 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34702 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34703 XPSDelegate="$XPSDelegateDefault"
34704 ZipDelegate="$ZipDelegateDefault"
34705fi
34706
34707# Delegate substitutions
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
34738
34739
34740
34741
34742
34743
34744
34745
34746
34747
cristy3ed852e2009-09-05 21:47:34 +000034748#
34749# RPM support.
34750#
34751RPM=''
34752for ac_prog in gnutar gtar tar
34753do
34754 # Extract the first word of "$ac_prog", so it can be a program name with args.
34755set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034757$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034758if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034759 $as_echo_n "(cached) " >&6
34760else
34761 if test -n "$TAR"; then
34762 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34763else
34764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34765for as_dir in $PATH
34766do
34767 IFS=$as_save_IFS
34768 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034769 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034771 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034773 break 2
34774 fi
34775done
cristy8b350f62009-11-15 23:12:43 +000034776 done
cristy3ed852e2009-09-05 21:47:34 +000034777IFS=$as_save_IFS
34778
34779fi
34780fi
34781TAR=$ac_cv_prog_TAR
34782if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034784$as_echo "$TAR" >&6; }
34785else
cristy8b350f62009-11-15 23:12:43 +000034786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034787$as_echo "no" >&6; }
34788fi
34789
34790
34791 test -n "$TAR" && break
34792done
34793
34794for ac_prog in perl
34795do
34796 # Extract the first word of "$ac_prog", so it can be a program name with args.
34797set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034799$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034800if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034801 $as_echo_n "(cached) " >&6
34802else
34803 if test -n "$PERL"; then
34804 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34805else
34806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34807for as_dir in $PATH
34808do
34809 IFS=$as_save_IFS
34810 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034811 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034813 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034815 break 2
34816 fi
34817done
cristy8b350f62009-11-15 23:12:43 +000034818 done
cristy3ed852e2009-09-05 21:47:34 +000034819IFS=$as_save_IFS
34820
34821fi
34822fi
34823PERL=$ac_cv_prog_PERL
34824if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034826$as_echo "$PERL" >&6; }
34827else
cristy8b350f62009-11-15 23:12:43 +000034828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034829$as_echo "no" >&6; }
34830fi
34831
34832
34833 test -n "$PERL" && break
34834done
34835
34836for ac_prog in rpmbuild rpm
34837do
34838 # Extract the first word of "$ac_prog", so it can be a program name with args.
34839set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034841$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034842if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034843 $as_echo_n "(cached) " >&6
34844else
34845 if test -n "$RPM"; then
34846 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34847else
34848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34849for as_dir in $PATH
34850do
34851 IFS=$as_save_IFS
34852 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034853 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034855 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034857 break 2
34858 fi
34859done
cristy8b350f62009-11-15 23:12:43 +000034860 done
cristy3ed852e2009-09-05 21:47:34 +000034861IFS=$as_save_IFS
34862
34863fi
34864fi
34865RPM=$ac_cv_prog_RPM
34866if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034868$as_echo "$RPM" >&6; }
34869else
cristy8b350f62009-11-15 23:12:43 +000034870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034871$as_echo "no" >&6; }
34872fi
34873
34874
34875 test -n "$RPM" && break
34876done
34877
34878
cristy73bd4a52010-10-05 11:24:23 +000034879ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34880
34881
34882AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34883
34884
34885AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34886
34887
34888AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34889
34890
34891 if test "x$RPM" != "x" ; then
34892 RPM_DELEGATE_TRUE=
34893 RPM_DELEGATE_FALSE='#'
34894else
34895 RPM_DELEGATE_TRUE='#'
34896 RPM_DELEGATE_FALSE=
34897fi
34898
cristy3ed852e2009-09-05 21:47:34 +000034899
34900#
34901# 7ZIP support (http://p7zip.sourceforge.net/)
34902#
34903P7ZIP=''
34904for ac_prog in 7za
34905do
34906 # Extract the first word of "$ac_prog", so it can be a program name with args.
34907set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034910if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034911 $as_echo_n "(cached) " >&6
34912else
34913 if test -n "$P7ZIP"; then
34914 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34915else
34916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34917for as_dir in $PATH
34918do
34919 IFS=$as_save_IFS
34920 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034923 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034925 break 2
34926 fi
34927done
cristy8b350f62009-11-15 23:12:43 +000034928 done
cristy3ed852e2009-09-05 21:47:34 +000034929IFS=$as_save_IFS
34930
34931fi
34932fi
34933P7ZIP=$ac_cv_prog_P7ZIP
34934if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034936$as_echo "$P7ZIP" >&6; }
34937else
cristy8b350f62009-11-15 23:12:43 +000034938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034939$as_echo "no" >&6; }
34940fi
34941
34942
34943 test -n "$P7ZIP" && break
34944done
34945
34946
cristy73bd4a52010-10-05 11:24:23 +000034947 if test "x$P7ZIP" != "x" ; then
34948 P7ZIP_DELEGATE_TRUE=
34949 P7ZIP_DELEGATE_FALSE='#'
34950else
34951 P7ZIP_DELEGATE_TRUE='#'
34952 P7ZIP_DELEGATE_FALSE=
34953fi
34954
cristy3ed852e2009-09-05 21:47:34 +000034955
34956#
34957# ZIP support (http://www.info-zip.org/Zip.html)
34958#
34959ZIP=''
34960for ac_prog in zip
34961do
34962 # Extract the first word of "$ac_prog", so it can be a program name with args.
34963set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034965$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034966if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034967 $as_echo_n "(cached) " >&6
34968else
34969 if test -n "$ZIP"; then
34970 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34971else
34972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34973for as_dir in $PATH
34974do
34975 IFS=$as_save_IFS
34976 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034977 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034979 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034981 break 2
34982 fi
34983done
cristy8b350f62009-11-15 23:12:43 +000034984 done
cristy3ed852e2009-09-05 21:47:34 +000034985IFS=$as_save_IFS
34986
34987fi
34988fi
34989ZIP=$ac_cv_prog_ZIP
34990if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034992$as_echo "$ZIP" >&6; }
34993else
cristy8b350f62009-11-15 23:12:43 +000034994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034995$as_echo "no" >&6; }
34996fi
34997
34998
34999 test -n "$ZIP" && break
35000done
35001
35002
cristy73bd4a52010-10-05 11:24:23 +000035003 if test "x$ZIP" != "x" ; then
35004 ZIP_DELEGATE_TRUE=
35005 ZIP_DELEGATE_FALSE='#'
35006else
35007 ZIP_DELEGATE_TRUE='#'
35008 ZIP_DELEGATE_FALSE=
35009fi
35010
cristy3ed852e2009-09-05 21:47:34 +000035011
35012#
35013# GhostPCL related configuration.
35014#
35015PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035016PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035017PCLMonoDevice=pbmraw
35018if test -z "$PCLVersion"; then
35019 PCLVersion='unknown'
35020fi
35021if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35023$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035025$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35027$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035028 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035030$as_echo_n "checking for pcl color device... " >&6; }
35031 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35032 :
35033 else
35034 PCLColorDevice=ppmraw
35035 fi
cristyad38abe2012-12-23 23:03:21 +000035036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35037$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035038
35039 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035041$as_echo_n "checking for pcl CMYK device... " >&6; }
35042 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35043 :
35044 else
35045 PCLCMYKDevice=$PCLColorDevice
35046 fi
cristyad38abe2012-12-23 23:03:21 +000035047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35048$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035049
35050 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035052$as_echo_n "checking for pcl mono device... " >&6; }
35053 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35054 :
35055 else
35056 PCLMonoDevice=$PCLColorDevice
35057 fi
cristyad38abe2012-12-23 23:03:21 +000035058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35059$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035060fi
35061
35062
35063
35064
35065
35066
35067#
35068# GhostXPS related configuration.
35069#
35070XPSColorDevice=ppmraw
35071XPSCMYKDevice=bmpsep8
35072XPSMonoDevice=pbmraw
35073if test -z "$XPSVersion"; then
35074 XPSVersion='unknown'
35075fi
35076if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35078$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035080$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35082$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035083 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035085$as_echo_n "checking for xps color device... " >&6; }
35086 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35087 :
35088 else
35089 XPSColorDevice=ppmraw
35090 fi
cristyad38abe2012-12-23 23:03:21 +000035091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35092$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035093
35094 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035096$as_echo_n "checking for xps CMYK device... " >&6; }
35097 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35098 :
35099 else
35100 XPSCMYKDevice=$XPSColorDevice
35101 fi
cristyad38abe2012-12-23 23:03:21 +000035102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35103$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035104
35105 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035107$as_echo_n "checking for xps mono device... " >&6; }
35108 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35109 :
35110 else
35111 XPSMonoDevice=$XPSColorDevice
35112 fi
cristyad38abe2012-12-23 23:03:21 +000035113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35114$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035115fi
35116
35117
35118
35119
35120
35121
35122#
35123# Ghostscript related configuration.
35124#
cristya97426c2011-02-04 01:41:27 +000035125GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035126GSColorDevice=pnmraw
35127GSCMYKDevice=pam
35128GSMonoDevice=pbmraw
35129GSPDFDevice=pdfwrite
35130GSPSDevice=pswrite
35131GSEPSDevice=epswrite
35132GSVersion='unknown'
35133if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35135$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035137$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35139$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035141$as_echo_n "checking for Ghostscript version... " >&6; }
35142 if GSVersion=`$PSDelegate --version`; then
35143 :
35144 else
35145 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35146 fi
cristyad38abe2012-12-23 23:03:21 +000035147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35148$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035149
35150 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035152$as_echo_n "checking for gs alpha device... " >&6; }
35153 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35154 :
35155 else
35156 GSAlphaDevice=pnmraw
35157 fi
cristyad38abe2012-12-23 23:03:21 +000035158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35159$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035160
35161 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035163$as_echo_n "checking for gs color device... " >&6; }
35164 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35165 :
35166 else
35167 GSColorDevice=pnmraw
35168 fi
cristyad38abe2012-12-23 23:03:21 +000035169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35170$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035171
35172 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035174$as_echo_n "checking for gs CMYK device... " >&6; }
35175 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35176 :
35177 else
35178 GSCMYKDevice=bmpsep8
35179 fi
cristyad38abe2012-12-23 23:03:21 +000035180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35181$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035182
35183 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035185$as_echo_n "checking for gs mono device... " >&6; }
35186 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35187 :
35188 else
35189 GSMonoDevice=$GSColorDevice
35190 fi
cristyad38abe2012-12-23 23:03:21 +000035191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35192$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035193
35194 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035196$as_echo_n "checking for gs PDF writing device... " >&6; }
35197 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35198 :
35199 else
35200 GSPDFDevice=nodevice
35201 fi
cristyad38abe2012-12-23 23:03:21 +000035202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35203$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035204
35205 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035207$as_echo_n "checking for gs PS writing device... " >&6; }
35208 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35209 :
35210 else
35211 GSPSDevice=nodevice
35212 fi
cristyad38abe2012-12-23 23:03:21 +000035213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35214$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035215
35216 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035218$as_echo_n "checking for gs EPS writing device... " >&6; }
35219 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35220 :
35221 else
35222 GSEPSDevice=nodevice
35223 fi
cristyad38abe2012-12-23 23:03:21 +000035224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35225$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035226fi
35227
35228
35229
35230
35231
35232
35233
35234
35235
35236
35237#
35238# PerlMagick-related configuration
35239#
35240
35241# Look for PERL if PerlMagick requested
35242# If name/path of desired PERL interpreter is specified, look for that one first
35243have_perl='no'
35244if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35246$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035248$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35250$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035251 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035253$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035254if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035255 $as_echo_n "(cached) " >&6
35256else
35257 ac_cv_path_PERL="$with_perl"
35258fi
cristy8b350f62009-11-15 23:12:43 +000035259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035260$as_echo "$ac_cv_path_PERL" >&6; };
35261 PERL=$ac_cv_path_PERL
35262 have_perl="$ac_cv_path_PERL"
35263 else
35264 for ac_prog in perl perl5
35265do
35266 # Extract the first word of "$ac_prog", so it can be a program name with args.
35267set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035269$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035270if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035271 $as_echo_n "(cached) " >&6
35272else
35273 case $PERL in
35274 [\\/]* | ?:[\\/]*)
35275 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35276 ;;
35277 *)
35278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35279for as_dir in $PATH
35280do
35281 IFS=$as_save_IFS
35282 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035283 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035285 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035287 break 2
35288 fi
35289done
cristy8b350f62009-11-15 23:12:43 +000035290 done
cristy3ed852e2009-09-05 21:47:34 +000035291IFS=$as_save_IFS
35292
35293 ;;
35294esac
35295fi
35296PERL=$ac_cv_path_PERL
35297if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035299$as_echo "$PERL" >&6; }
35300else
cristy8b350f62009-11-15 23:12:43 +000035301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035302$as_echo "no" >&6; }
35303fi
35304
35305
35306 test -n "$PERL" && break
35307done
35308 if test "$ac_cv_path_PERL"; then
35309 have_perl="$ac_cv_path_PERL"
35310 fi
35311 fi
35312fi
35313
cristy949301e2010-01-06 01:38:40 +000035314if test "$with_perl" != 'yes' ; then
35315 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35316fi
35317
35318PERL_SUPPORTS_DESTDIR='no'
35319
cristy3ed852e2009-09-05 21:47:34 +000035320with_perl_static='no'
35321with_perl_dynamic='no'
35322if test "$have_perl" != 'no'; then
35323 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35324 with_perl_static='yes'
35325 fi
35326 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35327 with_perl_dynamic='yes'
35328 fi
35329 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035330
35331
35332
35333
35334 if test -n "$PERL"; then :
35335
35336 ax_perl_version="5.8.1"
35337
35338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35339$as_echo_n "checking for perl version... " >&6; }
35340
35341 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35342
35343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35344$as_echo "$perl_version" >&6; }
35345
35346 PERL_VERSION=$perl_version
35347
35348
35349
35350
35351
35352 # Used to indicate true or false condition
35353 ax_compare_version=false
35354
35355 # Convert the two version strings to be compared into a format that
35356 # allows a simple string comparison. The end result is that a version
35357 # string of the form 1.12.5-r617 will be converted to the form
35358 # 0001001200050617. In other words, each number is zero padded to four
35359 # digits, and non digits are removed.
35360
35361 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35362 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35363 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35364 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35365 -e 's/[^0-9]//g'`
35366
35367
35368 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35369 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35370 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35371 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35372 -e 's/[^0-9]//g'`
35373
35374
35375 ax_compare_version=`echo "x$ax_compare_version_A
35376x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35377
35378
35379
35380 if test "$ax_compare_version" = "true" ; then
35381
35382 :
35383 PERL_SUPPORTS_DESTDIR='yes'
35384
35385 else
35386 :
35387 PERL_SUPPORTS_DESTDIR='no'
35388
35389 fi
35390
35391
35392else
35393
35394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35395$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35396 PERL_SUPPORTS_DESTDIR='no'
35397
cristy3ed852e2009-09-05 21:47:34 +000035398fi
cristy73bd4a52010-10-05 11:24:23 +000035399
35400fi
35401 if test "$have_perl" != 'no'; then
35402 WITH_PERL_TRUE=
35403 WITH_PERL_FALSE='#'
35404else
35405 WITH_PERL_TRUE='#'
35406 WITH_PERL_FALSE=
35407fi
35408
35409 if test $with_perl_static = 'yes'; then
35410 WITH_PERL_STATIC_TRUE=
35411 WITH_PERL_STATIC_FALSE='#'
35412else
35413 WITH_PERL_STATIC_TRUE='#'
35414 WITH_PERL_STATIC_FALSE=
35415fi
35416
35417 if test $with_perl_dynamic = 'yes'; then
35418 WITH_PERL_DYNAMIC_TRUE=
35419 WITH_PERL_DYNAMIC_FALSE='#'
35420else
35421 WITH_PERL_DYNAMIC_TRUE='#'
35422 WITH_PERL_DYNAMIC_FALSE=
35423fi
35424
cristy3ed852e2009-09-05 21:47:34 +000035425
35426
35427# Determine path to pick up MagickCore library from for use with building PerlMagick
35428MAGICKCORE_PATH="${LIB_DIR}"
35429if test $with_perl_static = 'yes'; then
35430 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35431 libtool_objdir=$objdir
35432
35433 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035434 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035435fi
35436
35437
cristy2a3eb392012-12-17 13:39:20 +000035438# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035439MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035440if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035441 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035442fi
cristy2a3eb392012-12-17 13:39:20 +000035443if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035444 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035445fi
35446if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035447 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035448fi
35449if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035450 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035451fi
35452if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035453 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035454fi
35455if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035456 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035457fi
35458if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035459 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035460fi
35461if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035462 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035463fi
35464if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035465 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035466fi
35467if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035468 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035469fi
35470if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035471 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035472fi
35473if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035474 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035475fi
35476if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035477 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035478fi
35479if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035480 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035481fi
35482if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035483 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035484fi
35485if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035486 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035487fi
35488if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035489 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035490fi
35491if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035492 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035493fi
35494if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035495 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035496fi
35497if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035498 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035499fi
35500if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035501 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035502fi
35503have_ps='no'
35504if test "$have_dps" = 'yes' || \
35505 test "$have_gs" = 'yes' || \
35506 test "${native_win32_build}" = 'yes' ; then
35507 have_ps='yes'
35508fi
35509if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035510 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035511fi
35512if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035513 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035514fi
35515if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035516 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035517fi
35518if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035519 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035520fi
35521if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035522 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035523fi
35524if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035525 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035526fi
35527if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035528 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035529fi
35530if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035531 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035532fi
35533if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035534 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035535fi
35536if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035537 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035538fi
cristy2a3eb392012-12-17 13:39:20 +000035539# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035540MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035541MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035542
35543
cristyfa161182012-12-19 15:45:28 +000035544
cristy3ed852e2009-09-05 21:47:34 +000035545#
35546# Handle special compiler flags
35547#
35548
35549# Add '-p' if prof source profiling support enabled
35550if test "$enable_prof" = 'yes'; then
35551 CFLAGS="-p $CFLAGS"
35552 CXXFLAGS="-p $CXXFLAGS"
35553 LDFLAGS="-p $LDFLAGS"
35554fi
35555
35556# Add '-pg' if gprof source profiling support enabled
35557if test "$enable_gprof" = 'yes'; then
35558 CFLAGS="-pg $CFLAGS"
35559 CXXFLAGS="-pg $CXXFLAGS"
35560 LDFLAGS="-pg $LDFLAGS"
35561fi
35562
35563# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35564# This is a gcc-specific feature
35565if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035567$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035568if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035569 $as_echo_n "(cached) " >&6
35570else
35571 ac_check_lib_save_LIBS=$LIBS
35572LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035574/* end confdefs.h. */
35575
35576/* Override any GCC internal prototype to avoid an error.
35577 Use char because int might match the return type of a GCC
35578 builtin and then its argument prototype would still apply. */
35579#ifdef __cplusplus
35580extern "C"
35581#endif
35582char _gcov_init ();
35583int
35584main ()
35585{
35586return _gcov_init ();
35587 ;
35588 return 0;
35589}
35590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035591if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035592 ac_cv_lib_gcov__gcov_init=yes
35593else
cristy8b350f62009-11-15 23:12:43 +000035594 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035595fi
cristy8b350f62009-11-15 23:12:43 +000035596rm -f core conftest.err conftest.$ac_objext \
35597 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035598LIBS=$ac_check_lib_save_LIBS
35599fi
cristy8b350f62009-11-15 23:12:43 +000035600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035601$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035602if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035603 cat >>confdefs.h <<_ACEOF
35604#define HAVE_LIBGCOV 1
35605_ACEOF
35606
35607 LIBS="-lgcov $LIBS"
35608
35609fi
35610
cristy8b350f62009-11-15 23:12:43 +000035611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035612$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035613if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035614 $as_echo_n "(cached) " >&6
35615else
35616 ac_check_lib_save_LIBS=$LIBS
35617LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035619/* end confdefs.h. */
35620
35621/* Override any GCC internal prototype to avoid an error.
35622 Use char because int might match the return type of a GCC
35623 builtin and then its argument prototype would still apply. */
35624#ifdef __cplusplus
35625extern "C"
35626#endif
35627char __gcov_init ();
35628int
35629main ()
35630{
35631return __gcov_init ();
35632 ;
35633 return 0;
35634}
35635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035636if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035637 ac_cv_lib_gcov___gcov_init=yes
35638else
cristy8b350f62009-11-15 23:12:43 +000035639 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035640fi
cristy8b350f62009-11-15 23:12:43 +000035641rm -f core conftest.err conftest.$ac_objext \
35642 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035643LIBS=$ac_check_lib_save_LIBS
35644fi
cristy8b350f62009-11-15 23:12:43 +000035645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035646$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035647if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035648 cat >>confdefs.h <<_ACEOF
35649#define HAVE_LIBGCOV 1
35650_ACEOF
35651
35652 LIBS="-lgcov $LIBS"
35653
35654fi
35655
35656 case "$target_os" in
35657 darwin*)
35658 OSX_GCOV_LDFLAG="-Wl,-single_module"
35659 ;;
35660 *)
35661 OSX_GCOV_LDFLAG=""
35662 ;;
35663 esac
35664
35665 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35666 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35667 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35668fi
35669
35670#
35671# Build library dependency list for libMagickCore
35672#
35673
cristyc6722092012-10-14 00:19:31 +000035674if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035675 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 +000035676else
cristy3a75f062012-09-08 23:29:40 +000035677 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035678fi
35679
35680
35681#
35682# Remove extraneous spaces from output variables (asthetic)
35683#
35684X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35685X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35686X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35687X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35688
35689CC=`echo $CC | sed -e 's/ */ /g'`
35690CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35691CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35692CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035693DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35694LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35695TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35696MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35697#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35698
35699# Pass only user-provided LIBS as "global" libraries
35700LIBS=$USER_LIBS
35701
35702#AC_SUBST(CPPFLAGS)
35703
35704#AC_SUBST(LDFLAGS)
35705#AC_SUBST(X_PRE_LIBS)
35706#AC_SUBST(X_LIBS)
35707#AC_SUBST(X_EXTRA_LIBS)
35708
35709MAGICK_CFLAGS=$CFLAGS
35710MAGICK_CXXFLAGS="$CXXFLAGS"
35711MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35712MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35713MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035714MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035715
35716
35717
35718
35719
35720
35721
35722
35723# Set configured scripts to executable.
35724ac_config_commands="$ac_config_commands default"
35725
cristy2bd4b6e2012-07-22 15:29:11 +000035726ac_config_commands="$ac_config_commands magick.sh.in"
35727
cristy3ed852e2009-09-05 21:47:34 +000035728ac_config_commands="$ac_config_commands MagickCore-config.in"
35729
cristy3ed852e2009-09-05 21:47:34 +000035730ac_config_commands="$ac_config_commands MagickWand-config.in"
35731
cristy3ed852e2009-09-05 21:47:34 +000035732ac_config_commands="$ac_config_commands Magick++-config.in"
35733
35734ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35735
35736
cristyad38abe2012-12-23 23:03:21 +000035737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35738$as_echo "-------------------------------------------------------------" >&6; }
35739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35740$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035741cat >confcache <<\_ACEOF
35742# This file is a shell script that caches the results of configure
35743# tests run on this system so they can be shared between configure
35744# scripts and configure runs, see configure's option --config-cache.
35745# It is not useful on other systems. If it contains results you don't
35746# want to keep, you may remove or edit it.
35747#
35748# config.status only pays attention to the cache file if you give it
35749# the --recheck option to rerun configure.
35750#
35751# `ac_cv_env_foo' variables (set or unset) will be overridden when
35752# loading this file, other *unset* `ac_cv_foo' will be assigned the
35753# following values.
35754
35755_ACEOF
35756
35757# The following way of writing the cache mishandles newlines in values,
35758# but we know of no workaround that is simple, portable, and efficient.
35759# So, we kill variables containing newlines.
35760# Ultrix sh set writes to stderr and can't be redirected directly,
35761# and sets the high bit in the cache file unless we assign to the vars.
35762(
35763 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35764 eval ac_val=\$$ac_var
35765 case $ac_val in #(
35766 *${as_nl}*)
35767 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035768 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035769$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35770 esac
35771 case $ac_var in #(
35772 _ | IFS | as_nl) ;; #(
35773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035774 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035775 esac ;;
35776 esac
35777 done
35778
35779 (set) 2>&1 |
35780 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35781 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035782 # `set' does not quote correctly, so add quotes: double-quote
35783 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035784 sed -n \
35785 "s/'/'\\\\''/g;
35786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35787 ;; #(
35788 *)
35789 # `set' quotes correctly as required by POSIX, so do not add quotes.
35790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35791 ;;
35792 esac |
35793 sort
35794) |
35795 sed '
35796 /^ac_cv_env_/b end
35797 t clear
35798 :clear
35799 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35800 t end
35801 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35802 :end' >>confcache
35803if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35804 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035805 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035806 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035807$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035808 if test ! -f "$cache_file" || test -h "$cache_file"; then
35809 cat confcache >"$cache_file"
35810 else
35811 case $cache_file in #(
35812 */* | ?:*)
35813 mv -f confcache "$cache_file"$$ &&
35814 mv -f "$cache_file"$$ "$cache_file" ;; #(
35815 *)
35816 mv -f confcache "$cache_file" ;;
35817 esac
35818 fi
35819 fi
cristy3ed852e2009-09-05 21:47:34 +000035820 else
cristy8b350f62009-11-15 23:12:43 +000035821 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035822$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35823 fi
35824fi
35825rm -f confcache
35826
35827test "x$prefix" = xNONE && prefix=$ac_default_prefix
35828# Let make expand exec_prefix.
35829test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35830
35831DEFS=-DHAVE_CONFIG_H
35832
35833ac_libobjs=
35834ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035835U=
cristy3ed852e2009-09-05 21:47:34 +000035836for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35837 # 1. Remove the extension, and $U if already installed.
35838 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35839 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35840 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35841 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035842 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35843 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035844done
35845LIBOBJS=$ac_libobjs
35846
35847LTLIBOBJS=$ac_ltlibobjs
35848
35849
cristyc0890a62012-07-19 00:18:20 +000035850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35851$as_echo_n "checking that generated files are newer than configure... " >&6; }
35852 if test -n "$am_sleep_pid"; then
35853 # Hide warnings about reused PIDs.
35854 wait $am_sleep_pid 2>/dev/null
35855 fi
35856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35857$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035858 if test -n "$EXEEXT"; then
35859 am__EXEEXT_TRUE=
35860 am__EXEEXT_FALSE='#'
35861else
35862 am__EXEEXT_TRUE='#'
35863 am__EXEEXT_FALSE=
35864fi
cristy3ed852e2009-09-05 21:47:34 +000035865
cristy73bd4a52010-10-05 11:24:23 +000035866if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035867 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035868Usually this means the macro was only invoked conditionally." "$LINENO" 5
35869fi
35870if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035871 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035872Usually this means the macro was only invoked conditionally." "$LINENO" 5
35873fi
35874if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035875 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035876Usually this means the macro was only invoked conditionally." "$LINENO" 5
35877fi
35878if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035879 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035880Usually this means the macro was only invoked conditionally." "$LINENO" 5
35881fi
cristy9b86f202012-11-28 21:55:35 +000035882if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35883 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35884Usually this means the macro was only invoked conditionally." "$LINENO" 5
35885fi
cristy73bd4a52010-10-05 11:24:23 +000035886if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035887 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035888Usually this means the macro was only invoked conditionally." "$LINENO" 5
35889fi
35890if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035891 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035892Usually this means the macro was only invoked conditionally." "$LINENO" 5
35893fi
35894if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035895 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035896Usually this means the macro was only invoked conditionally." "$LINENO" 5
35897fi
35898if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035899 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035900Usually this means the macro was only invoked conditionally." "$LINENO" 5
35901fi
cristy73bd4a52010-10-05 11:24:23 +000035902if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035903 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035904Usually this means the macro was only invoked conditionally." "$LINENO" 5
35905fi
35906if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035907 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035908Usually this means the macro was only invoked conditionally." "$LINENO" 5
35909fi
cristy73bd4a52010-10-05 11:24:23 +000035910if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035911 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035912Usually this means the macro was only invoked conditionally." "$LINENO" 5
35913fi
cristy71d8c202012-03-20 17:05:01 +000035914if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35915 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35916Usually this means the macro was only invoked conditionally." "$LINENO" 5
35917fi
cristy73bd4a52010-10-05 11:24:23 +000035918
35919if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035920 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035921Usually this means the macro was only invoked conditionally." "$LINENO" 5
35922fi
35923if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035924 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035925Usually this means the macro was only invoked conditionally." "$LINENO" 5
35926fi
35927if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035928 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035929Usually this means the macro was only invoked conditionally." "$LINENO" 5
35930fi
35931if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035932 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035933Usually this means the macro was only invoked conditionally." "$LINENO" 5
35934fi
35935if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035936 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035937Usually this means the macro was only invoked conditionally." "$LINENO" 5
35938fi
35939if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035940 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035941Usually this means the macro was only invoked conditionally." "$LINENO" 5
35942fi
cristy5eef09f2012-10-16 12:08:28 +000035943if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35944 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35945Usually this means the macro was only invoked conditionally." "$LINENO" 5
35946fi
cristy73bd4a52010-10-05 11:24:23 +000035947if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035948 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035949Usually this means the macro was only invoked conditionally." "$LINENO" 5
35950fi
35951if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035952 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035953Usually this means the macro was only invoked conditionally." "$LINENO" 5
35954fi
35955if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035956 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035957Usually this means the macro was only invoked conditionally." "$LINENO" 5
35958fi
35959if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035960 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035961Usually this means the macro was only invoked conditionally." "$LINENO" 5
35962fi
35963if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035964 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035965Usually this means the macro was only invoked conditionally." "$LINENO" 5
35966fi
35967if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035968 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035969Usually this means the macro was only invoked conditionally." "$LINENO" 5
35970fi
35971if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035972 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035973Usually this means the macro was only invoked conditionally." "$LINENO" 5
35974fi
35975if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035976 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035977Usually this means the macro was only invoked conditionally." "$LINENO" 5
35978fi
35979if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035980 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035981Usually this means the macro was only invoked conditionally." "$LINENO" 5
35982fi
35983if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035984 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035985Usually this means the macro was only invoked conditionally." "$LINENO" 5
35986fi
35987if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035988 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035989Usually this means the macro was only invoked conditionally." "$LINENO" 5
35990fi
35991if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035992 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035993Usually this means the macro was only invoked conditionally." "$LINENO" 5
35994fi
35995if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035996 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035997Usually this means the macro was only invoked conditionally." "$LINENO" 5
35998fi
35999if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036000 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036001Usually this means the macro was only invoked conditionally." "$LINENO" 5
36002fi
cristyfbb0ef02010-12-19 02:32:11 +000036003if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36004 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36005Usually this means the macro was only invoked conditionally." "$LINENO" 5
36006fi
cristy73bd4a52010-10-05 11:24:23 +000036007if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036008 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036009Usually this means the macro was only invoked conditionally." "$LINENO" 5
36010fi
cristy41cbe8a2011-10-27 01:35:18 +000036011if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36012 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36013Usually this means the macro was only invoked conditionally." "$LINENO" 5
36014fi
cristya054b762012-03-26 23:16:00 +000036015if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36016 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036017Usually this means the macro was only invoked conditionally." "$LINENO" 5
36018fi
cristy73bd4a52010-10-05 11:24:23 +000036019if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036020 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036021Usually this means the macro was only invoked conditionally." "$LINENO" 5
36022fi
36023if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036024 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036025Usually this means the macro was only invoked conditionally." "$LINENO" 5
36026fi
36027if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036028 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036029Usually this means the macro was only invoked conditionally." "$LINENO" 5
36030fi
36031if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036032 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036033Usually this means the macro was only invoked conditionally." "$LINENO" 5
36034fi
cristyb1860752011-03-14 00:27:46 +000036035if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36036 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36037Usually this means the macro was only invoked conditionally." "$LINENO" 5
36038fi
cristy73bd4a52010-10-05 11:24:23 +000036039if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036040 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036041Usually this means the macro was only invoked conditionally." "$LINENO" 5
36042fi
36043if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036044 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036045Usually this means the macro was only invoked conditionally." "$LINENO" 5
36046fi
36047if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036048 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036049Usually this means the macro was only invoked conditionally." "$LINENO" 5
36050fi
36051if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036052 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036053Usually this means the macro was only invoked conditionally." "$LINENO" 5
36054fi
36055if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036056 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036057Usually this means the macro was only invoked conditionally." "$LINENO" 5
36058fi
36059if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036060 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036061Usually this means the macro was only invoked conditionally." "$LINENO" 5
36062fi
36063if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036064 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036065Usually this means the macro was only invoked conditionally." "$LINENO" 5
36066fi
36067if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036068 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036069Usually this means the macro was only invoked conditionally." "$LINENO" 5
36070fi
cristy3ed852e2009-09-05 21:47:34 +000036071
cristyda16f162011-02-19 23:52:17 +000036072: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036073ac_write_fail=0
36074ac_clean_files_save=$ac_clean_files
36075ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036076{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036077$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036078as_write_fail=0
36079cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036080#! $SHELL
36081# Generated by $as_me.
36082# Run this file to recreate the current configuration.
36083# Compiler output produced by configure, useful for debugging
36084# configure, is in config.log if it exists.
36085
36086debug=false
36087ac_cs_recheck=false
36088ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036089
cristy8b350f62009-11-15 23:12:43 +000036090SHELL=\${CONFIG_SHELL-$SHELL}
36091export SHELL
36092_ASEOF
36093cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36094## -------------------- ##
36095## M4sh Initialization. ##
36096## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036097
36098# Be more Bourne compatible
36099DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036100if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036101 emulate sh
36102 NULLCMD=:
36103 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36104 # is contrary to our usage. Disable this feature.
36105 alias -g '${1+"$@"}'='"$@"'
36106 setopt NO_GLOB_SUBST
36107else
cristy8b350f62009-11-15 23:12:43 +000036108 case `(set -o) 2>/dev/null` in #(
36109 *posix*) :
36110 set -o posix ;; #(
36111 *) :
36112 ;;
cristy3ed852e2009-09-05 21:47:34 +000036113esac
cristy3ed852e2009-09-05 21:47:34 +000036114fi
36115
36116
cristy3ed852e2009-09-05 21:47:34 +000036117as_nl='
36118'
36119export as_nl
36120# Printing a long string crashes Solaris 7 /usr/bin/printf.
36121as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36122as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36123as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036124# Prefer a ksh shell builtin over an external printf program on Solaris,
36125# but without wasting forks for bash or zsh.
36126if test -z "$BASH_VERSION$ZSH_VERSION" \
36127 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36128 as_echo='print -r --'
36129 as_echo_n='print -rn --'
36130elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036131 as_echo='printf %s\n'
36132 as_echo_n='printf %s'
36133else
36134 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36135 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36136 as_echo_n='/usr/ucb/echo -n'
36137 else
36138 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36139 as_echo_n_body='eval
36140 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036141 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036142 *"$as_nl"*)
36143 expr "X$arg" : "X\\(.*\\)$as_nl";
36144 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36145 esac;
36146 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36147 '
36148 export as_echo_n_body
36149 as_echo_n='sh -c $as_echo_n_body as_echo'
36150 fi
36151 export as_echo_body
36152 as_echo='sh -c $as_echo_body as_echo'
36153fi
36154
36155# The user is always right.
36156if test "${PATH_SEPARATOR+set}" != set; then
36157 PATH_SEPARATOR=:
36158 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36159 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36160 PATH_SEPARATOR=';'
36161 }
36162fi
36163
cristy3ed852e2009-09-05 21:47:34 +000036164
36165# IFS
36166# We need space, tab and new line, in precisely that order. Quoting is
36167# there to prevent editors from complaining about space-tab.
36168# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36169# splitting by setting IFS to empty value.)
36170IFS=" "" $as_nl"
36171
36172# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036173as_myself=
cristy8b350f62009-11-15 23:12:43 +000036174case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036175 *[\\/]* ) as_myself=$0 ;;
36176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36177for as_dir in $PATH
36178do
36179 IFS=$as_save_IFS
36180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36182 done
cristy3ed852e2009-09-05 21:47:34 +000036183IFS=$as_save_IFS
36184
36185 ;;
36186esac
36187# We did not find ourselves, most probably we were run as `sh COMMAND'
36188# in which case we are not to be found in the path.
36189if test "x$as_myself" = x; then
36190 as_myself=$0
36191fi
36192if test ! -f "$as_myself"; then
36193 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036194 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036195fi
36196
cristy8b350f62009-11-15 23:12:43 +000036197# Unset variables that we do not need and which cause bugs (e.g. in
36198# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36199# suppresses any "Segmentation fault" message there. '((' could
36200# trigger a bug in pdksh 5.2.14.
36201for as_var in BASH_ENV ENV MAIL MAILPATH
36202do eval test x\${$as_var+set} = xset \
36203 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036204done
36205PS1='$ '
36206PS2='> '
36207PS4='+ '
36208
36209# NLS nuisances.
36210LC_ALL=C
36211export LC_ALL
36212LANGUAGE=C
36213export LANGUAGE
36214
cristy8b350f62009-11-15 23:12:43 +000036215# CDPATH.
36216(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36217
36218
cristy98dddb52010-11-04 00:30:15 +000036219# as_fn_error STATUS ERROR [LINENO LOG_FD]
36220# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036221# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36222# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036223# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036224as_fn_error ()
36225{
cristy98dddb52010-11-04 00:30:15 +000036226 as_status=$1; test $as_status -eq 0 && as_status=1
36227 if test "$4"; then
36228 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36229 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036230 fi
cristy98dddb52010-11-04 00:30:15 +000036231 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036232 as_fn_exit $as_status
36233} # as_fn_error
36234
36235
36236# as_fn_set_status STATUS
36237# -----------------------
36238# Set $? to STATUS, without forking.
36239as_fn_set_status ()
36240{
36241 return $1
36242} # as_fn_set_status
36243
36244# as_fn_exit STATUS
36245# -----------------
36246# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36247as_fn_exit ()
36248{
36249 set +e
36250 as_fn_set_status $1
36251 exit $1
36252} # as_fn_exit
36253
36254# as_fn_unset VAR
36255# ---------------
36256# Portably unset VAR.
36257as_fn_unset ()
36258{
36259 { eval $1=; unset $1;}
36260}
36261as_unset=as_fn_unset
36262# as_fn_append VAR VALUE
36263# ----------------------
36264# Append the text in VALUE to the end of the definition contained in VAR. Take
36265# advantage of any shell optimizations that allow amortized linear growth over
36266# repeated appends, instead of the typical quadratic growth present in naive
36267# implementations.
36268if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36269 eval 'as_fn_append ()
36270 {
36271 eval $1+=\$2
36272 }'
36273else
36274 as_fn_append ()
36275 {
36276 eval $1=\$$1\$2
36277 }
36278fi # as_fn_append
36279
36280# as_fn_arith ARG...
36281# ------------------
36282# Perform arithmetic evaluation on the ARGs, and store the result in the
36283# global $as_val. Take advantage of shells that can avoid forks. The arguments
36284# must be portable across $(()) and expr.
36285if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36286 eval 'as_fn_arith ()
36287 {
36288 as_val=$(( $* ))
36289 }'
36290else
36291 as_fn_arith ()
36292 {
36293 as_val=`expr "$@" || test $? -eq 1`
36294 }
36295fi # as_fn_arith
36296
36297
cristy3ed852e2009-09-05 21:47:34 +000036298if expr a : '\(a\)' >/dev/null 2>&1 &&
36299 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36300 as_expr=expr
36301else
36302 as_expr=false
36303fi
36304
36305if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36306 as_basename=basename
36307else
36308 as_basename=false
36309fi
36310
cristy8b350f62009-11-15 23:12:43 +000036311if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36312 as_dirname=dirname
36313else
36314 as_dirname=false
36315fi
cristy3ed852e2009-09-05 21:47:34 +000036316
cristy3ed852e2009-09-05 21:47:34 +000036317as_me=`$as_basename -- "$0" ||
36318$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36319 X"$0" : 'X\(//\)$' \| \
36320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36321$as_echo X/"$0" |
36322 sed '/^.*\/\([^/][^/]*\)\/*$/{
36323 s//\1/
36324 q
36325 }
36326 /^X\/\(\/\/\)$/{
36327 s//\1/
36328 q
36329 }
36330 /^X\/\(\/\).*/{
36331 s//\1/
36332 q
36333 }
36334 s/.*/./; q'`
36335
cristy8b350f62009-11-15 23:12:43 +000036336# Avoid depending upon Character Ranges.
36337as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36338as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36339as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36340as_cr_digits='0123456789'
36341as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036342
36343ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036344case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036345-n*)
cristy8b350f62009-11-15 23:12:43 +000036346 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036347 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036348 xy) ECHO_C='\c';;
36349 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36350 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036351 esac;;
36352*)
36353 ECHO_N='-n';;
36354esac
cristy3ed852e2009-09-05 21:47:34 +000036355
36356rm -f conf$$ conf$$.exe conf$$.file
36357if test -d conf$$.dir; then
36358 rm -f conf$$.dir/conf$$.file
36359else
36360 rm -f conf$$.dir
36361 mkdir conf$$.dir 2>/dev/null
36362fi
36363if (echo >conf$$.file) 2>/dev/null; then
36364 if ln -s conf$$.file conf$$ 2>/dev/null; then
36365 as_ln_s='ln -s'
36366 # ... but there are two gotchas:
36367 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36368 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036369 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036370 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036371 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036372 elif ln conf$$.file conf$$ 2>/dev/null; then
36373 as_ln_s=ln
36374 else
cristy14fefe52012-05-21 00:59:18 +000036375 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036376 fi
36377else
cristy14fefe52012-05-21 00:59:18 +000036378 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036379fi
36380rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36381rmdir conf$$.dir 2>/dev/null
36382
cristy8b350f62009-11-15 23:12:43 +000036383
36384# as_fn_mkdir_p
36385# -------------
36386# Create "$as_dir" as a directory, including parents if necessary.
36387as_fn_mkdir_p ()
36388{
36389
36390 case $as_dir in #(
36391 -*) as_dir=./$as_dir;;
36392 esac
36393 test -d "$as_dir" || eval $as_mkdir_p || {
36394 as_dirs=
36395 while :; do
36396 case $as_dir in #(
36397 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36398 *) as_qdir=$as_dir;;
36399 esac
36400 as_dirs="'$as_qdir' $as_dirs"
36401 as_dir=`$as_dirname -- "$as_dir" ||
36402$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36403 X"$as_dir" : 'X\(//\)[^/]' \| \
36404 X"$as_dir" : 'X\(//\)$' \| \
36405 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36406$as_echo X"$as_dir" |
36407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36408 s//\1/
36409 q
36410 }
36411 /^X\(\/\/\)[^/].*/{
36412 s//\1/
36413 q
36414 }
36415 /^X\(\/\/\)$/{
36416 s//\1/
36417 q
36418 }
36419 /^X\(\/\).*/{
36420 s//\1/
36421 q
36422 }
36423 s/.*/./; q'`
36424 test -d "$as_dir" && break
36425 done
36426 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036427 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036428
36429
36430} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036431if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036432 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036433else
36434 test -d ./-p && rmdir ./-p
36435 as_mkdir_p=false
36436fi
36437
cristy14fefe52012-05-21 00:59:18 +000036438
36439# as_fn_executable_p FILE
36440# -----------------------
36441# Test if FILE is an executable regular file.
36442as_fn_executable_p ()
36443{
36444 test -f "$1" && test -x "$1"
36445} # as_fn_executable_p
36446as_test_x='test -x'
36447as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036448
36449# Sed expression to map a string onto a valid CPP name.
36450as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36451
36452# Sed expression to map a string onto a valid variable name.
36453as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36454
36455
36456exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036457## ----------------------------------- ##
36458## Main body of $CONFIG_STATUS script. ##
36459## ----------------------------------- ##
36460_ASEOF
36461test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036462
cristy8b350f62009-11-15 23:12:43 +000036463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36464# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036465# report actual input values of CONFIG_FILES etc. instead of their
36466# values after options handling.
36467ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036468This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036469generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036470
36471 CONFIG_FILES = $CONFIG_FILES
36472 CONFIG_HEADERS = $CONFIG_HEADERS
36473 CONFIG_LINKS = $CONFIG_LINKS
36474 CONFIG_COMMANDS = $CONFIG_COMMANDS
36475 $ $0 $@
36476
36477on `(hostname || uname -n) 2>/dev/null | sed 1q`
36478"
36479
36480_ACEOF
36481
36482case $ac_config_files in *"
36483"*) set x $ac_config_files; shift; ac_config_files=$*;;
36484esac
36485
36486case $ac_config_headers in *"
36487"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36488esac
36489
36490
36491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36492# Files that config.status was made for.
36493config_files="$ac_config_files"
36494config_headers="$ac_config_headers"
36495config_commands="$ac_config_commands"
36496
36497_ACEOF
36498
36499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36500ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036501\`$as_me' instantiates files and other configuration actions
36502from templates according to the current configuration. Unless the files
36503and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036504
cristy8b350f62009-11-15 23:12:43 +000036505Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036506
36507 -h, --help print this help, then exit
36508 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036509 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036510 -q, --quiet, --silent
36511 do not print progress messages
36512 -d, --debug don't remove temporary files
36513 --recheck update $as_me by reconfiguring in the same conditions
36514 --file=FILE[:TEMPLATE]
36515 instantiate the configuration file FILE
36516 --header=FILE[:TEMPLATE]
36517 instantiate the configuration header FILE
36518
36519Configuration files:
36520$config_files
36521
36522Configuration headers:
36523$config_headers
36524
36525Configuration commands:
36526$config_commands
36527
cristy8b350f62009-11-15 23:12:43 +000036528Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036529
36530_ACEOF
36531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036532ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036533ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036534ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036535configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036536 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036537
cristy14fefe52012-05-21 00:59:18 +000036538Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036539This config.status script is free software; the Free Software Foundation
36540gives unlimited permission to copy, distribute and modify it."
36541
36542ac_pwd='$ac_pwd'
36543srcdir='$srcdir'
36544INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036545MKDIR_P='$MKDIR_P'
36546AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036547test -n "\$AWK" || AWK=awk
36548_ACEOF
36549
36550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36551# The default lists apply if the user does not specify any file.
36552ac_need_defaults=:
36553while test $# != 0
36554do
36555 case $1 in
cristyda16f162011-02-19 23:52:17 +000036556 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036557 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36558 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36559 ac_shift=:
36560 ;;
cristyda16f162011-02-19 23:52:17 +000036561 --*=)
36562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36563 ac_optarg=
36564 ac_shift=:
36565 ;;
cristy3ed852e2009-09-05 21:47:34 +000036566 *)
36567 ac_option=$1
36568 ac_optarg=$2
36569 ac_shift=shift
36570 ;;
36571 esac
36572
36573 case $ac_option in
36574 # Handling of the options.
36575 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36576 ac_cs_recheck=: ;;
36577 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36578 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036579 --config | --confi | --conf | --con | --co | --c )
36580 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036581 --debug | --debu | --deb | --de | --d | -d )
36582 debug=: ;;
36583 --file | --fil | --fi | --f )
36584 $ac_shift
36585 case $ac_optarg in
36586 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036587 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036588 esac
cristy8b350f62009-11-15 23:12:43 +000036589 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036590 ac_need_defaults=false;;
36591 --header | --heade | --head | --hea )
36592 $ac_shift
36593 case $ac_optarg in
36594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36595 esac
cristy8b350f62009-11-15 23:12:43 +000036596 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036597 ac_need_defaults=false;;
36598 --he | --h)
36599 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036600 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036601Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036602 --help | --hel | -h )
36603 $as_echo "$ac_cs_usage"; exit ;;
36604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36606 ac_cs_silent=: ;;
36607
36608 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036609 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036610Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036611
cristy8b350f62009-11-15 23:12:43 +000036612 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036613 ac_need_defaults=false ;;
36614
36615 esac
36616 shift
36617done
36618
36619ac_configure_extra_args=
36620
36621if $ac_cs_silent; then
36622 exec 6>/dev/null
36623 ac_configure_extra_args="$ac_configure_extra_args --silent"
36624fi
36625
36626_ACEOF
36627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36628if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036629 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036630 shift
36631 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36632 CONFIG_SHELL='$SHELL'
36633 export CONFIG_SHELL
36634 exec "\$@"
36635fi
36636
36637_ACEOF
36638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36639exec 5>>config.log
36640{
36641 echo
36642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36643## Running $as_me. ##
36644_ASBOX
36645 $as_echo "$ac_log"
36646} >&5
36647
36648_ACEOF
36649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036650#
36651# INIT-COMMANDS
36652#
36653PACKAGE="$PACKAGE"
36654AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36655
36656
36657# The HP-UX ksh and POSIX shell print the target directory to stdout
36658# if CDPATH is set.
36659(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36660
36661sed_quote_subst='$sed_quote_subst'
36662double_quote_subst='$double_quote_subst'
36663delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036664SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36665Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36666GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36667EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36668FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36669SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36670ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36671LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36672macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36673macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36674AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36675DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36676OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36677enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36678enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36679pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36680enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036681PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036682host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36683host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36684host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36685build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36686build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36687build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36688NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36689LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36690max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36691ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36692exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36693lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36694lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36695lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036696lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36697lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036698reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36699reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36700deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36701file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036702file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36703want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36704sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036705AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36706AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036707archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036708STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36709RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36710old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36711old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36712old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36713lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36714CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36715CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36716compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36717GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36718lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36719lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36720lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36721lt_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 +000036722nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36723lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036724objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36725MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36726lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036727lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036728lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036729lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36730lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36731need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036732MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036733DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36734NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36735LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36736OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36737OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36738libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36739shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36740extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36741archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36742enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36743export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36744whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36745compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36746old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36747old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36748archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36749archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36750module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36751module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36752with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36753allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36754no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36755hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036756hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36757hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36758hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36759hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36760hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36761hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36762inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36763link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036764always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36765export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36766exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36767include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36768prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036769postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036770file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36771variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36772need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36773need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36774version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36775runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36776shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36777shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36778libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36779library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36780soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36781install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36782postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36783postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36784finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36785finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36786hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36787sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36788sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36789hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36790enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36791enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36792enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36793old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36794striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36795compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36796predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36797postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36798predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36799postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36800compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36801LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36802reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36803reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36804old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36805compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36806GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36807lt_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 +000036808lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036809lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036810lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36811lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36812archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36813enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36814export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36815whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36816compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36817old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36818old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36819archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36820archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36821module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36822module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36823with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36824allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36825no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36826hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036827hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36828hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36829hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36830hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36831hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36832hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36833inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36834link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036835always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36836export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36837exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36838include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36839prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036840postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036841file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36842hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36843compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36844predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36845postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36846predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36847postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36848compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036849
36850LTCC='$LTCC'
36851LTCFLAGS='$LTCFLAGS'
36852compiler='$compiler_DEFAULT'
36853
cristy0c60a692010-11-04 01:09:47 +000036854# A function that is used when there is no print builtin or printf.
36855func_fallback_echo ()
36856{
36857 eval 'cat <<_LTECHO_EOF
36858\$1
36859_LTECHO_EOF'
36860}
36861
cristy73bd4a52010-10-05 11:24:23 +000036862# Quote evaled strings.
36863for var in SED \
36864GREP \
36865EGREP \
36866FGREP \
cristy0c60a692010-11-04 01:09:47 +000036867SHELL \
36868ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036869LD \
cristy0c60a692010-11-04 01:09:47 +000036870AS \
36871DLLTOOL \
36872OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036873PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036874NM \
36875LN_S \
36876lt_SP2NL \
36877lt_NL2SP \
36878reload_flag \
36879deplibs_check_method \
36880file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036881file_magic_glob \
36882want_nocaseglob \
36883sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036884AR \
36885AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036886archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036887STRIP \
36888RANLIB \
36889CC \
36890CFLAGS \
36891compiler \
36892lt_cv_sys_global_symbol_pipe \
36893lt_cv_sys_global_symbol_to_cdecl \
36894lt_cv_sys_global_symbol_to_c_name_address \
36895lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036896nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036897lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036898lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036899lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036900lt_prog_compiler_static \
36901lt_cv_prog_compiler_c_o \
36902need_locks \
cristyda16f162011-02-19 23:52:17 +000036903MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036904DSYMUTIL \
36905NMEDIT \
36906LIPO \
36907OTOOL \
36908OTOOL64 \
36909shrext_cmds \
36910export_dynamic_flag_spec \
36911whole_archive_flag_spec \
36912compiler_needs_object \
36913with_gnu_ld \
36914allow_undefined_flag \
36915no_undefined_flag \
36916hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036917hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036918exclude_expsyms \
36919include_expsyms \
36920file_list_spec \
36921variables_saved_for_relink \
36922libname_spec \
36923library_names_spec \
36924soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036925install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036926finish_eval \
36927old_striplib \
36928striplib \
36929compiler_lib_search_dirs \
36930predep_objects \
36931postdep_objects \
36932predeps \
36933postdeps \
36934compiler_lib_search_path \
36935LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036936reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036937compiler_CXX \
36938lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036939lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036940lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036941lt_prog_compiler_static_CXX \
36942lt_cv_prog_compiler_c_o_CXX \
36943export_dynamic_flag_spec_CXX \
36944whole_archive_flag_spec_CXX \
36945compiler_needs_object_CXX \
36946with_gnu_ld_CXX \
36947allow_undefined_flag_CXX \
36948no_undefined_flag_CXX \
36949hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036950hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036951exclude_expsyms_CXX \
36952include_expsyms_CXX \
36953file_list_spec_CXX \
36954compiler_lib_search_dirs_CXX \
36955predep_objects_CXX \
36956postdep_objects_CXX \
36957predeps_CXX \
36958postdeps_CXX \
36959compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036960 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036961 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036962 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036963 ;;
36964 *)
36965 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36966 ;;
36967 esac
36968done
36969
36970# Double-quote double-evaled strings.
36971for var in reload_cmds \
36972old_postinstall_cmds \
36973old_postuninstall_cmds \
36974old_archive_cmds \
36975extract_expsyms_cmds \
36976old_archive_from_new_cmds \
36977old_archive_from_expsyms_cmds \
36978archive_cmds \
36979archive_expsym_cmds \
36980module_cmds \
36981module_expsym_cmds \
36982export_symbols_cmds \
36983prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036984postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036985postinstall_cmds \
36986postuninstall_cmds \
36987finish_cmds \
36988sys_lib_search_path_spec \
36989sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036990reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036991old_archive_cmds_CXX \
36992old_archive_from_new_cmds_CXX \
36993old_archive_from_expsyms_cmds_CXX \
36994archive_cmds_CXX \
36995archive_expsym_cmds_CXX \
36996module_cmds_CXX \
36997module_expsym_cmds_CXX \
36998export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036999prelink_cmds_CXX \
37000postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037001 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037002 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037003 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037004 ;;
37005 *)
37006 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37007 ;;
37008 esac
37009done
37010
cristy73bd4a52010-10-05 11:24:23 +000037011ac_aux_dir='$ac_aux_dir'
37012xsi_shell='$xsi_shell'
37013lt_shell_append='$lt_shell_append'
37014
37015# See if we are running on zsh, and set the options which allow our
37016# commands through without removal of \ escapes INIT.
37017if test -n "\${ZSH_VERSION+set}" ; then
37018 setopt NO_GLOB_SUBST
37019fi
37020
37021
37022 PACKAGE='$PACKAGE'
37023 VERSION='$VERSION'
37024 TIMESTAMP='$TIMESTAMP'
37025 RM='$RM'
37026 ofile='$ofile'
37027
37028
37029
37030
37031
37032
cristy3ed852e2009-09-05 21:47:34 +000037033_ACEOF
37034
37035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37036
37037# Handling of arguments.
37038for ac_config_target in $ac_config_targets
37039do
37040 case $ac_config_target in
37041 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037042 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037043 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037044 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37045 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37046 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37047 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37048 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037049 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037050 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037051 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37052 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37053 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37054 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37055 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037056 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037057 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037058 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37059 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37060 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037061 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37062 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037063 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037064 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037065 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037066 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037067 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37068 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37069 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37070 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037071 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37072 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37073 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37074 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37075 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37076 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37077 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37078 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37079 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37080 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37081 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37082 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037083 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37084 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037085 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37086 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037087 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037088 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037089 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037090 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037091 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37092 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37093
cristy98dddb52010-11-04 00:30:15 +000037094 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037095 esac
37096done
37097
37098
37099# If the user did not use the arguments to specify the items to instantiate,
37100# then the envvar interface is used. Set only those that are not.
37101# We use the long form for the default assignment because of an extremely
37102# bizarre bug on SunOS 4.1.3.
37103if $ac_need_defaults; then
37104 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37105 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37106 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37107fi
37108
37109# Have a temporary directory for convenience. Make it in the build tree
37110# simply because there is no reason against having it here, and in addition,
37111# creating and moving files from /tmp can sometimes cause problems.
37112# Hook for its removal unless debugging.
37113# Note that there is a small window in which the directory will not be cleaned:
37114# after its creation but before its name has been assigned to `$tmp'.
37115$debug ||
37116{
cristyda16f162011-02-19 23:52:17 +000037117 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037118 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037119 : "${ac_tmp:=$tmp}"
37120 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037121' 0
cristy8b350f62009-11-15 23:12:43 +000037122 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037123}
37124# Create a (secure) tmp directory for tmp files.
37125
37126{
37127 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037128 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037129} ||
37130{
37131 tmp=./conf$$-$RANDOM
37132 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037133} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037134ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037135
37136# Set up the scripts for CONFIG_FILES section.
37137# No need to generate them if there are no CONFIG_FILES.
37138# This happens for instance with `./config.status config.h'.
37139if test -n "$CONFIG_FILES"; then
37140
37141
cristy8b350f62009-11-15 23:12:43 +000037142ac_cr=`echo X | tr X '\015'`
37143# On cygwin, bash can eat \r inside `` if the user requested igncr.
37144# But we know of no other shell where ac_cr would be empty at this
37145# point, so we can use a bashism as a fallback.
37146if test "x$ac_cr" = x; then
37147 eval ac_cr=\$\'\\r\'
37148fi
cristy3ed852e2009-09-05 21:47:34 +000037149ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37150if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037151 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037152else
37153 ac_cs_awk_cr=$ac_cr
37154fi
37155
cristyda16f162011-02-19 23:52:17 +000037156echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037157_ACEOF
37158
37159
37160{
37161 echo "cat >conf$$subs.awk <<_ACEOF" &&
37162 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37163 echo "_ACEOF"
37164} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037165 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37166ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037167ac_delim='%!_!# '
37168for ac_last_try in false false false false false :; do
37169 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037170 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037171
37172 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37173 if test $ac_delim_n = $ac_delim_num; then
37174 break
37175 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037177 else
37178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37179 fi
37180done
37181rm -f conf$$subs.sh
37182
37183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037184cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037185_ACEOF
37186sed -n '
37187h
37188s/^/S["/; s/!.*/"]=/
37189p
37190g
37191s/^[^!]*!//
37192:repl
37193t repl
37194s/'"$ac_delim"'$//
37195t delim
37196:nl
37197h
cristycd4c5312009-11-22 01:19:08 +000037198s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037199t more1
37200s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37201p
37202n
37203b repl
37204:more1
37205s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37206p
37207g
37208s/.\{148\}//
37209t nl
37210:delim
37211h
cristycd4c5312009-11-22 01:19:08 +000037212s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037213t more2
37214s/["\\]/\\&/g; s/^/"/; s/$/"/
37215p
37216b
37217:more2
37218s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37219p
37220g
37221s/.\{148\}//
37222t delim
37223' <conf$$subs.awk | sed '
37224/^[^""]/{
37225 N
37226 s/\n//
37227}
37228' >>$CONFIG_STATUS || ac_write_fail=1
37229rm -f conf$$subs.awk
37230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37231_ACAWK
cristyda16f162011-02-19 23:52:17 +000037232cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037233 for (key in S) S_is_set[key] = 1
37234 FS = ""
37235
37236}
37237{
37238 line = $ 0
37239 nfields = split(line, field, "@")
37240 substed = 0
37241 len = length(field[1])
37242 for (i = 2; i < nfields; i++) {
37243 key = field[i]
37244 keylen = length(key)
37245 if (S_is_set[key]) {
37246 value = S[key]
37247 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37248 len += length(value) + length(field[++i])
37249 substed = 1
37250 } else
37251 len += 1 + keylen
37252 }
37253
37254 print line
37255}
37256
37257_ACAWK
37258_ACEOF
37259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37260if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37261 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37262else
37263 cat
cristyda16f162011-02-19 23:52:17 +000037264fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037265 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037266_ACEOF
37267
cristy98dddb52010-11-04 00:30:15 +000037268# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37269# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037270# trailing colons and then remove the whole line if VPATH becomes empty
37271# (actually we leave an empty line to preserve line numbers).
37272if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037273 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37274h
37275s///
37276s/^/:/
37277s/[ ]*$/:/
37278s/:\$(srcdir):/:/g
37279s/:\${srcdir}:/:/g
37280s/:@srcdir@:/:/g
37281s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037282s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037283x
37284s/\(=[ ]*\).*/\1/
37285G
37286s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037287s/^[^=]*=[ ]*$//
37288}'
37289fi
37290
37291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37292fi # test -n "$CONFIG_FILES"
37293
37294# Set up the scripts for CONFIG_HEADERS section.
37295# No need to generate them if there are no CONFIG_HEADERS.
37296# This happens for instance with `./config.status Makefile'.
37297if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037298cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037299BEGIN {
37300_ACEOF
37301
37302# Transform confdefs.h into an awk script `defines.awk', embedded as
37303# here-document in config.status, that substitutes the proper values into
37304# config.h.in to produce config.h.
37305
37306# Create a delimiter string that does not exist in confdefs.h, to ease
37307# handling of long lines.
37308ac_delim='%!_!# '
37309for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037310 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37311 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037312 break
37313 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037314 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037315 else
37316 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37317 fi
37318done
37319
37320# For the awk script, D is an array of macro values keyed by name,
37321# likewise P contains macro parameters if any. Preserve backslash
37322# newline sequences.
37323
37324ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37325sed -n '
37326s/.\{148\}/&'"$ac_delim"'/g
37327t rset
37328:rset
37329s/^[ ]*#[ ]*define[ ][ ]*/ /
37330t def
37331d
37332:def
37333s/\\$//
37334t bsnl
37335s/["\\]/\\&/g
37336s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37337D["\1"]=" \3"/p
37338s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37339d
37340:bsnl
37341s/["\\]/\\&/g
37342s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37343D["\1"]=" \3\\\\\\n"\\/p
37344t cont
37345s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37346t cont
37347d
37348:cont
37349n
37350s/.\{148\}/&'"$ac_delim"'/g
37351t clear
37352:clear
37353s/\\$//
37354t bsnlc
37355s/["\\]/\\&/g; s/^/"/; s/$/"/p
37356d
37357:bsnlc
37358s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37359b cont
37360' <confdefs.h | sed '
37361s/'"$ac_delim"'/"\\\
37362"/g' >>$CONFIG_STATUS || ac_write_fail=1
37363
37364cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37365 for (key in D) D_is_set[key] = 1
37366 FS = ""
37367}
37368/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37369 line = \$ 0
37370 split(line, arg, " ")
37371 if (arg[1] == "#") {
37372 defundef = arg[2]
37373 mac1 = arg[3]
37374 } else {
37375 defundef = substr(arg[1], 2)
37376 mac1 = arg[2]
37377 }
37378 split(mac1, mac2, "(") #)
37379 macro = mac2[1]
37380 prefix = substr(line, 1, index(line, defundef) - 1)
37381 if (D_is_set[macro]) {
37382 # Preserve the white space surrounding the "#".
37383 print prefix "define", macro P[macro] D[macro]
37384 next
37385 } else {
37386 # Replace #undef with comments. This is necessary, for example,
37387 # in the case of _POSIX_SOURCE, which is predefined and required
37388 # on some systems where configure will not decide to define it.
37389 if (defundef == "undef") {
37390 print "/*", prefix defundef, macro, "*/"
37391 next
37392 }
37393 }
37394}
37395{ print }
37396_ACAWK
37397_ACEOF
37398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037399 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037400fi # test -n "$CONFIG_HEADERS"
37401
37402
37403eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37404shift
37405for ac_tag
37406do
37407 case $ac_tag in
37408 :[FHLC]) ac_mode=$ac_tag; continue;;
37409 esac
37410 case $ac_mode$ac_tag in
37411 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037412 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037413 :[FH]-) ac_tag=-:-;;
37414 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37415 esac
37416 ac_save_IFS=$IFS
37417 IFS=:
37418 set x $ac_tag
37419 IFS=$ac_save_IFS
37420 shift
37421 ac_file=$1
37422 shift
37423
37424 case $ac_mode in
37425 :L) ac_source=$1;;
37426 :[FH])
37427 ac_file_inputs=
37428 for ac_f
37429 do
37430 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037431 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037432 *) # Look for the file first in the build tree, then in the source tree
37433 # (if the path is not absolute). The absolute path cannot be DOS-style,
37434 # because $ac_f cannot contain `:'.
37435 test -f "$ac_f" ||
37436 case $ac_f in
37437 [\\/$]*) false;;
37438 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37439 esac ||
cristy98dddb52010-11-04 00:30:15 +000037440 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037441 esac
37442 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037443 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037444 done
37445
37446 # Let's still pretend it is `configure' which instantiates (i.e., don't
37447 # use $as_me), people would be surprised to read:
37448 # /* config.h. Generated by config.status. */
37449 configure_input='Generated from '`
37450 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37451 `' by configure.'
37452 if test x"$ac_file" != x-; then
37453 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037455$as_echo "$as_me: creating $ac_file" >&6;}
37456 fi
37457 # Neutralize special characters interpreted by sed in replacement strings.
37458 case $configure_input in #(
37459 *\&* | *\|* | *\\* )
37460 ac_sed_conf_input=`$as_echo "$configure_input" |
37461 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37462 *) ac_sed_conf_input=$configure_input;;
37463 esac
37464
37465 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037466 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037467 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037468 esac
37469 ;;
37470 esac
37471
37472 ac_dir=`$as_dirname -- "$ac_file" ||
37473$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37474 X"$ac_file" : 'X\(//\)[^/]' \| \
37475 X"$ac_file" : 'X\(//\)$' \| \
37476 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37477$as_echo X"$ac_file" |
37478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37479 s//\1/
37480 q
37481 }
37482 /^X\(\/\/\)[^/].*/{
37483 s//\1/
37484 q
37485 }
37486 /^X\(\/\/\)$/{
37487 s//\1/
37488 q
37489 }
37490 /^X\(\/\).*/{
37491 s//\1/
37492 q
37493 }
37494 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037495 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037496 ac_builddir=.
37497
37498case "$ac_dir" in
37499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37500*)
37501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37502 # A ".." for each directory in $ac_dir_suffix.
37503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37504 case $ac_top_builddir_sub in
37505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37507 esac ;;
37508esac
37509ac_abs_top_builddir=$ac_pwd
37510ac_abs_builddir=$ac_pwd$ac_dir_suffix
37511# for backward compatibility:
37512ac_top_builddir=$ac_top_build_prefix
37513
37514case $srcdir in
37515 .) # We are building in place.
37516 ac_srcdir=.
37517 ac_top_srcdir=$ac_top_builddir_sub
37518 ac_abs_top_srcdir=$ac_pwd ;;
37519 [\\/]* | ?:[\\/]* ) # Absolute name.
37520 ac_srcdir=$srcdir$ac_dir_suffix;
37521 ac_top_srcdir=$srcdir
37522 ac_abs_top_srcdir=$srcdir ;;
37523 *) # Relative name.
37524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37525 ac_top_srcdir=$ac_top_build_prefix$srcdir
37526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37527esac
37528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37529
37530
37531 case $ac_mode in
37532 :F)
37533 #
37534 # CONFIG_FILE
37535 #
37536
37537 case $INSTALL in
37538 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37539 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37540 esac
cristy73bd4a52010-10-05 11:24:23 +000037541 ac_MKDIR_P=$MKDIR_P
37542 case $MKDIR_P in
37543 [\\/$]* | ?:[\\/]* ) ;;
37544 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37545 esac
cristy3ed852e2009-09-05 21:47:34 +000037546_ACEOF
37547
37548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37549# If the template does not know about datarootdir, expand it.
37550# FIXME: This hack should be removed a few years after 2.60.
37551ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037552ac_sed_dataroot='
37553/datarootdir/ {
37554 p
37555 q
37556}
37557/@datadir@/p
37558/@docdir@/p
37559/@infodir@/p
37560/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037561/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037562case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37563*datarootdir*) ac_datarootdir_seen=yes;;
37564*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037566$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37567_ACEOF
37568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37569 ac_datarootdir_hack='
37570 s&@datadir@&$datadir&g
37571 s&@docdir@&$docdir&g
37572 s&@infodir@&$infodir&g
37573 s&@localedir@&$localedir&g
37574 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037575 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037576esac
37577_ACEOF
37578
37579# Neutralize VPATH when `$srcdir' = `.'.
37580# Shell code in configure.ac might set extrasub.
37581# FIXME: do we really want to maintain this feature?
37582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37583ac_sed_extra="$ac_vpsub
37584$extrasub
37585_ACEOF
37586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37587:t
37588/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37589s|@configure_input@|$ac_sed_conf_input|;t t
37590s&@top_builddir@&$ac_top_builddir_sub&;t t
37591s&@top_build_prefix@&$ac_top_build_prefix&;t t
37592s&@srcdir@&$ac_srcdir&;t t
37593s&@abs_srcdir@&$ac_abs_srcdir&;t t
37594s&@top_srcdir@&$ac_top_srcdir&;t t
37595s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37596s&@builddir@&$ac_builddir&;t t
37597s&@abs_builddir@&$ac_abs_builddir&;t t
37598s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37599s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037600s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037601$ac_datarootdir_hack
37602"
cristyda16f162011-02-19 23:52:17 +000037603eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37604 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037605
37606test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037607 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37608 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37609 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037611which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037612$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037613which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037614
cristyda16f162011-02-19 23:52:17 +000037615 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037616 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037617 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37618 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037619 esac \
cristy98dddb52010-11-04 00:30:15 +000037620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037621 ;;
37622 :H)
37623 #
37624 # CONFIG_HEADER
37625 #
37626 if test x"$ac_file" != x-; then
37627 {
37628 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037629 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37630 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037632 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037633 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037634$as_echo "$as_me: $ac_file is unchanged" >&6;}
37635 else
37636 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037637 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037638 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037639 fi
37640 else
37641 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037642 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037643 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037644 fi
cristy73bd4a52010-10-05 11:24:23 +000037645# Compute "$ac_file"'s index in $config_headers.
37646_am_arg="$ac_file"
37647_am_stamp_count=1
37648for _am_header in $config_headers :; do
37649 case $_am_header in
37650 $_am_arg | $_am_arg:* )
37651 break ;;
37652 * )
37653 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37654 esac
37655done
37656echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37657$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37658 X"$_am_arg" : 'X\(//\)[^/]' \| \
37659 X"$_am_arg" : 'X\(//\)$' \| \
37660 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37661$as_echo X"$_am_arg" |
37662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37663 s//\1/
37664 q
37665 }
37666 /^X\(\/\/\)[^/].*/{
37667 s//\1/
37668 q
37669 }
37670 /^X\(\/\/\)$/{
37671 s//\1/
37672 q
37673 }
37674 /^X\(\/\).*/{
37675 s//\1/
37676 q
37677 }
37678 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037679 ;;
37680
cristy8b350f62009-11-15 23:12:43 +000037681 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037682$as_echo "$as_me: executing $ac_file commands" >&6;}
37683 ;;
37684 esac
37685
37686
37687 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037688 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037689ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37690ac_prefix_conf_PKG=`echo MagickCore`
37691ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37692ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37693ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37694if test ".$ac_prefix_conf_INP" = "."; then
37695 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37696 case "$ac_file" in
37697 *.h) ac_prefix_conf_INP=$ac_file ;;
37698 *)
37699 esac
37700 test ".$ac_prefix_conf_INP" != "." && break
37701 done
37702fi
37703if test ".$ac_prefix_conf_INP" = "."; then
37704 case "$ac_prefix_conf_OUT" in
37705 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37706 ;;
37707 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37708 ;;
37709 *) ac_prefix_conf_INP=config.h
37710 ;;
37711 esac
37712fi
37713if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037714 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037715else
37716 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37717 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37718 fi fi
37719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37720$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37721 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037722 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37723 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37724 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37725 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37726 $as_echo "#endif/" >> conftest.prefix
37727 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37728 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37729 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037730 # now executing _script on _DEF input to create _OUT output file
37731 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37732 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37733 echo ' ' >>$tmp/pconfig.h
37734 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37735
37736 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37737 echo ' ' >>$tmp/pconfig.h
37738 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37739 echo "#endif" >>$tmp/pconfig.h
37740 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37741 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37742$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37743 else
37744 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37745$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37746 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37747 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37748 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37749$as_echo X"$ac_prefix_conf_OUT" |
37750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37751 s//\1/
37752 q
37753 }
37754 /^X\(\/\/\)[^/].*/{
37755 s//\1/
37756 q
37757 }
37758 /^X\(\/\/\)$/{
37759 s//\1/
37760 q
37761 }
37762 /^X\(\/\).*/{
37763 s//\1/
37764 q
37765 }
37766 s/.*/./; q'`
37767 as_dir="$ac_dir"; as_fn_mkdir_p
37768 rm -f "$ac_prefix_conf_OUT"
37769 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37770 fi
37771 cp conftest.prefix _configs.sed
37772 else
cristy98dddb52010-11-04 00:30:15 +000037773 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 +000037774 fi
37775 rm -f conftest.*
37776fi
37777 ;;
37778 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037779 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037780 # are listed without --file. Let's play safe and only enable the eval
37781 # if we detect the quoting.
37782 case $CONFIG_FILES in
37783 *\'*) eval set x "$CONFIG_FILES" ;;
37784 *) set x $CONFIG_FILES ;;
37785 esac
37786 shift
37787 for mf
37788 do
37789 # Strip MF so we end up with the name of the file.
37790 mf=`echo "$mf" | sed -e 's/:.*$//'`
37791 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037792 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037793 # some people rename them; so instead we look at the file content.
37794 # Grep'ing the first line is not enough: some people post-process
37795 # each Makefile.in and add a new line on top of each file to say so.
37796 # Grep'ing the whole file is not good either: AIX grep has a line
37797 # limit of 2048, but all sed's we know have understand at least 4000.
37798 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37799 dirpart=`$as_dirname -- "$mf" ||
37800$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37801 X"$mf" : 'X\(//\)[^/]' \| \
37802 X"$mf" : 'X\(//\)$' \| \
37803 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37804$as_echo X"$mf" |
37805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37806 s//\1/
37807 q
37808 }
37809 /^X\(\/\/\)[^/].*/{
37810 s//\1/
37811 q
37812 }
37813 /^X\(\/\/\)$/{
37814 s//\1/
37815 q
37816 }
37817 /^X\(\/\).*/{
37818 s//\1/
37819 q
37820 }
37821 s/.*/./; q'`
37822 else
37823 continue
37824 fi
37825 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037826 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037827 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37828 test -z "$DEPDIR" && continue
37829 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37830 test -z "am__include" && continue
37831 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037832 # Find all dependency output files, they are included files with
37833 # $(DEPDIR) in their names. We invoke sed twice because it is the
37834 # simplest approach to changing $(DEPDIR) to its actual value in the
37835 # expansion.
37836 for file in `sed -n "
37837 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037838 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037839 # Make sure the directory exists.
37840 test -f "$dirpart/$file" && continue
37841 fdir=`$as_dirname -- "$file" ||
37842$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37843 X"$file" : 'X\(//\)[^/]' \| \
37844 X"$file" : 'X\(//\)$' \| \
37845 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37846$as_echo X"$file" |
37847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37848 s//\1/
37849 q
37850 }
37851 /^X\(\/\/\)[^/].*/{
37852 s//\1/
37853 q
37854 }
37855 /^X\(\/\/\)$/{
37856 s//\1/
37857 q
37858 }
37859 /^X\(\/\).*/{
37860 s//\1/
37861 q
37862 }
37863 s/.*/./; q'`
37864 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37865 # echo "creating $dirpart/$file"
37866 echo '# dummy' > "$dirpart/$file"
37867 done
37868 done
37869}
37870 ;;
37871 "libtool":C)
37872
37873 # See if we are running on zsh, and set the options which allow our
37874 # commands through without removal of \ escapes.
37875 if test -n "${ZSH_VERSION+set}" ; then
37876 setopt NO_GLOB_SUBST
37877 fi
37878
37879 cfgfile="${ofile}T"
37880 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37881 $RM "$cfgfile"
37882
37883 cat <<_LT_EOF >> "$cfgfile"
37884#! $SHELL
37885
37886# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37887# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37888# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37889# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37890#
37891# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037892# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37893# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037894# Written by Gordon Matzigkeit, 1996
37895#
37896# This file is part of GNU Libtool.
37897#
37898# GNU Libtool is free software; you can redistribute it and/or
37899# modify it under the terms of the GNU General Public License as
37900# published by the Free Software Foundation; either version 2 of
37901# the License, or (at your option) any later version.
37902#
37903# As a special exception to the GNU General Public License,
37904# if you distribute this file as part of a program or library that
37905# is built using GNU Libtool, you may include this file under the
37906# same distribution terms that you use for the rest of that program.
37907#
37908# GNU Libtool is distributed in the hope that it will be useful,
37909# but WITHOUT ANY WARRANTY; without even the implied warranty of
37910# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37911# GNU General Public License for more details.
37912#
37913# You should have received a copy of the GNU General Public License
37914# along with GNU Libtool; see the file COPYING. If not, a copy
37915# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37916# obtained by writing to the Free Software Foundation, Inc.,
37917# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37918
37919
37920# The names of the tagged configurations supported by this script.
37921available_tags="CXX "
37922
37923# ### BEGIN LIBTOOL CONFIG
37924
37925# A sed program that does not truncate output.
37926SED=$lt_SED
37927
37928# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37929Xsed="\$SED -e 1s/^X//"
37930
37931# A grep program that handles long lines.
37932GREP=$lt_GREP
37933
37934# An ERE matcher.
37935EGREP=$lt_EGREP
37936
37937# A literal string matcher.
37938FGREP=$lt_FGREP
37939
cristy0c60a692010-11-04 01:09:47 +000037940# Shell to use when invoking shell scripts.
37941SHELL=$lt_SHELL
37942
37943# An echo program that protects backslashes.
37944ECHO=$lt_ECHO
37945
cristy73bd4a52010-10-05 11:24:23 +000037946# Which release of libtool.m4 was used?
37947macro_version=$macro_version
37948macro_revision=$macro_revision
37949
37950# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037951AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037952
37953# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037954DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037955
37956# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037957OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037958
37959# Whether or not to build shared libraries.
37960build_libtool_libs=$enable_shared
37961
37962# Whether or not to build static libraries.
37963build_old_libs=$enable_static
37964
37965# What type of objects to build.
37966pic_mode=$pic_mode
37967
37968# Whether or not to optimize for fast installation.
37969fast_install=$enable_fast_install
37970
cristy99bd5232011-12-07 14:38:20 +000037971# The PATH separator for the build system.
37972PATH_SEPARATOR=$lt_PATH_SEPARATOR
37973
cristy73bd4a52010-10-05 11:24:23 +000037974# The host system.
37975host_alias=$host_alias
37976host=$host
37977host_os=$host_os
37978
37979# The build system.
37980build_alias=$build_alias
37981build=$build
37982build_os=$build_os
37983
37984# A BSD- or MS-compatible name lister.
37985NM=$lt_NM
37986
37987# Whether we need soft or hard links.
37988LN_S=$lt_LN_S
37989
37990# What is the maximum length of a command?
37991max_cmd_len=$max_cmd_len
37992
37993# Object file suffix (normally "o").
37994objext=$ac_objext
37995
37996# Executable file suffix (normally "").
37997exeext=$exeext
37998
37999# whether the shell understands "unset".
38000lt_unset=$lt_unset
38001
38002# turn spaces into newlines.
38003SP2NL=$lt_lt_SP2NL
38004
38005# turn newlines into spaces.
38006NL2SP=$lt_lt_NL2SP
38007
cristyda16f162011-02-19 23:52:17 +000038008# convert \$build file names to \$host format.
38009to_host_file_cmd=$lt_cv_to_host_file_cmd
38010
38011# convert \$build files to toolchain format.
38012to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38013
cristy73bd4a52010-10-05 11:24:23 +000038014# Method to check whether dependent libraries are shared objects.
38015deplibs_check_method=$lt_deplibs_check_method
38016
cristyda16f162011-02-19 23:52:17 +000038017# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038018file_magic_cmd=$lt_file_magic_cmd
38019
cristyda16f162011-02-19 23:52:17 +000038020# How to find potential files when deplibs_check_method = "file_magic".
38021file_magic_glob=$lt_file_magic_glob
38022
38023# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38024want_nocaseglob=$lt_want_nocaseglob
38025
38026# Command to associate shared and link libraries.
38027sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38028
cristy73bd4a52010-10-05 11:24:23 +000038029# The archiver.
38030AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038031
38032# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038033AR_FLAGS=$lt_AR_FLAGS
38034
cristyda16f162011-02-19 23:52:17 +000038035# How to feed a file listing to the archiver.
38036archiver_list_spec=$lt_archiver_list_spec
38037
cristy73bd4a52010-10-05 11:24:23 +000038038# A symbol stripping program.
38039STRIP=$lt_STRIP
38040
38041# Commands used to install an old-style archive.
38042RANLIB=$lt_RANLIB
38043old_postinstall_cmds=$lt_old_postinstall_cmds
38044old_postuninstall_cmds=$lt_old_postuninstall_cmds
38045
cristy0c60a692010-11-04 01:09:47 +000038046# Whether to use a lock for old archive extraction.
38047lock_old_archive_extraction=$lock_old_archive_extraction
38048
cristy73bd4a52010-10-05 11:24:23 +000038049# A C compiler.
38050LTCC=$lt_CC
38051
38052# LTCC compiler flags.
38053LTCFLAGS=$lt_CFLAGS
38054
38055# Take the output of nm and produce a listing of raw symbols and C names.
38056global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38057
38058# Transform the output of nm in a proper C declaration.
38059global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38060
38061# Transform the output of nm in a C name address pair.
38062global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38063
38064# Transform the output of nm in a C name address pair when lib prefix is needed.
38065global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38066
cristyda16f162011-02-19 23:52:17 +000038067# Specify filename containing input files for \$NM.
38068nm_file_list_spec=$lt_nm_file_list_spec
38069
38070# The root where to search for dependent libraries,and in which our libraries should be installed.
38071lt_sysroot=$lt_sysroot
38072
cristy73bd4a52010-10-05 11:24:23 +000038073# The name of the directory that contains temporary libtool files.
38074objdir=$objdir
38075
cristy73bd4a52010-10-05 11:24:23 +000038076# Used to examine libraries when file_magic_cmd begins with "file".
38077MAGIC_CMD=$MAGIC_CMD
38078
38079# Must we lock files when doing compilation?
38080need_locks=$lt_need_locks
38081
cristyda16f162011-02-19 23:52:17 +000038082# Manifest tool.
38083MANIFEST_TOOL=$lt_MANIFEST_TOOL
38084
cristy73bd4a52010-10-05 11:24:23 +000038085# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38086DSYMUTIL=$lt_DSYMUTIL
38087
38088# Tool to change global to local symbols on Mac OS X.
38089NMEDIT=$lt_NMEDIT
38090
38091# Tool to manipulate fat objects and archives on Mac OS X.
38092LIPO=$lt_LIPO
38093
38094# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38095OTOOL=$lt_OTOOL
38096
38097# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38098OTOOL64=$lt_OTOOL64
38099
38100# Old archive suffix (normally "a").
38101libext=$libext
38102
38103# Shared library suffix (normally ".so").
38104shrext_cmds=$lt_shrext_cmds
38105
38106# The commands to extract the exported symbol list from a shared archive.
38107extract_expsyms_cmds=$lt_extract_expsyms_cmds
38108
38109# Variables whose values should be saved in libtool wrapper scripts and
38110# restored at link time.
38111variables_saved_for_relink=$lt_variables_saved_for_relink
38112
38113# Do we need the "lib" prefix for modules?
38114need_lib_prefix=$need_lib_prefix
38115
38116# Do we need a version for libraries?
38117need_version=$need_version
38118
38119# Library versioning type.
38120version_type=$version_type
38121
38122# Shared library runtime path variable.
38123runpath_var=$runpath_var
38124
38125# Shared library path variable.
38126shlibpath_var=$shlibpath_var
38127
38128# Is shlibpath searched before the hard-coded library search path?
38129shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38130
38131# Format of library name prefix.
38132libname_spec=$lt_libname_spec
38133
38134# List of archive names. First name is the real one, the rest are links.
38135# The last name is the one that the linker finds with -lNAME
38136library_names_spec=$lt_library_names_spec
38137
38138# The coded name of the library, if different from the real name.
38139soname_spec=$lt_soname_spec
38140
cristy0c60a692010-11-04 01:09:47 +000038141# Permission mode override for installation of shared libraries.
38142install_override_mode=$lt_install_override_mode
38143
cristy73bd4a52010-10-05 11:24:23 +000038144# Command to use after installation of a shared archive.
38145postinstall_cmds=$lt_postinstall_cmds
38146
38147# Command to use after uninstallation of a shared archive.
38148postuninstall_cmds=$lt_postuninstall_cmds
38149
38150# Commands used to finish a libtool library installation in a directory.
38151finish_cmds=$lt_finish_cmds
38152
38153# As "finish_cmds", except a single script fragment to be evaled but
38154# not shown.
38155finish_eval=$lt_finish_eval
38156
38157# Whether we should hardcode library paths into libraries.
38158hardcode_into_libs=$hardcode_into_libs
38159
38160# Compile-time system search path for libraries.
38161sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38162
38163# Run-time system search path for libraries.
38164sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38165
38166# Whether dlopen is supported.
38167dlopen_support=$enable_dlopen
38168
38169# Whether dlopen of programs is supported.
38170dlopen_self=$enable_dlopen_self
38171
38172# Whether dlopen of statically linked programs is supported.
38173dlopen_self_static=$enable_dlopen_self_static
38174
38175# Commands to strip libraries.
38176old_striplib=$lt_old_striplib
38177striplib=$lt_striplib
38178
38179
38180# The linker used to build libraries.
38181LD=$lt_LD
38182
cristy0c60a692010-11-04 01:09:47 +000038183# How to create reloadable object files.
38184reload_flag=$lt_reload_flag
38185reload_cmds=$lt_reload_cmds
38186
cristy73bd4a52010-10-05 11:24:23 +000038187# Commands used to build an old-style archive.
38188old_archive_cmds=$lt_old_archive_cmds
38189
38190# A language specific compiler.
38191CC=$lt_compiler
38192
38193# Is the compiler the GNU compiler?
38194with_gcc=$GCC
38195
38196# Compiler flag to turn off builtin functions.
38197no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38198
cristy73bd4a52010-10-05 11:24:23 +000038199# Additional compiler flags for building library objects.
38200pic_flag=$lt_lt_prog_compiler_pic
38201
cristyda16f162011-02-19 23:52:17 +000038202# How to pass a linker flag through the compiler.
38203wl=$lt_lt_prog_compiler_wl
38204
cristy73bd4a52010-10-05 11:24:23 +000038205# Compiler flag to prevent dynamic linking.
38206link_static_flag=$lt_lt_prog_compiler_static
38207
38208# Does compiler simultaneously support -c and -o options?
38209compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38210
38211# Whether or not to add -lc for building shared libraries.
38212build_libtool_need_lc=$archive_cmds_need_lc
38213
38214# Whether or not to disallow shared libs when runtime libs are static.
38215allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38216
38217# Compiler flag to allow reflexive dlopens.
38218export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38219
38220# Compiler flag to generate shared objects directly from archives.
38221whole_archive_flag_spec=$lt_whole_archive_flag_spec
38222
38223# Whether the compiler copes with passing no objects directly.
38224compiler_needs_object=$lt_compiler_needs_object
38225
38226# Create an old-style archive from a shared archive.
38227old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38228
38229# Create a temporary old-style archive to link instead of a shared archive.
38230old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38231
38232# Commands used to build a shared archive.
38233archive_cmds=$lt_archive_cmds
38234archive_expsym_cmds=$lt_archive_expsym_cmds
38235
38236# Commands used to build a loadable module if different from building
38237# a shared archive.
38238module_cmds=$lt_module_cmds
38239module_expsym_cmds=$lt_module_expsym_cmds
38240
38241# Whether we are building with GNU ld or not.
38242with_gnu_ld=$lt_with_gnu_ld
38243
38244# Flag that allows shared libraries with undefined symbols to be built.
38245allow_undefined_flag=$lt_allow_undefined_flag
38246
38247# Flag that enforces no undefined symbols.
38248no_undefined_flag=$lt_no_undefined_flag
38249
38250# Flag to hardcode \$libdir into a binary during linking.
38251# This must work even if \$libdir does not exist
38252hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38253
cristy73bd4a52010-10-05 11:24:23 +000038254# Whether we need a single "-rpath" flag with a separated argument.
38255hardcode_libdir_separator=$lt_hardcode_libdir_separator
38256
38257# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38258# DIR into the resulting binary.
38259hardcode_direct=$hardcode_direct
38260
38261# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38262# DIR into the resulting binary and the resulting library dependency is
38263# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38264# library is relocated.
38265hardcode_direct_absolute=$hardcode_direct_absolute
38266
38267# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38268# into the resulting binary.
38269hardcode_minus_L=$hardcode_minus_L
38270
38271# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38272# into the resulting binary.
38273hardcode_shlibpath_var=$hardcode_shlibpath_var
38274
38275# Set to "yes" if building a shared library automatically hardcodes DIR
38276# into the library and all subsequent libraries and executables linked
38277# against it.
38278hardcode_automatic=$hardcode_automatic
38279
38280# Set to yes if linker adds runtime paths of dependent libraries
38281# to runtime path list.
38282inherit_rpath=$inherit_rpath
38283
38284# Whether libtool must link a program against all its dependency libraries.
38285link_all_deplibs=$link_all_deplibs
38286
cristy73bd4a52010-10-05 11:24:23 +000038287# Set to "yes" if exported symbols are required.
38288always_export_symbols=$always_export_symbols
38289
38290# The commands to list exported symbols.
38291export_symbols_cmds=$lt_export_symbols_cmds
38292
38293# Symbols that should not be listed in the preloaded symbols.
38294exclude_expsyms=$lt_exclude_expsyms
38295
38296# Symbols that must always be exported.
38297include_expsyms=$lt_include_expsyms
38298
38299# Commands necessary for linking programs (against libraries) with templates.
38300prelink_cmds=$lt_prelink_cmds
38301
cristyda16f162011-02-19 23:52:17 +000038302# Commands necessary for finishing linking programs.
38303postlink_cmds=$lt_postlink_cmds
38304
cristy73bd4a52010-10-05 11:24:23 +000038305# Specify filename containing input files.
38306file_list_spec=$lt_file_list_spec
38307
38308# How to hardcode a shared library path into an executable.
38309hardcode_action=$hardcode_action
38310
38311# The directories searched by this compiler when creating a shared library.
38312compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38313
38314# Dependencies to place before and after the objects being linked to
38315# create a shared library.
38316predep_objects=$lt_predep_objects
38317postdep_objects=$lt_postdep_objects
38318predeps=$lt_predeps
38319postdeps=$lt_postdeps
38320
38321# The library search path used internally by the compiler when linking
38322# a shared library.
38323compiler_lib_search_path=$lt_compiler_lib_search_path
38324
38325# ### END LIBTOOL CONFIG
38326
38327_LT_EOF
38328
38329 case $host_os in
38330 aix3*)
38331 cat <<\_LT_EOF >> "$cfgfile"
38332# AIX sometimes has problems with the GCC collect2 program. For some
38333# reason, if we set the COLLECT_NAMES environment variable, the problems
38334# vanish in a puff of smoke.
38335if test "X${COLLECT_NAMES+set}" != Xset; then
38336 COLLECT_NAMES=
38337 export COLLECT_NAMES
38338fi
38339_LT_EOF
38340 ;;
38341 esac
38342
38343
38344ltmain="$ac_aux_dir/ltmain.sh"
38345
38346
38347 # We use sed instead of cat because bash on DJGPP gets confused if
38348 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38349 # text mode, it properly converts lines to CR/LF. This bash problem
38350 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038351 sed '$q' "$ltmain" >> "$cfgfile" \
38352 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038353
cristyda16f162011-02-19 23:52:17 +000038354 if test x"$xsi_shell" = xyes; then
38355 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38356func_dirname ()\
38357{\
38358\ case ${1} in\
38359\ */*) func_dirname_result="${1%/*}${2}" ;;\
38360\ * ) func_dirname_result="${3}" ;;\
38361\ esac\
38362} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38363 && mv -f "$cfgfile.tmp" "$cfgfile" \
38364 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38365test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038366
38367
cristyda16f162011-02-19 23:52:17 +000038368 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38369func_basename ()\
38370{\
38371\ func_basename_result="${1##*/}"\
38372} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38373 && mv -f "$cfgfile.tmp" "$cfgfile" \
38374 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38375test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038376
38377
cristyda16f162011-02-19 23:52:17 +000038378 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38379func_dirname_and_basename ()\
38380{\
38381\ case ${1} in\
38382\ */*) func_dirname_result="${1%/*}${2}" ;;\
38383\ * ) func_dirname_result="${3}" ;;\
38384\ esac\
38385\ func_basename_result="${1##*/}"\
38386} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38387 && mv -f "$cfgfile.tmp" "$cfgfile" \
38388 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38389test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038390
cristyda16f162011-02-19 23:52:17 +000038391
38392 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38393func_stripname ()\
38394{\
38395\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38396\ # positional parameters, so assign one to ordinary parameter first.\
38397\ func_stripname_result=${3}\
38398\ func_stripname_result=${func_stripname_result#"${1}"}\
38399\ func_stripname_result=${func_stripname_result%"${2}"}\
38400} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38401 && mv -f "$cfgfile.tmp" "$cfgfile" \
38402 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38403test 0 -eq $? || _lt_function_replace_fail=:
38404
38405
38406 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38407func_split_long_opt ()\
38408{\
38409\ func_split_long_opt_name=${1%%=*}\
38410\ func_split_long_opt_arg=${1#*=}\
38411} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38412 && mv -f "$cfgfile.tmp" "$cfgfile" \
38413 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38414test 0 -eq $? || _lt_function_replace_fail=:
38415
38416
38417 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38418func_split_short_opt ()\
38419{\
38420\ func_split_short_opt_arg=${1#??}\
38421\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38422} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38423 && mv -f "$cfgfile.tmp" "$cfgfile" \
38424 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38425test 0 -eq $? || _lt_function_replace_fail=:
38426
38427
38428 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38429func_lo2o ()\
38430{\
38431\ case ${1} in\
38432\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38433\ *) func_lo2o_result=${1} ;;\
38434\ esac\
38435} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38436 && mv -f "$cfgfile.tmp" "$cfgfile" \
38437 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38438test 0 -eq $? || _lt_function_replace_fail=:
38439
38440
38441 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38442func_xform ()\
38443{\
38444 func_xform_result=${1%.*}.lo\
38445} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38446 && mv -f "$cfgfile.tmp" "$cfgfile" \
38447 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38448test 0 -eq $? || _lt_function_replace_fail=:
38449
38450
38451 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38452func_arith ()\
38453{\
38454 func_arith_result=$(( $* ))\
38455} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38456 && mv -f "$cfgfile.tmp" "$cfgfile" \
38457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38458test 0 -eq $? || _lt_function_replace_fail=:
38459
38460
38461 sed -e '/^func_len ()$/,/^} # func_len /c\
38462func_len ()\
38463{\
38464 func_len_result=${#1}\
38465} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38466 && mv -f "$cfgfile.tmp" "$cfgfile" \
38467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38468test 0 -eq $? || _lt_function_replace_fail=:
38469
38470fi
38471
38472if test x"$lt_shell_append" = xyes; then
38473 sed -e '/^func_append ()$/,/^} # func_append /c\
38474func_append ()\
38475{\
38476 eval "${1}+=\\${2}"\
38477} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38478 && mv -f "$cfgfile.tmp" "$cfgfile" \
38479 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38480test 0 -eq $? || _lt_function_replace_fail=:
38481
38482
38483 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38484func_append_quoted ()\
38485{\
38486\ func_quote_for_eval "${2}"\
38487\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38488} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38489 && mv -f "$cfgfile.tmp" "$cfgfile" \
38490 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38491test 0 -eq $? || _lt_function_replace_fail=:
38492
38493
38494 # Save a `func_append' function call where possible by direct use of '+='
38495 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38496 && mv -f "$cfgfile.tmp" "$cfgfile" \
38497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38498 test 0 -eq $? || _lt_function_replace_fail=:
38499else
38500 # Save a `func_append' function call even when '+=' is not available
38501 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38502 && mv -f "$cfgfile.tmp" "$cfgfile" \
38503 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38504 test 0 -eq $? || _lt_function_replace_fail=:
38505fi
38506
38507if test x"$_lt_function_replace_fail" = x":"; then
38508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38509$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38510fi
38511
38512
38513 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038514 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38515 chmod +x "$ofile"
38516
38517
38518 cat <<_LT_EOF >> "$ofile"
38519
38520# ### BEGIN LIBTOOL TAG CONFIG: CXX
38521
38522# The linker used to build libraries.
38523LD=$lt_LD_CXX
38524
cristy0c60a692010-11-04 01:09:47 +000038525# How to create reloadable object files.
38526reload_flag=$lt_reload_flag_CXX
38527reload_cmds=$lt_reload_cmds_CXX
38528
cristy73bd4a52010-10-05 11:24:23 +000038529# Commands used to build an old-style archive.
38530old_archive_cmds=$lt_old_archive_cmds_CXX
38531
38532# A language specific compiler.
38533CC=$lt_compiler_CXX
38534
38535# Is the compiler the GNU compiler?
38536with_gcc=$GCC_CXX
38537
38538# Compiler flag to turn off builtin functions.
38539no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38540
cristy73bd4a52010-10-05 11:24:23 +000038541# Additional compiler flags for building library objects.
38542pic_flag=$lt_lt_prog_compiler_pic_CXX
38543
cristyda16f162011-02-19 23:52:17 +000038544# How to pass a linker flag through the compiler.
38545wl=$lt_lt_prog_compiler_wl_CXX
38546
cristy73bd4a52010-10-05 11:24:23 +000038547# Compiler flag to prevent dynamic linking.
38548link_static_flag=$lt_lt_prog_compiler_static_CXX
38549
38550# Does compiler simultaneously support -c and -o options?
38551compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38552
38553# Whether or not to add -lc for building shared libraries.
38554build_libtool_need_lc=$archive_cmds_need_lc_CXX
38555
38556# Whether or not to disallow shared libs when runtime libs are static.
38557allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38558
38559# Compiler flag to allow reflexive dlopens.
38560export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38561
38562# Compiler flag to generate shared objects directly from archives.
38563whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38564
38565# Whether the compiler copes with passing no objects directly.
38566compiler_needs_object=$lt_compiler_needs_object_CXX
38567
38568# Create an old-style archive from a shared archive.
38569old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38570
38571# Create a temporary old-style archive to link instead of a shared archive.
38572old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38573
38574# Commands used to build a shared archive.
38575archive_cmds=$lt_archive_cmds_CXX
38576archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38577
38578# Commands used to build a loadable module if different from building
38579# a shared archive.
38580module_cmds=$lt_module_cmds_CXX
38581module_expsym_cmds=$lt_module_expsym_cmds_CXX
38582
38583# Whether we are building with GNU ld or not.
38584with_gnu_ld=$lt_with_gnu_ld_CXX
38585
38586# Flag that allows shared libraries with undefined symbols to be built.
38587allow_undefined_flag=$lt_allow_undefined_flag_CXX
38588
38589# Flag that enforces no undefined symbols.
38590no_undefined_flag=$lt_no_undefined_flag_CXX
38591
38592# Flag to hardcode \$libdir into a binary during linking.
38593# This must work even if \$libdir does not exist
38594hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38595
cristy73bd4a52010-10-05 11:24:23 +000038596# Whether we need a single "-rpath" flag with a separated argument.
38597hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38598
38599# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38600# DIR into the resulting binary.
38601hardcode_direct=$hardcode_direct_CXX
38602
38603# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38604# DIR into the resulting binary and the resulting library dependency is
38605# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38606# library is relocated.
38607hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38608
38609# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38610# into the resulting binary.
38611hardcode_minus_L=$hardcode_minus_L_CXX
38612
38613# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38614# into the resulting binary.
38615hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38616
38617# Set to "yes" if building a shared library automatically hardcodes DIR
38618# into the library and all subsequent libraries and executables linked
38619# against it.
38620hardcode_automatic=$hardcode_automatic_CXX
38621
38622# Set to yes if linker adds runtime paths of dependent libraries
38623# to runtime path list.
38624inherit_rpath=$inherit_rpath_CXX
38625
38626# Whether libtool must link a program against all its dependency libraries.
38627link_all_deplibs=$link_all_deplibs_CXX
38628
cristy73bd4a52010-10-05 11:24:23 +000038629# Set to "yes" if exported symbols are required.
38630always_export_symbols=$always_export_symbols_CXX
38631
38632# The commands to list exported symbols.
38633export_symbols_cmds=$lt_export_symbols_cmds_CXX
38634
38635# Symbols that should not be listed in the preloaded symbols.
38636exclude_expsyms=$lt_exclude_expsyms_CXX
38637
38638# Symbols that must always be exported.
38639include_expsyms=$lt_include_expsyms_CXX
38640
38641# Commands necessary for linking programs (against libraries) with templates.
38642prelink_cmds=$lt_prelink_cmds_CXX
38643
cristyda16f162011-02-19 23:52:17 +000038644# Commands necessary for finishing linking programs.
38645postlink_cmds=$lt_postlink_cmds_CXX
38646
cristy73bd4a52010-10-05 11:24:23 +000038647# Specify filename containing input files.
38648file_list_spec=$lt_file_list_spec_CXX
38649
38650# How to hardcode a shared library path into an executable.
38651hardcode_action=$hardcode_action_CXX
38652
38653# The directories searched by this compiler when creating a shared library.
38654compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38655
38656# Dependencies to place before and after the objects being linked to
38657# create a shared library.
38658predep_objects=$lt_predep_objects_CXX
38659postdep_objects=$lt_postdep_objects_CXX
38660predeps=$lt_predeps_CXX
38661postdeps=$lt_postdeps_CXX
38662
38663# The library search path used internally by the compiler when linking
38664# a shared library.
38665compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38666
38667# ### END LIBTOOL TAG CONFIG: CXX
38668_LT_EOF
38669
38670 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038671 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038672 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038673 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038674 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38675 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38676
38677 esac
38678done # for ac_tag
38679
38680
cristy8b350f62009-11-15 23:12:43 +000038681as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038682_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038683ac_clean_files=$ac_clean_files_save
38684
38685test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038686 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038687
38688
38689# configure is writing to config.log, and then calls config.status.
38690# config.status does its own redirection, appending to config.log.
38691# Unfortunately, on DOS this fails, as config.log is still kept open
38692# by configure, so config.status won't be able to write to it; its
38693# output is simply discarded. So we exec the FD to /dev/null,
38694# effectively closing config.log, so it can be properly (re)opened and
38695# appended to by config.status. When coming back to configure, we
38696# need to make the FD available again.
38697if test "$no_create" != yes; then
38698 ac_cs_success=:
38699 ac_config_status_args=
38700 test "$silent" = yes &&
38701 ac_config_status_args="$ac_config_status_args --quiet"
38702 exec 5>/dev/null
38703 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38704 exec 5>>config.log
38705 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38706 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038707 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038708fi
38709if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038711$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38712fi
38713
38714
38715rm -f magick-version
38716
cristy430a7312010-01-21 20:44:04 +000038717result_dejavu_font_dir='none'
38718if test "${dejavu_font_dir}x" != 'x'; then
38719 result_dejavu_font_dir=$dejavu_font_dir
38720fi
38721
cristy3ed852e2009-09-05 21:47:34 +000038722result_ghostscript_font_dir='none'
38723if test "${ghostscript_font_dir}x" != 'x'; then
38724 result_ghostscript_font_dir=$ghostscript_font_dir
38725fi
38726
38727result_windows_font_dir='none'
38728if test "${windows_font_dir}x" != 'x'; then
38729 result_windows_font_dir=${windows_font_dir}
38730fi
38731
cristyad38abe2012-12-23 23:03:21 +000038732{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038733ImageMagick is configured as follows. Please verify that this configuration
38734matches your expectations.
38735
38736Host system type: $host
38737Build system type: $build
38738
38739 Option Value
38740-------------------------------------------------------------------------------
38741Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38742Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038743Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038744GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38745Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38746High Dynamic Range Imagery
38747 --enable-hdri=$enable_hdri $enable_hdri
38748
38749Delegate Configuration:
38750BZLIB --with-bzlib=$with_bzlib $have_bzlib
38751Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038752Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038753DJVU --with-djvu=$with_djvu $have_djvu
38754DPS --with-dps=$with_dps $have_dps
38755FFTW --with-fftw=$with_fftw $have_fftw
38756FlashPIX --with-fpx=$with_fpx $have_fpx
38757FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38758FreeType --with-freetype=$with_freetype $have_freetype
38759GhostPCL None $PCLDelegate ($PCLVersion)
38760GhostXPS None $XPSDelegate ($XPSVersion)
38761Ghostscript None $PSDelegate ($GSVersion)
38762Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38763Ghostscript lib --with-gslib=$with_gslib $have_gslib
38764Graphviz --with-gvc=$with_gvc $have_gvc
38765JBIG --with-jbig=$with_jbig $have_jbig
38766JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38767JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038768LCMS v1 --with-lcms=$with_lcms $have_lcms
38769LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038770LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038771LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038772LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038773Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38774OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038775PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038776PERL --with-perl=$with_perl $have_perl
38777PNG --with-png=$with_png $have_png
38778RSVG --with-rsvg=$with_rsvg $have_rsvg
38779TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038780WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038781Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038782WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038783X11 --with-x=$with_x $have_x
38784XML --with-xml=$with_xml $have_xml
38785ZLIB --with-zlib=$with_zlib $have_zlib
38786
38787X11 Configuration:
38788 X_CFLAGS = $X_CFLAGS
38789 X_PRE_LIBS = $X_PRE_LIBS
38790 X_LIBS = $X_LIBS
38791 X_EXTRA_LIBS = $X_EXTRA_LIBS
38792
38793Options used to compile and link:
38794 PREFIX = $PREFIX_DIR
38795 EXEC-PREFIX = $EXEC_PREFIX_DIR
38796 VERSION = $PACKAGE_VERSION
38797 CC = $CC
38798 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038799 CPPFLAGS = $MAGICK_CPPFLAGS
38800 PCFLAGS = $MAGICK_PCFLAGS
38801 DEFS = $DEFS
38802 LDFLAGS = $LDFLAGS
38803 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38804 LIBS = $MAGICK_LIBS
38805 CXX = $CXX
38806 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038807 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038808 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038809" >&5
cristyad38abe2012-12-23 23:03:21 +000038810$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038811ImageMagick is configured as follows. Please verify that this configuration
38812matches your expectations.
38813
38814Host system type: $host
38815Build system type: $build
38816
38817 Option Value
38818-------------------------------------------------------------------------------
38819Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38820Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038821Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038822GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38823Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38824High Dynamic Range Imagery
38825 --enable-hdri=$enable_hdri $enable_hdri
38826
38827Delegate Configuration:
38828BZLIB --with-bzlib=$with_bzlib $have_bzlib
38829Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038830Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038831DJVU --with-djvu=$with_djvu $have_djvu
38832DPS --with-dps=$with_dps $have_dps
38833FFTW --with-fftw=$with_fftw $have_fftw
38834FlashPIX --with-fpx=$with_fpx $have_fpx
38835FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38836FreeType --with-freetype=$with_freetype $have_freetype
38837GhostPCL None $PCLDelegate ($PCLVersion)
38838GhostXPS None $XPSDelegate ($XPSVersion)
38839Ghostscript None $PSDelegate ($GSVersion)
38840Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38841Ghostscript lib --with-gslib=$with_gslib $have_gslib
38842Graphviz --with-gvc=$with_gvc $have_gvc
38843JBIG --with-jbig=$with_jbig $have_jbig
38844JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38845JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038846LCMS v1 --with-lcms=$with_lcms $have_lcms
38847LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038848LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038849LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038850LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038851Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38852OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038853PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038854PERL --with-perl=$with_perl $have_perl
38855PNG --with-png=$with_png $have_png
38856RSVG --with-rsvg=$with_rsvg $have_rsvg
38857TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038858WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038859Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038860WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038861X11 --with-x=$with_x $have_x
38862XML --with-xml=$with_xml $have_xml
38863ZLIB --with-zlib=$with_zlib $have_zlib
38864
38865X11 Configuration:
38866 X_CFLAGS = $X_CFLAGS
38867 X_PRE_LIBS = $X_PRE_LIBS
38868 X_LIBS = $X_LIBS
38869 X_EXTRA_LIBS = $X_EXTRA_LIBS
38870
38871Options used to compile and link:
38872 PREFIX = $PREFIX_DIR
38873 EXEC-PREFIX = $EXEC_PREFIX_DIR
38874 VERSION = $PACKAGE_VERSION
38875 CC = $CC
38876 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038877 CPPFLAGS = $MAGICK_CPPFLAGS
38878 PCFLAGS = $MAGICK_PCFLAGS
38879 DEFS = $DEFS
38880 LDFLAGS = $LDFLAGS
38881 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38882 LIBS = $MAGICK_LIBS
38883 CXX = $CXX
38884 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038885 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038886 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038887" >&6; }