blob: c2823cff685f3a025aad18cc109368a53cff7a94 [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
cristy73bd4a52010-10-05 11:24:23 +0000569lt_ltdl_dir='ltdl'
570
571lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
572
cristy0c60a692010-11-04 01:09:47 +0000573
cristycd4c5312009-11-22 01:19:08 +0000574test -n "$DJDIR" || exec 7<&0 </dev/null
575exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000576
577# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000578# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000579# so uname gets run too.
580ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582#
583# Initializations.
584#
585ac_default_prefix=/usr/local
586ac_clean_files=
587ac_config_libobj_dir=.
588LIBOBJS=
589cross_compiling=no
590subdirs=
591MFLAGS=
592MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000593
594# Identity of this package.
595PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000596PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000597PACKAGE_VERSION='7.0.0-0'
598PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000599PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000600PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000601
cristy4c08aed2011-07-01 19:47:50 +0000602ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000603ac_config_libobj_dir=ltdl
604# Factoring default headers for most tests.
605ac_includes_default="\
606#include <stdio.h>
607#ifdef HAVE_SYS_TYPES_H
608# include <sys/types.h>
609#endif
610#ifdef HAVE_SYS_STAT_H
611# include <sys/stat.h>
612#endif
613#ifdef STDC_HEADERS
614# include <stdlib.h>
615# include <stddef.h>
616#else
617# ifdef HAVE_STDLIB_H
618# include <stdlib.h>
619# endif
620#endif
621#ifdef HAVE_STRING_H
622# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623# include <memory.h>
624# endif
625# include <string.h>
626#endif
627#ifdef HAVE_STRINGS_H
628# include <strings.h>
629#endif
630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h>
632#endif
633#ifdef HAVE_STDINT_H
634# include <stdint.h>
635#endif
636#ifdef HAVE_UNISTD_H
637# include <unistd.h>
638#endif"
639
cristycd4c5312009-11-22 01:19:08 +0000640ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000641ac_subst_vars='ltdl_LTLIBOBJS
642ltdl_LIBOBJS
643am__EXEEXT_FALSE
644am__EXEEXT_TRUE
645LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000646MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000647MAGICK_LIBS
648MAGICK_LDFLAGS
649MAGICK_PCFLAGS
650MAGICK_CPPFLAGS
651MAGICK_CXXFLAGS
652MAGICK_CFLAGS
653MAGICK_DEP_LIBS
654MAGICK_LTDLDEPS
655MAGICK_LIBLTDL
656OSX_GCOV_LDFLAG
657DELEGATES
658MAGICKCORE_PATH
659PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000660WITH_PERL_DYNAMIC_FALSE
661WITH_PERL_DYNAMIC_TRUE
662WITH_PERL_STATIC_FALSE
663WITH_PERL_STATIC_TRUE
664WITH_PERL_FALSE
665WITH_PERL_TRUE
666PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000667GSVersion
668GSPSDevice
669GSPDFDevice
670GSMonoDevice
671GSEPSDevice
672GSColorDevice
673GSCMYKDevice
674GSAlphaDevice
675XPSVersion
676XPSCMYKDevice
677XPSColorDevice
678XPSMonoDevice
679PCLVersion
680PCLCMYKDevice
681PCLColorDevice
682PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000683ZIP_DELEGATE_FALSE
684ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000685ZIP
cristy73bd4a52010-10-05 11:24:23 +0000686P7ZIP_DELEGATE_FALSE
687P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000688P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000689RPM_DELEGATE_FALSE
690RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000691RPM
692PERL
693TAR
694ShowImageDelegate
695type_include_files
696ghostscript_font_dir
697windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000698dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000699PrintDelegate
700ZipDelegate
701XPSDelegate
702WWWDecodeDelegate
703WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000704UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000705TXTDelegate
706SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000707RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708RMDelegate
709RLEEncodeDelegate
710PSDelegate
711POVDelegate
712PGPDecodeDelegate
713PCLDelegate
714MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000715MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716MPEGEncodeDelegate
717MPEGDecodeDelegate
718MANDelegate
719LaunchDelegate
720LZWEncodeDelegate
721LZWDecodeDelegate
722LPRDelegate
723LPDelegate
724ILBMEncodeDelegate
725ILBMDecodeDelegate
726HTMLDecodeDelegate
727HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000728GnuplotDecodeDelegate
729MogrifyDelegate
730DisplayDelegate
731ConvertDelegate
732FIGDecodeDelegate
733EditorDelegate
734EchoDelegate
735DVIDecodeDelegate
736GVCDecodeDelegate
737DNGDecodeDelegate
738CatDelegate
739CGMDecodeDelegate
740BrowseDelegate
741BZIPDelegate
742BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000743AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000744SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000745SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000746CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000747DOCUMENTATION_PATH
748FILTER_PATH
749CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000750LIBRARY_PATH
751EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000752INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000753PERLMAINCC
754XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000755XML_DELEGATE_FALSE
756XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000757xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000758WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000759WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000760WMF_DELEGATE_FALSE
761WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000762WEBP_LIBS
763WEBP_DELEGATE_FALSE
764WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766TIFF_DELEGATE_FALSE
767TIFF_DELEGATE_TRUE
768CAIRO_DELEGATE_FALSE
769CAIRO_DELEGATE_TRUE
770RSVG_DELEGATE_FALSE
771RSVG_DELEGATE_TRUE
772CAIRO_SVG_LIBS
773CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000774RSVG_LIBS
775RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000776PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777PNG_DELEGATE_FALSE
778PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000779PANGOCAIRO_DELEGATE_FALSE
780PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000781PANGO_DELEGATE_FALSE
782PANGO_DELEGATE_TRUE
783PANGO_LIBS
784PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000785OPENEXR_DELEGATE_FALSE
786OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787OPENEXR_LIBS
788OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000789LZMA_DELEGATE_FALSE
790LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000791LZMA_LIBS
792LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000793LQR_DELEGATE_FALSE
794LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795LQR_LIBS
796LQR_CFLAGS
797LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798LCMS_DELEGATE_FALSE
799LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801JP2_DELEGATE_FALSE
802JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804JPEG_DELEGATE_FALSE
805JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807JBIG_DELEGATE_FALSE
808JBIG_DELEGATE_TRUE
809GVC_DELEGATE_FALSE
810GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000811GVC_LIBS
812GVC_CFLAGS
813GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814GS_DELEGATE_FALSE
815GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817FREETYPE_DELEGATE_FALSE
818FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000819freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000820FONTCONFIG_DELEGATE_FALSE
821FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000822FONTCONFIG_LIBS
823FONTCONFIG_CFLAGS
824FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825FPX_DELEGATE_FALSE
826FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828FFTW_DELEGATE_FALSE
829FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831DJVU_DELEGATE_FALSE
832DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834DPS_DELEGATE_FALSE
835DPS_DELEGATE_TRUE
836AUTOTRACE_DELEGATE_FALSE
837AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000838AUTOTRACE_LIBS
839AUTOTRACE_CFLAGS
840LIB_DL
841ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842ZLIB_DELEGATE_FALSE
843ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844XEXT_LIBS
845X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000846X11_DELEGATE_FALSE
847X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000848X_EXTRA_LIBS
849X_LIBS
850X_PRE_LIBS
851X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000852XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000853BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000854BZLIB_DELEGATE_FALSE
855BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856CCMALLOCDelegate
857UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000858HasUMEM_FALSE
859HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000860THREAD_LIBS
861GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000862WITH_MAGICK_PLUS_PLUS_FALSE
863WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000864OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000865MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000866POW_LIB
867LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000868UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000869UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000870UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000871UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000872UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000873UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000874INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000875INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000876UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000877UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000878INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000879INT32_T
880UINT16_T
881INT16_T
882UINT8_T
883INT8_T
884LIBRARY_EXTRA_CPPFLAGS
885MODULE_EXTRA_CPPFLAGS
886LIBSTDCLDFLAGS
887PERL_MAKE_OPTIONS
888QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000889LEGACY_SUPPORT_FALSE
890LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000891MAINT
892MAINTAINER_MODE_FALSE
893MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000894MAGICK_HDRI
895DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000896WITH_LTDL_FALSE
897WITH_LTDL_TRUE
898WITH_MODULES_FALSE
899WITH_MODULES_TRUE
900WITH_SHARED_LIBS_FALSE
901WITH_SHARED_LIBS_TRUE
902LTDLOPEN
903LT_CONFIG_H
904CONVENIENCE_LTDL_FALSE
905CONVENIENCE_LTDL_TRUE
906INSTALL_LTDL_FALSE
907INSTALL_LTDL_TRUE
908ARGZ_H
909sys_symbol_underscore
910LIBADD_DL
911LT_DLPREOPEN
912LIBADD_DLD_LINK
913LIBADD_SHL_LOAD
914LIBADD_DLOPEN
915LT_DLLOADERS
916INCLTDL
917LTDLINCL
918LTDLDEPS
919LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000920LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000921CXXCPP
922OTOOL64
923OTOOL
924LIPO
925NMEDIT
926DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000927MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000928RANLIB
cristyda16f162011-02-19 23:52:17 +0000929ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000930AR
931NM
932ac_ct_DUMPBIN
933DUMPBIN
934LIBTOOL
935OBJDUMP
936DLLTOOL
937AS
cristy3ed852e2009-09-05 21:47:34 +0000938LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000939CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000940CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000941OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000942PTHREAD_CFLAGS
943PTHREAD_LIBS
944PTHREAD_CC
945ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000946SHAREARCH_DIR
947INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000948WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000949USING_CL_FALSE
950USING_CL_TRUE
951CYGWIN_BUILD_FALSE
952CYGWIN_BUILD_TRUE
953WIN32_NATIVE_BUILD_FALSE
954WIN32_NATIVE_BUILD_TRUE
955WINGDI32_DELEGATE_FALSE
956WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000957GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000958PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000959PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000960LN_S
cristy3ed852e2009-09-05 21:47:34 +0000961LD
cristy73bd4a52010-10-05 11:24:23 +0000962FGREP
963SED
964am__fastdepCXX_FALSE
965am__fastdepCXX_TRUE
966CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000967ac_ct_CXX
968CXXFLAGS
969CXX
cristya0b81c32010-01-22 02:54:33 +0000970EGREP
971GREP
972CPP
cristy73bd4a52010-10-05 11:24:23 +0000973am__fastdepCC_FALSE
974am__fastdepCC_TRUE
975CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000976am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000977AMDEPBACKSLASH
978AMDEP_FALSE
979AMDEP_TRUE
980am__quote
981am__include
982DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000983OBJEXT
984EXEEXT
985ac_ct_CC
986CPPFLAGS
987LDFLAGS
988CFLAGS
989CC
990DIRSEP
991MAGICK_FILTER_MODULE_PATH
992MAGICK_CONFIGURE_BUILD_PATH
993MAGICK_CONFIGURE_SRC_PATH
994MAGICK_CODER_MODULE_PATH
995MAN_DIR
996INFO_DIR
997PERSISTINCLUDE_DIR
998INCLUDE_DIR
999LIB_DIR
1000LOCALSTATE_DIR
1001SHAREDSTATE_DIR
1002SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001003DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001004DATA_DIR
1005LIBEXEC_DIR
1006SBIN_DIR
1007BIN_DIR
1008EXEC_PREFIX_DIR
1009PREFIX_DIR
1010CONFIG_STATUS_DEPENDENCIES
1011MAGICK_LIB_VERSION_NUMBER
1012MAGICK_LIB_VERSION_TEXT
1013MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001014AM_BACKSLASH
1015AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001016AM_DEFAULT_V
1017AM_V
cristy73bd4a52010-10-05 11:24:23 +00001018am__untar
1019am__tar
1020AMTAR
1021am__leading_dot
1022SET_MAKE
1023AWK
1024mkdir_p
1025MKDIR_P
1026INSTALL_STRIP_PROGRAM
1027STRIP
1028install_sh
1029MAKEINFO
1030AUTOHEADER
1031AUTOMAKE
1032AUTOCONF
1033ACLOCAL
1034VERSION
1035PACKAGE
1036CYGPATH_W
1037am__isrc
1038INSTALL_DATA
1039INSTALL_SCRIPT
1040INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001041PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_RELEASE_DATE
1043PACKAGE_LIB_VERSION_NUMBER
1044PACKAGE_LIB_VERSION
1045PACKAGE_CHANGE_DATE
1046PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001047PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001048MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001049MAGICK_LIBRARY_VERSION_INFO
1050MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001051MAGICK_LIBRARY_AGE
1052MAGICK_LIBRARY_REVISION
1053MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001054MAGICK_TARGET_OS
1055MAGICK_TARGET_VENDOR
1056MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001057target_os
1058target_vendor
1059target_cpu
1060target
1061host_os
1062host_vendor
1063host_cpu
1064host
1065build_os
1066build_vendor
1067build_cpu
1068build
1069CONFIGURE_ARGS
1070DISTCHECK_CONFIG_FLAGS
1071target_alias
1072host_alias
1073build_alias
1074LIBS
1075ECHO_T
1076ECHO_N
1077ECHO_C
1078DEFS
1079mandir
1080localedir
1081libdir
1082psdir
1083pdfdir
1084dvidir
1085htmldir
1086infodir
1087docdir
1088oldincludedir
1089includedir
1090localstatedir
1091sharedstatedir
1092sysconfdir
1093datadir
1094datarootdir
1095libexecdir
1096sbindir
1097bindir
1098program_transform_name
1099prefix
1100exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001101PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001102PACKAGE_BUGREPORT
1103PACKAGE_STRING
1104PACKAGE_VERSION
1105PACKAGE_TARNAME
1106PACKAGE_NAME
1107PATH_SEPARATOR
1108SHELL'
1109ac_subst_files=''
1110ac_user_opts='
1111enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001112enable_silent_rules
1113enable_dependency_tracking
1114with_gnu_ld
1115with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001116with_gcc_arch
cristy3ed852e2009-09-05 21:47:34 +00001117enable_bounds_checking
1118enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001119with_includearch_dir
1120with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001121with_threads
1122enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001123enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001124enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001125enable_shared
1126enable_static
1127with_pic
1128enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001129with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001130enable_libtool_lock
1131with_included_ltdl
1132with_ltdl_include
1133with_ltdl_lib
1134enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001135with_modules
1136enable_delegate_build
1137enable_deprecated
1138enable_installed
1139enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001140enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001141enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001142enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001143enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001144enable_ccmalloc
1145enable_efence
1146enable_prof
1147enable_gprof
1148enable_gcov
1149with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001150enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001151with_quantum_depth
1152with_cache
1153with_frozenpaths
1154with_magick_plus_plus
1155with_perl
1156with_perl_options
1157with_umem
1158with_libstdc
1159with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001160with_x
cristy3ed852e2009-09-05 21:47:34 +00001161with_zlib
1162with_autotrace
1163with_dps
1164with_djvu
cristy430a7312010-01-21 20:44:04 +00001165with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001166with_fftw
1167with_fpx
1168with_fontconfig
1169with_freetype
1170with_gslib
1171with_fontpath
1172with_gs_font_dir
1173with_gvc
1174with_jbig
1175with_jpeg
1176with_jp2
1177with_lcms
cristy71203402010-06-18 13:12:03 +00001178with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001179with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001180with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001181with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001182with_pango
cristy3ed852e2009-09-05 21:47:34 +00001183with_png
1184with_rsvg
1185with_tiff
cristyb1860752011-03-14 00:27:46 +00001186with_webp
cristy3ed852e2009-09-05 21:47:34 +00001187with_windows_font_dir
1188with_wmf
1189with_xml
1190'
1191 ac_precious_vars='build_alias
1192host_alias
1193target_alias
1194CC
1195CFLAGS
1196LDFLAGS
1197LIBS
1198CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001199CPP
cristy3ed852e2009-09-05 21:47:34 +00001200CXX
1201CXXFLAGS
1202CCC
cristy73bd4a52010-10-05 11:24:23 +00001203PKG_CONFIG
1204CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001205XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001206AUTOTRACE_CFLAGS
1207AUTOTRACE_LIBS
1208FONTCONFIG_CFLAGS
1209FONTCONFIG_LIBS
1210GVC_CFLAGS
1211GVC_LIBS
1212LQR_CFLAGS
1213LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001214LZMA_CFLAGS
1215LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001216OPENEXR_CFLAGS
1217OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001218PANGO_CFLAGS
1219PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001220RSVG_CFLAGS
1221RSVG_LIBS
1222CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001223CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001224
1225
1226# Initialize some variables set by options.
1227ac_init_help=
1228ac_init_version=false
1229ac_unrecognized_opts=
1230ac_unrecognized_sep=
1231# The variables have the same names as the options, with
1232# dashes changed to underlines.
1233cache_file=/dev/null
1234exec_prefix=NONE
1235no_create=
1236no_recursion=
1237prefix=NONE
1238program_prefix=NONE
1239program_suffix=NONE
1240program_transform_name=s,x,x,
1241silent=
1242site=
1243srcdir=
1244verbose=
1245x_includes=NONE
1246x_libraries=NONE
1247
1248# Installation directory options.
1249# These are left unexpanded so users can "make install exec_prefix=/foo"
1250# and all the variables that are supposed to be based on exec_prefix
1251# by default will actually change.
1252# Use braces instead of parens because sh, perl, etc. also accept them.
1253# (The list follows the same order as the GNU Coding Standards.)
1254bindir='${exec_prefix}/bin'
1255sbindir='${exec_prefix}/sbin'
1256libexecdir='${exec_prefix}/libexec'
1257datarootdir='${prefix}/share'
1258datadir='${datarootdir}'
1259sysconfdir='${prefix}/etc'
1260sharedstatedir='${prefix}/com'
1261localstatedir='${prefix}/var'
1262includedir='${prefix}/include'
1263oldincludedir='/usr/include'
1264docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1265infodir='${datarootdir}/info'
1266htmldir='${docdir}'
1267dvidir='${docdir}'
1268pdfdir='${docdir}'
1269psdir='${docdir}'
1270libdir='${exec_prefix}/lib'
1271localedir='${datarootdir}/locale'
1272mandir='${datarootdir}/man'
1273
1274ac_prev=
1275ac_dashdash=
1276for ac_option
1277do
1278 # If the previous option needs an argument, assign it.
1279 if test -n "$ac_prev"; then
1280 eval $ac_prev=\$ac_option
1281 ac_prev=
1282 continue
1283 fi
1284
1285 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001286 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1287 *=) ac_optarg= ;;
1288 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001289 esac
1290
1291 # Accept the important Cygnus configure options, so we can diagnose typos.
1292
1293 case $ac_dashdash$ac_option in
1294 --)
1295 ac_dashdash=yes ;;
1296
1297 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1298 ac_prev=bindir ;;
1299 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1300 bindir=$ac_optarg ;;
1301
1302 -build | --build | --buil | --bui | --bu)
1303 ac_prev=build_alias ;;
1304 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1305 build_alias=$ac_optarg ;;
1306
1307 -cache-file | --cache-file | --cache-fil | --cache-fi \
1308 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1309 ac_prev=cache_file ;;
1310 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1311 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1312 cache_file=$ac_optarg ;;
1313
1314 --config-cache | -C)
1315 cache_file=config.cache ;;
1316
1317 -datadir | --datadir | --datadi | --datad)
1318 ac_prev=datadir ;;
1319 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1320 datadir=$ac_optarg ;;
1321
1322 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1323 | --dataroo | --dataro | --datar)
1324 ac_prev=datarootdir ;;
1325 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1326 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1327 datarootdir=$ac_optarg ;;
1328
1329 -disable-* | --disable-*)
1330 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001333 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1337 *"
1338"enable_$ac_useropt"
1339"*) ;;
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1342 esac
1343 eval enable_$ac_useropt=no ;;
1344
1345 -docdir | --docdir | --docdi | --doc | --do)
1346 ac_prev=docdir ;;
1347 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1348 docdir=$ac_optarg ;;
1349
1350 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1351 ac_prev=dvidir ;;
1352 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1353 dvidir=$ac_optarg ;;
1354
1355 -enable-* | --enable-*)
1356 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001359 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1363 *"
1364"enable_$ac_useropt"
1365"*) ;;
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1368 esac
1369 eval enable_$ac_useropt=\$ac_optarg ;;
1370
1371 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1372 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1373 | --exec | --exe | --ex)
1374 ac_prev=exec_prefix ;;
1375 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1376 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1377 | --exec=* | --exe=* | --ex=*)
1378 exec_prefix=$ac_optarg ;;
1379
1380 -gas | --gas | --ga | --g)
1381 # Obsolete; use --with-gas.
1382 with_gas=yes ;;
1383
1384 -help | --help | --hel | --he | -h)
1385 ac_init_help=long ;;
1386 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1387 ac_init_help=recursive ;;
1388 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1389 ac_init_help=short ;;
1390
1391 -host | --host | --hos | --ho)
1392 ac_prev=host_alias ;;
1393 -host=* | --host=* | --hos=* | --ho=*)
1394 host_alias=$ac_optarg ;;
1395
1396 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1397 ac_prev=htmldir ;;
1398 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1399 | --ht=*)
1400 htmldir=$ac_optarg ;;
1401
1402 -includedir | --includedir | --includedi | --included | --include \
1403 | --includ | --inclu | --incl | --inc)
1404 ac_prev=includedir ;;
1405 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1406 | --includ=* | --inclu=* | --incl=* | --inc=*)
1407 includedir=$ac_optarg ;;
1408
1409 -infodir | --infodir | --infodi | --infod | --info | --inf)
1410 ac_prev=infodir ;;
1411 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1412 infodir=$ac_optarg ;;
1413
1414 -libdir | --libdir | --libdi | --libd)
1415 ac_prev=libdir ;;
1416 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1417 libdir=$ac_optarg ;;
1418
1419 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1420 | --libexe | --libex | --libe)
1421 ac_prev=libexecdir ;;
1422 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1423 | --libexe=* | --libex=* | --libe=*)
1424 libexecdir=$ac_optarg ;;
1425
1426 -localedir | --localedir | --localedi | --localed | --locale)
1427 ac_prev=localedir ;;
1428 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1429 localedir=$ac_optarg ;;
1430
1431 -localstatedir | --localstatedir | --localstatedi | --localstated \
1432 | --localstate | --localstat | --localsta | --localst | --locals)
1433 ac_prev=localstatedir ;;
1434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1435 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1436 localstatedir=$ac_optarg ;;
1437
1438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1439 ac_prev=mandir ;;
1440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1441 mandir=$ac_optarg ;;
1442
1443 -nfp | --nfp | --nf)
1444 # Obsolete; use --without-fp.
1445 with_fp=no ;;
1446
1447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1448 | --no-cr | --no-c | -n)
1449 no_create=yes ;;
1450
1451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1453 no_recursion=yes ;;
1454
1455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1457 | --oldin | --oldi | --old | --ol | --o)
1458 ac_prev=oldincludedir ;;
1459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1462 oldincludedir=$ac_optarg ;;
1463
1464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1465 ac_prev=prefix ;;
1466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1467 prefix=$ac_optarg ;;
1468
1469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1470 | --program-pre | --program-pr | --program-p)
1471 ac_prev=program_prefix ;;
1472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1474 program_prefix=$ac_optarg ;;
1475
1476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1477 | --program-suf | --program-su | --program-s)
1478 ac_prev=program_suffix ;;
1479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1481 program_suffix=$ac_optarg ;;
1482
1483 -program-transform-name | --program-transform-name \
1484 | --program-transform-nam | --program-transform-na \
1485 | --program-transform-n | --program-transform- \
1486 | --program-transform | --program-transfor \
1487 | --program-transfo | --program-transf \
1488 | --program-trans | --program-tran \
1489 | --progr-tra | --program-tr | --program-t)
1490 ac_prev=program_transform_name ;;
1491 -program-transform-name=* | --program-transform-name=* \
1492 | --program-transform-nam=* | --program-transform-na=* \
1493 | --program-transform-n=* | --program-transform-=* \
1494 | --program-transform=* | --program-transfor=* \
1495 | --program-transfo=* | --program-transf=* \
1496 | --program-trans=* | --program-tran=* \
1497 | --progr-tra=* | --program-tr=* | --program-t=*)
1498 program_transform_name=$ac_optarg ;;
1499
1500 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1501 ac_prev=pdfdir ;;
1502 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1503 pdfdir=$ac_optarg ;;
1504
1505 -psdir | --psdir | --psdi | --psd | --ps)
1506 ac_prev=psdir ;;
1507 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1508 psdir=$ac_optarg ;;
1509
1510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1511 | -silent | --silent | --silen | --sile | --sil)
1512 silent=yes ;;
1513
1514 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1515 ac_prev=sbindir ;;
1516 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1517 | --sbi=* | --sb=*)
1518 sbindir=$ac_optarg ;;
1519
1520 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1521 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1522 | --sharedst | --shareds | --shared | --share | --shar \
1523 | --sha | --sh)
1524 ac_prev=sharedstatedir ;;
1525 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1526 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1527 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1528 | --sha=* | --sh=*)
1529 sharedstatedir=$ac_optarg ;;
1530
1531 -site | --site | --sit)
1532 ac_prev=site ;;
1533 -site=* | --site=* | --sit=*)
1534 site=$ac_optarg ;;
1535
1536 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1537 ac_prev=srcdir ;;
1538 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1539 srcdir=$ac_optarg ;;
1540
1541 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1542 | --syscon | --sysco | --sysc | --sys | --sy)
1543 ac_prev=sysconfdir ;;
1544 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1545 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1546 sysconfdir=$ac_optarg ;;
1547
1548 -target | --target | --targe | --targ | --tar | --ta | --t)
1549 ac_prev=target_alias ;;
1550 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1551 target_alias=$ac_optarg ;;
1552
1553 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1554 verbose=yes ;;
1555
1556 -version | --version | --versio | --versi | --vers | -V)
1557 ac_init_version=: ;;
1558
1559 -with-* | --with-*)
1560 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1561 # Reject names that are not valid shell variable names.
1562 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001563 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001564 ac_useropt_orig=$ac_useropt
1565 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1566 case $ac_user_opts in
1567 *"
1568"with_$ac_useropt"
1569"*) ;;
1570 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1571 ac_unrecognized_sep=', ';;
1572 esac
1573 eval with_$ac_useropt=\$ac_optarg ;;
1574
1575 -without-* | --without-*)
1576 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1577 # Reject names that are not valid shell variable names.
1578 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001579 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001580 ac_useropt_orig=$ac_useropt
1581 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1582 case $ac_user_opts in
1583 *"
1584"with_$ac_useropt"
1585"*) ;;
1586 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1587 ac_unrecognized_sep=', ';;
1588 esac
1589 eval with_$ac_useropt=no ;;
1590
1591 --x)
1592 # Obsolete; use --with-x.
1593 with_x=yes ;;
1594
1595 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1596 | --x-incl | --x-inc | --x-in | --x-i)
1597 ac_prev=x_includes ;;
1598 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1599 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1600 x_includes=$ac_optarg ;;
1601
1602 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1603 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1604 ac_prev=x_libraries ;;
1605 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1606 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1607 x_libraries=$ac_optarg ;;
1608
cristy98dddb52010-11-04 00:30:15 +00001609 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1610Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001611 ;;
1612
1613 *=*)
1614 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1615 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001616 case $ac_envvar in #(
1617 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001618 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001619 esac
cristy3ed852e2009-09-05 21:47:34 +00001620 eval $ac_envvar=\$ac_optarg
1621 export $ac_envvar ;;
1622
1623 *)
1624 # FIXME: should be removed in autoconf 3.0.
1625 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1626 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1627 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001628 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001629 ;;
1630
1631 esac
1632done
1633
1634if test -n "$ac_prev"; then
1635 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001636 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001637fi
1638
1639if test -n "$ac_unrecognized_opts"; then
1640 case $enable_option_checking in
1641 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001642 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001643 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1644 esac
1645fi
1646
1647# Check all directory arguments for consistency.
1648for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1649 datadir sysconfdir sharedstatedir localstatedir includedir \
1650 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1651 libdir localedir mandir
1652do
1653 eval ac_val=\$$ac_var
1654 # Remove trailing slashes.
1655 case $ac_val in
1656 */ )
1657 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1658 eval $ac_var=\$ac_val;;
1659 esac
1660 # Be sure to have absolute directory names.
1661 case $ac_val in
1662 [\\/$]* | ?:[\\/]* ) continue;;
1663 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1664 esac
cristy98dddb52010-11-04 00:30:15 +00001665 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001666done
1667
1668# There might be people who depend on the old broken behavior: `$host'
1669# used to hold the argument of --host etc.
1670# FIXME: To remove some day.
1671build=$build_alias
1672host=$host_alias
1673target=$target_alias
1674
1675# FIXME: To remove some day.
1676if test "x$host_alias" != x; then
1677 if test "x$build_alias" = x; then
1678 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001679 elif test "x$build_alias" != "x$host_alias"; then
1680 cross_compiling=yes
1681 fi
1682fi
1683
1684ac_tool_prefix=
1685test -n "$host_alias" && ac_tool_prefix=$host_alias-
1686
1687test "$silent" = yes && exec 6>/dev/null
1688
1689
1690ac_pwd=`pwd` && test -n "$ac_pwd" &&
1691ac_ls_di=`ls -di .` &&
1692ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001693 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001694test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001695 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001696
1697
1698# Find the source files, if location was not specified.
1699if test -z "$srcdir"; then
1700 ac_srcdir_defaulted=yes
1701 # Try the directory containing this script, then the parent directory.
1702 ac_confdir=`$as_dirname -- "$as_myself" ||
1703$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1704 X"$as_myself" : 'X\(//\)[^/]' \| \
1705 X"$as_myself" : 'X\(//\)$' \| \
1706 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1707$as_echo X"$as_myself" |
1708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1709 s//\1/
1710 q
1711 }
1712 /^X\(\/\/\)[^/].*/{
1713 s//\1/
1714 q
1715 }
1716 /^X\(\/\/\)$/{
1717 s//\1/
1718 q
1719 }
1720 /^X\(\/\).*/{
1721 s//\1/
1722 q
1723 }
1724 s/.*/./; q'`
1725 srcdir=$ac_confdir
1726 if test ! -r "$srcdir/$ac_unique_file"; then
1727 srcdir=..
1728 fi
1729else
1730 ac_srcdir_defaulted=no
1731fi
1732if test ! -r "$srcdir/$ac_unique_file"; then
1733 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001734 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001735fi
1736ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1737ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001738 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001739 pwd)`
1740# When building in place, set srcdir=.
1741if test "$ac_abs_confdir" = "$ac_pwd"; then
1742 srcdir=.
1743fi
1744# Remove unnecessary trailing slashes from srcdir.
1745# Double slashes in file names in object file debugging info
1746# mess up M-x gdb in Emacs.
1747case $srcdir in
1748*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1749esac
1750for ac_var in $ac_precious_vars; do
1751 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1752 eval ac_env_${ac_var}_value=\$${ac_var}
1753 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1754 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1755done
1756
1757#
1758# Report the --help message.
1759#
1760if test "$ac_init_help" = "long"; then
1761 # Omit some internal or obsolete options to make the list less imposing.
1762 # This message is too long to be a string in the A/UX 3.1 sh.
1763 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001764\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001765
1766Usage: $0 [OPTION]... [VAR=VALUE]...
1767
1768To assign environment variables (e.g., CC, CFLAGS...), specify them as
1769VAR=VALUE. See below for descriptions of some of the useful variables.
1770
1771Defaults for the options are specified in brackets.
1772
1773Configuration:
1774 -h, --help display this help and exit
1775 --help=short display options specific to this package
1776 --help=recursive display the short help of all the included packages
1777 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001778 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001779 --cache-file=FILE cache test results in FILE [disabled]
1780 -C, --config-cache alias for \`--cache-file=config.cache'
1781 -n, --no-create do not create output files
1782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1783
1784Installation directories:
1785 --prefix=PREFIX install architecture-independent files in PREFIX
1786 [$ac_default_prefix]
1787 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1788 [PREFIX]
1789
1790By default, \`make install' will install all the files in
1791\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1792an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1793for instance \`--prefix=\$HOME'.
1794
1795For better control, use the options below.
1796
1797Fine tuning of the installation directories:
1798 --bindir=DIR user executables [EPREFIX/bin]
1799 --sbindir=DIR system admin executables [EPREFIX/sbin]
1800 --libexecdir=DIR program executables [EPREFIX/libexec]
1801 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1802 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1803 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1804 --libdir=DIR object code libraries [EPREFIX/lib]
1805 --includedir=DIR C header files [PREFIX/include]
1806 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1807 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1808 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1809 --infodir=DIR info documentation [DATAROOTDIR/info]
1810 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1811 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001812 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001813 --htmldir=DIR html documentation [DOCDIR]
1814 --dvidir=DIR dvi documentation [DOCDIR]
1815 --pdfdir=DIR pdf documentation [DOCDIR]
1816 --psdir=DIR ps documentation [DOCDIR]
1817_ACEOF
1818
1819 cat <<\_ACEOF
1820
cristy73bd4a52010-10-05 11:24:23 +00001821Program names:
1822 --program-prefix=PREFIX prepend PREFIX to installed program names
1823 --program-suffix=SUFFIX append SUFFIX to installed program names
1824 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1825
cristy3ed852e2009-09-05 21:47:34 +00001826X features:
1827 --x-includes=DIR X include files are in DIR
1828 --x-libraries=DIR X library files are in DIR
1829
1830System types:
1831 --build=BUILD configure for building on BUILD [guessed]
1832 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1833 --target=TARGET configure for building compilers for TARGET [HOST]
1834_ACEOF
1835fi
1836
1837if test -n "$ac_init_help"; then
1838 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001839 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001840 esac
1841 cat <<\_ACEOF
1842
1843Optional Features:
1844 --disable-option-checking ignore unrecognized --enable/--with options
1845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001847 --enable-silent-rules less verbose build output (undo: "make V=1")
1848 --disable-silent-rules verbose build output (undo: "make V=0")
1849 --enable-dependency-tracking
1850 do not reject slow dependency extractors
1851 --disable-dependency-tracking
1852 speeds up one-time build
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
cristy73bd4a52010-10-05 11:24:23 +00001858 --disable-opencl do not use OpenCL
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)
1865 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001866 --enable-delegate-build look for delegate libraries in build directory
1867 --disable-deprecated exclude deprecated methods in MagickCore and
1868 MagickWand API's
1869 --disable-installed Formally install ImageMagick under PREFIX
1870 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001871 --enable-zero-configuration
1872 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001873 zero-configuration ImageMagick
1874 --enable-hdri accurately represent the wide range of intensity
1875 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001876 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001877 --enable-maintainer-mode
1878 enable make rules and dependencies not useful (and
1879 sometimes confusing) to the casual installer
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
cristy3ed852e2009-09-05 21:47:34 +00001897 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001898 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001899 both]
cristyda16f162011-02-19 23:52:17 +00001900 --with-sysroot=DIR Search for dependent libraries within DIR
1901 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001902 --with-included-ltdl use the GNU ltdl sources included here
1903 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1904 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001905 --with-modules enable building dynamically loadable modules
1906 --with-method-prefix=PREFIX
1907 prefix MagickCore API methods
1908 --with-quantum-depth=DEPTH
1909 number of bits in a pixel quantum (default 16)
1910 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1911 memory)
1912 --with-frozenpaths freeze delegate paths
1913 --without-magick-plus-plus
1914 disable build/install of Magick++
1915 --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
cristy3ed852e2009-09-05 21:47:34 +00001933 --without-gslib enable Ghostscript library support
1934 --with-fontpath=DIR prepend to default font search path
1935 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001936 --with-gvc disable 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
1947 --without-rsvg disable RSVG support
1948 --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
1977 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1978 GVC_LIBS linker flags for GVC, overriding pkg-config
1979 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1980 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001981 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1982 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001983 OPENEXR_CFLAGS
1984 C compiler flags for OPENEXR, overriding pkg-config
1985 OPENEXR_LIBS
1986 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001987 PANGO_CFLAGS
1988 C compiler flags for PANGO, overriding pkg-config
1989 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001990 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1991 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1992 CAIRO_SVG_CFLAGS
1993 C compiler flags for CAIRO_SVG, overriding pkg-config
1994 CAIRO_SVG_LIBS
1995 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001996
1997Use these variables to override the choices made by `configure' or to help
1998it to find libraries and programs with nonstandard names/locations.
1999
2000Report bugs to <http://www.imagemagick.org>.
2001_ACEOF
2002ac_status=$?
2003fi
2004
2005if test "$ac_init_help" = "recursive"; then
2006 # If there are subdirs, report their specific --help.
2007 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2008 test -d "$ac_dir" ||
2009 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2010 continue
2011 ac_builddir=.
2012
2013case "$ac_dir" in
2014.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2015*)
2016 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2017 # A ".." for each directory in $ac_dir_suffix.
2018 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2019 case $ac_top_builddir_sub in
2020 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2021 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2022 esac ;;
2023esac
2024ac_abs_top_builddir=$ac_pwd
2025ac_abs_builddir=$ac_pwd$ac_dir_suffix
2026# for backward compatibility:
2027ac_top_builddir=$ac_top_build_prefix
2028
2029case $srcdir in
2030 .) # We are building in place.
2031 ac_srcdir=.
2032 ac_top_srcdir=$ac_top_builddir_sub
2033 ac_abs_top_srcdir=$ac_pwd ;;
2034 [\\/]* | ?:[\\/]* ) # Absolute name.
2035 ac_srcdir=$srcdir$ac_dir_suffix;
2036 ac_top_srcdir=$srcdir
2037 ac_abs_top_srcdir=$srcdir ;;
2038 *) # Relative name.
2039 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2040 ac_top_srcdir=$ac_top_build_prefix$srcdir
2041 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2042esac
2043ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2044
2045 cd "$ac_dir" || { ac_status=$?; continue; }
2046 # Check for guested configure.
2047 if test -f "$ac_srcdir/configure.gnu"; then
2048 echo &&
2049 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2050 elif test -f "$ac_srcdir/configure"; then
2051 echo &&
2052 $SHELL "$ac_srcdir/configure" --help=recursive
2053 else
2054 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2055 fi || ac_status=$?
2056 cd "$ac_pwd" || { ac_status=$?; break; }
2057 done
2058fi
2059
2060test -n "$ac_init_help" && exit $ac_status
2061if $ac_init_version; then
2062 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002063ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002064generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002065
cristy14fefe52012-05-21 00:59:18 +00002066Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002067This configure script is free software; the Free Software Foundation
2068gives unlimited permission to copy, distribute and modify it.
2069_ACEOF
2070 exit
2071fi
cristy8b350f62009-11-15 23:12:43 +00002072
2073## ------------------------ ##
2074## Autoconf initialization. ##
2075## ------------------------ ##
2076
2077# ac_fn_c_try_compile LINENO
2078# --------------------------
2079# Try to compile conftest.$ac_ext, and return whether this succeeded.
2080ac_fn_c_try_compile ()
2081{
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 rm -f conftest.$ac_objext
2084 if { { ac_try="$ac_compile"
2085case "(($ac_try" in
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2088esac
2089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090$as_echo "$ac_try_echo"; } >&5
2091 (eval "$ac_compile") 2>conftest.err
2092 ac_status=$?
2093 if test -s conftest.err; then
2094 grep -v '^ *+' conftest.err >conftest.er1
2095 cat conftest.er1 >&5
2096 mv -f conftest.er1 conftest.err
2097 fi
2098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099 test $ac_status = 0; } && {
2100 test -z "$ac_c_werror_flag" ||
2101 test ! -s conftest.err
2102 } && test -s conftest.$ac_objext; then :
2103 ac_retval=0
2104else
2105 $as_echo "$as_me: failed program was:" >&5
2106sed 's/^/| /' conftest.$ac_ext >&5
2107
2108 ac_retval=1
2109fi
cristyda16f162011-02-19 23:52:17 +00002110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002111 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002112
2113} # ac_fn_c_try_compile
2114
cristy95646052009-11-28 23:05:30 +00002115# ac_fn_c_try_cpp LINENO
2116# ----------------------
2117# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2118ac_fn_c_try_cpp ()
2119{
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 if { { ac_try="$ac_cpp conftest.$ac_ext"
2122case "(($ac_try" in
2123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124 *) ac_try_echo=$ac_try;;
2125esac
2126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127$as_echo "$ac_try_echo"; } >&5
2128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2129 ac_status=$?
2130 if test -s conftest.err; then
2131 grep -v '^ *+' conftest.err >conftest.er1
2132 cat conftest.er1 >&5
2133 mv -f conftest.er1 conftest.err
2134 fi
2135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002136 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2138 test ! -s conftest.err
2139 }; then :
2140 ac_retval=0
2141else
2142 $as_echo "$as_me: failed program was:" >&5
2143sed 's/^/| /' conftest.$ac_ext >&5
2144
2145 ac_retval=1
2146fi
cristyda16f162011-02-19 23:52:17 +00002147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002148 as_fn_set_status $ac_retval
2149
2150} # ac_fn_c_try_cpp
2151
cristy8b350f62009-11-15 23:12:43 +00002152# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2153# -------------------------------------------------------
2154# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2155# the include files in INCLUDES and setting the cache variable VAR
2156# accordingly.
2157ac_fn_c_check_header_mongrel ()
2158{
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002160 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002163if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002164 $as_echo_n "(cached) " >&6
2165fi
2166eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168$as_echo "$ac_res" >&6; }
2169else
2170 # Is the header compilable?
2171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2172$as_echo_n "checking $2 usability... " >&6; }
2173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h. */
2175$4
2176#include <$2>
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_header_compiler=yes
2180else
2181 ac_header_compiler=no
2182fi
2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2185$as_echo "$ac_header_compiler" >&6; }
2186
2187# Is the header present?
2188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2189$as_echo_n "checking $2 presence... " >&6; }
2190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h. */
2192#include <$2>
2193_ACEOF
2194if ac_fn_c_try_cpp "$LINENO"; then :
2195 ac_header_preproc=yes
2196else
2197 ac_header_preproc=no
2198fi
cristyda16f162011-02-19 23:52:17 +00002199rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2201$as_echo "$ac_header_preproc" >&6; }
2202
2203# So? What about this header?
2204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2205 yes:no: )
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2207$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2210 ;;
2211 no:yes:* )
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2213$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2215$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2217$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2219$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2221$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002222( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002223## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002224## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002225 ) | sed "s/^/$as_me: WARNING: /" >&2
2226 ;;
2227esac
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002230if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002231 $as_echo_n "(cached) " >&6
2232else
2233 eval "$3=\$ac_header_compiler"
2234fi
2235eval ac_res=\$$3
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237$as_echo "$ac_res" >&6; }
2238fi
cristyda16f162011-02-19 23:52:17 +00002239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002240
2241} # ac_fn_c_check_header_mongrel
2242
2243# ac_fn_c_try_run LINENO
2244# ----------------------
2245# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2246# that executables *can* be run.
2247ac_fn_c_try_run ()
2248{
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 if { { ac_try="$ac_link"
2251case "(($ac_try" in
2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253 *) ac_try_echo=$ac_try;;
2254esac
2255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2256$as_echo "$ac_try_echo"; } >&5
2257 (eval "$ac_link") 2>&5
2258 ac_status=$?
2259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2260 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2261 { { case "(($ac_try" in
2262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2263 *) ac_try_echo=$ac_try;;
2264esac
2265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2266$as_echo "$ac_try_echo"; } >&5
2267 (eval "$ac_try") 2>&5
2268 ac_status=$?
2269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2270 test $ac_status = 0; }; }; then :
2271 ac_retval=0
2272else
2273 $as_echo "$as_me: program exited with status $ac_status" >&5
2274 $as_echo "$as_me: failed program was:" >&5
2275sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 ac_retval=$ac_status
2278fi
2279 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002281 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002282
2283} # ac_fn_c_try_run
2284
2285# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2286# -------------------------------------------------------
2287# Tests whether HEADER exists and can be compiled using the include files in
2288# INCLUDES, setting the cache variable VAR accordingly.
2289ac_fn_c_check_header_compile ()
2290{
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2293$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002294if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002295 $as_echo_n "(cached) " >&6
2296else
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298/* end confdefs.h. */
2299$4
2300#include <$2>
2301_ACEOF
2302if ac_fn_c_try_compile "$LINENO"; then :
2303 eval "$3=yes"
2304else
2305 eval "$3=no"
2306fi
2307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308fi
2309eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002313
2314} # ac_fn_c_check_header_compile
2315
cristya0b81c32010-01-22 02:54:33 +00002316# ac_fn_cxx_try_compile LINENO
2317# ----------------------------
2318# Try to compile conftest.$ac_ext, and return whether this succeeded.
2319ac_fn_cxx_try_compile ()
2320{
2321 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322 rm -f conftest.$ac_objext
2323 if { { ac_try="$ac_compile"
2324case "(($ac_try" in
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2327esac
2328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2329$as_echo "$ac_try_echo"; } >&5
2330 (eval "$ac_compile") 2>conftest.err
2331 ac_status=$?
2332 if test -s conftest.err; then
2333 grep -v '^ *+' conftest.err >conftest.er1
2334 cat conftest.er1 >&5
2335 mv -f conftest.er1 conftest.err
2336 fi
2337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2338 test $ac_status = 0; } && {
2339 test -z "$ac_cxx_werror_flag" ||
2340 test ! -s conftest.err
2341 } && test -s conftest.$ac_objext; then :
2342 ac_retval=0
2343else
2344 $as_echo "$as_me: failed program was:" >&5
2345sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 ac_retval=1
2348fi
cristyda16f162011-02-19 23:52:17 +00002349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002350 as_fn_set_status $ac_retval
2351
2352} # ac_fn_cxx_try_compile
2353
cristy8b350f62009-11-15 23:12:43 +00002354# ac_fn_c_try_link LINENO
2355# -----------------------
2356# Try to link conftest.$ac_ext, and return whether this succeeded.
2357ac_fn_c_try_link ()
2358{
2359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360 rm -f conftest.$ac_objext conftest$ac_exeext
2361 if { { ac_try="$ac_link"
2362case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365esac
2366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367$as_echo "$ac_try_echo"; } >&5
2368 (eval "$ac_link") 2>conftest.err
2369 ac_status=$?
2370 if test -s conftest.err; then
2371 grep -v '^ *+' conftest.err >conftest.er1
2372 cat conftest.er1 >&5
2373 mv -f conftest.er1 conftest.err
2374 fi
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; } && {
2377 test -z "$ac_c_werror_flag" ||
2378 test ! -s conftest.err
2379 } && test -s conftest$ac_exeext && {
2380 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002381 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002382 }; then :
2383 ac_retval=0
2384else
2385 $as_echo "$as_me: failed program was:" >&5
2386sed 's/^/| /' conftest.$ac_ext >&5
2387
2388 ac_retval=1
2389fi
2390 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2391 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2392 # interfere with the next link command; also delete a directory that is
2393 # left behind by Apple's compiler. We do this before executing the actions.
2394 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002395 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002396 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002397
2398} # ac_fn_c_try_link
2399
cristy73bd4a52010-10-05 11:24:23 +00002400# ac_fn_c_check_func LINENO FUNC VAR
2401# ----------------------------------
2402# Tests whether FUNC exists, setting the cache variable VAR accordingly
2403ac_fn_c_check_func ()
2404{
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2407$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002408if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002409 $as_echo_n "(cached) " >&6
2410else
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412/* end confdefs.h. */
2413/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2415#define $2 innocuous_$2
2416
2417/* System header to define __stub macros and hopefully few prototypes,
2418 which can conflict with char $2 (); below.
2419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2420 <limits.h> exists even on freestanding compilers. */
2421
2422#ifdef __STDC__
2423# include <limits.h>
2424#else
2425# include <assert.h>
2426#endif
2427
2428#undef $2
2429
2430/* Override any GCC internal prototype to avoid an error.
2431 Use char because int might match the return type of a GCC
2432 builtin and then its argument prototype would still apply. */
2433#ifdef __cplusplus
2434extern "C"
2435#endif
2436char $2 ();
2437/* The GNU C library defines this for functions which it implements
2438 to always fail with ENOSYS. Some functions are actually named
2439 something starting with __ and the normal name is an alias. */
2440#if defined __stub_$2 || defined __stub___$2
2441choke me
2442#endif
2443
2444int
2445main ()
2446{
2447return $2 ();
2448 ;
2449 return 0;
2450}
2451_ACEOF
2452if ac_fn_c_try_link "$LINENO"; then :
2453 eval "$3=yes"
2454else
2455 eval "$3=no"
2456fi
2457rm -f core conftest.err conftest.$ac_objext \
2458 conftest$ac_exeext conftest.$ac_ext
2459fi
2460eval ac_res=\$$3
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2462$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002464
2465} # ac_fn_c_check_func
2466
2467# ac_fn_cxx_try_cpp LINENO
2468# ------------------------
2469# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2470ac_fn_cxx_try_cpp ()
2471{
2472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473 if { { ac_try="$ac_cpp conftest.$ac_ext"
2474case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2477esac
2478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2479$as_echo "$ac_try_echo"; } >&5
2480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2481 ac_status=$?
2482 if test -s conftest.err; then
2483 grep -v '^ *+' conftest.err >conftest.er1
2484 cat conftest.er1 >&5
2485 mv -f conftest.er1 conftest.err
2486 fi
2487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002488 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002489 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2490 test ! -s conftest.err
2491 }; then :
2492 ac_retval=0
2493else
2494 $as_echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497 ac_retval=1
2498fi
cristyda16f162011-02-19 23:52:17 +00002499 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002500 as_fn_set_status $ac_retval
2501
2502} # ac_fn_cxx_try_cpp
2503
2504# ac_fn_cxx_try_link LINENO
2505# -------------------------
2506# Try to link conftest.$ac_ext, and return whether this succeeded.
2507ac_fn_cxx_try_link ()
2508{
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 rm -f conftest.$ac_objext conftest$ac_exeext
2511 if { { ac_try="$ac_link"
2512case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515esac
2516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517$as_echo "$ac_try_echo"; } >&5
2518 (eval "$ac_link") 2>conftest.err
2519 ac_status=$?
2520 if test -s conftest.err; then
2521 grep -v '^ *+' conftest.err >conftest.er1
2522 cat conftest.er1 >&5
2523 mv -f conftest.er1 conftest.err
2524 fi
2525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526 test $ac_status = 0; } && {
2527 test -z "$ac_cxx_werror_flag" ||
2528 test ! -s conftest.err
2529 } && test -s conftest$ac_exeext && {
2530 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002531 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002532 }; then :
2533 ac_retval=0
2534else
2535 $as_echo "$as_me: failed program was:" >&5
2536sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 ac_retval=1
2539fi
2540 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2541 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2542 # interfere with the next link command; also delete a directory that is
2543 # left behind by Apple's compiler. We do this before executing the actions.
2544 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002546 as_fn_set_status $ac_retval
2547
2548} # ac_fn_cxx_try_link
2549
cristy98dddb52010-11-04 00:30:15 +00002550# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2551# ---------------------------------------------
2552# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2553# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002554ac_fn_c_check_decl ()
2555{
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002557 as_decl_name=`echo $2|sed 's/ *(.*//'`
2558 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2560$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002561if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002562 $as_echo_n "(cached) " >&6
2563else
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565/* end confdefs.h. */
2566$4
2567int
2568main ()
2569{
cristy98dddb52010-11-04 00:30:15 +00002570#ifndef $as_decl_name
2571#ifdef __cplusplus
2572 (void) $as_decl_use;
2573#else
2574 (void) $as_decl_name;
2575#endif
cristy73bd4a52010-10-05 11:24:23 +00002576#endif
2577
2578 ;
2579 return 0;
2580}
2581_ACEOF
2582if ac_fn_c_try_compile "$LINENO"; then :
2583 eval "$3=yes"
2584else
2585 eval "$3=no"
2586fi
2587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588fi
2589eval ac_res=\$$3
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2591$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002593
2594} # ac_fn_c_check_decl
2595
cristy8b350f62009-11-15 23:12:43 +00002596# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2597# -------------------------------------------
2598# Tests whether TYPE exists after having included INCLUDES, setting cache
2599# variable VAR accordingly.
2600ac_fn_c_check_type ()
2601{
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2604$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002605if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002606 $as_echo_n "(cached) " >&6
2607else
2608 eval "$3=no"
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610/* end confdefs.h. */
2611$4
2612int
2613main ()
2614{
2615if (sizeof ($2))
2616 return 0;
2617 ;
2618 return 0;
2619}
2620_ACEOF
2621if ac_fn_c_try_compile "$LINENO"; then :
2622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2623/* end confdefs.h. */
2624$4
2625int
2626main ()
2627{
2628if (sizeof (($2)))
2629 return 0;
2630 ;
2631 return 0;
2632}
2633_ACEOF
2634if ac_fn_c_try_compile "$LINENO"; then :
2635
2636else
2637 eval "$3=yes"
2638fi
2639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640fi
2641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642fi
2643eval ac_res=\$$3
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2645$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002647
2648} # ac_fn_c_check_type
2649
cristy92703d82010-04-26 00:18:18 +00002650# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2651# ----------------------------------------------------
2652# Tries to find if the field MEMBER exists in type AGGR, after including
2653# INCLUDES, setting cache variable VAR accordingly.
2654ac_fn_c_check_member ()
2655{
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2658$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002659if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002660 $as_echo_n "(cached) " >&6
2661else
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663/* end confdefs.h. */
2664$5
2665int
2666main ()
2667{
2668static $2 ac_aggr;
2669if (ac_aggr.$3)
2670return 0;
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675if ac_fn_c_try_compile "$LINENO"; then :
2676 eval "$4=yes"
2677else
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679/* end confdefs.h. */
2680$5
2681int
2682main ()
2683{
2684static $2 ac_aggr;
2685if (sizeof ac_aggr.$3)
2686return 0;
2687 ;
2688 return 0;
2689}
2690_ACEOF
2691if ac_fn_c_try_compile "$LINENO"; then :
2692 eval "$4=yes"
2693else
2694 eval "$4=no"
2695fi
2696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697fi
2698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699fi
2700eval ac_res=\$$4
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2702$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002704
2705} # ac_fn_c_check_member
2706
cristy501c8042011-05-26 17:46:28 +00002707# ac_fn_c_find_intX_t LINENO BITS VAR
2708# -----------------------------------
2709# Finds a signed integer type with width BITS, setting cache variable VAR
2710# accordingly.
2711ac_fn_c_find_intX_t ()
2712{
2713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2715$as_echo_n "checking for int$2_t... " >&6; }
2716if eval \${$3+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718else
2719 eval "$3=no"
2720 # Order is important - never check a type that is potentially smaller
2721 # than half of the expected target width.
2722 for ac_type in int$2_t 'int' 'long int' \
2723 'long long int' 'short int' 'signed char'; do
2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725/* end confdefs.h. */
2726$ac_includes_default
2727 enum { N = $2 / 2 - 1 };
2728int
2729main ()
2730{
2731static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002732test_array [0] = 0;
2733return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002734
2735 ;
2736 return 0;
2737}
2738_ACEOF
2739if ac_fn_c_try_compile "$LINENO"; then :
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741/* end confdefs.h. */
2742$ac_includes_default
2743 enum { N = $2 / 2 - 1 };
2744int
2745main ()
2746{
2747static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2748 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002749test_array [0] = 0;
2750return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002751
2752 ;
2753 return 0;
2754}
2755_ACEOF
2756if ac_fn_c_try_compile "$LINENO"; then :
2757
2758else
2759 case $ac_type in #(
2760 int$2_t) :
2761 eval "$3=yes" ;; #(
2762 *) :
2763 eval "$3=\$ac_type" ;;
2764esac
2765fi
2766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767fi
2768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769 if eval test \"x\$"$3"\" = x"no"; then :
2770
2771else
2772 break
2773fi
2774 done
2775fi
2776eval ac_res=\$$3
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2778$as_echo "$ac_res" >&6; }
2779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2780
2781} # ac_fn_c_find_intX_t
2782
2783# ac_fn_c_find_uintX_t LINENO BITS VAR
2784# ------------------------------------
2785# Finds an unsigned integer type with width BITS, setting cache variable VAR
2786# accordingly.
2787ac_fn_c_find_uintX_t ()
2788{
2789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2791$as_echo_n "checking for uint$2_t... " >&6; }
2792if eval \${$3+:} false; then :
2793 $as_echo_n "(cached) " >&6
2794else
2795 eval "$3=no"
2796 # Order is important - never check a type that is potentially smaller
2797 # than half of the expected target width.
2798 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2799 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801/* end confdefs.h. */
2802$ac_includes_default
2803int
2804main ()
2805{
2806static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002807test_array [0] = 0;
2808return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002809
2810 ;
2811 return 0;
2812}
2813_ACEOF
2814if ac_fn_c_try_compile "$LINENO"; then :
2815 case $ac_type in #(
2816 uint$2_t) :
2817 eval "$3=yes" ;; #(
2818 *) :
2819 eval "$3=\$ac_type" ;;
2820esac
2821fi
2822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2823 if eval test \"x\$"$3"\" = x"no"; then :
2824
2825else
2826 break
2827fi
2828 done
2829fi
2830eval ac_res=\$$3
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2832$as_echo "$ac_res" >&6; }
2833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2834
2835} # ac_fn_c_find_uintX_t
2836
cristy8b350f62009-11-15 23:12:43 +00002837# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2838# --------------------------------------------
2839# Tries to find the compile-time value of EXPR in a program that includes
2840# INCLUDES, setting VAR accordingly. Returns whether the value could be
2841# computed
2842ac_fn_c_compute_int ()
2843{
2844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845 if test "$cross_compiling" = yes; then
2846 # Depending upon the size, compute the lo and hi bounds.
2847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848/* end confdefs.h. */
2849$4
2850int
2851main ()
2852{
2853static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002854test_array [0] = 0;
2855return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002856
2857 ;
2858 return 0;
2859}
2860_ACEOF
2861if ac_fn_c_try_compile "$LINENO"; then :
2862 ac_lo=0 ac_mid=0
2863 while :; do
2864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2865/* end confdefs.h. */
2866$4
2867int
2868main ()
2869{
2870static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002871test_array [0] = 0;
2872return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002873
2874 ;
2875 return 0;
2876}
2877_ACEOF
2878if ac_fn_c_try_compile "$LINENO"; then :
2879 ac_hi=$ac_mid; break
2880else
2881 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2882 if test $ac_lo -le $ac_mid; then
2883 ac_lo= ac_hi=
2884 break
2885 fi
2886 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2887fi
2888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 done
2890else
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892/* end confdefs.h. */
2893$4
2894int
2895main ()
2896{
2897static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002898test_array [0] = 0;
2899return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002900
2901 ;
2902 return 0;
2903}
2904_ACEOF
2905if ac_fn_c_try_compile "$LINENO"; then :
2906 ac_hi=-1 ac_mid=-1
2907 while :; do
2908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909/* end confdefs.h. */
2910$4
2911int
2912main ()
2913{
2914static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002915test_array [0] = 0;
2916return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002917
2918 ;
2919 return 0;
2920}
2921_ACEOF
2922if ac_fn_c_try_compile "$LINENO"; then :
2923 ac_lo=$ac_mid; break
2924else
2925 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2926 if test $ac_mid -le $ac_hi; then
2927 ac_lo= ac_hi=
2928 break
2929 fi
2930 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2931fi
2932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933 done
2934else
2935 ac_lo= ac_hi=
2936fi
2937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2938fi
2939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2940# Binary search between lo and hi bounds.
2941while test "x$ac_lo" != "x$ac_hi"; do
2942 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944/* end confdefs.h. */
2945$4
2946int
2947main ()
2948{
2949static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002950test_array [0] = 0;
2951return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002952
2953 ;
2954 return 0;
2955}
2956_ACEOF
2957if ac_fn_c_try_compile "$LINENO"; then :
2958 ac_hi=$ac_mid
2959else
2960 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2961fi
2962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963done
2964case $ac_lo in #((
2965?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2966'') ac_retval=1 ;;
2967esac
2968 else
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970/* end confdefs.h. */
2971$4
2972static long int longval () { return $2; }
2973static unsigned long int ulongval () { return $2; }
2974#include <stdio.h>
2975#include <stdlib.h>
2976int
2977main ()
2978{
2979
2980 FILE *f = fopen ("conftest.val", "w");
2981 if (! f)
2982 return 1;
2983 if (($2) < 0)
2984 {
2985 long int i = longval ();
2986 if (i != ($2))
2987 return 1;
2988 fprintf (f, "%ld", i);
2989 }
2990 else
2991 {
2992 unsigned long int i = ulongval ();
2993 if (i != ($2))
2994 return 1;
2995 fprintf (f, "%lu", i);
2996 }
2997 /* Do not output a trailing newline, as this causes \r\n confusion
2998 on some platforms. */
2999 return ferror (f) || fclose (f) != 0;
3000
3001 ;
3002 return 0;
3003}
3004_ACEOF
3005if ac_fn_c_try_run "$LINENO"; then :
3006 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3007else
3008 ac_retval=1
3009fi
3010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3011 conftest.$ac_objext conftest.beam conftest.$ac_ext
3012rm -f conftest.val
3013
3014 fi
cristyda16f162011-02-19 23:52:17 +00003015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003016 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003017
3018} # ac_fn_c_compute_int
3019
3020# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3021# ---------------------------------------------------------
3022# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3023# the include files in INCLUDES and setting the cache variable VAR
3024# accordingly.
3025ac_fn_cxx_check_header_mongrel ()
3026{
3027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003028 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3030$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003031if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003032 $as_echo_n "(cached) " >&6
3033fi
3034eval ac_res=\$$3
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3036$as_echo "$ac_res" >&6; }
3037else
3038 # Is the header compilable?
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3040$as_echo_n "checking $2 usability... " >&6; }
3041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042/* end confdefs.h. */
3043$4
3044#include <$2>
3045_ACEOF
3046if ac_fn_cxx_try_compile "$LINENO"; then :
3047 ac_header_compiler=yes
3048else
3049 ac_header_compiler=no
3050fi
3051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3053$as_echo "$ac_header_compiler" >&6; }
3054
3055# Is the header present?
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3057$as_echo_n "checking $2 presence... " >&6; }
3058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059/* end confdefs.h. */
3060#include <$2>
3061_ACEOF
3062if ac_fn_cxx_try_cpp "$LINENO"; then :
3063 ac_header_preproc=yes
3064else
3065 ac_header_preproc=no
3066fi
cristyda16f162011-02-19 23:52:17 +00003067rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3069$as_echo "$ac_header_preproc" >&6; }
3070
3071# So? What about this header?
3072case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3073 yes:no: )
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3075$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3077$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3078 ;;
3079 no:yes:* )
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3081$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3083$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3085$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3087$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3089$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003090( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003091## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003092## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003093 ) | sed "s/^/$as_me: WARNING: /" >&2
3094 ;;
3095esac
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3097$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003098if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003099 $as_echo_n "(cached) " >&6
3100else
3101 eval "$3=\$ac_header_compiler"
3102fi
3103eval ac_res=\$$3
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3105$as_echo "$ac_res" >&6; }
3106fi
cristyda16f162011-02-19 23:52:17 +00003107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003108
3109} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003110cat >config.log <<_ACEOF
3111This file contains any messages produced by compilers while
3112running configure, to aid debugging if configure makes a mistake.
3113
cristy29eb34e2011-10-16 00:46:08 +00003114It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003115generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003116
3117 $ $0 $@
3118
3119_ACEOF
3120exec 5>>config.log
3121{
3122cat <<_ASUNAME
3123## --------- ##
3124## Platform. ##
3125## --------- ##
3126
3127hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3128uname -m = `(uname -m) 2>/dev/null || echo unknown`
3129uname -r = `(uname -r) 2>/dev/null || echo unknown`
3130uname -s = `(uname -s) 2>/dev/null || echo unknown`
3131uname -v = `(uname -v) 2>/dev/null || echo unknown`
3132
3133/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3134/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3135
3136/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3137/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3138/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3139/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3140/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3141/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3142/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3143
3144_ASUNAME
3145
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003151 $as_echo "PATH: $as_dir"
3152 done
cristy3ed852e2009-09-05 21:47:34 +00003153IFS=$as_save_IFS
3154
3155} >&5
3156
3157cat >&5 <<_ACEOF
3158
3159
3160## ----------- ##
3161## Core tests. ##
3162## ----------- ##
3163
3164_ACEOF
3165
3166
3167# Keep a trace of the command line.
3168# Strip out --no-create and --no-recursion so they do not pile up.
3169# Strip out --silent because we don't want to record it for future runs.
3170# Also quote any args containing shell meta-characters.
3171# Make two passes to allow for proper duplicate-argument suppression.
3172ac_configure_args=
3173ac_configure_args0=
3174ac_configure_args1=
3175ac_must_keep_next=false
3176for ac_pass in 1 2
3177do
3178 for ac_arg
3179 do
3180 case $ac_arg in
3181 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3183 | -silent | --silent | --silen | --sile | --sil)
3184 continue ;;
3185 *\'*)
3186 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3187 esac
3188 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003189 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003190 2)
cristy8b350f62009-11-15 23:12:43 +00003191 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003192 if test $ac_must_keep_next = true; then
3193 ac_must_keep_next=false # Got value, back to normal.
3194 else
3195 case $ac_arg in
3196 *=* | --config-cache | -C | -disable-* | --disable-* \
3197 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3198 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3199 | -with-* | --with-* | -without-* | --without-* | --x)
3200 case "$ac_configure_args0 " in
3201 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3202 esac
3203 ;;
3204 -* ) ac_must_keep_next=true ;;
3205 esac
3206 fi
cristy8b350f62009-11-15 23:12:43 +00003207 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003208 ;;
3209 esac
3210 done
3211done
cristy8b350f62009-11-15 23:12:43 +00003212{ ac_configure_args0=; unset ac_configure_args0;}
3213{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003214
3215# When interrupted or exit'd, cleanup temporary files, and complete
3216# config.log. We remove comments because anyway the quotes in there
3217# would cause problems or look ugly.
3218# WARNING: Use '\'' to represent an apostrophe within the trap.
3219# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3220trap 'exit_status=$?
3221 # Save into config.log some information that might help in debugging.
3222 {
3223 echo
3224
cristy98dddb52010-11-04 00:30:15 +00003225 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003226## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003227## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003228 echo
3229 # The following way of writing the cache mishandles newlines in values,
3230(
3231 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3232 eval ac_val=\$$ac_var
3233 case $ac_val in #(
3234 *${as_nl}*)
3235 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003236 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003237$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3238 esac
3239 case $ac_var in #(
3240 _ | IFS | as_nl) ;; #(
3241 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003242 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003243 esac ;;
3244 esac
3245 done
3246 (set) 2>&1 |
3247 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3248 *${as_nl}ac_space=\ *)
3249 sed -n \
3250 "s/'\''/'\''\\\\'\'''\''/g;
3251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3252 ;; #(
3253 *)
3254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3255 ;;
3256 esac |
3257 sort
3258)
3259 echo
3260
cristy98dddb52010-11-04 00:30:15 +00003261 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003262## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003263## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003264 echo
3265 for ac_var in $ac_subst_vars
3266 do
3267 eval ac_val=\$$ac_var
3268 case $ac_val in
3269 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3270 esac
3271 $as_echo "$ac_var='\''$ac_val'\''"
3272 done | sort
3273 echo
3274
3275 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003276 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003277## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003278## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003279 echo
3280 for ac_var in $ac_subst_files
3281 do
3282 eval ac_val=\$$ac_var
3283 case $ac_val in
3284 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3285 esac
3286 $as_echo "$ac_var='\''$ac_val'\''"
3287 done | sort
3288 echo
3289 fi
3290
3291 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003292 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003293## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003294## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003295 echo
3296 cat confdefs.h
3297 echo
3298 fi
3299 test "$ac_signal" != 0 &&
3300 $as_echo "$as_me: caught signal $ac_signal"
3301 $as_echo "$as_me: exit $exit_status"
3302 } >&5
3303 rm -f core *.core core.conftest.* &&
3304 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3305 exit $exit_status
3306' 0
3307for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003308 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003309done
3310ac_signal=0
3311
3312# confdefs.h avoids OS command line length limits that DEFS can exceed.
3313rm -f -r conftest* confdefs.h
3314
cristy8b350f62009-11-15 23:12:43 +00003315$as_echo "/* confdefs.h */" > confdefs.h
3316
cristy3ed852e2009-09-05 21:47:34 +00003317# Predefined preprocessor variables.
3318
3319cat >>confdefs.h <<_ACEOF
3320#define PACKAGE_NAME "$PACKAGE_NAME"
3321_ACEOF
3322
cristy3ed852e2009-09-05 21:47:34 +00003323cat >>confdefs.h <<_ACEOF
3324#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3325_ACEOF
3326
cristy3ed852e2009-09-05 21:47:34 +00003327cat >>confdefs.h <<_ACEOF
3328#define PACKAGE_VERSION "$PACKAGE_VERSION"
3329_ACEOF
3330
cristy3ed852e2009-09-05 21:47:34 +00003331cat >>confdefs.h <<_ACEOF
3332#define PACKAGE_STRING "$PACKAGE_STRING"
3333_ACEOF
3334
cristy3ed852e2009-09-05 21:47:34 +00003335cat >>confdefs.h <<_ACEOF
3336#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3337_ACEOF
3338
cristy8b350f62009-11-15 23:12:43 +00003339cat >>confdefs.h <<_ACEOF
3340#define PACKAGE_URL "$PACKAGE_URL"
3341_ACEOF
3342
cristy3ed852e2009-09-05 21:47:34 +00003343
3344# Let the site file select an alternate cache file if it wants to.
3345# Prefer an explicitly selected file to automatically selected ones.
3346ac_site_file1=NONE
3347ac_site_file2=NONE
3348if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003349 # We do not want a PATH search for config.site.
3350 case $CONFIG_SITE in #((
3351 -*) ac_site_file1=./$CONFIG_SITE;;
3352 */*) ac_site_file1=$CONFIG_SITE;;
3353 *) ac_site_file1=./$CONFIG_SITE;;
3354 esac
cristy3ed852e2009-09-05 21:47:34 +00003355elif test "x$prefix" != xNONE; then
3356 ac_site_file1=$prefix/share/config.site
3357 ac_site_file2=$prefix/etc/config.site
3358else
3359 ac_site_file1=$ac_default_prefix/share/config.site
3360 ac_site_file2=$ac_default_prefix/etc/config.site
3361fi
3362for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3363do
3364 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003365 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003367$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3368 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003369 . "$ac_site_file" \
3370 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372as_fn_error $? "failed to load site script $ac_site_file
3373See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003374 fi
3375done
3376
3377if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003378 # Some versions of bash will fail to source /dev/null (special files
3379 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3380 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003381 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "$as_me: loading cache $cache_file" >&6;}
3383 case $cache_file in
3384 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3385 *) . "./$cache_file";;
3386 esac
3387 fi
3388else
cristy8b350f62009-11-15 23:12:43 +00003389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003390$as_echo "$as_me: creating cache $cache_file" >&6;}
3391 >$cache_file
3392fi
3393
cristycd4c5312009-11-22 01:19:08 +00003394as_fn_append ac_header_list " stdlib.h"
3395as_fn_append ac_header_list " unistd.h"
3396as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003397# Check that the precious variables saved in the cache have kept the same
3398# value.
3399ac_cache_corrupted=false
3400for ac_var in $ac_precious_vars; do
3401 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3402 eval ac_new_set=\$ac_env_${ac_var}_set
3403 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3404 eval ac_new_val=\$ac_env_${ac_var}_value
3405 case $ac_old_set,$ac_new_set in
3406 set,)
cristy8b350f62009-11-15 23:12:43 +00003407 { $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 +00003408$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3409 ac_cache_corrupted=: ;;
3410 ,set)
cristy8b350f62009-11-15 23:12:43 +00003411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003412$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3413 ac_cache_corrupted=: ;;
3414 ,);;
3415 *)
3416 if test "x$ac_old_val" != "x$ac_new_val"; then
3417 # differences in whitespace do not lead to failure.
3418 ac_old_val_w=`echo x $ac_old_val`
3419 ac_new_val_w=`echo x $ac_new_val`
3420 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003422$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3423 ac_cache_corrupted=:
3424 else
cristy8b350f62009-11-15 23:12:43 +00003425 { $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 +00003426$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3427 eval $ac_var=\$ac_old_val
3428 fi
cristy8b350f62009-11-15 23:12:43 +00003429 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003430$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003431 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003432$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3433 fi;;
3434 esac
3435 # Pass precious variables to config.status.
3436 if test "$ac_new_set" = set; then
3437 case $ac_new_val in
3438 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3439 *) ac_arg=$ac_var=$ac_new_val ;;
3440 esac
3441 case " $ac_configure_args " in
3442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003443 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003444 esac
3445 fi
3446done
3447if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003452 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003453fi
cristy8b350f62009-11-15 23:12:43 +00003454## -------------------- ##
3455## Main body of script. ##
3456## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003457
3458ac_ext=c
3459ac_cpp='$CPP $CPPFLAGS'
3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465
3466ac_aux_dir=
3467for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003468 if test -f "$ac_dir/install-sh"; then
3469 ac_aux_dir=$ac_dir
3470 ac_install_sh="$ac_aux_dir/install-sh -c"
3471 break
3472 elif 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/shtool"; then
3477 ac_aux_dir=$ac_dir
3478 ac_install_sh="$ac_aux_dir/shtool install -c"
3479 break
3480 fi
cristy3ed852e2009-09-05 21:47:34 +00003481done
3482if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003483 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003484fi
3485
3486# These three variables are undocumented and unsupported,
3487# and are intended to be withdrawn in a future Autoconf release.
3488# They can cause serious problems if a builder's source tree is in a directory
3489# whose full name contains unusual characters.
3490ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3491ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3492ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3493
3494
3495
3496
3497ac_config_headers="$ac_config_headers config/config.h"
3498
cristy24fc1fe2010-10-23 21:13:01 +00003499
cristy4c08aed2011-07-01 19:47:50 +00003500ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003501
cristy4c08aed2011-07-01 19:47:50 +00003502ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003503
3504
3505#
3506# Save initial user-tunable values
3507#
3508USER_LIBS=$LIBS
3509for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3510 eval isset=\${$var+set}
3511 if test "$isset" = 'set'; then
3512 eval val=$`echo $var`
3513 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3514 fi
3515done
3516
3517
3518CONFIGURE_ARGS="$0 ${ac_configure_args}"
3519
3520
3521# Source file containing package/library versioning information.
3522. ${srcdir}/version.sh
3523
cristy15a88782010-01-31 23:24:49 +00003524echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003525# Make sure we can run config.sub.
3526$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003527 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003528
cristy8b350f62009-11-15 23:12:43 +00003529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003530$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003531if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003532 $as_echo_n "(cached) " >&6
3533else
3534 ac_build_alias=$build_alias
3535test "x$ac_build_alias" = x &&
3536 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3537test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003538 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003539ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003540 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003541
3542fi
cristy8b350f62009-11-15 23:12:43 +00003543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003544$as_echo "$ac_cv_build" >&6; }
3545case $ac_cv_build in
3546*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003547*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003548esac
3549build=$ac_cv_build
3550ac_save_IFS=$IFS; IFS='-'
3551set x $ac_cv_build
3552shift
3553build_cpu=$1
3554build_vendor=$2
3555shift; shift
3556# Remember, the first character of IFS is used to create $*,
3557# except with old shells:
3558build_os=$*
3559IFS=$ac_save_IFS
3560case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3561
3562
cristy8b350f62009-11-15 23:12:43 +00003563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003564$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003565if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003566 $as_echo_n "(cached) " >&6
3567else
3568 if test "x$host_alias" = x; then
3569 ac_cv_host=$ac_cv_build
3570else
3571 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003572 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003573fi
3574
3575fi
cristy8b350f62009-11-15 23:12:43 +00003576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003577$as_echo "$ac_cv_host" >&6; }
3578case $ac_cv_host in
3579*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003580*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003581esac
3582host=$ac_cv_host
3583ac_save_IFS=$IFS; IFS='-'
3584set x $ac_cv_host
3585shift
3586host_cpu=$1
3587host_vendor=$2
3588shift; shift
3589# Remember, the first character of IFS is used to create $*,
3590# except with old shells:
3591host_os=$*
3592IFS=$ac_save_IFS
3593case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3594
3595
cristy8b350f62009-11-15 23:12:43 +00003596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003597$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003598if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003599 $as_echo_n "(cached) " >&6
3600else
3601 if test "x$target_alias" = x; then
3602 ac_cv_target=$ac_cv_host
3603else
3604 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003606fi
3607
3608fi
cristy8b350f62009-11-15 23:12:43 +00003609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003610$as_echo "$ac_cv_target" >&6; }
3611case $ac_cv_target in
3612*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003613*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003614esac
3615target=$ac_cv_target
3616ac_save_IFS=$IFS; IFS='-'
3617set x $ac_cv_target
3618shift
3619target_cpu=$1
3620target_vendor=$2
3621shift; shift
3622# Remember, the first character of IFS is used to create $*,
3623# except with old shells:
3624target_os=$*
3625IFS=$ac_save_IFS
3626case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3627
3628
3629# The aliases save the names the user supplied, while $host etc.
3630# will get canonicalized.
3631test -n "$target_alias" &&
3632 test "$program_prefix$program_suffix$program_transform_name" = \
3633 NONENONEs,x,x, &&
3634 program_prefix=${target_alias}-
3635
cristy837d6dc2010-02-27 01:16:57 +00003636
3637
3638
cristy8be34142012-06-17 14:07:18 +00003639
cristy19615b82011-04-13 20:02:01 +00003640MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003641
3642
cristy19615b82011-04-13 20:02:01 +00003643MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003644
3645
cristy19615b82011-04-13 20:02:01 +00003646MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003647
3648
cristy3ed852e2009-09-05 21:47:34 +00003649# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003650MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3651
3652MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3653
cristy568c2d42012-07-27 01:41:20 +00003654MAGICK_SVN_REVISION=8726
cristyd694ca32011-03-27 21:42:54 +00003655
3656
cristy3ed852e2009-09-05 21:47:34 +00003657
3658
3659# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3661$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003662# Reject unsafe characters in $srcdir or the absolute working directory
3663# name. Accept space and tab only in the latter.
3664am_lf='
3665'
3666case `pwd` in
3667 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003668 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003669esac
3670case $srcdir in
3671 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003672 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003673esac
cristy3ed852e2009-09-05 21:47:34 +00003674
cristyc0890a62012-07-19 00:18:20 +00003675# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003676# arguments. Must try -L first in case configure is actually a
3677# symlink; some systems play weird games with the mod time of symlinks
3678# (eg FreeBSD returns the mod time of the symlink's containing
3679# directory).
3680if (
cristyc0890a62012-07-19 00:18:20 +00003681 am_has_slept=no
3682 for am_try in 1 2; do
3683 echo "timestamp, slept: $am_has_slept" > conftest.file
3684 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3685 if test "$*" = "X"; then
3686 # -L didn't work.
3687 set X `ls -t "$srcdir/configure" conftest.file`
3688 fi
3689 if test "$*" != "X $srcdir/configure conftest.file" \
3690 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003691
cristyc0890a62012-07-19 00:18:20 +00003692 # If neither matched, then we have a broken ls. This can happen
3693 # if, for instance, CONFIG_SHELL is bash and it inherits a
3694 # broken ls alias from the environment. This has actually
3695 # happened. Such a system could not be considered "sane".
3696 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3697 alias in your environment" "$LINENO" 5
3698 fi
3699 if test "$2" = conftest.file || test $am_try -eq 2; then
3700 break
3701 fi
3702 # Just in case.
3703 sleep 1
3704 am_has_slept=yes
3705 done
cristy73bd4a52010-10-05 11:24:23 +00003706 test "$2" = conftest.file
3707 )
3708then
3709 # Ok.
3710 :
3711else
cristy98dddb52010-11-04 00:30:15 +00003712 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003713Check your system clock" "$LINENO" 5
3714fi
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003717# If we didn't sleep, we still need to ensure time stamps of config.status and
3718# generated files are strictly newer.
3719am_sleep_pid=
3720if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3721 ( sleep 1 ) &
3722 am_sleep_pid=$!
3723fi
cristy73bd4a52010-10-05 11:24:23 +00003724
cristyc0890a62012-07-19 00:18:20 +00003725rm -f conftest.file
3726
3727
3728am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003729
3730# Find a good install program. We prefer a C program (faster),
3731# so one script is as good as another. But avoid the broken or
3732# incompatible versions:
3733# SysV /etc/install, /usr/sbin/install
3734# SunOS /usr/etc/install
3735# IRIX /sbin/install
3736# AIX /bin/install
3737# AmigaOS /C/install, which installs bootblocks on floppy discs
3738# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3739# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3740# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3741# OS/2's system install, which has a completely different semantic
3742# ./install, which can be erroneously created by make from ./install.sh.
3743# Reject install programs that cannot install multiple files.
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3745$as_echo_n "checking for a BSD-compatible install... " >&6; }
3746if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003747if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003748 $as_echo_n "(cached) " >&6
3749else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751for as_dir in $PATH
3752do
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 # Account for people who put trailing slashes in PATH elements.
3756case $as_dir/ in #((
3757 ./ | .// | /[cC]/* | \
3758 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3759 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3760 /usr/ucb/* ) ;;
3761 *)
3762 # OSF1 and SCO ODT 3.0 have their own names for install.
3763 # Don't use installbsd from OSF since it installs stuff as root
3764 # by default.
3765 for ac_prog in ginstall scoinst install; do
3766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003767 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003768 if test $ac_prog = install &&
3769 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3770 # AIX install. It has an incompatible calling convention.
3771 :
3772 elif test $ac_prog = install &&
3773 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3774 # program-specific install script used by HP pwplus--don't use.
3775 :
3776 else
3777 rm -rf conftest.one conftest.two conftest.dir
3778 echo one > conftest.one
3779 echo two > conftest.two
3780 mkdir conftest.dir
3781 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3782 test -s conftest.one && test -s conftest.two &&
3783 test -s conftest.dir/conftest.one &&
3784 test -s conftest.dir/conftest.two
3785 then
3786 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3787 break 3
3788 fi
3789 fi
3790 fi
3791 done
3792 done
3793 ;;
3794esac
3795
3796 done
3797IFS=$as_save_IFS
3798
3799rm -rf conftest.one conftest.two conftest.dir
3800
3801fi
3802 if test "${ac_cv_path_install+set}" = set; then
3803 INSTALL=$ac_cv_path_install
3804 else
3805 # As a last resort, use the slow shell script. Don't cache a
3806 # value for INSTALL within a source directory, because that will
3807 # break other packages using the cache if that directory is
3808 # removed, or if the value is a relative name.
3809 INSTALL=$ac_install_sh
3810 fi
3811fi
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3813$as_echo "$INSTALL" >&6; }
3814
3815# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3816# It thinks the first close brace ends the variable substitution.
3817test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3818
3819test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3820
3821test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3822
3823test "$program_prefix" != NONE &&
3824 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3825# Use a double $ so make ignores it.
3826test "$program_suffix" != NONE &&
3827 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3828# Double any \ or $.
3829# By default was `s,x,x', remove it if useless.
3830ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3831program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3832
3833# expand $ac_aux_dir to an absolute path
3834am_aux_dir=`cd $ac_aux_dir && pwd`
3835
3836if test x"${MISSING+set}" != xset; then
3837 case $am_aux_dir in
3838 *\ * | *\ *)
3839 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3840 *)
3841 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3842 esac
3843fi
3844# Use eval to expand $SHELL
3845if eval "$MISSING --run true"; then
3846 am_missing_run="$MISSING --run "
3847else
3848 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3850$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003851fi
3852
3853if test x"${install_sh}" != xset; then
3854 case $am_aux_dir in
3855 *\ * | *\ *)
3856 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3857 *)
3858 install_sh="\${SHELL} $am_aux_dir/install-sh"
3859 esac
3860fi
3861
cristyc0890a62012-07-19 00:18:20 +00003862# Installed binaries are usually stripped using 'strip' when the user
3863# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003864# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003865# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003866if test "$cross_compiling" != no; then
3867 if test -n "$ac_tool_prefix"; then
3868 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3869set dummy ${ac_tool_prefix}strip; ac_word=$2
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003872if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003873 $as_echo_n "(cached) " >&6
3874else
3875 if test -n "$STRIP"; then
3876 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3877else
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003885 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889done
3890 done
3891IFS=$as_save_IFS
3892
3893fi
3894fi
3895STRIP=$ac_cv_prog_STRIP
3896if test -n "$STRIP"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3898$as_echo "$STRIP" >&6; }
3899else
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901$as_echo "no" >&6; }
3902fi
3903
3904
3905fi
3906if test -z "$ac_cv_prog_STRIP"; then
3907 ac_ct_STRIP=$STRIP
3908 # Extract the first word of "strip", so it can be a program name with args.
3909set dummy strip; ac_word=$2
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003912if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003913 $as_echo_n "(cached) " >&6
3914else
3915 if test -n "$ac_ct_STRIP"; then
3916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3917else
3918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH
3920do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003925 ac_cv_prog_ac_ct_STRIP="strip"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929done
3930 done
3931IFS=$as_save_IFS
3932
3933fi
3934fi
3935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3936if test -n "$ac_ct_STRIP"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3938$as_echo "$ac_ct_STRIP" >&6; }
3939else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941$as_echo "no" >&6; }
3942fi
3943
3944 if test "x$ac_ct_STRIP" = x; then
3945 STRIP=":"
3946 else
3947 case $cross_compiling:$ac_tool_warned in
3948yes:)
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3951ac_tool_warned=yes ;;
3952esac
3953 STRIP=$ac_ct_STRIP
3954 fi
3955else
3956 STRIP="$ac_cv_prog_STRIP"
3957fi
3958
3959fi
3960INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3961
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3963$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3964if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003965 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003966 $as_echo_n "(cached) " >&6
3967else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3970do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_prog in mkdir gmkdir; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003975 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003976 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3977 'mkdir (GNU coreutils) '* | \
3978 'mkdir (coreutils) '* | \
3979 'mkdir (fileutils) '4.1*)
3980 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3981 break 3;;
3982 esac
3983 done
3984 done
3985 done
3986IFS=$as_save_IFS
3987
3988fi
3989
3990 test -d ./--version && rmdir ./--version
3991 if test "${ac_cv_path_mkdir+set}" = set; then
3992 MKDIR_P="$ac_cv_path_mkdir -p"
3993 else
3994 # As a last resort, use the slow shell script. Don't cache a
3995 # value for MKDIR_P within a source directory, because that will
3996 # break other packages using the cache if that directory is
3997 # removed, or if the value is a relative name.
3998 MKDIR_P="$ac_install_sh -d"
3999 fi
4000fi
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4002$as_echo "$MKDIR_P" >&6; }
4003
cristy73bd4a52010-10-05 11:24:23 +00004004for ac_prog in gawk mawk nawk awk
4005do
4006 # Extract the first word of "$ac_prog", so it can be a program name with args.
4007set dummy $ac_prog; ac_word=$2
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004010if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004011 $as_echo_n "(cached) " >&6
4012else
4013 if test -n "$AWK"; then
4014 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4015else
4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017for as_dir in $PATH
4018do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004023 ac_cv_prog_AWK="$ac_prog"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4026 fi
4027done
4028 done
4029IFS=$as_save_IFS
4030
4031fi
4032fi
4033AWK=$ac_cv_prog_AWK
4034if test -n "$AWK"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4036$as_echo "$AWK" >&6; }
4037else
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039$as_echo "no" >&6; }
4040fi
4041
4042
4043 test -n "$AWK" && break
4044done
4045
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4047$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4048set x ${MAKE-make}
4049ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004050if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004051 $as_echo_n "(cached) " >&6
4052else
4053 cat >conftest.make <<\_ACEOF
4054SHELL = /bin/sh
4055all:
4056 @echo '@@@%%%=$(MAKE)=@@@%%%'
4057_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004058# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004059case `${MAKE-make} -f conftest.make 2>/dev/null` in
4060 *@@@%%%=?*=@@@%%%*)
4061 eval ac_cv_prog_make_${ac_make}_set=yes;;
4062 *)
4063 eval ac_cv_prog_make_${ac_make}_set=no;;
4064esac
4065rm -f conftest.make
4066fi
4067if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4069$as_echo "yes" >&6; }
4070 SET_MAKE=
4071else
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073$as_echo "no" >&6; }
4074 SET_MAKE="MAKE=${MAKE-make}"
4075fi
4076
4077rm -rf .tst 2>/dev/null
4078mkdir .tst 2>/dev/null
4079if test -d .tst; then
4080 am__leading_dot=.
4081else
4082 am__leading_dot=_
4083fi
4084rmdir .tst 2>/dev/null
4085
cristya448bd22011-10-14 12:38:13 +00004086# Check whether --enable-silent-rules was given.
4087if test "${enable_silent_rules+set}" = set; then :
4088 enableval=$enable_silent_rules;
4089fi
4090
cristyc0890a62012-07-19 00:18:20 +00004091case $enable_silent_rules in # (((
4092 yes) AM_DEFAULT_VERBOSITY=0;;
4093 no) AM_DEFAULT_VERBOSITY=1;;
4094 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004095esac
cristyc3fb77b2012-02-06 01:49:41 +00004096am_make=${MAKE-make}
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4098$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4099if ${am_cv_make_support_nested_variables+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101else
4102 if $as_echo 'TRUE=$(BAR$(V))
4103BAR0=false
4104BAR1=true
4105V=1
4106am__doit:
4107 @$(TRUE)
4108.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4109 am_cv_make_support_nested_variables=yes
4110else
4111 am_cv_make_support_nested_variables=no
4112fi
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4115$as_echo "$am_cv_make_support_nested_variables" >&6; }
4116if test $am_cv_make_support_nested_variables = yes; then
4117 AM_V='$(V)'
4118 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4119else
4120 AM_V=$AM_DEFAULT_VERBOSITY
4121 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4122fi
cristya448bd22011-10-14 12:38:13 +00004123AM_BACKSLASH='\'
4124
cristy73bd4a52010-10-05 11:24:23 +00004125if test "`cd $srcdir && pwd`" != "`pwd`"; then
4126 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4127 # is not polluted with repeated "-I."
4128 am__isrc=' -I$(srcdir)'
4129 # test to see if srcdir already configured
4130 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004131 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004132 fi
4133fi
4134
4135# test whether we have cygpath
4136if test -z "$CYGPATH_W"; then
4137 if (cygpath --version) >/dev/null 2>/dev/null; then
4138 CYGPATH_W='cygpath -w'
4139 else
4140 CYGPATH_W=echo
4141 fi
4142fi
4143
4144
4145# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004146 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004147 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004148
4149
cristya448bd22011-10-14 12:38:13 +00004150cat >>confdefs.h <<_ACEOF
4151#define PACKAGE "$PACKAGE"
4152_ACEOF
4153
4154
4155cat >>confdefs.h <<_ACEOF
4156#define VERSION "$VERSION"
4157_ACEOF
4158
cristy73bd4a52010-10-05 11:24:23 +00004159# Some tools Automake needs.
4160
4161ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4162
4163
4164AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4165
4166
4167AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4168
4169
4170AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4171
4172
4173MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4174
cristyc0890a62012-07-19 00:18:20 +00004175# For better backward compatibility. To be removed once Automake 1.9.x
4176# dies out for good. For more background, see:
4177# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4178# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4179mkdir_p='$(MKDIR_P)'
4180
cristy73bd4a52010-10-05 11:24:23 +00004181# We need awk for the "check" target. The system "awk" is bad on
4182# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004183# Always define AMTAR for backward compatibility. Yes, it's still used
4184# in the wild :-( We should find a proper way to deprecate it ...
4185AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004186
cristyc3fb77b2012-02-06 01:49:41 +00004187am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004188
4189
4190
4191
4192
cristy3ed852e2009-09-05 21:47:34 +00004193
4194# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004195# Check whether --enable-silent-rules was given.
4196if test "${enable_silent_rules+set}" = set; then :
4197 enableval=$enable_silent_rules;
4198fi
4199
cristyc0890a62012-07-19 00:18:20 +00004200case $enable_silent_rules in # (((
4201 yes) AM_DEFAULT_VERBOSITY=0;;
4202 no) AM_DEFAULT_VERBOSITY=1;;
4203 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004204esac
cristyc3fb77b2012-02-06 01:49:41 +00004205am_make=${MAKE-make}
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4207$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4208if ${am_cv_make_support_nested_variables+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210else
4211 if $as_echo 'TRUE=$(BAR$(V))
4212BAR0=false
4213BAR1=true
4214V=1
4215am__doit:
4216 @$(TRUE)
4217.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4218 am_cv_make_support_nested_variables=yes
4219else
4220 am_cv_make_support_nested_variables=no
4221fi
4222fi
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4224$as_echo "$am_cv_make_support_nested_variables" >&6; }
4225if test $am_cv_make_support_nested_variables = yes; then
4226 AM_V='$(V)'
4227 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4228else
4229 AM_V=$AM_DEFAULT_VERBOSITY
4230 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4231fi
cristy73bd4a52010-10-05 11:24:23 +00004232AM_BACKSLASH='\'
4233
cristy3ed852e2009-09-05 21:47:34 +00004234
4235MAGICK_LIB_VERSION="0x"
4236if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4237 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4238fi
4239MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4240if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4241 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4242fi
4243MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4244if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4245 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4246fi
4247MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4248
4249
4250# Definition used to define MagickLibVersionText in version.h
4251MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4252
4253
4254# Definition used to define MagickLibVersionNumber in version.h
4255MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4256
4257
4258# Regenerate config.status if ChangeLog or version.sh is updated.
4259CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4260
4261
4262PERLMAINCC=$CC
4263
4264MAGICK_CFLAGS=''
4265MAGICK_CPPFLAGS=$CPPFLAGS_USER
4266MAGICK_PCFLAGS=$CPPFLAGS_USER
4267MAGICK_LDFLAGS=''
4268MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004269MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004270
4271#
4272# Evaluate shell variable equivalents to Makefile directory variables
4273#
4274if test "x$prefix" = xNONE; then
4275 prefix=$ac_default_prefix
4276fi
4277# Let make expand exec_prefix.
4278if test "x$exec_prefix" = xNONE; then
4279 exec_prefix='${prefix}'
4280fi
4281
4282#
4283eval "eval PREFIX_DIR=${prefix}"
4284
4285eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4286
4287eval "eval BIN_DIR=$bindir"
4288
4289eval "eval SBIN_DIR=$sbindir"
4290
4291eval "eval LIBEXEC_DIR=$libexecdir"
4292
4293eval "eval DATA_DIR=$datadir"
4294
cristy4e65ec22012-04-08 01:33:27 +00004295eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004296
cristy3ed852e2009-09-05 21:47:34 +00004297eval "eval SYSCONF_DIR=$sysconfdir"
4298
4299eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4300
4301eval "eval LOCALSTATE_DIR=$localstatedir"
4302
4303eval "eval LIB_DIR=$libdir"
4304
4305eval "eval INCLUDE_DIR=$includedir"
4306
4307eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4308
4309eval "eval INFO_DIR=$infodir"
4310
4311eval "eval MAN_DIR=$mandir"
4312
4313
4314# Get full paths to source and build directories
4315srcdirfull="`cd $srcdir && pwd`"
4316builddir="`pwd`"
4317
4318#
4319# Compute variables useful for running uninstalled software.
4320#
4321MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4322MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4323MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4324MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4325DIRSEP=':'
4326case "${build_os}" in
4327 mingw* )
4328 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4329 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4330 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4331 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4332 DIRSEP=';'
4333 ;;
4334esac
4335case "${host_os}" in
4336 mingw* )
4337 DIRSEP=';'
4338 ;;
4339esac
4340
4341
4342
4343
4344
4345
cristya0b81c32010-01-22 02:54:33 +00004346
4347#
4348# Enable OS features.
4349#
cristy73bd4a52010-10-05 11:24:23 +00004350DEPDIR="${am__leading_dot}deps"
4351
4352ac_config_commands="$ac_config_commands depfiles"
4353
4354
4355am_make=${MAKE-make}
4356cat > confinc << 'END'
4357am__doit:
4358 @echo this is the am__doit target
4359.PHONY: am__doit
4360END
4361# If we don't find an include directive, just comment out the code.
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4363$as_echo_n "checking for style of include used by $am_make... " >&6; }
4364am__include="#"
4365am__quote=
4366_am_result=none
4367# First try GNU make style include.
4368echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004369# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004370case `$am_make -s -f confmf 2> /dev/null` in #(
4371*the\ am__doit\ target*)
4372 am__include=include
4373 am__quote=
4374 _am_result=GNU
4375 ;;
4376esac
4377# Now try BSD make style include.
4378if test "$am__include" = "#"; then
4379 echo '.include "confinc"' > confmf
4380 case `$am_make -s -f confmf 2> /dev/null` in #(
4381 *the\ am__doit\ target*)
4382 am__include=.include
4383 am__quote="\""
4384 _am_result=BSD
4385 ;;
4386 esac
4387fi
4388
4389
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4391$as_echo "$_am_result" >&6; }
4392rm -f confinc confmf
4393
4394# Check whether --enable-dependency-tracking was given.
4395if test "${enable_dependency_tracking+set}" = set; then :
4396 enableval=$enable_dependency_tracking;
4397fi
4398
4399if test "x$enable_dependency_tracking" != xno; then
4400 am_depcomp="$ac_aux_dir/depcomp"
4401 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004402 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004403fi
4404 if test "x$enable_dependency_tracking" != xno; then
4405 AMDEP_TRUE=
4406 AMDEP_FALSE='#'
4407else
4408 AMDEP_TRUE='#'
4409 AMDEP_FALSE=
4410fi
4411
4412
cristy3ed852e2009-09-05 21:47:34 +00004413ac_ext=c
4414ac_cpp='$CPP $CPPFLAGS'
4415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418if test -n "$ac_tool_prefix"; then
4419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4420set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004422$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004423if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004424 $as_echo_n "(cached) " >&6
4425else
4426 if test -n "$CC"; then
4427 ac_cv_prog_CC="$CC" # Let the user override the test.
4428else
4429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430for as_dir in $PATH
4431do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004434 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004436 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004438 break 2
4439 fi
4440done
cristy8b350f62009-11-15 23:12:43 +00004441 done
cristy3ed852e2009-09-05 21:47:34 +00004442IFS=$as_save_IFS
4443
4444fi
4445fi
4446CC=$ac_cv_prog_CC
4447if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004449$as_echo "$CC" >&6; }
4450else
cristy8b350f62009-11-15 23:12:43 +00004451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004452$as_echo "no" >&6; }
4453fi
4454
4455
4456fi
4457if test -z "$ac_cv_prog_CC"; then
4458 ac_ct_CC=$CC
4459 # Extract the first word of "gcc", so it can be a program name with args.
4460set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004462$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004463if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004464 $as_echo_n "(cached) " >&6
4465else
4466 if test -n "$ac_ct_CC"; then
4467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4468else
4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH
4471do
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004474 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004476 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004478 break 2
4479 fi
4480done
cristy8b350f62009-11-15 23:12:43 +00004481 done
cristy3ed852e2009-09-05 21:47:34 +00004482IFS=$as_save_IFS
4483
4484fi
4485fi
4486ac_ct_CC=$ac_cv_prog_ac_ct_CC
4487if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004489$as_echo "$ac_ct_CC" >&6; }
4490else
cristy8b350f62009-11-15 23:12:43 +00004491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004492$as_echo "no" >&6; }
4493fi
4494
4495 if test "x$ac_ct_CC" = x; then
4496 CC=""
4497 else
4498 case $cross_compiling:$ac_tool_warned in
4499yes:)
cristy8b350f62009-11-15 23:12:43 +00004500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4502ac_tool_warned=yes ;;
4503esac
4504 CC=$ac_ct_CC
4505 fi
4506else
4507 CC="$ac_cv_prog_CC"
4508fi
4509
4510if test -z "$CC"; then
4511 if test -n "$ac_tool_prefix"; then
4512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4513set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004515$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004516if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004517 $as_echo_n "(cached) " >&6
4518else
4519 if test -n "$CC"; then
4520 ac_cv_prog_CC="$CC" # Let the user override the test.
4521else
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004529 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004531 break 2
4532 fi
4533done
cristy8b350f62009-11-15 23:12:43 +00004534 done
cristy3ed852e2009-09-05 21:47:34 +00004535IFS=$as_save_IFS
4536
4537fi
4538fi
4539CC=$ac_cv_prog_CC
4540if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004542$as_echo "$CC" >&6; }
4543else
cristy8b350f62009-11-15 23:12:43 +00004544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004545$as_echo "no" >&6; }
4546fi
4547
4548
4549 fi
4550fi
4551if test -z "$CC"; then
4552 # Extract the first word of "cc", so it can be a program name with args.
4553set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004556if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004557 $as_echo_n "(cached) " >&6
4558else
4559 if test -n "$CC"; then
4560 ac_cv_prog_CC="$CC" # Let the user override the test.
4561else
4562 ac_prog_rejected=no
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004570 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4571 ac_prog_rejected=yes
4572 continue
4573 fi
4574 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004576 break 2
4577 fi
4578done
cristy8b350f62009-11-15 23:12:43 +00004579 done
cristy3ed852e2009-09-05 21:47:34 +00004580IFS=$as_save_IFS
4581
4582if test $ac_prog_rejected = yes; then
4583 # We found a bogon in the path, so make sure we never use it.
4584 set dummy $ac_cv_prog_CC
4585 shift
4586 if test $# != 0; then
4587 # We chose a different compiler from the bogus one.
4588 # However, it has the same basename, so the bogon will be chosen
4589 # first if we set CC to just the basename; use the full file name.
4590 shift
4591 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4592 fi
4593fi
4594fi
4595fi
4596CC=$ac_cv_prog_CC
4597if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004599$as_echo "$CC" >&6; }
4600else
cristy8b350f62009-11-15 23:12:43 +00004601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004602$as_echo "no" >&6; }
4603fi
4604
4605
4606fi
4607if test -z "$CC"; then
4608 if test -n "$ac_tool_prefix"; then
4609 for ac_prog in cl.exe
4610 do
4611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004614$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004615if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004616 $as_echo_n "(cached) " >&6
4617else
4618 if test -n "$CC"; then
4619 ac_cv_prog_CC="$CC" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004626 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004630 break 2
4631 fi
4632done
cristy8b350f62009-11-15 23:12:43 +00004633 done
cristy3ed852e2009-09-05 21:47:34 +00004634IFS=$as_save_IFS
4635
4636fi
4637fi
4638CC=$ac_cv_prog_CC
4639if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004641$as_echo "$CC" >&6; }
4642else
cristy8b350f62009-11-15 23:12:43 +00004643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004644$as_echo "no" >&6; }
4645fi
4646
4647
4648 test -n "$CC" && break
4649 done
4650fi
4651if test -z "$CC"; then
4652 ac_ct_CC=$CC
4653 for ac_prog in cl.exe
4654do
4655 # Extract the first word of "$ac_prog", so it can be a program name with args.
4656set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004659if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004660 $as_echo_n "(cached) " >&6
4661else
4662 if test -n "$ac_ct_CC"; then
4663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004670 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004672 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004674 break 2
4675 fi
4676done
cristy8b350f62009-11-15 23:12:43 +00004677 done
cristy3ed852e2009-09-05 21:47:34 +00004678IFS=$as_save_IFS
4679
4680fi
4681fi
4682ac_ct_CC=$ac_cv_prog_ac_ct_CC
4683if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004685$as_echo "$ac_ct_CC" >&6; }
4686else
cristy8b350f62009-11-15 23:12:43 +00004687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004688$as_echo "no" >&6; }
4689fi
4690
4691
4692 test -n "$ac_ct_CC" && break
4693done
4694
4695 if test "x$ac_ct_CC" = x; then
4696 CC=""
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699yes:)
cristy8b350f62009-11-15 23:12:43 +00004700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702ac_tool_warned=yes ;;
4703esac
4704 CC=$ac_ct_CC
4705 fi
4706fi
4707
4708fi
4709
4710
cristy8b350f62009-11-15 23:12:43 +00004711test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004713as_fn_error $? "no acceptable C compiler found in \$PATH
4714See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004715
4716# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004717$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718set X $ac_compile
4719ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004720for ac_option in --version -v -V -qversion; do
4721 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004722case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4725esac
cristy8b350f62009-11-15 23:12:43 +00004726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4727$as_echo "$ac_try_echo"; } >&5
4728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004729 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004730 if test -s conftest.err; then
4731 sed '10a\
4732... rest of stderr output deleted ...
4733 10q' conftest.err >conftest.er1
4734 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004735 fi
cristycd4c5312009-11-22 01:19:08 +00004736 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4738 test $ac_status = 0; }
4739done
cristy3ed852e2009-09-05 21:47:34 +00004740
cristy8b350f62009-11-15 23:12:43 +00004741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004742/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004743
cristy3ed852e2009-09-05 21:47:34 +00004744int
4745main ()
4746{
4747
4748 ;
4749 return 0;
4750}
4751_ACEOF
4752ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004753ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004754# Try to create an executable without -o first, disregard a.out.
4755# It will help us diagnose broken compilers, and finding out an intuition
4756# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4758$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004759ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4760
4761# The possible output files:
4762ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4763
4764ac_rmfiles=
4765for ac_file in $ac_files
4766do
4767 case $ac_file in
4768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4770 esac
4771done
4772rm -f $ac_rmfiles
4773
cristy8b350f62009-11-15 23:12:43 +00004774if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004775case "(($ac_try" in
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4778esac
cristy8b350f62009-11-15 23:12:43 +00004779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4780$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004781 (eval "$ac_link_default") 2>&5
4782 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4784 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4786# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4787# in a Makefile. We should not override ac_cv_exeext if it was cached,
4788# so that the user can short-circuit this test for compilers unknown to
4789# Autoconf.
4790for ac_file in $ac_files ''
4791do
4792 test -f "$ac_file" || continue
4793 case $ac_file in
4794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4795 ;;
4796 [ab].out )
4797 # We found the default executable, but exeext='' is most
4798 # certainly right.
4799 break;;
4800 *.* )
cristy8b350f62009-11-15 23:12:43 +00004801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004802 then :; else
4803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4804 fi
4805 # We set ac_cv_exeext here because the later test for it is not
4806 # safe: cross compilers may not add the suffix if given an `-o'
4807 # argument, so we may need to know it at that point already.
4808 # Even if this section looks crufty: it has the advantage of
4809 # actually working.
4810 break;;
4811 * )
4812 break;;
4813 esac
4814done
4815test "$ac_cv_exeext" = no && ac_cv_exeext=
4816
4817else
4818 ac_file=''
4819fi
cristy8b350f62009-11-15 23:12:43 +00004820if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822$as_echo "no" >&6; }
4823$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004824sed 's/^/| /' conftest.$ac_ext >&5
4825
cristy8b350f62009-11-15 23:12:43 +00004826{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004828as_fn_error 77 "C compiler cannot create executables
4829See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004830else
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4832$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004833fi
cristycd4c5312009-11-22 01:19:08 +00004834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4835$as_echo_n "checking for C compiler default output file name... " >&6; }
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4837$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004838ac_exeext=$ac_cv_exeext
4839
cristycd4c5312009-11-22 01:19:08 +00004840rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004841ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004843$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004844if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004845case "(($ac_try" in
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4848esac
cristy8b350f62009-11-15 23:12:43 +00004849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4850$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004851 (eval "$ac_link") 2>&5
4852 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4854 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4856# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4857# work properly (i.e., refer to `conftest.exe'), while it won't with
4858# `rm'.
4859for ac_file in conftest.exe conftest conftest.*; do
4860 test -f "$ac_file" || continue
4861 case $ac_file in
4862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4864 break;;
4865 * ) break;;
4866 esac
4867done
4868else
cristy8b350f62009-11-15 23:12:43 +00004869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004871as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4872See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004873fi
cristycd4c5312009-11-22 01:19:08 +00004874rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004876$as_echo "$ac_cv_exeext" >&6; }
4877
4878rm -f conftest.$ac_ext
4879EXEEXT=$ac_cv_exeext
4880ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882/* end confdefs.h. */
4883#include <stdio.h>
4884int
4885main ()
4886{
4887FILE *f = fopen ("conftest.out", "w");
4888 return ferror (f) || fclose (f) != 0;
4889
4890 ;
4891 return 0;
4892}
4893_ACEOF
4894ac_clean_files="$ac_clean_files conftest.out"
4895# Check that the compiler produces executables we can run. If not, either
4896# the compiler is broken, or we cross compile.
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4898$as_echo_n "checking whether we are cross compiling... " >&6; }
4899if test "$cross_compiling" != yes; then
4900 { { ac_try="$ac_link"
4901case "(($ac_try" in
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4904esac
4905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4906$as_echo "$ac_try_echo"; } >&5
4907 (eval "$ac_link") 2>&5
4908 ac_status=$?
4909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4910 test $ac_status = 0; }
4911 if { ac_try='./conftest$ac_cv_exeext'
4912 { { case "(($ac_try" in
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4915esac
4916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4917$as_echo "$ac_try_echo"; } >&5
4918 (eval "$ac_try") 2>&5
4919 ac_status=$?
4920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4921 test $ac_status = 0; }; }; then
4922 cross_compiling=no
4923 else
4924 if test "$cross_compiling" = maybe; then
4925 cross_compiling=yes
4926 else
4927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004929as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004930If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004931See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004932 fi
4933 fi
4934fi
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4936$as_echo "$cross_compiling" >&6; }
4937
4938rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4939ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004941$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004942if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004943 $as_echo_n "(cached) " >&6
4944else
cristy8b350f62009-11-15 23:12:43 +00004945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004946/* end confdefs.h. */
4947
4948int
4949main ()
4950{
4951
4952 ;
4953 return 0;
4954}
4955_ACEOF
4956rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004957if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004958case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961esac
cristy8b350f62009-11-15 23:12:43 +00004962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4963$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004964 (eval "$ac_compile") 2>&5
4965 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4967 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004968 for ac_file in conftest.o conftest.obj conftest.*; do
4969 test -f "$ac_file" || continue;
4970 case $ac_file in
4971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4972 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4973 break;;
4974 esac
4975done
4976else
4977 $as_echo "$as_me: failed program was:" >&5
4978sed 's/^/| /' conftest.$ac_ext >&5
4979
cristy8b350f62009-11-15 23:12:43 +00004980{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004982as_fn_error $? "cannot compute suffix of object files: cannot compile
4983See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004984fi
cristy3ed852e2009-09-05 21:47:34 +00004985rm -f conftest.$ac_cv_objext conftest.$ac_ext
4986fi
cristy8b350f62009-11-15 23:12:43 +00004987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004988$as_echo "$ac_cv_objext" >&6; }
4989OBJEXT=$ac_cv_objext
4990ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004992$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004993if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004994 $as_echo_n "(cached) " >&6
4995else
cristy8b350f62009-11-15 23:12:43 +00004996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004997/* end confdefs.h. */
4998
4999int
5000main ()
5001{
5002#ifndef __GNUC__
5003 choke me
5004#endif
5005
5006 ;
5007 return 0;
5008}
5009_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005010if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005011 ac_compiler_gnu=yes
5012else
cristy8b350f62009-11-15 23:12:43 +00005013 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005014fi
cristy3ed852e2009-09-05 21:47:34 +00005015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016ac_cv_c_compiler_gnu=$ac_compiler_gnu
5017
5018fi
cristy8b350f62009-11-15 23:12:43 +00005019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005020$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5021if test $ac_compiler_gnu = yes; then
5022 GCC=yes
5023else
5024 GCC=
5025fi
5026ac_test_CFLAGS=${CFLAGS+set}
5027ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005029$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005030if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005031 $as_echo_n "(cached) " >&6
5032else
5033 ac_save_c_werror_flag=$ac_c_werror_flag
5034 ac_c_werror_flag=yes
5035 ac_cv_prog_cc_g=no
5036 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005038/* end confdefs.h. */
5039
5040int
5041main ()
5042{
5043
5044 ;
5045 return 0;
5046}
5047_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005048if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005049 ac_cv_prog_cc_g=yes
5050else
cristy8b350f62009-11-15 23:12:43 +00005051 CFLAGS=""
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005053/* end confdefs.h. */
5054
5055int
5056main ()
5057{
5058
5059 ;
5060 return 0;
5061}
5062_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005063if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005064
cristy8b350f62009-11-15 23:12:43 +00005065else
5066 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005067 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
cristy3ed852e2009-09-05 21:47:34 +00005081fi
cristy3ed852e2009-09-05 21:47:34 +00005082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083fi
cristy3ed852e2009-09-05 21:47:34 +00005084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085fi
cristy3ed852e2009-09-05 21:47:34 +00005086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 ac_c_werror_flag=$ac_save_c_werror_flag
5088fi
cristy8b350f62009-11-15 23:12:43 +00005089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005090$as_echo "$ac_cv_prog_cc_g" >&6; }
5091if test "$ac_test_CFLAGS" = set; then
5092 CFLAGS=$ac_save_CFLAGS
5093elif test $ac_cv_prog_cc_g = yes; then
5094 if test "$GCC" = yes; then
5095 CFLAGS="-g -O2"
5096 else
5097 CFLAGS="-g"
5098 fi
5099else
5100 if test "$GCC" = yes; then
5101 CFLAGS="-O2"
5102 else
5103 CFLAGS=
5104 fi
5105fi
cristy8b350f62009-11-15 23:12:43 +00005106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005107$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005108if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005109 $as_echo_n "(cached) " >&6
5110else
5111 ac_cv_prog_cc_c89=no
5112ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005114/* end confdefs.h. */
5115#include <stdarg.h>
5116#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005117struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005118/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5119struct buf { int x; };
5120FILE * (*rcsopen) (struct buf *, struct stat *, int);
5121static char *e (p, i)
5122 char **p;
5123 int i;
5124{
5125 return p[i];
5126}
5127static char *f (char * (*g) (char **, int), char **p, ...)
5128{
5129 char *s;
5130 va_list v;
5131 va_start (v,p);
5132 s = g (p, va_arg (v,int));
5133 va_end (v);
5134 return s;
5135}
5136
5137/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5138 function prototypes and stuff, but not '\xHH' hex character constants.
5139 These don't provoke an error unfortunately, instead are silently treated
5140 as 'x'. The following induces an error, until -std is added to get
5141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5142 array size at least. It's necessary to write '\x00'==0 to get something
5143 that's true only with -std. */
5144int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5145
5146/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5147 inside strings and character constants. */
5148#define FOO(x) 'x'
5149int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5150
5151int test (int i, double x);
5152struct s1 {int (*f) (int a);};
5153struct s2 {int (*f) (double a);};
5154int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5155int argc;
5156char **argv;
5157int
5158main ()
5159{
5160return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5161 ;
5162 return 0;
5163}
5164_ACEOF
5165for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5166 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5167do
5168 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005169 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005170 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005171fi
cristy3ed852e2009-09-05 21:47:34 +00005172rm -f core conftest.err conftest.$ac_objext
5173 test "x$ac_cv_prog_cc_c89" != "xno" && break
5174done
5175rm -f conftest.$ac_ext
5176CC=$ac_save_CC
5177
5178fi
5179# AC_CACHE_VAL
5180case "x$ac_cv_prog_cc_c89" in
5181 x)
cristy8b350f62009-11-15 23:12:43 +00005182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005183$as_echo "none needed" >&6; } ;;
5184 xno)
cristy8b350f62009-11-15 23:12:43 +00005185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005186$as_echo "unsupported" >&6; } ;;
5187 *)
5188 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005190$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5191esac
cristy8b350f62009-11-15 23:12:43 +00005192if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005193
cristy8b350f62009-11-15 23:12:43 +00005194fi
cristy3ed852e2009-09-05 21:47:34 +00005195
5196ac_ext=c
5197ac_cpp='$CPP $CPPFLAGS'
5198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005201
cristy73bd4a52010-10-05 11:24:23 +00005202depcc="$CC" am_compiler_list=
5203
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5205$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005206if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005207 $as_echo_n "(cached) " >&6
5208else
5209 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5210 # We make a subdir and do the tests there. Otherwise we can end up
5211 # making bogus files that we don't know about and never remove. For
5212 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005213 # making a dummy file named 'D' -- because '-MD' means "put the output
5214 # in D".
cristy7247bba2012-02-05 16:37:27 +00005215 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005216 mkdir conftest.dir
5217 # Copy depcomp to subdir because otherwise we won't find it if we're
5218 # using a relative directory.
5219 cp "$am_depcomp" conftest.dir
5220 cd conftest.dir
5221 # We will build objects and dependencies in a subdirectory because
5222 # it helps to detect inapplicable dependency modes. For instance
5223 # both Tru64's cc and ICC support -MD to output dependencies as a
5224 # side effect of compilation, but ICC will put the dependencies in
5225 # the current directory while Tru64 will put them in the object
5226 # directory.
5227 mkdir sub
5228
5229 am_cv_CC_dependencies_compiler_type=none
5230 if test "$am_compiler_list" = ""; then
5231 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5232 fi
5233 am__universal=false
5234 case " $depcc " in #(
5235 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5236 esac
5237
5238 for depmode in $am_compiler_list; do
5239 # Setup a source with many dependencies, because some compilers
5240 # like to wrap large dependency lists on column 80 (with \), and
5241 # we should not choose a depcomp mode which is confused by this.
5242 #
5243 # We need to recreate these files for each test, as the compiler may
5244 # overwrite some of them when testing with obscure command lines.
5245 # This happens at least with the AIX C compiler.
5246 : > sub/conftest.c
5247 for i in 1 2 3 4 5 6; do
5248 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005249 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5250 # Solaris 10 /bin/sh.
5251 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005252 done
5253 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5254
cristyc0890a62012-07-19 00:18:20 +00005255 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005256 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005257 # handle '-M -o', and we need to detect this. Also, some Intel
5258 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005259 am__obj=sub/conftest.${OBJEXT-o}
5260 am__minus_obj="-o $am__obj"
5261 case $depmode in
5262 gcc)
5263 # This depmode causes a compiler race in universal mode.
5264 test "$am__universal" = false || continue
5265 ;;
5266 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005267 # After this tag, mechanisms are not by side-effect, so they'll
5268 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005269 if test "x$enable_dependency_tracking" = xyes; then
5270 continue
5271 else
5272 break
5273 fi
5274 ;;
cristy7247bba2012-02-05 16:37:27 +00005275 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005276 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005277 # not run yet. These depmodes are late enough in the game, and
5278 # so weak that their functioning should not be impacted.
5279 am__obj=conftest.${OBJEXT-o}
5280 am__minus_obj=
5281 ;;
5282 none) break ;;
5283 esac
5284 if depmode=$depmode \
5285 source=sub/conftest.c object=$am__obj \
5286 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5287 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5288 >/dev/null 2>conftest.err &&
5289 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5290 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5291 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5292 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5293 # icc doesn't choke on unknown options, it will just issue warnings
5294 # or remarks (even with -Werror). So we grep stderr for any message
5295 # that says an option was ignored or not supported.
5296 # When given -MP, icc 7.0 and 7.1 complain thusly:
5297 # icc: Command line warning: ignoring option '-M'; no argument required
5298 # The diagnosis changed in icc 8.0:
5299 # icc: Command line remark: option '-MP' not supported
5300 if (grep 'ignoring option' conftest.err ||
5301 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5302 am_cv_CC_dependencies_compiler_type=$depmode
5303 break
5304 fi
5305 fi
5306 done
5307
5308 cd ..
5309 rm -rf conftest.dir
5310else
5311 am_cv_CC_dependencies_compiler_type=none
5312fi
5313
5314fi
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5316$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5317CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5318
5319 if
5320 test "x$enable_dependency_tracking" != xno \
5321 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5322 am__fastdepCC_TRUE=
5323 am__fastdepCC_FALSE='#'
5324else
5325 am__fastdepCC_TRUE='#'
5326 am__fastdepCC_FALSE=
5327fi
5328
5329
cristy3ed852e2009-09-05 21:47:34 +00005330
cristya0b81c32010-01-22 02:54:33 +00005331ac_ext=c
5332ac_cpp='$CPP $CPPFLAGS'
5333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335ac_compiler_gnu=$ac_cv_c_compiler_gnu
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5337$as_echo_n "checking how to run the C preprocessor... " >&6; }
5338# On Suns, sometimes $CPP names a directory.
5339if test -n "$CPP" && test -d "$CPP"; then
5340 CPP=
5341fi
5342if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005343 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005344 $as_echo_n "(cached) " >&6
5345else
5346 # Double quotes because CPP needs to be expanded
5347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5348 do
5349 ac_preproc_ok=false
5350for ac_c_preproc_warn_flag in '' yes
5351do
5352 # Use a header file that comes with gcc, so configuring glibc
5353 # with a fresh cross-compiler works.
5354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5355 # <limits.h> exists even on freestanding compilers.
5356 # On the NeXT, cc -E runs the code through the compiler's parser,
5357 # not just through cpp. "Syntax error" is here to catch this case.
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359/* end confdefs.h. */
5360#ifdef __STDC__
5361# include <limits.h>
5362#else
5363# include <assert.h>
5364#endif
5365 Syntax error
5366_ACEOF
5367if ac_fn_c_try_cpp "$LINENO"; then :
5368
5369else
5370 # Broken: fails on valid input.
5371continue
5372fi
cristyda16f162011-02-19 23:52:17 +00005373rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005374
5375 # OK, works on sane cases. Now check whether nonexistent headers
5376 # can be detected and how.
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h. */
5379#include <ac_nonexistent.h>
5380_ACEOF
5381if ac_fn_c_try_cpp "$LINENO"; then :
5382 # Broken: success on invalid input.
5383continue
5384else
5385 # Passes both tests.
5386ac_preproc_ok=:
5387break
5388fi
cristyda16f162011-02-19 23:52:17 +00005389rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005390
5391done
5392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005393rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005394if $ac_preproc_ok; then :
5395 break
5396fi
5397
5398 done
5399 ac_cv_prog_CPP=$CPP
5400
5401fi
5402 CPP=$ac_cv_prog_CPP
5403else
5404 ac_cv_prog_CPP=$CPP
5405fi
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5407$as_echo "$CPP" >&6; }
5408ac_preproc_ok=false
5409for ac_c_preproc_warn_flag in '' yes
5410do
5411 # Use a header file that comes with gcc, so configuring glibc
5412 # with a fresh cross-compiler works.
5413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5414 # <limits.h> exists even on freestanding compilers.
5415 # On the NeXT, cc -E runs the code through the compiler's parser,
5416 # not just through cpp. "Syntax error" is here to catch this case.
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418/* end confdefs.h. */
5419#ifdef __STDC__
5420# include <limits.h>
5421#else
5422# include <assert.h>
5423#endif
5424 Syntax error
5425_ACEOF
5426if ac_fn_c_try_cpp "$LINENO"; then :
5427
5428else
5429 # Broken: fails on valid input.
5430continue
5431fi
cristyda16f162011-02-19 23:52:17 +00005432rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005433
5434 # OK, works on sane cases. Now check whether nonexistent headers
5435 # can be detected and how.
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437/* end confdefs.h. */
5438#include <ac_nonexistent.h>
5439_ACEOF
5440if ac_fn_c_try_cpp "$LINENO"; then :
5441 # Broken: success on invalid input.
5442continue
5443else
5444 # Passes both tests.
5445ac_preproc_ok=:
5446break
5447fi
cristyda16f162011-02-19 23:52:17 +00005448rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005449
5450done
5451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005452rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005453if $ac_preproc_ok; then :
5454
5455else
5456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005458as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5459See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005460fi
5461
5462ac_ext=c
5463ac_cpp='$CPP $CPPFLAGS'
5464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466ac_compiler_gnu=$ac_cv_c_compiler_gnu
5467
5468
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5470$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005471if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005472 $as_echo_n "(cached) " >&6
5473else
5474 if test -z "$GREP"; then
5475 ac_path_GREP_found=false
5476 # Loop through the user's path and test for each of PROGNAME-LIST
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5479do
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 for ac_prog in grep ggrep; do
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005485 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005486# Check for GNU ac_path_GREP and select it if it is found.
5487 # Check for GNU $ac_path_GREP
5488case `"$ac_path_GREP" --version 2>&1` in
5489*GNU*)
5490 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5491*)
5492 ac_count=0
5493 $as_echo_n 0123456789 >"conftest.in"
5494 while :
5495 do
5496 cat "conftest.in" "conftest.in" >"conftest.tmp"
5497 mv "conftest.tmp" "conftest.in"
5498 cp "conftest.in" "conftest.nl"
5499 $as_echo 'GREP' >> "conftest.nl"
5500 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5502 as_fn_arith $ac_count + 1 && ac_count=$as_val
5503 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5504 # Best one so far, save it but keep looking for a better one
5505 ac_cv_path_GREP="$ac_path_GREP"
5506 ac_path_GREP_max=$ac_count
5507 fi
5508 # 10*(2^10) chars as input seems more than enough
5509 test $ac_count -gt 10 && break
5510 done
5511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5512esac
5513
5514 $ac_path_GREP_found && break 3
5515 done
5516 done
5517 done
5518IFS=$as_save_IFS
5519 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005520 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005521 fi
5522else
5523 ac_cv_path_GREP=$GREP
5524fi
5525
5526fi
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5528$as_echo "$ac_cv_path_GREP" >&6; }
5529 GREP="$ac_cv_path_GREP"
5530
5531
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5533$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005534if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005535 $as_echo_n "(cached) " >&6
5536else
5537 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5538 then ac_cv_path_EGREP="$GREP -E"
5539 else
5540 if test -z "$EGREP"; then
5541 ac_path_EGREP_found=false
5542 # Loop through the user's path and test for each of PROGNAME-LIST
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5545do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_prog in egrep; do
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005551 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005552# Check for GNU ac_path_EGREP and select it if it is found.
5553 # Check for GNU $ac_path_EGREP
5554case `"$ac_path_EGREP" --version 2>&1` in
5555*GNU*)
5556 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5557*)
5558 ac_count=0
5559 $as_echo_n 0123456789 >"conftest.in"
5560 while :
5561 do
5562 cat "conftest.in" "conftest.in" >"conftest.tmp"
5563 mv "conftest.tmp" "conftest.in"
5564 cp "conftest.in" "conftest.nl"
5565 $as_echo 'EGREP' >> "conftest.nl"
5566 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5567 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5568 as_fn_arith $ac_count + 1 && ac_count=$as_val
5569 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5570 # Best one so far, save it but keep looking for a better one
5571 ac_cv_path_EGREP="$ac_path_EGREP"
5572 ac_path_EGREP_max=$ac_count
5573 fi
5574 # 10*(2^10) chars as input seems more than enough
5575 test $ac_count -gt 10 && break
5576 done
5577 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5578esac
5579
5580 $ac_path_EGREP_found && break 3
5581 done
5582 done
5583 done
5584IFS=$as_save_IFS
5585 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005586 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005587 fi
5588else
5589 ac_cv_path_EGREP=$EGREP
5590fi
5591
5592 fi
5593fi
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5595$as_echo "$ac_cv_path_EGREP" >&6; }
5596 EGREP="$ac_cv_path_EGREP"
5597
5598
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5600$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005601if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005602 $as_echo_n "(cached) " >&6
5603else
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605/* end confdefs.h. */
5606#include <stdlib.h>
5607#include <stdarg.h>
5608#include <string.h>
5609#include <float.h>
5610
5611int
5612main ()
5613{
5614
5615 ;
5616 return 0;
5617}
5618_ACEOF
5619if ac_fn_c_try_compile "$LINENO"; then :
5620 ac_cv_header_stdc=yes
5621else
5622 ac_cv_header_stdc=no
5623fi
5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625
5626if test $ac_cv_header_stdc = yes; then
5627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629/* end confdefs.h. */
5630#include <string.h>
5631
5632_ACEOF
5633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5634 $EGREP "memchr" >/dev/null 2>&1; then :
5635
5636else
5637 ac_cv_header_stdc=no
5638fi
5639rm -f conftest*
5640
5641fi
5642
5643if test $ac_cv_header_stdc = yes; then
5644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646/* end confdefs.h. */
5647#include <stdlib.h>
5648
5649_ACEOF
5650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651 $EGREP "free" >/dev/null 2>&1; then :
5652
5653else
5654 ac_cv_header_stdc=no
5655fi
5656rm -f conftest*
5657
5658fi
5659
5660if test $ac_cv_header_stdc = yes; then
5661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5662 if test "$cross_compiling" = yes; then :
5663 :
5664else
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666/* end confdefs.h. */
5667#include <ctype.h>
5668#include <stdlib.h>
5669#if ((' ' & 0x0FF) == 0x020)
5670# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5671# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5672#else
5673# define ISLOWER(c) \
5674 (('a' <= (c) && (c) <= 'i') \
5675 || ('j' <= (c) && (c) <= 'r') \
5676 || ('s' <= (c) && (c) <= 'z'))
5677# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5678#endif
5679
5680#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5681int
5682main ()
5683{
5684 int i;
5685 for (i = 0; i < 256; i++)
5686 if (XOR (islower (i), ISLOWER (i))
5687 || toupper (i) != TOUPPER (i))
5688 return 2;
5689 return 0;
5690}
5691_ACEOF
5692if ac_fn_c_try_run "$LINENO"; then :
5693
5694else
5695 ac_cv_header_stdc=no
5696fi
5697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5698 conftest.$ac_objext conftest.beam conftest.$ac_ext
5699fi
5700
5701fi
5702fi
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5704$as_echo "$ac_cv_header_stdc" >&6; }
5705if test $ac_cv_header_stdc = yes; then
5706
5707$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5708
5709fi
5710
5711# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5712for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5713 inttypes.h stdint.h unistd.h
5714do :
5715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5716ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5717"
cristy98dddb52010-11-04 00:30:15 +00005718if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005719 cat >>confdefs.h <<_ACEOF
5720#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5721_ACEOF
5722
5723fi
5724
5725done
5726
5727
5728
5729 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 +00005730if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005731 MINIX=yes
5732else
5733 MINIX=
5734fi
5735
5736
5737 if test "$MINIX" = yes; then
5738
5739$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5740
5741
5742$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5743
5744
5745$as_echo "#define _MINIX 1" >>confdefs.h
5746
5747 fi
5748
5749
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5751$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005752if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005753 $as_echo_n "(cached) " >&6
5754else
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756/* end confdefs.h. */
5757
cristy14fefe52012-05-21 00:59:18 +00005758# define __EXTENSIONS__ 1
5759 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005760int
5761main ()
5762{
5763
5764 ;
5765 return 0;
5766}
5767_ACEOF
5768if ac_fn_c_try_compile "$LINENO"; then :
5769 ac_cv_safe_to_define___extensions__=yes
5770else
5771 ac_cv_safe_to_define___extensions__=no
5772fi
5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774fi
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5776$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5777 test $ac_cv_safe_to_define___extensions__ = yes &&
5778 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5779
5780 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5781
5782 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5783
5784 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5785
5786 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5787
5788
5789
5790# Check for programs
5791ac_ext=c
5792ac_cpp='$CPP $CPPFLAGS'
5793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795ac_compiler_gnu=$ac_cv_c_compiler_gnu
5796if test -n "$ac_tool_prefix"; then
5797 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5798set dummy ${ac_tool_prefix}gcc; ac_word=$2
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005801if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005802 $as_echo_n "(cached) " >&6
5803else
5804 if test -n "$CC"; then
5805 ac_cv_prog_CC="$CC" # Let the user override the test.
5806else
5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005814 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818done
5819 done
5820IFS=$as_save_IFS
5821
5822fi
5823fi
5824CC=$ac_cv_prog_CC
5825if test -n "$CC"; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5827$as_echo "$CC" >&6; }
5828else
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830$as_echo "no" >&6; }
5831fi
5832
5833
5834fi
5835if test -z "$ac_cv_prog_CC"; then
5836 ac_ct_CC=$CC
5837 # Extract the first word of "gcc", so it can be a program name with args.
5838set dummy gcc; ac_word=$2
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005841if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005842 $as_echo_n "(cached) " >&6
5843else
5844 if test -n "$ac_ct_CC"; then
5845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005854 ac_cv_prog_ac_ct_CC="gcc"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858done
5859 done
5860IFS=$as_save_IFS
5861
5862fi
5863fi
5864ac_ct_CC=$ac_cv_prog_ac_ct_CC
5865if test -n "$ac_ct_CC"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5867$as_echo "$ac_ct_CC" >&6; }
5868else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870$as_echo "no" >&6; }
5871fi
5872
5873 if test "x$ac_ct_CC" = x; then
5874 CC=""
5875 else
5876 case $cross_compiling:$ac_tool_warned in
5877yes:)
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5880ac_tool_warned=yes ;;
5881esac
5882 CC=$ac_ct_CC
5883 fi
5884else
5885 CC="$ac_cv_prog_CC"
5886fi
5887
5888if test -z "$CC"; then
5889 if test -n "$ac_tool_prefix"; then
5890 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5891set dummy ${ac_tool_prefix}cc; ac_word=$2
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005894if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005895 $as_echo_n "(cached) " >&6
5896else
5897 if test -n "$CC"; then
5898 ac_cv_prog_CC="$CC" # Let the user override the test.
5899else
5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901for as_dir in $PATH
5902do
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005907 ac_cv_prog_CC="${ac_tool_prefix}cc"
5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5910 fi
5911done
5912 done
5913IFS=$as_save_IFS
5914
5915fi
5916fi
5917CC=$ac_cv_prog_CC
5918if test -n "$CC"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5920$as_echo "$CC" >&6; }
5921else
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923$as_echo "no" >&6; }
5924fi
5925
5926
5927 fi
5928fi
5929if test -z "$CC"; then
5930 # Extract the first word of "cc", so it can be a program name with args.
5931set dummy cc; ac_word=$2
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005934if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005935 $as_echo_n "(cached) " >&6
5936else
5937 if test -n "$CC"; then
5938 ac_cv_prog_CC="$CC" # Let the user override the test.
5939else
5940 ac_prog_rejected=no
5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942for as_dir in $PATH
5943do
5944 IFS=$as_save_IFS
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005948 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5949 ac_prog_rejected=yes
5950 continue
5951 fi
5952 ac_cv_prog_CC="cc"
5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5955 fi
5956done
5957 done
5958IFS=$as_save_IFS
5959
5960if test $ac_prog_rejected = yes; then
5961 # We found a bogon in the path, so make sure we never use it.
5962 set dummy $ac_cv_prog_CC
5963 shift
5964 if test $# != 0; then
5965 # We chose a different compiler from the bogus one.
5966 # However, it has the same basename, so the bogon will be chosen
5967 # first if we set CC to just the basename; use the full file name.
5968 shift
5969 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5970 fi
5971fi
5972fi
5973fi
5974CC=$ac_cv_prog_CC
5975if test -n "$CC"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5977$as_echo "$CC" >&6; }
5978else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980$as_echo "no" >&6; }
5981fi
5982
5983
5984fi
5985if test -z "$CC"; then
5986 if test -n "$ac_tool_prefix"; then
5987 for ac_prog in cl.exe
5988 do
5989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5990set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005993if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005994 $as_echo_n "(cached) " >&6
5995else
5996 if test -n "$CC"; then
5997 ac_cv_prog_CC="$CC" # Let the user override the test.
5998else
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010done
6011 done
6012IFS=$as_save_IFS
6013
6014fi
6015fi
6016CC=$ac_cv_prog_CC
6017if test -n "$CC"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6019$as_echo "$CC" >&6; }
6020else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022$as_echo "no" >&6; }
6023fi
6024
6025
6026 test -n "$CC" && break
6027 done
6028fi
6029if test -z "$CC"; then
6030 ac_ct_CC=$CC
6031 for ac_prog in cl.exe
6032do
6033 # Extract the first word of "$ac_prog", so it can be a program name with args.
6034set dummy $ac_prog; ac_word=$2
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006037if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006038 $as_echo_n "(cached) " >&6
6039else
6040 if test -n "$ac_ct_CC"; then
6041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6042else
6043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044for as_dir in $PATH
6045do
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006050 ac_cv_prog_ac_ct_CC="$ac_prog"
6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6053 fi
6054done
6055 done
6056IFS=$as_save_IFS
6057
6058fi
6059fi
6060ac_ct_CC=$ac_cv_prog_ac_ct_CC
6061if test -n "$ac_ct_CC"; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6063$as_echo "$ac_ct_CC" >&6; }
6064else
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066$as_echo "no" >&6; }
6067fi
6068
6069
6070 test -n "$ac_ct_CC" && break
6071done
6072
6073 if test "x$ac_ct_CC" = x; then
6074 CC=""
6075 else
6076 case $cross_compiling:$ac_tool_warned in
6077yes:)
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6080ac_tool_warned=yes ;;
6081esac
6082 CC=$ac_ct_CC
6083 fi
6084fi
6085
6086fi
6087
6088
6089test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006091as_fn_error $? "no acceptable C compiler found in \$PATH
6092See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006093
6094# Provide some information about the compiler.
6095$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6096set X $ac_compile
6097ac_compiler=$2
6098for ac_option in --version -v -V -qversion; do
6099 { { ac_try="$ac_compiler $ac_option >&5"
6100case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103esac
6104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6105$as_echo "$ac_try_echo"; } >&5
6106 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6107 ac_status=$?
6108 if test -s conftest.err; then
6109 sed '10a\
6110... rest of stderr output deleted ...
6111 10q' conftest.err >conftest.er1
6112 cat conftest.er1 >&5
6113 fi
6114 rm -f conftest.er1 conftest.err
6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116 test $ac_status = 0; }
6117done
6118
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6120$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006121if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006122 $as_echo_n "(cached) " >&6
6123else
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125/* end confdefs.h. */
6126
6127int
6128main ()
6129{
6130#ifndef __GNUC__
6131 choke me
6132#endif
6133
6134 ;
6135 return 0;
6136}
6137_ACEOF
6138if ac_fn_c_try_compile "$LINENO"; then :
6139 ac_compiler_gnu=yes
6140else
6141 ac_compiler_gnu=no
6142fi
6143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144ac_cv_c_compiler_gnu=$ac_compiler_gnu
6145
6146fi
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6148$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6149if test $ac_compiler_gnu = yes; then
6150 GCC=yes
6151else
6152 GCC=
6153fi
6154ac_test_CFLAGS=${CFLAGS+set}
6155ac_save_CFLAGS=$CFLAGS
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6157$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006158if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006159 $as_echo_n "(cached) " >&6
6160else
6161 ac_save_c_werror_flag=$ac_c_werror_flag
6162 ac_c_werror_flag=yes
6163 ac_cv_prog_cc_g=no
6164 CFLAGS="-g"
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166/* end confdefs.h. */
6167
6168int
6169main ()
6170{
6171
6172 ;
6173 return 0;
6174}
6175_ACEOF
6176if ac_fn_c_try_compile "$LINENO"; then :
6177 ac_cv_prog_cc_g=yes
6178else
6179 CFLAGS=""
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181/* end confdefs.h. */
6182
6183int
6184main ()
6185{
6186
6187 ;
6188 return 0;
6189}
6190_ACEOF
6191if ac_fn_c_try_compile "$LINENO"; then :
6192
6193else
6194 ac_c_werror_flag=$ac_save_c_werror_flag
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
6209fi
6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213fi
6214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 ac_c_werror_flag=$ac_save_c_werror_flag
6216fi
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6218$as_echo "$ac_cv_prog_cc_g" >&6; }
6219if test "$ac_test_CFLAGS" = set; then
6220 CFLAGS=$ac_save_CFLAGS
6221elif test $ac_cv_prog_cc_g = yes; then
6222 if test "$GCC" = yes; then
6223 CFLAGS="-g -O2"
6224 else
6225 CFLAGS="-g"
6226 fi
6227else
6228 if test "$GCC" = yes; then
6229 CFLAGS="-O2"
6230 else
6231 CFLAGS=
6232 fi
6233fi
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6235$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006236if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006237 $as_echo_n "(cached) " >&6
6238else
6239 ac_cv_prog_cc_c89=no
6240ac_save_CC=$CC
6241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242/* end confdefs.h. */
6243#include <stdarg.h>
6244#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006245struct stat;
cristya0b81c32010-01-22 02:54:33 +00006246/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6247struct buf { int x; };
6248FILE * (*rcsopen) (struct buf *, struct stat *, int);
6249static char *e (p, i)
6250 char **p;
6251 int i;
6252{
6253 return p[i];
6254}
6255static char *f (char * (*g) (char **, int), char **p, ...)
6256{
6257 char *s;
6258 va_list v;
6259 va_start (v,p);
6260 s = g (p, va_arg (v,int));
6261 va_end (v);
6262 return s;
6263}
6264
6265/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6266 function prototypes and stuff, but not '\xHH' hex character constants.
6267 These don't provoke an error unfortunately, instead are silently treated
6268 as 'x'. The following induces an error, until -std is added to get
6269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6270 array size at least. It's necessary to write '\x00'==0 to get something
6271 that's true only with -std. */
6272int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6273
6274/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6275 inside strings and character constants. */
6276#define FOO(x) 'x'
6277int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6278
6279int test (int i, double x);
6280struct s1 {int (*f) (int a);};
6281struct s2 {int (*f) (double a);};
6282int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6283int argc;
6284char **argv;
6285int
6286main ()
6287{
6288return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6289 ;
6290 return 0;
6291}
6292_ACEOF
6293for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6295do
6296 CC="$ac_save_CC $ac_arg"
6297 if ac_fn_c_try_compile "$LINENO"; then :
6298 ac_cv_prog_cc_c89=$ac_arg
6299fi
6300rm -f core conftest.err conftest.$ac_objext
6301 test "x$ac_cv_prog_cc_c89" != "xno" && break
6302done
6303rm -f conftest.$ac_ext
6304CC=$ac_save_CC
6305
6306fi
6307# AC_CACHE_VAL
6308case "x$ac_cv_prog_cc_c89" in
6309 x)
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6311$as_echo "none needed" >&6; } ;;
6312 xno)
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6314$as_echo "unsupported" >&6; } ;;
6315 *)
6316 CC="$CC $ac_cv_prog_cc_c89"
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6318$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6319esac
6320if test "x$ac_cv_prog_cc_c89" != xno; then :
6321
6322fi
6323
6324ac_ext=c
6325ac_cpp='$CPP $CPPFLAGS'
6326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6328ac_compiler_gnu=$ac_cv_c_compiler_gnu
6329
cristy73bd4a52010-10-05 11:24:23 +00006330depcc="$CC" am_compiler_list=
6331
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6333$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006334if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006335 $as_echo_n "(cached) " >&6
6336else
6337 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6338 # We make a subdir and do the tests there. Otherwise we can end up
6339 # making bogus files that we don't know about and never remove. For
6340 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006341 # making a dummy file named 'D' -- because '-MD' means "put the output
6342 # in D".
cristy7247bba2012-02-05 16:37:27 +00006343 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006344 mkdir conftest.dir
6345 # Copy depcomp to subdir because otherwise we won't find it if we're
6346 # using a relative directory.
6347 cp "$am_depcomp" conftest.dir
6348 cd conftest.dir
6349 # We will build objects and dependencies in a subdirectory because
6350 # it helps to detect inapplicable dependency modes. For instance
6351 # both Tru64's cc and ICC support -MD to output dependencies as a
6352 # side effect of compilation, but ICC will put the dependencies in
6353 # the current directory while Tru64 will put them in the object
6354 # directory.
6355 mkdir sub
6356
6357 am_cv_CC_dependencies_compiler_type=none
6358 if test "$am_compiler_list" = ""; then
6359 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6360 fi
6361 am__universal=false
6362 case " $depcc " in #(
6363 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6364 esac
6365
6366 for depmode in $am_compiler_list; do
6367 # Setup a source with many dependencies, because some compilers
6368 # like to wrap large dependency lists on column 80 (with \), and
6369 # we should not choose a depcomp mode which is confused by this.
6370 #
6371 # We need to recreate these files for each test, as the compiler may
6372 # overwrite some of them when testing with obscure command lines.
6373 # This happens at least with the AIX C compiler.
6374 : > sub/conftest.c
6375 for i in 1 2 3 4 5 6; do
6376 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006377 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6378 # Solaris 10 /bin/sh.
6379 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006380 done
6381 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6382
cristyc0890a62012-07-19 00:18:20 +00006383 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006384 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006385 # handle '-M -o', and we need to detect this. Also, some Intel
6386 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006387 am__obj=sub/conftest.${OBJEXT-o}
6388 am__minus_obj="-o $am__obj"
6389 case $depmode in
6390 gcc)
6391 # This depmode causes a compiler race in universal mode.
6392 test "$am__universal" = false || continue
6393 ;;
6394 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006395 # After this tag, mechanisms are not by side-effect, so they'll
6396 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006397 if test "x$enable_dependency_tracking" = xyes; then
6398 continue
6399 else
6400 break
6401 fi
6402 ;;
cristy7247bba2012-02-05 16:37:27 +00006403 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006404 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006405 # not run yet. These depmodes are late enough in the game, and
6406 # so weak that their functioning should not be impacted.
6407 am__obj=conftest.${OBJEXT-o}
6408 am__minus_obj=
6409 ;;
6410 none) break ;;
6411 esac
6412 if depmode=$depmode \
6413 source=sub/conftest.c object=$am__obj \
6414 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6415 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6416 >/dev/null 2>conftest.err &&
6417 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6418 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6419 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6420 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6421 # icc doesn't choke on unknown options, it will just issue warnings
6422 # or remarks (even with -Werror). So we grep stderr for any message
6423 # that says an option was ignored or not supported.
6424 # When given -MP, icc 7.0 and 7.1 complain thusly:
6425 # icc: Command line warning: ignoring option '-M'; no argument required
6426 # The diagnosis changed in icc 8.0:
6427 # icc: Command line remark: option '-MP' not supported
6428 if (grep 'ignoring option' conftest.err ||
6429 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6430 am_cv_CC_dependencies_compiler_type=$depmode
6431 break
6432 fi
6433 fi
6434 done
6435
6436 cd ..
6437 rm -rf conftest.dir
6438else
6439 am_cv_CC_dependencies_compiler_type=none
6440fi
6441
6442fi
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6444$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6445CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6446
6447 if
6448 test "x$enable_dependency_tracking" != xno \
6449 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6450 am__fastdepCC_TRUE=
6451 am__fastdepCC_FALSE='#'
6452else
6453 am__fastdepCC_TRUE='#'
6454 am__fastdepCC_FALSE=
6455fi
6456
6457
cristy95646052009-11-28 23:05:30 +00006458ac_ext=cpp
6459ac_cpp='$CXXCPP $CPPFLAGS'
6460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6463if test -z "$CXX"; then
6464 if test -n "$CCC"; then
6465 CXX=$CCC
6466 else
6467 if test -n "$ac_tool_prefix"; then
6468 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6469 do
6470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6471set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006474if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006475 $as_echo_n "(cached) " >&6
6476else
6477 if test -n "$CXX"; then
6478 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006487 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491done
6492 done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497CXX=$ac_cv_prog_CXX
6498if test -n "$CXX"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6500$as_echo "$CXX" >&6; }
6501else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506
6507 test -n "$CXX" && break
6508 done
6509fi
6510if test -z "$CXX"; then
6511 ac_ct_CXX=$CXX
6512 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6513do
6514 # Extract the first word of "$ac_prog", so it can be a program name with args.
6515set dummy $ac_prog; ac_word=$2
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006518if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006519 $as_echo_n "(cached) " >&6
6520else
6521 if test -n "$ac_ct_CXX"; then
6522 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6523else
6524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006531 ac_cv_prog_ac_ct_CXX="$ac_prog"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535done
6536 done
6537IFS=$as_save_IFS
6538
6539fi
6540fi
6541ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6542if test -n "$ac_ct_CXX"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6544$as_echo "$ac_ct_CXX" >&6; }
6545else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547$as_echo "no" >&6; }
6548fi
6549
6550
6551 test -n "$ac_ct_CXX" && break
6552done
6553
6554 if test "x$ac_ct_CXX" = x; then
6555 CXX="g++"
6556 else
6557 case $cross_compiling:$ac_tool_warned in
6558yes:)
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6561ac_tool_warned=yes ;;
6562esac
6563 CXX=$ac_ct_CXX
6564 fi
6565fi
6566
6567 fi
6568fi
6569# Provide some information about the compiler.
6570$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6571set X $ac_compile
6572ac_compiler=$2
6573for ac_option in --version -v -V -qversion; do
6574 { { ac_try="$ac_compiler $ac_option >&5"
6575case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578esac
6579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6580$as_echo "$ac_try_echo"; } >&5
6581 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6582 ac_status=$?
6583 if test -s conftest.err; then
6584 sed '10a\
6585... rest of stderr output deleted ...
6586 10q' conftest.err >conftest.er1
6587 cat conftest.er1 >&5
6588 fi
6589 rm -f conftest.er1 conftest.err
6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591 test $ac_status = 0; }
6592done
6593
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6595$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006596if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006597 $as_echo_n "(cached) " >&6
6598else
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600/* end confdefs.h. */
6601
6602int
6603main ()
6604{
6605#ifndef __GNUC__
6606 choke me
6607#endif
6608
6609 ;
6610 return 0;
6611}
6612_ACEOF
6613if ac_fn_cxx_try_compile "$LINENO"; then :
6614 ac_compiler_gnu=yes
6615else
6616 ac_compiler_gnu=no
6617fi
6618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6620
6621fi
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6623$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6624if test $ac_compiler_gnu = yes; then
6625 GXX=yes
6626else
6627 GXX=
6628fi
6629ac_test_CXXFLAGS=${CXXFLAGS+set}
6630ac_save_CXXFLAGS=$CXXFLAGS
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6632$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006633if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006634 $as_echo_n "(cached) " >&6
6635else
6636 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6637 ac_cxx_werror_flag=yes
6638 ac_cv_prog_cxx_g=no
6639 CXXFLAGS="-g"
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641/* end confdefs.h. */
6642
6643int
6644main ()
6645{
6646
6647 ;
6648 return 0;
6649}
6650_ACEOF
6651if ac_fn_cxx_try_compile "$LINENO"; then :
6652 ac_cv_prog_cxx_g=yes
6653else
6654 CXXFLAGS=""
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656/* end confdefs.h. */
6657
6658int
6659main ()
6660{
6661
6662 ;
6663 return 0;
6664}
6665_ACEOF
6666if ac_fn_cxx_try_compile "$LINENO"; then :
6667
6668else
6669 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
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
6684fi
6685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686fi
6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688fi
6689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6691fi
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6693$as_echo "$ac_cv_prog_cxx_g" >&6; }
6694if test "$ac_test_CXXFLAGS" = set; then
6695 CXXFLAGS=$ac_save_CXXFLAGS
6696elif test $ac_cv_prog_cxx_g = yes; then
6697 if test "$GXX" = yes; then
6698 CXXFLAGS="-g -O2"
6699 else
6700 CXXFLAGS="-g"
6701 fi
6702else
6703 if test "$GXX" = yes; then
6704 CXXFLAGS="-O2"
6705 else
6706 CXXFLAGS=
6707 fi
6708fi
6709ac_ext=c
6710ac_cpp='$CPP $CPPFLAGS'
6711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713ac_compiler_gnu=$ac_cv_c_compiler_gnu
6714
cristy73bd4a52010-10-05 11:24:23 +00006715depcc="$CXX" am_compiler_list=
6716
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6718$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006719if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006720 $as_echo_n "(cached) " >&6
6721else
6722 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6723 # We make a subdir and do the tests there. Otherwise we can end up
6724 # making bogus files that we don't know about and never remove. For
6725 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006726 # making a dummy file named 'D' -- because '-MD' means "put the output
6727 # in D".
cristy7247bba2012-02-05 16:37:27 +00006728 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006729 mkdir conftest.dir
6730 # Copy depcomp to subdir because otherwise we won't find it if we're
6731 # using a relative directory.
6732 cp "$am_depcomp" conftest.dir
6733 cd conftest.dir
6734 # We will build objects and dependencies in a subdirectory because
6735 # it helps to detect inapplicable dependency modes. For instance
6736 # both Tru64's cc and ICC support -MD to output dependencies as a
6737 # side effect of compilation, but ICC will put the dependencies in
6738 # the current directory while Tru64 will put them in the object
6739 # directory.
6740 mkdir sub
6741
6742 am_cv_CXX_dependencies_compiler_type=none
6743 if test "$am_compiler_list" = ""; then
6744 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6745 fi
6746 am__universal=false
6747 case " $depcc " in #(
6748 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6749 esac
6750
6751 for depmode in $am_compiler_list; do
6752 # Setup a source with many dependencies, because some compilers
6753 # like to wrap large dependency lists on column 80 (with \), and
6754 # we should not choose a depcomp mode which is confused by this.
6755 #
6756 # We need to recreate these files for each test, as the compiler may
6757 # overwrite some of them when testing with obscure command lines.
6758 # This happens at least with the AIX C compiler.
6759 : > sub/conftest.c
6760 for i in 1 2 3 4 5 6; do
6761 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006762 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6763 # Solaris 10 /bin/sh.
6764 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006765 done
6766 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6767
cristyc0890a62012-07-19 00:18:20 +00006768 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006769 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006770 # handle '-M -o', and we need to detect this. Also, some Intel
6771 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006772 am__obj=sub/conftest.${OBJEXT-o}
6773 am__minus_obj="-o $am__obj"
6774 case $depmode in
6775 gcc)
6776 # This depmode causes a compiler race in universal mode.
6777 test "$am__universal" = false || continue
6778 ;;
6779 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006780 # After this tag, mechanisms are not by side-effect, so they'll
6781 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006782 if test "x$enable_dependency_tracking" = xyes; then
6783 continue
6784 else
6785 break
6786 fi
6787 ;;
cristy7247bba2012-02-05 16:37:27 +00006788 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006789 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006790 # not run yet. These depmodes are late enough in the game, and
6791 # so weak that their functioning should not be impacted.
6792 am__obj=conftest.${OBJEXT-o}
6793 am__minus_obj=
6794 ;;
6795 none) break ;;
6796 esac
6797 if depmode=$depmode \
6798 source=sub/conftest.c object=$am__obj \
6799 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6800 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6801 >/dev/null 2>conftest.err &&
6802 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6803 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6804 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6805 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6806 # icc doesn't choke on unknown options, it will just issue warnings
6807 # or remarks (even with -Werror). So we grep stderr for any message
6808 # that says an option was ignored or not supported.
6809 # When given -MP, icc 7.0 and 7.1 complain thusly:
6810 # icc: Command line warning: ignoring option '-M'; no argument required
6811 # The diagnosis changed in icc 8.0:
6812 # icc: Command line remark: option '-MP' not supported
6813 if (grep 'ignoring option' conftest.err ||
6814 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6815 am_cv_CXX_dependencies_compiler_type=$depmode
6816 break
6817 fi
6818 fi
6819 done
6820
6821 cd ..
6822 rm -rf conftest.dir
6823else
6824 am_cv_CXX_dependencies_compiler_type=none
6825fi
6826
6827fi
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6829$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6830CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6831
6832 if
6833 test "x$enable_dependency_tracking" != xno \
6834 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6835 am__fastdepCXX_TRUE=
6836 am__fastdepCXX_FALSE='#'
6837else
6838 am__fastdepCXX_TRUE='#'
6839 am__fastdepCXX_FALSE=
6840fi
6841
6842
cristy8b350f62009-11-15 23:12:43 +00006843 case $ac_cv_prog_cc_stdc in #(
6844 no) :
6845 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6846 *) :
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006848$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006849if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006850 $as_echo_n "(cached) " >&6
6851else
6852 ac_cv_prog_cc_c99=no
6853ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006855/* end confdefs.h. */
6856#include <stdarg.h>
6857#include <stdbool.h>
6858#include <stdlib.h>
6859#include <wchar.h>
6860#include <stdio.h>
6861
6862// Check varargs macros. These examples are taken from C99 6.10.3.5.
6863#define debug(...) fprintf (stderr, __VA_ARGS__)
6864#define showlist(...) puts (#__VA_ARGS__)
6865#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6866static void
6867test_varargs_macros (void)
6868{
6869 int x = 1234;
6870 int y = 5678;
6871 debug ("Flag");
6872 debug ("X = %d\n", x);
6873 showlist (The first, second, and third items.);
6874 report (x>y, "x is %d but y is %d", x, y);
6875}
6876
6877// Check long long types.
6878#define BIG64 18446744073709551615ull
6879#define BIG32 4294967295ul
6880#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6881#if !BIG_OK
6882 your preprocessor is broken;
6883#endif
6884#if BIG_OK
6885#else
6886 your preprocessor is broken;
6887#endif
6888static long long int bignum = -9223372036854775807LL;
6889static unsigned long long int ubignum = BIG64;
6890
6891struct incomplete_array
6892{
6893 int datasize;
6894 double data[];
6895};
6896
6897struct named_init {
6898 int number;
6899 const wchar_t *name;
6900 double average;
6901};
6902
6903typedef const char *ccp;
6904
6905static inline int
6906test_restrict (ccp restrict text)
6907{
6908 // See if C++-style comments work.
6909 // Iterate through items via the restricted pointer.
6910 // Also check for declarations in for loops.
6911 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6912 continue;
6913 return 0;
6914}
6915
6916// Check varargs and va_copy.
6917static void
6918test_varargs (const char *format, ...)
6919{
6920 va_list args;
6921 va_start (args, format);
6922 va_list args_copy;
6923 va_copy (args_copy, args);
6924
6925 const char *str;
6926 int number;
6927 float fnumber;
6928
6929 while (*format)
6930 {
6931 switch (*format++)
6932 {
6933 case 's': // string
6934 str = va_arg (args_copy, const char *);
6935 break;
6936 case 'd': // int
6937 number = va_arg (args_copy, int);
6938 break;
6939 case 'f': // float
6940 fnumber = va_arg (args_copy, double);
6941 break;
6942 default:
6943 break;
6944 }
6945 }
6946 va_end (args_copy);
6947 va_end (args);
6948}
6949
6950int
6951main ()
6952{
6953
6954 // Check bool.
6955 _Bool success = false;
6956
6957 // Check restrict.
6958 if (test_restrict ("String literal") == 0)
6959 success = true;
6960 char *restrict newvar = "Another string";
6961
6962 // Check varargs.
6963 test_varargs ("s, d' f .", "string", 65, 34.234);
6964 test_varargs_macros ();
6965
6966 // Check flexible array members.
6967 struct incomplete_array *ia =
6968 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6969 ia->datasize = 10;
6970 for (int i = 0; i < ia->datasize; ++i)
6971 ia->data[i] = i * 1.234;
6972
6973 // Check named initializers.
6974 struct named_init ni = {
6975 .number = 34,
6976 .name = L"Test wide string",
6977 .average = 543.34343,
6978 };
6979
6980 ni.number = 58;
6981
6982 int dynamic_array[ni.number];
6983 dynamic_array[ni.number - 1] = 543;
6984
6985 // work around unused variable warnings
6986 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6987 || dynamic_array[ni.number - 1] != 543);
6988
6989 ;
6990 return 0;
6991}
6992_ACEOF
cristy14fefe52012-05-21 00:59:18 +00006993for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00006994do
6995 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006996 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006997 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006998fi
cristy3ed852e2009-09-05 21:47:34 +00006999rm -f core conftest.err conftest.$ac_objext
7000 test "x$ac_cv_prog_cc_c99" != "xno" && break
7001done
7002rm -f conftest.$ac_ext
7003CC=$ac_save_CC
7004
7005fi
7006# AC_CACHE_VAL
7007case "x$ac_cv_prog_cc_c99" in
7008 x)
cristy8b350f62009-11-15 23:12:43 +00007009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007010$as_echo "none needed" >&6; } ;;
7011 xno)
cristy8b350f62009-11-15 23:12:43 +00007012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007013$as_echo "unsupported" >&6; } ;;
7014 *)
7015 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007017$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7018esac
cristy8b350f62009-11-15 23:12:43 +00007019if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007020 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7021else
cristy8b350f62009-11-15 23:12:43 +00007022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007023$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007024if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007025 $as_echo_n "(cached) " >&6
7026else
7027 ac_cv_prog_cc_c89=no
7028ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007030/* end confdefs.h. */
7031#include <stdarg.h>
7032#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007033struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007034/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7035struct buf { int x; };
7036FILE * (*rcsopen) (struct buf *, struct stat *, int);
7037static char *e (p, i)
7038 char **p;
7039 int i;
7040{
7041 return p[i];
7042}
7043static char *f (char * (*g) (char **, int), char **p, ...)
7044{
7045 char *s;
7046 va_list v;
7047 va_start (v,p);
7048 s = g (p, va_arg (v,int));
7049 va_end (v);
7050 return s;
7051}
7052
7053/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7054 function prototypes and stuff, but not '\xHH' hex character constants.
7055 These don't provoke an error unfortunately, instead are silently treated
7056 as 'x'. The following induces an error, until -std is added to get
7057 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7058 array size at least. It's necessary to write '\x00'==0 to get something
7059 that's true only with -std. */
7060int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7061
7062/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7063 inside strings and character constants. */
7064#define FOO(x) 'x'
7065int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7066
7067int test (int i, double x);
7068struct s1 {int (*f) (int a);};
7069struct s2 {int (*f) (double a);};
7070int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7071int argc;
7072char **argv;
7073int
7074main ()
7075{
7076return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7077 ;
7078 return 0;
7079}
7080_ACEOF
7081for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7082 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7083do
7084 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007085 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007086 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007087fi
cristy3ed852e2009-09-05 21:47:34 +00007088rm -f core conftest.err conftest.$ac_objext
7089 test "x$ac_cv_prog_cc_c89" != "xno" && break
7090done
7091rm -f conftest.$ac_ext
7092CC=$ac_save_CC
7093
7094fi
7095# AC_CACHE_VAL
7096case "x$ac_cv_prog_cc_c89" in
7097 x)
cristy8b350f62009-11-15 23:12:43 +00007098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007099$as_echo "none needed" >&6; } ;;
7100 xno)
cristy8b350f62009-11-15 23:12:43 +00007101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007102$as_echo "unsupported" >&6; } ;;
7103 *)
7104 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007106$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7107esac
cristy8b350f62009-11-15 23:12:43 +00007108if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007109 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7110else
7111 ac_cv_prog_cc_stdc=no
7112fi
7113
cristy3ed852e2009-09-05 21:47:34 +00007114fi
cristy3ed852e2009-09-05 21:47:34 +00007115 ;;
7116esac
cristy8b350f62009-11-15 23:12:43 +00007117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007118$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007119 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007120 $as_echo_n "(cached) " >&6
7121fi
7122
cristy8b350f62009-11-15 23:12:43 +00007123 case $ac_cv_prog_cc_stdc in #(
7124 no) :
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7126$as_echo "unsupported" >&6; } ;; #(
7127 '') :
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7129$as_echo "none needed" >&6; } ;; #(
7130 *) :
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007132$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7133esac
7134
cristy3ed852e2009-09-05 21:47:34 +00007135ac_ext=c
7136ac_cpp='$CPP $CPPFLAGS'
7137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7139ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007141$as_echo_n "checking how to run the C preprocessor... " >&6; }
7142# On Suns, sometimes $CPP names a directory.
7143if test -n "$CPP" && test -d "$CPP"; then
7144 CPP=
7145fi
7146if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007147 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007148 $as_echo_n "(cached) " >&6
7149else
7150 # Double quotes because CPP needs to be expanded
7151 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7152 do
7153 ac_preproc_ok=false
7154for ac_c_preproc_warn_flag in '' yes
7155do
7156 # Use a header file that comes with gcc, so configuring glibc
7157 # with a fresh cross-compiler works.
7158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7159 # <limits.h> exists even on freestanding compilers.
7160 # On the NeXT, cc -E runs the code through the compiler's parser,
7161 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007163/* end confdefs.h. */
7164#ifdef __STDC__
7165# include <limits.h>
7166#else
7167# include <assert.h>
7168#endif
7169 Syntax error
7170_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007171if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007172
cristy8b350f62009-11-15 23:12:43 +00007173else
cristy3ed852e2009-09-05 21:47:34 +00007174 # Broken: fails on valid input.
7175continue
7176fi
cristyda16f162011-02-19 23:52:17 +00007177rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007178
7179 # OK, works on sane cases. Now check whether nonexistent headers
7180 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007182/* end confdefs.h. */
7183#include <ac_nonexistent.h>
7184_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007185if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007186 # Broken: success on invalid input.
7187continue
7188else
cristy3ed852e2009-09-05 21:47:34 +00007189 # Passes both tests.
7190ac_preproc_ok=:
7191break
7192fi
cristyda16f162011-02-19 23:52:17 +00007193rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007194
7195done
7196# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007197rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007198if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007199 break
7200fi
7201
7202 done
7203 ac_cv_prog_CPP=$CPP
7204
7205fi
7206 CPP=$ac_cv_prog_CPP
7207else
7208 ac_cv_prog_CPP=$CPP
7209fi
cristy8b350f62009-11-15 23:12:43 +00007210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007211$as_echo "$CPP" >&6; }
7212ac_preproc_ok=false
7213for ac_c_preproc_warn_flag in '' yes
7214do
7215 # Use a header file that comes with gcc, so configuring glibc
7216 # with a fresh cross-compiler works.
7217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7218 # <limits.h> exists even on freestanding compilers.
7219 # On the NeXT, cc -E runs the code through the compiler's parser,
7220 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007222/* end confdefs.h. */
7223#ifdef __STDC__
7224# include <limits.h>
7225#else
7226# include <assert.h>
7227#endif
7228 Syntax error
7229_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007230if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007231
cristy8b350f62009-11-15 23:12:43 +00007232else
cristy3ed852e2009-09-05 21:47:34 +00007233 # Broken: fails on valid input.
7234continue
7235fi
cristyda16f162011-02-19 23:52:17 +00007236rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007237
7238 # OK, works on sane cases. Now check whether nonexistent headers
7239 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007241/* end confdefs.h. */
7242#include <ac_nonexistent.h>
7243_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007244if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007245 # Broken: success on invalid input.
7246continue
7247else
cristy3ed852e2009-09-05 21:47:34 +00007248 # Passes both tests.
7249ac_preproc_ok=:
7250break
7251fi
cristyda16f162011-02-19 23:52:17 +00007252rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007253
7254done
7255# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007256rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007257if $ac_preproc_ok; then :
7258
cristy3ed852e2009-09-05 21:47:34 +00007259else
cristy8b350f62009-11-15 23:12:43 +00007260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007262as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7263See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007264fi
7265
7266ac_ext=c
7267ac_cpp='$CPP $CPPFLAGS'
7268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7270ac_compiler_gnu=$ac_cv_c_compiler_gnu
7271
cristy73bd4a52010-10-05 11:24:23 +00007272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7273$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007274if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007275 $as_echo_n "(cached) " >&6
7276else
7277 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7278 for ac_i in 1 2 3 4 5 6 7; do
7279 ac_script="$ac_script$as_nl$ac_script"
7280 done
7281 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7282 { ac_script=; unset ac_script;}
7283 if test -z "$SED"; then
7284 ac_path_SED_found=false
7285 # Loop through the user's path and test for each of PROGNAME-LIST
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_prog in sed gsed; do
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007294 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007295# Check for GNU ac_path_SED and select it if it is found.
7296 # Check for GNU $ac_path_SED
7297case `"$ac_path_SED" --version 2>&1` in
7298*GNU*)
7299 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7300*)
7301 ac_count=0
7302 $as_echo_n 0123456789 >"conftest.in"
7303 while :
7304 do
7305 cat "conftest.in" "conftest.in" >"conftest.tmp"
7306 mv "conftest.tmp" "conftest.in"
7307 cp "conftest.in" "conftest.nl"
7308 $as_echo '' >> "conftest.nl"
7309 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7311 as_fn_arith $ac_count + 1 && ac_count=$as_val
7312 if test $ac_count -gt ${ac_path_SED_max-0}; then
7313 # Best one so far, save it but keep looking for a better one
7314 ac_cv_path_SED="$ac_path_SED"
7315 ac_path_SED_max=$ac_count
7316 fi
7317 # 10*(2^10) chars as input seems more than enough
7318 test $ac_count -gt 10 && break
7319 done
7320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7321esac
7322
7323 $ac_path_SED_found && break 3
7324 done
7325 done
7326 done
7327IFS=$as_save_IFS
7328 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007329 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007330 fi
7331else
7332 ac_cv_path_SED=$SED
7333fi
7334
7335fi
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7337$as_echo "$ac_cv_path_SED" >&6; }
7338 SED="$ac_cv_path_SED"
7339 rm -f conftest.sed
7340
7341test -z "$SED" && SED=sed
7342Xsed="$SED -e 1s/^X//"
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7355$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007356if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007357 $as_echo_n "(cached) " >&6
7358else
7359 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7360 then ac_cv_path_FGREP="$GREP -F"
7361 else
7362 if test -z "$FGREP"; then
7363 ac_path_FGREP_found=false
7364 # Loop through the user's path and test for each of PROGNAME-LIST
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7367do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_prog in fgrep; do
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007373 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007374# Check for GNU ac_path_FGREP and select it if it is found.
7375 # Check for GNU $ac_path_FGREP
7376case `"$ac_path_FGREP" --version 2>&1` in
7377*GNU*)
7378 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7379*)
7380 ac_count=0
7381 $as_echo_n 0123456789 >"conftest.in"
7382 while :
7383 do
7384 cat "conftest.in" "conftest.in" >"conftest.tmp"
7385 mv "conftest.tmp" "conftest.in"
7386 cp "conftest.in" "conftest.nl"
7387 $as_echo 'FGREP' >> "conftest.nl"
7388 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7390 as_fn_arith $ac_count + 1 && ac_count=$as_val
7391 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7392 # Best one so far, save it but keep looking for a better one
7393 ac_cv_path_FGREP="$ac_path_FGREP"
7394 ac_path_FGREP_max=$ac_count
7395 fi
7396 # 10*(2^10) chars as input seems more than enough
7397 test $ac_count -gt 10 && break
7398 done
7399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7400esac
7401
7402 $ac_path_FGREP_found && break 3
7403 done
7404 done
7405 done
7406IFS=$as_save_IFS
7407 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007408 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007409 fi
7410else
7411 ac_cv_path_FGREP=$FGREP
7412fi
7413
7414 fi
7415fi
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7417$as_echo "$ac_cv_path_FGREP" >&6; }
7418 FGREP="$ac_cv_path_FGREP"
7419
7420
7421test -z "$GREP" && GREP=grep
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
cristy0c60a692010-11-04 01:09:47 +00007439ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7440ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7441ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7442
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7444$as_echo_n "checking how to print strings... " >&6; }
7445# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007446if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007447 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7448 ECHO='print -r --'
7449elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7450 ECHO='printf %s\n'
7451else
7452 # Use this function as a fallback that always works.
7453 func_fallback_echo ()
7454 {
7455 eval 'cat <<_LTECHO_EOF
7456$1
7457_LTECHO_EOF'
7458 }
7459 ECHO='func_fallback_echo'
7460fi
7461
7462# func_echo_all arg...
7463# Invoke $ECHO with all args, space-separated.
7464func_echo_all ()
7465{
7466 $ECHO ""
7467}
7468
7469case "$ECHO" in
7470 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7471$as_echo "printf" >&6; } ;;
7472 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7473$as_echo "print -r" >&6; } ;;
7474 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7475$as_echo "cat" >&6; } ;;
7476esac
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
cristy73bd4a52010-10-05 11:24:23 +00007491
7492
7493# Check whether --with-gnu-ld was given.
7494if test "${with_gnu_ld+set}" = set; then :
7495 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7496else
7497 with_gnu_ld=no
7498fi
7499
7500ac_prog=ld
7501if test "$GCC" = yes; then
7502 # Check if gcc -print-prog-name=ld gives a path.
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7504$as_echo_n "checking for ld used by $CC... " >&6; }
7505 case $host in
7506 *-*-mingw*)
7507 # gcc leaves a trailing carriage return which upsets mingw
7508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7509 *)
7510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7511 esac
7512 case $ac_prog in
7513 # Accept absolute paths.
7514 [\\/]* | ?:[\\/]*)
7515 re_direlt='/[^/][^/]*/\.\./'
7516 # Canonicalize the pathname of ld
7517 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7518 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7519 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7520 done
7521 test -z "$LD" && LD="$ac_prog"
7522 ;;
7523 "")
7524 # If it fails, then pretend we aren't using GCC.
7525 ac_prog=ld
7526 ;;
7527 *)
7528 # If it is relative, then search for the first ld in PATH.
7529 with_gnu_ld=unknown
7530 ;;
7531 esac
7532elif test "$with_gnu_ld" = yes; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7534$as_echo_n "checking for GNU ld... " >&6; }
7535else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7537$as_echo_n "checking for non-GNU ld... " >&6; }
7538fi
cristyda16f162011-02-19 23:52:17 +00007539if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007540 $as_echo_n "(cached) " >&6
7541else
7542 if test -z "$LD"; then
7543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7544 for ac_dir in $PATH; do
7545 IFS="$lt_save_ifs"
7546 test -z "$ac_dir" && ac_dir=.
7547 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7548 lt_cv_path_LD="$ac_dir/$ac_prog"
7549 # Check to see if the program is GNU ld. I'd rather use --version,
7550 # but apparently some variants of GNU ld only accept -v.
7551 # Break only if it was the GNU/non-GNU ld that we prefer.
7552 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7553 *GNU* | *'with BFD'*)
7554 test "$with_gnu_ld" != no && break
7555 ;;
7556 *)
7557 test "$with_gnu_ld" != yes && break
7558 ;;
7559 esac
7560 fi
7561 done
7562 IFS="$lt_save_ifs"
7563else
7564 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7565fi
7566fi
7567
7568LD="$lt_cv_path_LD"
7569if test -n "$LD"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7571$as_echo "$LD" >&6; }
7572else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574$as_echo "no" >&6; }
7575fi
cristy98dddb52010-11-04 00:30:15 +00007576test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7578$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007579if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007580 $as_echo_n "(cached) " >&6
7581else
7582 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7583case `$LD -v 2>&1 </dev/null` in
7584*GNU* | *'with BFD'*)
7585 lt_cv_prog_gnu_ld=yes
7586 ;;
7587*)
7588 lt_cv_prog_gnu_ld=no
7589 ;;
7590esac
7591fi
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7593$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7594with_gnu_ld=$lt_cv_prog_gnu_ld
7595
7596
7597
7598
7599
7600
7601
7602
7603
cristy3ed852e2009-09-05 21:47:34 +00007604
cristy837d6dc2010-02-27 01:16:57 +00007605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7606$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007607if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007608 $as_echo_n "(cached) " >&6
7609else
7610 ac_cv_prog_cc_c99=no
7611ac_save_CC=$CC
7612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613/* end confdefs.h. */
7614#include <stdarg.h>
7615#include <stdbool.h>
7616#include <stdlib.h>
7617#include <wchar.h>
7618#include <stdio.h>
7619
7620// Check varargs macros. These examples are taken from C99 6.10.3.5.
7621#define debug(...) fprintf (stderr, __VA_ARGS__)
7622#define showlist(...) puts (#__VA_ARGS__)
7623#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7624static void
7625test_varargs_macros (void)
7626{
7627 int x = 1234;
7628 int y = 5678;
7629 debug ("Flag");
7630 debug ("X = %d\n", x);
7631 showlist (The first, second, and third items.);
7632 report (x>y, "x is %d but y is %d", x, y);
7633}
7634
7635// Check long long types.
7636#define BIG64 18446744073709551615ull
7637#define BIG32 4294967295ul
7638#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7639#if !BIG_OK
7640 your preprocessor is broken;
7641#endif
7642#if BIG_OK
7643#else
7644 your preprocessor is broken;
7645#endif
7646static long long int bignum = -9223372036854775807LL;
7647static unsigned long long int ubignum = BIG64;
7648
7649struct incomplete_array
7650{
7651 int datasize;
7652 double data[];
7653};
7654
7655struct named_init {
7656 int number;
7657 const wchar_t *name;
7658 double average;
7659};
7660
7661typedef const char *ccp;
7662
7663static inline int
7664test_restrict (ccp restrict text)
7665{
7666 // See if C++-style comments work.
7667 // Iterate through items via the restricted pointer.
7668 // Also check for declarations in for loops.
7669 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7670 continue;
7671 return 0;
7672}
7673
7674// Check varargs and va_copy.
7675static void
7676test_varargs (const char *format, ...)
7677{
7678 va_list args;
7679 va_start (args, format);
7680 va_list args_copy;
7681 va_copy (args_copy, args);
7682
7683 const char *str;
7684 int number;
7685 float fnumber;
7686
7687 while (*format)
7688 {
7689 switch (*format++)
7690 {
7691 case 's': // string
7692 str = va_arg (args_copy, const char *);
7693 break;
7694 case 'd': // int
7695 number = va_arg (args_copy, int);
7696 break;
7697 case 'f': // float
7698 fnumber = va_arg (args_copy, double);
7699 break;
7700 default:
7701 break;
7702 }
7703 }
7704 va_end (args_copy);
7705 va_end (args);
7706}
7707
7708int
7709main ()
7710{
7711
7712 // Check bool.
7713 _Bool success = false;
7714
7715 // Check restrict.
7716 if (test_restrict ("String literal") == 0)
7717 success = true;
7718 char *restrict newvar = "Another string";
7719
7720 // Check varargs.
7721 test_varargs ("s, d' f .", "string", 65, 34.234);
7722 test_varargs_macros ();
7723
7724 // Check flexible array members.
7725 struct incomplete_array *ia =
7726 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7727 ia->datasize = 10;
7728 for (int i = 0; i < ia->datasize; ++i)
7729 ia->data[i] = i * 1.234;
7730
7731 // Check named initializers.
7732 struct named_init ni = {
7733 .number = 34,
7734 .name = L"Test wide string",
7735 .average = 543.34343,
7736 };
7737
7738 ni.number = 58;
7739
7740 int dynamic_array[ni.number];
7741 dynamic_array[ni.number - 1] = 543;
7742
7743 // work around unused variable warnings
7744 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7745 || dynamic_array[ni.number - 1] != 543);
7746
7747 ;
7748 return 0;
7749}
7750_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007751for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007752do
7753 CC="$ac_save_CC $ac_arg"
7754 if ac_fn_c_try_compile "$LINENO"; then :
7755 ac_cv_prog_cc_c99=$ac_arg
7756fi
7757rm -f core conftest.err conftest.$ac_objext
7758 test "x$ac_cv_prog_cc_c99" != "xno" && break
7759done
7760rm -f conftest.$ac_ext
7761CC=$ac_save_CC
7762
7763fi
7764# AC_CACHE_VAL
7765case "x$ac_cv_prog_cc_c99" in
7766 x)
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7768$as_echo "none needed" >&6; } ;;
7769 xno)
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7771$as_echo "unsupported" >&6; } ;;
7772 *)
7773 CC="$CC $ac_cv_prog_cc_c99"
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7775$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7776esac
7777if test "x$ac_cv_prog_cc_c99" != xno; then :
7778
7779fi
7780
7781
cristy73bd4a52010-10-05 11:24:23 +00007782if test "x$CC" != xcc; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7784$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7785else
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7787$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7788fi
7789set dummy $CC; ac_cc=`$as_echo "$2" |
7790 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007791if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007792 $as_echo_n "(cached) " >&6
7793else
cristy73bd4a52010-10-05 11:24:23 +00007794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795/* end confdefs.h. */
7796
7797int
7798main ()
7799{
7800
7801 ;
7802 return 0;
7803}
7804_ACEOF
7805# Make sure it works both with $CC and with simple cc.
7806# We do the test twice because some compilers refuse to overwrite an
7807# existing .o file with -o, though they will create one.
7808ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7809rm -f conftest2.*
7810if { { case "(($ac_try" in
7811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812 *) ac_try_echo=$ac_try;;
7813esac
7814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7815$as_echo "$ac_try_echo"; } >&5
7816 (eval "$ac_try") 2>&5
7817 ac_status=$?
7818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7819 test $ac_status = 0; } &&
7820 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822 *) ac_try_echo=$ac_try;;
7823esac
7824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7825$as_echo "$ac_try_echo"; } >&5
7826 (eval "$ac_try") 2>&5
7827 ac_status=$?
7828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7829 test $ac_status = 0; };
7830then
7831 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7832 if test "x$CC" != xcc; then
7833 # Test first that cc exists at all.
7834 if { ac_try='cc -c conftest.$ac_ext >&5'
7835 { { case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7838esac
7839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7840$as_echo "$ac_try_echo"; } >&5
7841 (eval "$ac_try") 2>&5
7842 ac_status=$?
7843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844 test $ac_status = 0; }; }; then
7845 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7846 rm -f conftest2.*
7847 if { { case "(($ac_try" in
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7850esac
7851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7852$as_echo "$ac_try_echo"; } >&5
7853 (eval "$ac_try") 2>&5
7854 ac_status=$?
7855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7856 test $ac_status = 0; } &&
7857 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7860esac
7861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7862$as_echo "$ac_try_echo"; } >&5
7863 (eval "$ac_try") 2>&5
7864 ac_status=$?
7865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7866 test $ac_status = 0; };
7867 then
7868 # cc works too.
7869 :
7870 else
7871 # cc exists but doesn't like -o.
7872 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7873 fi
7874 fi
7875 fi
7876else
7877 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7878fi
7879rm -f core conftest*
7880
7881fi
7882if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7884$as_echo "yes" >&6; }
7885else
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887$as_echo "no" >&6; }
7888
7889$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7890
7891fi
7892
7893# FIXME: we rely on the cache variable name because
7894# there is no other way.
7895set dummy $CC
7896am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7897eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7898if test "$am_t" != yes; then
7899 # Losing compiler, so override with the script.
7900 # FIXME: It is wrong to rewrite CC.
7901 # But if we don't then we get into trouble of one sort or another.
7902 # A longer-term fix would be to have automake use am__CC in this case,
7903 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7904 CC="$am_aux_dir/compile $CC"
7905fi
7906
7907
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7909$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007910if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007911 $as_echo_n "(cached) " >&6
7912else
7913 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007914 ac_ext=c
7915ac_cpp='$CPP $CPPFLAGS'
7916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7918ac_compiler_gnu=$ac_cv_c_compiler_gnu
7919
7920 ac_save_CFLAGS="$CFLAGS"
7921for 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" #
7922do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924/* end confdefs.h. */
7925
7926int
7927main ()
7928{
cristy24fc1fe2010-10-23 21:13:01 +00007929
cristy73bd4a52010-10-05 11:24:23 +00007930 ;
7931 return 0;
7932}
7933_ACEOF
7934if ac_fn_c_try_compile "$LINENO"; then :
7935 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7936fi
7937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938done
7939 CFLAGS="$ac_save_CFLAGS"
7940 ac_ext=c
7941ac_cpp='$CPP $CPPFLAGS'
7942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7944ac_compiler_gnu=$ac_cv_c_compiler_gnu
7945
7946
7947fi
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7949$as_echo "$ac_cv_cflags_warn_all" >&6; }
7950case ".$ac_cv_cflags_warn_all" in
7951 .ok|.ok,*) ;;
7952 .|.no|.no,*)
7953 ;;
7954 *)
7955 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7956 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7957 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7958 ac_status=$?
7959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7960 test $ac_status = 0; }
7961 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7962 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7963 ac_status=$?
7964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7965 test $ac_status = 0; }
7966 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7967 fi
7968 ;;
nicolas6237c462010-10-05 06:11:49 +00007969esac
cristy3ed852e2009-09-05 21:47:34 +00007970
cristy568c2d42012-07-27 01:41:20 +00007971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7972$as_echo_n "checking for C compiler vendor... " >&6; }
7973if ${ax_cv_c_compiler_vendor+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975else
7976 # note: don't check for gcc first since some other compilers define __GNUC__
7977 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7978 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7979 pathscale: __PATHCC__,__PATHSCALE__
7980 clang: __clang__
7981 gnu: __GNUC__
7982 sun: __SUNPRO_C,__SUNPRO_CC
7983 hp: __HP_cc,__HP_aCC
7984 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
7985 borland: __BORLANDC__,__TURBOC__
7986 comeau: __COMO__
7987 cray: _CRAYC
7988 kai: __KCC
7989 lcc: __LCC__
7990 sgi: __sgi,sgi
7991 microsoft: _MSC_VER
7992 metrowerks: __MWERKS__
7993 watcom: __WATCOMC__
7994 portland: __PGI
7995 unknown: UNKNOWN"
7996 for ventest in $vendors; do
7997 case $ventest in
7998 *:) vendor=$ventest; continue ;;
7999 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8000 esac
8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002/* end confdefs.h. */
8003
8004int
8005main ()
8006{
8007
8008 #if !($vencpp)
8009 thisisanerror;
8010 #endif
8011
8012 ;
8013 return 0;
8014}
8015_ACEOF
8016if ac_fn_c_try_compile "$LINENO"; then :
8017 break
8018fi
8019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020 done
8021 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8022
8023fi
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8025$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8026
cristya0b81c32010-01-22 02:54:33 +00008027
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8029$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8030set x ${MAKE-make}
8031ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008032if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008033 $as_echo_n "(cached) " >&6
8034else
8035 cat >conftest.make <<\_ACEOF
8036SHELL = /bin/sh
8037all:
8038 @echo '@@@%%%=$(MAKE)=@@@%%%'
8039_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008040# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008041case `${MAKE-make} -f conftest.make 2>/dev/null` in
8042 *@@@%%%=?*=@@@%%%*)
8043 eval ac_cv_prog_make_${ac_make}_set=yes;;
8044 *)
8045 eval ac_cv_prog_make_${ac_make}_set=no;;
8046esac
8047rm -f conftest.make
8048fi
8049if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8051$as_echo "yes" >&6; }
8052 SET_MAKE=
8053else
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055$as_echo "no" >&6; }
8056 SET_MAKE="MAKE=${MAKE-make}"
8057fi
8058
cristy8b350f62009-11-15 23:12:43 +00008059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008060$as_echo_n "checking whether ln -s works... " >&6; }
8061LN_S=$as_ln_s
8062if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008064$as_echo "yes" >&6; }
8065else
cristy8b350f62009-11-15 23:12:43 +00008066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008067$as_echo "no, using $LN_S" >&6; }
8068fi
8069
cristy73bd4a52010-10-05 11:24:23 +00008070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8071$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8072
8073# Check whether --with-dmalloc was given.
8074if test "${with_dmalloc+set}" = set; then :
8075 withval=$with_dmalloc; if test "$withval" = yes; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8077$as_echo "yes" >&6; }
8078
8079$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8080
8081 LIBS="$LIBS -ldmalloc"
8082 LDFLAGS="$LDFLAGS -g"
8083else
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085$as_echo "no" >&6; }
8086fi
8087else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089$as_echo "no" >&6; }
8090fi
8091
8092
8093
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8095$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008096if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008097 $as_echo_n "(cached) " >&6
8098else
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100/* end confdefs.h. */
8101#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008102 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008103 static void
8104 foo(void) {
8105 exit(1);
8106 }
8107
8108int
8109main ()
8110{
8111
8112 ;
8113 return 0;
8114}
8115_ACEOF
8116if ac_fn_c_try_compile "$LINENO"; then :
8117 ax_cv___attribute__=yes
8118else
8119 ax_cv___attribute__=no
8120
8121fi
8122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123
8124fi
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8126$as_echo "$ax_cv___attribute__" >&6; }
8127 if test "$ax_cv___attribute__" = "yes"; then
8128
8129$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8130
8131 fi
8132
8133
8134
cristy37110d62012-03-01 18:38:20 +00008135
8136
8137# Check whether --with-gcc-arch was given.
8138if test "${with_gcc_arch+set}" = set; then :
8139 withval=$with_gcc_arch; ax_gcc_arch=$withval
8140else
cristya32d1812012-03-02 19:24:21 +00008141 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008142fi
8143
8144
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8146$as_echo_n "checking for gcc architecture flag... " >&6; }
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8148$as_echo "" >&6; }
8149if ${ax_cv_gcc_archflag+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151else
8152
8153ax_cv_gcc_archflag="unknown"
8154
8155if test "$GCC" = yes; then
8156
8157if test "x$ax_gcc_arch" = xyes; then
8158ax_gcc_arch=""
8159if test "$cross_compiling" = no; then
8160case $host_cpu in
8161 i[3456]86*|x86_64*) # use cpuid codes
8162
8163ac_ext=c
8164ac_cpp='$CPP $CPPFLAGS'
8165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8167ac_compiler_gnu=$ac_cv_c_compiler_gnu
8168
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8170$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8171if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8172 $as_echo_n "(cached) " >&6
8173else
8174 if test "$cross_compiling" = yes; then :
8175 ax_cv_gcc_x86_cpuid_0=unknown
8176else
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178/* end confdefs.h. */
8179#include <stdio.h>
8180int
8181main ()
8182{
8183
8184 int op = 0, eax, ebx, ecx, edx;
8185 FILE *f;
8186 __asm__("cpuid"
8187 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8188 : "a" (op));
8189 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8190 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8191 fclose(f);
8192 return 0;
8193
8194 ;
8195 return 0;
8196}
8197_ACEOF
8198if ac_fn_c_try_run "$LINENO"; then :
8199 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8200else
8201 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8202fi
8203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8204 conftest.$ac_objext conftest.beam conftest.$ac_ext
8205fi
8206
8207fi
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8209$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8210ac_ext=c
8211ac_cpp='$CPP $CPPFLAGS'
8212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8214ac_compiler_gnu=$ac_cv_c_compiler_gnu
8215
8216
8217
8218ac_ext=c
8219ac_cpp='$CPP $CPPFLAGS'
8220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8222ac_compiler_gnu=$ac_cv_c_compiler_gnu
8223
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8225$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8226if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228else
8229 if test "$cross_compiling" = yes; then :
8230 ax_cv_gcc_x86_cpuid_1=unknown
8231else
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233/* end confdefs.h. */
8234#include <stdio.h>
8235int
8236main ()
8237{
8238
8239 int op = 1, eax, ebx, ecx, edx;
8240 FILE *f;
8241 __asm__("cpuid"
8242 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8243 : "a" (op));
8244 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8245 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8246 fclose(f);
8247 return 0;
8248
8249 ;
8250 return 0;
8251}
8252_ACEOF
8253if ac_fn_c_try_run "$LINENO"; then :
8254 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8255else
8256 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8257fi
8258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8259 conftest.$ac_objext conftest.beam conftest.$ac_ext
8260fi
8261
8262fi
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8264$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8265ac_ext=c
8266ac_cpp='$CPP $CPPFLAGS'
8267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8269ac_compiler_gnu=$ac_cv_c_compiler_gnu
8270
8271
8272 case $ax_cv_gcc_x86_cpuid_0 in
8273 *:756e6547:*:*) # Intel
8274 case $ax_cv_gcc_x86_cpuid_1 in
8275 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8276 *5??:*:*:*) ax_gcc_arch=pentium ;;
8277 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8278 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8279 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8280 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8281 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8282 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8283 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8284 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8285 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8286 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8287 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8288 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8289 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8290 case $host_cpu in
8291 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8292 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8293 esac ;;
8294 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8295 esac ;;
8296 *:68747541:*:*) # AMD
8297 case $ax_cv_gcc_x86_cpuid_1 in
8298 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8299 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8300 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8301 *60?:*:*:*) ax_gcc_arch=k7 ;;
8302 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8303 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8304 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8305 *6[68a]?:*:*:*)
8306
8307ac_ext=c
8308ac_cpp='$CPP $CPPFLAGS'
8309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8311ac_compiler_gnu=$ac_cv_c_compiler_gnu
8312
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8314$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8315if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8316 $as_echo_n "(cached) " >&6
8317else
8318 if test "$cross_compiling" = yes; then :
8319 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8320else
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322/* end confdefs.h. */
8323#include <stdio.h>
8324int
8325main ()
8326{
8327
8328 int op = 0x80000006, eax, ebx, ecx, edx;
8329 FILE *f;
8330 __asm__("cpuid"
8331 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8332 : "a" (op));
8333 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8334 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8335 fclose(f);
8336 return 0;
8337
8338 ;
8339 return 0;
8340}
8341_ACEOF
8342if ac_fn_c_try_run "$LINENO"; then :
8343 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8344else
8345 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8346fi
8347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8348 conftest.$ac_objext conftest.beam conftest.$ac_ext
8349fi
8350
8351fi
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8353$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8354ac_ext=c
8355ac_cpp='$CPP $CPPFLAGS'
8356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8358ac_compiler_gnu=$ac_cv_c_compiler_gnu
8359
8360 # L2 cache size
8361 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8362 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8363 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8364 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8365 esac ;;
8366 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8367 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8368 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8369 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8370 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8371 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8372 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8373 esac ;;
8374 *:746e6543:*:*) # IDT
8375 case $ax_cv_gcc_x86_cpuid_1 in
8376 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8377 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8378 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8379 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8380 esac ;;
8381 esac
8382 if test x"$ax_gcc_arch" = x; then # fallback
8383 case $host_cpu in
8384 i586*) ax_gcc_arch=pentium ;;
8385 i686*) ax_gcc_arch=pentiumpro ;;
8386 esac
8387 fi
8388 ;;
8389
8390 sparc*)
8391 # Extract the first word of "prtdiag", so it can be a program name with args.
8392set dummy prtdiag; ac_word=$2
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394$as_echo_n "checking for $ac_word... " >&6; }
8395if ${ac_cv_path_PRTDIAG+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397else
8398 case $PRTDIAG in
8399 [\\/]* | ?:[\\/]*)
8400 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8401 ;;
8402 *)
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8405for as_dir in $as_dummy
8406do
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008411 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 break 2
8414 fi
8415done
8416 done
8417IFS=$as_save_IFS
8418
8419 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8420 ;;
8421esac
8422fi
8423PRTDIAG=$ac_cv_path_PRTDIAG
8424if test -n "$PRTDIAG"; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8426$as_echo "$PRTDIAG" >&6; }
8427else
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429$as_echo "no" >&6; }
8430fi
8431
8432
8433 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`
8434 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8435 case $cputype in
8436 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8437 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8438 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8439 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8440 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8441 *cypress*) ax_gcc_arch=cypress ;;
8442 esac ;;
8443
8444 alphaev5) ax_gcc_arch=ev5 ;;
8445 alphaev56) ax_gcc_arch=ev56 ;;
8446 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8447 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8448 alphaev6) ax_gcc_arch=ev6 ;;
8449 alphaev67) ax_gcc_arch=ev67 ;;
8450 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8451 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8452 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8453 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8454
8455 powerpc*)
8456 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`
8457 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8458 case $cputype in
8459 *750*) ax_gcc_arch="750 G3" ;;
8460 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8461 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8462 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8463 *970*) ax_gcc_arch="970 G5 power4";;
8464 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8465 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8466 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8467 *) ax_gcc_arch=$cputype ;;
8468 esac
8469 ax_gcc_arch="$ax_gcc_arch powerpc"
8470 ;;
8471esac
8472fi # not cross-compiling
8473fi # guess arch
8474
8475if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8476for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008477 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008478 flags="-mtune=$arch"
8479 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8480 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8481 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8482 else
8483 flags="-march=$arch -mcpu=$arch -m$arch"
8484 fi
8485 for flag in $flags; do
8486 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8488$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8489if eval \${$as_CACHEVAR+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491else
8492
8493 ax_check_save_flags=$CFLAGS
8494 CFLAGS="$CFLAGS $flag"
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496/* end confdefs.h. */
8497
8498int
8499main ()
8500{
8501
8502 ;
8503 return 0;
8504}
8505_ACEOF
8506if ac_fn_c_try_compile "$LINENO"; then :
8507 eval "$as_CACHEVAR=yes"
8508else
8509 eval "$as_CACHEVAR=no"
8510fi
8511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8512 CFLAGS=$ax_check_save_flags
8513fi
8514eval ac_res=\$$as_CACHEVAR
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8516$as_echo "$ac_res" >&6; }
8517if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8518 ax_cv_gcc_archflag=$flag; break
8519else
8520 :
8521fi
8522
8523 done
8524 test "x$ax_cv_gcc_archflag" = xunknown || break
8525done
8526fi
8527
8528fi # $GCC=yes
8529
8530fi
8531
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8533$as_echo_n "checking for gcc architecture flag... " >&6; }
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8535$as_echo "$ax_cv_gcc_archflag" >&6; }
8536if test "x$ax_cv_gcc_archflag" = xunknown; then
8537 :
8538else
8539 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8540fi
8541
8542
8543
cristy73bd4a52010-10-05 11:24:23 +00008544if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8545 if test -n "$ac_tool_prefix"; then
8546 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8547set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008550if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008551 $as_echo_n "(cached) " >&6
8552else
8553 case $PKG_CONFIG in
8554 [\\/]* | ?:[\\/]*)
8555 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8556 ;;
8557 *)
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559for as_dir in $PATH
8560do
8561 IFS=$as_save_IFS
8562 test -z "$as_dir" && as_dir=.
8563 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008565 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 break 2
8568 fi
8569done
8570 done
8571IFS=$as_save_IFS
8572
8573 ;;
8574esac
8575fi
8576PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8577if test -n "$PKG_CONFIG"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8579$as_echo "$PKG_CONFIG" >&6; }
8580else
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582$as_echo "no" >&6; }
8583fi
8584
8585
8586fi
8587if test -z "$ac_cv_path_PKG_CONFIG"; then
8588 ac_pt_PKG_CONFIG=$PKG_CONFIG
8589 # Extract the first word of "pkg-config", so it can be a program name with args.
8590set dummy pkg-config; ac_word=$2
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008593if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008594 $as_echo_n "(cached) " >&6
8595else
8596 case $ac_pt_PKG_CONFIG in
8597 [\\/]* | ?:[\\/]*)
8598 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8599 ;;
8600 *)
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602for as_dir in $PATH
8603do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008608 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 break 2
8611 fi
8612done
8613 done
8614IFS=$as_save_IFS
8615
8616 ;;
8617esac
8618fi
8619ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8620if test -n "$ac_pt_PKG_CONFIG"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8622$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8623else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625$as_echo "no" >&6; }
8626fi
8627
8628 if test "x$ac_pt_PKG_CONFIG" = x; then
8629 PKG_CONFIG=""
8630 else
8631 case $cross_compiling:$ac_tool_warned in
8632yes:)
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8635ac_tool_warned=yes ;;
8636esac
8637 PKG_CONFIG=$ac_pt_PKG_CONFIG
8638 fi
8639else
8640 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8641fi
8642
8643fi
8644if test -n "$PKG_CONFIG"; then
8645 _pkg_min_version=0.9.0
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8647$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8648 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8650$as_echo "yes" >&6; }
8651 else
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653$as_echo "no" >&6; }
8654 PKG_CONFIG=""
8655 fi
8656
8657fi
cristy3ed852e2009-09-05 21:47:34 +00008658
8659#
cristy3ed852e2009-09-05 21:47:34 +00008660# Enable run-time checking.
8661#
8662# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008663if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008664 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8665else
8666 enable_bounds_checking='no'
8667fi
8668
8669
8670if test "$enable_bounds_checking" = yes; then
8671
cristy8b350f62009-11-15 23:12:43 +00008672$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008673
8674fi
8675
8676#
8677# Tests for Windows
8678#
8679
8680
8681
8682GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008683native_win32_build='no'
8684cygwin_build='no'
8685case "${host_os}" in
8686 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008687 cygwin_build='yes'
8688 GDI32_LIBS='-lgdi32'
8689 ;;
8690 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008691 native_win32_build='yes'
8692 GDI32_LIBS='-lgdi32'
8693 ;;
8694esac
8695if test "${GDI32_LIBS}x" != 'x'; then
8696
cristy8b350f62009-11-15 23:12:43 +00008697$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008698
8699fi
8700
cristy73bd4a52010-10-05 11:24:23 +00008701 if test "${GDI32_LIBS}x" != 'x' ; then
8702 WINGDI32_DELEGATE_TRUE=
8703 WINGDI32_DELEGATE_FALSE='#'
8704else
8705 WINGDI32_DELEGATE_TRUE='#'
8706 WINGDI32_DELEGATE_FALSE=
8707fi
8708
8709 if test "${native_win32_build}" = 'yes' ; then
8710 WIN32_NATIVE_BUILD_TRUE=
8711 WIN32_NATIVE_BUILD_FALSE='#'
8712else
8713 WIN32_NATIVE_BUILD_TRUE='#'
8714 WIN32_NATIVE_BUILD_FALSE=
8715fi
8716
8717 if test "${cygwin_build}" = 'yes' ; then
8718 CYGWIN_BUILD_TRUE=
8719 CYGWIN_BUILD_FALSE='#'
8720else
8721 CYGWIN_BUILD_TRUE='#'
8722 CYGWIN_BUILD_FALSE=
8723fi
8724
8725 if test "x${CC}" = 'xcl.exe' ; then
8726 USING_CL_TRUE=
8727 USING_CL_FALSE='#'
8728else
8729 USING_CL_TRUE='#'
8730 USING_CL_FALSE=
8731fi
8732
cristy3ed852e2009-09-05 21:47:34 +00008733
8734WinPathScript="${srcdirfull}/winpath.sh"
8735
8736
8737#
8738# Compiler flags tweaks
8739#
8740if test "${GCC}" != "yes"; then
8741 case "${host}" in
8742 *-*-hpux* )
8743 # aCC: HP ANSI C++ B3910B A.03.34
8744 CFLAGS="${CFLAGS} -Wp,-H30000"
8745 if test -n "${CXXFLAGS}"; then
8746 CXXFLAGS='-AA'
8747 else
8748 CXXFLAGS="${CXXFLAGS} -AA"
8749 fi
8750 ;;
8751 *-dec-osf5.* )
8752 # Compaq alphaev68-dec-osf5.1 compiler
8753 if test -n "${CXXFLAGS}"; then
8754 CXXFLAGS='-std strict_ansi -noimplicit_include'
8755 else
8756 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8757 fi
8758 esac
8759fi
8760
8761# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008763$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008764if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008765 $as_echo_n "(cached) " >&6
8766else
8767
8768im_cv_ld_lazyload='none'
8769case "${host}" in
8770 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8771 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8772 im_cv_ld_lazyload='-Wl,-zlazyload'
8773 fi
8774 ;;
8775esac
8776
8777fi
cristy8b350f62009-11-15 23:12:43 +00008778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008779$as_echo "$im_cv_ld_lazyload" >&6; }
8780if test "${im_cv_ld_lazyload}" != 'none' ; then
8781 if test -z "${LDFLAGS}" ; then
8782 LDFLAGS="${im_cv_ld_lazyload}"
8783 else
8784 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8785 fi
8786fi
8787
8788case "$host" in
8789*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008790 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008791if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008792 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8793else
8794 build_osxuniversal=no
8795fi
8796
8797
8798 if test "${build_osxuniversal}" != no ; then
8799 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008800 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008801Please re-run configure with these options:
8802 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008803 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008804 fi
8805 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8806 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8807 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8808 fi
8809 ;;
8810esac
8811
cristy0151ae12011-10-28 16:32:29 +00008812#
8813# ARCH specific include directory
8814#
8815
cristy670aa3c2011-11-03 00:54:00 +00008816# Check whether --with-includearch-dir was given.
8817if test "${with_includearch_dir+set}" = set; then :
8818 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008819else
cristy670aa3c2011-11-03 00:54:00 +00008820 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008821fi
8822
8823
cristy670aa3c2011-11-03 00:54:00 +00008824eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008825
cristy0151ae12011-10-28 16:32:29 +00008826
8827#
8828# ARCH specific configuration directory
8829#
8830
cristy670aa3c2011-11-03 00:54:00 +00008831# Check whether --with-sharearch-dir was given.
8832if test "${with_sharearch_dir+set}" = set; then :
8833 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008834else
cristy408ebcd2011-11-14 01:36:57 +00008835 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008836fi
8837
8838
cristy670aa3c2011-11-03 00:54:00 +00008839eval "eval SHAREARCH_DIR=$sharearch_dir"
8840SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008841
cristy0151ae12011-10-28 16:32:29 +00008842
8843#
cristy3ed852e2009-09-05 21:47:34 +00008844# Enable support for threads
8845
8846# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008847if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008848 withval=$with_threads; with_threads=$withval
8849else
8850 with_threads='yes'
8851fi
8852
8853
8854have_threads=no
8855if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008856
8857
cristy73bd4a52010-10-05 11:24:23 +00008858ac_ext=c
8859ac_cpp='$CPP $CPPFLAGS'
8860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8862ac_compiler_gnu=$ac_cv_c_compiler_gnu
8863
8864ax_pthread_ok=no
8865
8866# We used to check for pthread.h first, but this fails if pthread.h
8867# requires special compiler flags (e.g. on True64 or Sequent).
8868# It gets checked for in the link test anyway.
8869
8870# First of all, check if the user has set any of the PTHREAD_LIBS,
8871# etcetera environment variables, and if threads linking works using
8872# them:
8873if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8874 save_CFLAGS="$CFLAGS"
8875 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8876 save_LIBS="$LIBS"
8877 LIBS="$PTHREAD_LIBS $LIBS"
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8879$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881/* end confdefs.h. */
8882
8883/* Override any GCC internal prototype to avoid an error.
8884 Use char because int might match the return type of a GCC
8885 builtin and then its argument prototype would still apply. */
8886#ifdef __cplusplus
8887extern "C"
8888#endif
8889char pthread_join ();
8890int
8891main ()
8892{
8893return pthread_join ();
8894 ;
8895 return 0;
8896}
8897_ACEOF
8898if ac_fn_c_try_link "$LINENO"; then :
8899 ax_pthread_ok=yes
8900fi
8901rm -f core conftest.err conftest.$ac_objext \
8902 conftest$ac_exeext conftest.$ac_ext
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8904$as_echo "$ax_pthread_ok" >&6; }
8905 if test x"$ax_pthread_ok" = xno; then
8906 PTHREAD_LIBS=""
8907 PTHREAD_CFLAGS=""
8908 fi
8909 LIBS="$save_LIBS"
8910 CFLAGS="$save_CFLAGS"
8911fi
8912
8913# We must check for the threads library under a number of different
8914# names; the ordering is very important because some systems
8915# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8916# libraries is broken (non-POSIX).
8917
8918# Create a list of thread flags to try. Items starting with a "-" are
8919# C compiler flags, and other items are library names, except for "none"
8920# which indicates that we try without any flags at all, and "pthread-config"
8921# which is a program returning the flags for the Pth emulation library.
8922
cristy18307f12011-12-30 01:20:16 +00008923ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008924
8925# The ordering *is* (sometimes) important. Some notes on the
8926# individual items follow:
8927
8928# pthreads: AIX (must check this before -lpthread)
8929# none: in case threads are in libc; should be tried before -Kthread and
8930# other compiler flags to prevent continual compiler warnings
8931# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8932# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8933# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8934# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8935# -pthreads: Solaris/gcc
8936# -mthreads: Mingw32/gcc, Lynx/gcc
8937# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8938# doesn't hurt to check since this sometimes defines pthreads too;
8939# also defines -D_REENTRANT)
8940# ... -mt is also the pthreads flag for HP/aCC
8941# pthread: Linux, etcetera
8942# --thread-safe: KAI C++
8943# pthread-config: use pthread-config program (for GNU Pth library)
8944
8945case "${host_cpu}-${host_os}" in
8946 *solaris*)
8947
8948 # On Solaris (at least, for some versions), libc contains stubbed
8949 # (non-functional) versions of the pthreads routines, so link-based
8950 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8951 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8952 # a function called by this macro, so we could check for that, but
8953 # who knows whether they'll stub that too in a future libc.) So,
8954 # we'll just look for -pthreads and -lpthread first:
8955
8956 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8957 ;;
8958
cristya316db12011-10-24 00:49:45 +00008959 *-darwin*)
8960 ax_pthread_flags="-pthread $ax_pthread_flags"
8961 ;;
cristy73bd4a52010-10-05 11:24:23 +00008962esac
8963
8964if test x"$ax_pthread_ok" = xno; then
8965for flag in $ax_pthread_flags; do
8966
8967 case $flag in
8968 none)
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8970$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8971 ;;
8972
8973 -*)
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8975$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8976 PTHREAD_CFLAGS="$flag"
8977 ;;
8978
cristya316db12011-10-24 00:49:45 +00008979 pthread-config)
8980 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008981set dummy pthread-config; ac_word=$2
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8983$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008984if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008985 $as_echo_n "(cached) " >&6
8986else
8987 if test -n "$ax_pthread_config"; then
8988 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8989else
8990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991for as_dir in $PATH
8992do
8993 IFS=$as_save_IFS
8994 test -z "$as_dir" && as_dir=.
8995 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008997 ac_cv_prog_ax_pthread_config="yes"
8998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8999 break 2
9000 fi
9001done
9002 done
9003IFS=$as_save_IFS
9004
9005 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9006fi
9007fi
9008ax_pthread_config=$ac_cv_prog_ax_pthread_config
9009if test -n "$ax_pthread_config"; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9011$as_echo "$ax_pthread_config" >&6; }
9012else
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014$as_echo "no" >&6; }
9015fi
9016
9017
cristya316db12011-10-24 00:49:45 +00009018 if test x"$ax_pthread_config" = xno; then continue; fi
9019 PTHREAD_CFLAGS="`pthread-config --cflags`"
9020 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9021 ;;
cristy73bd4a52010-10-05 11:24:23 +00009022
9023 *)
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9025$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9026 PTHREAD_LIBS="-l$flag"
9027 ;;
9028 esac
9029
9030 save_LIBS="$LIBS"
9031 save_CFLAGS="$CFLAGS"
9032 LIBS="$PTHREAD_LIBS $LIBS"
9033 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9034
9035 # Check for various functions. We must include pthread.h,
9036 # since some functions may be macros. (On the Sequent, we
9037 # need a special flag -Kthread to make this header compile.)
9038 # We check for pthread_join because it is in -lpthread on IRIX
9039 # while pthread_create is in libc. We check for pthread_attr_init
9040 # due to DEC craziness with -lpthreads. We check for
9041 # pthread_cleanup_push because it is one of the few pthread
9042 # functions on Solaris that doesn't have a non-functional libc stub.
9043 # We try pthread_create on general principles.
9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045/* end confdefs.h. */
9046#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009047 static void routine(void *a) { a = 0; }
9048 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009049int
9050main ()
9051{
9052pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009053 pthread_create(&th, 0, start_routine, 0);
9054 pthread_join(th, 0);
9055 pthread_attr_init(&attr);
9056 pthread_cleanup_push(routine, 0);
9057 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009058 ;
9059 return 0;
9060}
9061_ACEOF
9062if ac_fn_c_try_link "$LINENO"; then :
9063 ax_pthread_ok=yes
9064fi
9065rm -f core conftest.err conftest.$ac_objext \
9066 conftest$ac_exeext conftest.$ac_ext
9067
9068 LIBS="$save_LIBS"
9069 CFLAGS="$save_CFLAGS"
9070
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9072$as_echo "$ax_pthread_ok" >&6; }
9073 if test "x$ax_pthread_ok" = xyes; then
9074 break;
9075 fi
9076
9077 PTHREAD_LIBS=""
9078 PTHREAD_CFLAGS=""
9079done
9080fi
9081
9082# Various other checks:
9083if test "x$ax_pthread_ok" = xyes; then
9084 save_LIBS="$LIBS"
9085 LIBS="$PTHREAD_LIBS $LIBS"
9086 save_CFLAGS="$CFLAGS"
9087 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9088
9089 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009091$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009092 attr_name=unknown
9093 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009095/* end confdefs.h. */
9096#include <pthread.h>
9097int
9098main ()
9099{
cristya316db12011-10-24 00:49:45 +00009100int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009101 ;
9102 return 0;
9103}
9104_ACEOF
9105if ac_fn_c_try_link "$LINENO"; then :
9106 attr_name=$attr; break
9107fi
9108rm -f core conftest.err conftest.$ac_objext \
9109 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009110 done
cristy73bd4a52010-10-05 11:24:23 +00009111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9112$as_echo "$attr_name" >&6; }
9113 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9114
9115cat >>confdefs.h <<_ACEOF
9116#define PTHREAD_CREATE_JOINABLE $attr_name
9117_ACEOF
9118
9119 fi
9120
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9122$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9123 flag=no
9124 case "${host_cpu}-${host_os}" in
9125 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9126 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9127 esac
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9129$as_echo "${flag}" >&6; }
9130 if test "x$flag" != xno; then
9131 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9132 fi
9133
cristya316db12011-10-24 00:49:45 +00009134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9135$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9136if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9137 $as_echo_n "(cached) " >&6
9138else
9139
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141/* end confdefs.h. */
9142
9143 #include <pthread.h>
9144int
9145main ()
9146{
9147int i = PTHREAD_PRIO_INHERIT;
9148 ;
9149 return 0;
9150}
9151_ACEOF
9152if ac_fn_c_try_link "$LINENO"; then :
9153 ax_cv_PTHREAD_PRIO_INHERIT=yes
9154else
9155 ax_cv_PTHREAD_PRIO_INHERIT=no
9156fi
9157rm -f core conftest.err conftest.$ac_objext \
9158 conftest$ac_exeext conftest.$ac_ext
9159
9160fi
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9162$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9163 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9164
9165$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9166
9167fi
9168
cristy73bd4a52010-10-05 11:24:23 +00009169 LIBS="$save_LIBS"
9170 CFLAGS="$save_CFLAGS"
9171
9172 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009173 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009174 for ac_prog in xlc_r cc_r
9175do
9176 # Extract the first word of "$ac_prog", so it can be a program name with args.
9177set dummy $ac_prog; ac_word=$2
9178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009180if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009181 $as_echo_n "(cached) " >&6
9182else
9183 if test -n "$PTHREAD_CC"; then
9184 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9185else
9186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187for as_dir in $PATH
9188do
9189 IFS=$as_save_IFS
9190 test -z "$as_dir" && as_dir=.
9191 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009193 ac_cv_prog_PTHREAD_CC="$ac_prog"
9194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9195 break 2
9196 fi
9197done
9198 done
9199IFS=$as_save_IFS
9200
9201fi
9202fi
9203PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9204if test -n "$PTHREAD_CC"; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9206$as_echo "$PTHREAD_CC" >&6; }
9207else
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209$as_echo "no" >&6; }
9210fi
9211
9212
9213 test -n "$PTHREAD_CC" && break
9214done
9215test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9216
9217 else
9218 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009219 fi
cristy73bd4a52010-10-05 11:24:23 +00009220else
9221 PTHREAD_CC="$CC"
9222fi
9223
9224
9225
9226
9227
9228# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9229if test x"$ax_pthread_ok" = xyes; then
9230
9231$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9232
9233 :
9234else
9235 ax_pthread_ok=no
9236
9237fi
9238ac_ext=c
9239ac_cpp='$CPP $CPPFLAGS'
9240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9242ac_compiler_gnu=$ac_cv_c_compiler_gnu
9243
9244
cristy7acf8fb2010-09-23 19:58:53 +00009245 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009246 have_threads=yes
9247 DEF_THREAD="$PTHREAD_CFLAGS"
9248 CFLAGS="$CFLAGS $DEF_THREAD"
9249 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9250 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009251 { $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 +00009252$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9253 CC="$PTHREAD_CC"
9254 fi
cristy55bf91c2010-09-24 00:29:41 +00009255
9256$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9257
cristy3ed852e2009-09-05 21:47:34 +00009258 fi
9259fi
9260
9261# Enable support for OpenMP
9262if test "$have_threads" != 'yes'; then
9263 ac_cv_prog_c_openmp=unsupported
9264fi
9265
9266 OPENMP_CFLAGS=
9267 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009268if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009269 enableval=$enable_openmp;
9270fi
9271
9272 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009274$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009275if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009276 $as_echo_n "(cached) " >&6
9277else
cristy8b350f62009-11-15 23:12:43 +00009278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009280
9281#ifndef _OPENMP
9282 choke me
9283#endif
9284#include <omp.h>
9285int main () { return omp_get_num_threads (); }
9286
9287_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009288if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009289 ac_cv_prog_c_openmp='none needed'
9290else
cristy8b350f62009-11-15 23:12:43 +00009291 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009292 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9293 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009294 ac_save_CFLAGS=$CFLAGS
9295 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009298
9299#ifndef _OPENMP
9300 choke me
9301#endif
9302#include <omp.h>
9303int main () { return omp_get_num_threads (); }
9304
9305_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009306if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009307 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009308fi
cristy8b350f62009-11-15 23:12:43 +00009309rm -f core conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009311 CFLAGS=$ac_save_CFLAGS
9312 if test "$ac_cv_prog_c_openmp" != unsupported; then
9313 break
9314 fi
9315 done
9316fi
cristy8b350f62009-11-15 23:12:43 +00009317rm -f core conftest.err conftest.$ac_objext \
9318 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009319fi
cristy8b350f62009-11-15 23:12:43 +00009320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009321$as_echo "$ac_cv_prog_c_openmp" >&6; }
9322 case $ac_cv_prog_c_openmp in #(
9323 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009324 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009325 *)
cristy8b350f62009-11-15 23:12:43 +00009326 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009327 esac
9328 fi
9329
9330
9331CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9332MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9333
cristy391f1ce2010-09-09 17:23:28 +00009334if test "$enable_openmp" != no; then
9335 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9336 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9337 fi
9338fi
cristy3ed852e2009-09-05 21:47:34 +00009339
cristy736173a2009-09-20 21:18:22 +00009340# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009341
9342
cristy73bd4a52010-10-05 11:24:23 +00009343ac_ext=c
9344ac_cpp='$CPP $CPPFLAGS'
9345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9347ac_compiler_gnu=$ac_cv_c_compiler_gnu
9348
9349ax_pthread_ok=no
9350
9351# We used to check for pthread.h first, but this fails if pthread.h
9352# requires special compiler flags (e.g. on True64 or Sequent).
9353# It gets checked for in the link test anyway.
9354
9355# First of all, check if the user has set any of the PTHREAD_LIBS,
9356# etcetera environment variables, and if threads linking works using
9357# them:
9358if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9359 save_CFLAGS="$CFLAGS"
9360 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9361 save_LIBS="$LIBS"
9362 LIBS="$PTHREAD_LIBS $LIBS"
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9364$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366/* end confdefs.h. */
9367
9368/* Override any GCC internal prototype to avoid an error.
9369 Use char because int might match the return type of a GCC
9370 builtin and then its argument prototype would still apply. */
9371#ifdef __cplusplus
9372extern "C"
9373#endif
9374char pthread_join ();
9375int
9376main ()
9377{
9378return pthread_join ();
9379 ;
9380 return 0;
9381}
9382_ACEOF
9383if ac_fn_c_try_link "$LINENO"; then :
9384 ax_pthread_ok=yes
9385fi
9386rm -f core conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9389$as_echo "$ax_pthread_ok" >&6; }
9390 if test x"$ax_pthread_ok" = xno; then
9391 PTHREAD_LIBS=""
9392 PTHREAD_CFLAGS=""
9393 fi
9394 LIBS="$save_LIBS"
9395 CFLAGS="$save_CFLAGS"
9396fi
9397
9398# We must check for the threads library under a number of different
9399# names; the ordering is very important because some systems
9400# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9401# libraries is broken (non-POSIX).
9402
9403# Create a list of thread flags to try. Items starting with a "-" are
9404# C compiler flags, and other items are library names, except for "none"
9405# which indicates that we try without any flags at all, and "pthread-config"
9406# which is a program returning the flags for the Pth emulation library.
9407
cristy18307f12011-12-30 01:20:16 +00009408ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009409
9410# The ordering *is* (sometimes) important. Some notes on the
9411# individual items follow:
9412
9413# pthreads: AIX (must check this before -lpthread)
9414# none: in case threads are in libc; should be tried before -Kthread and
9415# other compiler flags to prevent continual compiler warnings
9416# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9417# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9418# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9419# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9420# -pthreads: Solaris/gcc
9421# -mthreads: Mingw32/gcc, Lynx/gcc
9422# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9423# doesn't hurt to check since this sometimes defines pthreads too;
9424# also defines -D_REENTRANT)
9425# ... -mt is also the pthreads flag for HP/aCC
9426# pthread: Linux, etcetera
9427# --thread-safe: KAI C++
9428# pthread-config: use pthread-config program (for GNU Pth library)
9429
9430case "${host_cpu}-${host_os}" in
9431 *solaris*)
9432
9433 # On Solaris (at least, for some versions), libc contains stubbed
9434 # (non-functional) versions of the pthreads routines, so link-based
9435 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9436 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9437 # a function called by this macro, so we could check for that, but
9438 # who knows whether they'll stub that too in a future libc.) So,
9439 # we'll just look for -pthreads and -lpthread first:
9440
9441 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9442 ;;
9443
cristya316db12011-10-24 00:49:45 +00009444 *-darwin*)
9445 ax_pthread_flags="-pthread $ax_pthread_flags"
9446 ;;
cristy73bd4a52010-10-05 11:24:23 +00009447esac
9448
9449if test x"$ax_pthread_ok" = xno; then
9450for flag in $ax_pthread_flags; do
9451
9452 case $flag in
9453 none)
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9455$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9456 ;;
9457
9458 -*)
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9460$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9461 PTHREAD_CFLAGS="$flag"
9462 ;;
9463
cristya316db12011-10-24 00:49:45 +00009464 pthread-config)
9465 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009466set dummy pthread-config; ac_word=$2
9467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9468$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009469if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009470 $as_echo_n "(cached) " >&6
9471else
9472 if test -n "$ax_pthread_config"; then
9473 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9474else
9475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476for as_dir in $PATH
9477do
9478 IFS=$as_save_IFS
9479 test -z "$as_dir" && as_dir=.
9480 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009482 ac_cv_prog_ax_pthread_config="yes"
9483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9484 break 2
9485 fi
9486done
9487 done
9488IFS=$as_save_IFS
9489
9490 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9491fi
9492fi
9493ax_pthread_config=$ac_cv_prog_ax_pthread_config
9494if test -n "$ax_pthread_config"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9496$as_echo "$ax_pthread_config" >&6; }
9497else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499$as_echo "no" >&6; }
9500fi
9501
9502
cristya316db12011-10-24 00:49:45 +00009503 if test x"$ax_pthread_config" = xno; then continue; fi
9504 PTHREAD_CFLAGS="`pthread-config --cflags`"
9505 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9506 ;;
cristy73bd4a52010-10-05 11:24:23 +00009507
9508 *)
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9510$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9511 PTHREAD_LIBS="-l$flag"
9512 ;;
9513 esac
9514
9515 save_LIBS="$LIBS"
9516 save_CFLAGS="$CFLAGS"
9517 LIBS="$PTHREAD_LIBS $LIBS"
9518 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9519
9520 # Check for various functions. We must include pthread.h,
9521 # since some functions may be macros. (On the Sequent, we
9522 # need a special flag -Kthread to make this header compile.)
9523 # We check for pthread_join because it is in -lpthread on IRIX
9524 # while pthread_create is in libc. We check for pthread_attr_init
9525 # due to DEC craziness with -lpthreads. We check for
9526 # pthread_cleanup_push because it is one of the few pthread
9527 # functions on Solaris that doesn't have a non-functional libc stub.
9528 # We try pthread_create on general principles.
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530/* end confdefs.h. */
9531#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009532 static void routine(void *a) { a = 0; }
9533 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009534int
9535main ()
9536{
9537pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009538 pthread_create(&th, 0, start_routine, 0);
9539 pthread_join(th, 0);
9540 pthread_attr_init(&attr);
9541 pthread_cleanup_push(routine, 0);
9542 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009543 ;
9544 return 0;
9545}
9546_ACEOF
9547if ac_fn_c_try_link "$LINENO"; then :
9548 ax_pthread_ok=yes
9549fi
9550rm -f core conftest.err conftest.$ac_objext \
9551 conftest$ac_exeext conftest.$ac_ext
9552
9553 LIBS="$save_LIBS"
9554 CFLAGS="$save_CFLAGS"
9555
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9557$as_echo "$ax_pthread_ok" >&6; }
9558 if test "x$ax_pthread_ok" = xyes; then
9559 break;
9560 fi
9561
9562 PTHREAD_LIBS=""
9563 PTHREAD_CFLAGS=""
9564done
9565fi
9566
9567# Various other checks:
9568if test "x$ax_pthread_ok" = xyes; then
9569 save_LIBS="$LIBS"
9570 LIBS="$PTHREAD_LIBS $LIBS"
9571 save_CFLAGS="$CFLAGS"
9572 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9573
9574 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009576$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009577 attr_name=unknown
9578 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009580/* end confdefs.h. */
9581#include <pthread.h>
9582int
9583main ()
9584{
cristya316db12011-10-24 00:49:45 +00009585int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009586 ;
9587 return 0;
9588}
9589_ACEOF
9590if ac_fn_c_try_link "$LINENO"; then :
9591 attr_name=$attr; break
9592fi
9593rm -f core conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009595 done
cristy73bd4a52010-10-05 11:24:23 +00009596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9597$as_echo "$attr_name" >&6; }
9598 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9599
9600cat >>confdefs.h <<_ACEOF
9601#define PTHREAD_CREATE_JOINABLE $attr_name
9602_ACEOF
9603
9604 fi
9605
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9607$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9608 flag=no
9609 case "${host_cpu}-${host_os}" in
9610 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9611 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9612 esac
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9614$as_echo "${flag}" >&6; }
9615 if test "x$flag" != xno; then
9616 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9617 fi
9618
cristya316db12011-10-24 00:49:45 +00009619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9620$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9621if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9622 $as_echo_n "(cached) " >&6
9623else
9624
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626/* end confdefs.h. */
9627
9628 #include <pthread.h>
9629int
9630main ()
9631{
9632int i = PTHREAD_PRIO_INHERIT;
9633 ;
9634 return 0;
9635}
9636_ACEOF
9637if ac_fn_c_try_link "$LINENO"; then :
9638 ax_cv_PTHREAD_PRIO_INHERIT=yes
9639else
9640 ax_cv_PTHREAD_PRIO_INHERIT=no
9641fi
9642rm -f core conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644
9645fi
9646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9647$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9648 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9649
9650$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9651
9652fi
9653
cristy73bd4a52010-10-05 11:24:23 +00009654 LIBS="$save_LIBS"
9655 CFLAGS="$save_CFLAGS"
9656
9657 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009658 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009659 for ac_prog in xlc_r cc_r
9660do
9661 # Extract the first word of "$ac_prog", so it can be a program name with args.
9662set dummy $ac_prog; ac_word=$2
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009665if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009666 $as_echo_n "(cached) " >&6
9667else
9668 if test -n "$PTHREAD_CC"; then
9669 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9670else
9671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672for as_dir in $PATH
9673do
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009678 ac_cv_prog_PTHREAD_CC="$ac_prog"
9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 break 2
9681 fi
9682done
9683 done
9684IFS=$as_save_IFS
9685
9686fi
9687fi
9688PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9689if test -n "$PTHREAD_CC"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9691$as_echo "$PTHREAD_CC" >&6; }
9692else
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694$as_echo "no" >&6; }
9695fi
9696
9697
9698 test -n "$PTHREAD_CC" && break
9699done
9700test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9701
9702 else
9703 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009704 fi
cristy73bd4a52010-10-05 11:24:23 +00009705else
9706 PTHREAD_CC="$CC"
9707fi
9708
9709
9710
9711
9712
9713# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9714if test x"$ax_pthread_ok" = xyes; then
9715
9716$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9717
9718 :
9719else
9720 ax_pthread_ok=no
9721
9722fi
9723ac_ext=c
9724ac_cpp='$CPP $CPPFLAGS'
9725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9727ac_compiler_gnu=$ac_cv_c_compiler_gnu
9728
9729
9730
9731# Check whether --enable-opencl was given.
9732if test "${enable_opencl+set}" = set; then :
9733 enableval=$enable_opencl; disable_opencl=$enableval
9734else
9735 disable_opencl='yes'
9736fi
9737
9738
9739if test "$disable_opencl" = 'yes'; then
9740 ac_ext=c
9741ac_cpp='$CPP $CPPFLAGS'
9742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9744ac_compiler_gnu=$ac_cv_c_compiler_gnu
9745
cristy568c2d42012-07-27 01:41:20 +00009746 AX_LANG_COMPILER_MS
cristy73bd4a52010-10-05 11:24:23 +00009747 if test X$ax_compiler_ms = Xno; then :
9748 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9749fi
9750
9751 ax_save_CPPFLAGS=$CPPFLAGS
9752 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9753 for ac_header in CL/cl.h OpenCL/cl.h
9754do :
9755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9756ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009757if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009758 cat >>confdefs.h <<_ACEOF
9759#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9760_ACEOF
9761
9762fi
9763
9764done
9765
9766 CPPFLAGS=$ax_save_CPPFLAGS
9767
9768 for ac_header in windows.h
9769do :
9770 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009771if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009772 cat >>confdefs.h <<_ACEOF
9773#define HAVE_WINDOWS_H 1
9774_ACEOF
9775
9776fi
9777
9778done
9779
9780
9781
9782
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9784$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009785if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009786 $as_echo_n "(cached) " >&6
9787else
9788 ax_cv_check_cl_libcl=no
9789 case $host_cpu in
9790 x86_64) ax_check_cl_libdir=lib64 ;;
9791 *) ax_check_cl_libdir=lib ;;
9792 esac
9793 ax_save_CPPFLAGS=$CPPFLAGS
9794 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9795 ax_save_LIBS=$LIBS
9796 LIBS=""
9797 ax_check_libs="-lOpenCL -lCL -lclparser"
9798 for ax_lib in $ax_check_libs; do
9799 if test X$ax_compiler_ms = Xyes; then :
9800 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9801else
9802 ax_try_lib=$ax_lib
9803fi
9804 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806/* end confdefs.h. */
9807
9808 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9809 # include <windows.h>
9810 # endif
9811 # ifdef HAVE_CL_CL_H
9812 # include <CL/cl.h>
9813 # elif defined(HAVE_OPENCL_CL_H)
9814 # include <OpenCL/cl.h>
9815 # else
9816 # error no CL.h
9817 # endif
9818int
9819main ()
9820{
9821clCreateContextFromType(0,0,0,0,0)
9822 ;
9823 return 0;
9824}
9825_ACEOF
9826if ac_fn_c_try_link "$LINENO"; then :
9827 ax_cv_check_cl_libcl=$ax_try_lib; break
9828else
9829 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"
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831/* end confdefs.h. */
9832
9833 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9834 # include <windows.h>
9835 # endif
9836 # ifdef HAVE_CL_CL_H
9837 # include <CL/cl.h>
9838 # elif defined(HAVE_OPENCL_CL_H)
9839 # include <OpenCL/cl.h>
9840 # else
9841 # error no CL.h
9842 # endif
9843int
9844main ()
9845{
9846clCreateContextFromType(0,0,0,0,0)
9847 ;
9848 return 0;
9849}
9850_ACEOF
9851if ac_fn_c_try_link "$LINENO"; then :
9852 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9853else
cristy78c5a0c2010-12-04 20:00:59 +00009854 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 +00009855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856/* end confdefs.h. */
9857
9858 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9859 # include <windows.h>
9860 # endif
9861 # ifdef HAVE_CL_CL_H
9862 # include <CL/cl.h>
9863 # elif defined(HAVE_OPENCL_CL_H)
9864 # include <OpenCL/cl.h>
9865 # else
9866 # error no CL.h
9867 # endif
9868int
9869main ()
9870{
9871clCreateContextFromType(0,0,0,0,0)
9872 ;
9873 return 0;
9874}
9875_ACEOF
9876if ac_fn_c_try_link "$LINENO"; then :
9877 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9878fi
9879rm -f core conftest.err conftest.$ac_objext \
9880 conftest$ac_exeext conftest.$ac_ext
9881fi
9882rm -f core conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9884fi
9885rm -f core conftest.err conftest.$ac_objext \
9886 conftest$ac_exeext conftest.$ac_ext
9887 done
9888
cristyc3f8b8e2011-12-22 14:55:16 +00009889 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009890 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892/* end confdefs.h. */
9893
9894 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9895 # include <windows.h>
9896 # endif
9897 # ifdef HAVE_CL_CL_H
9898 # include <CL/cl.h>
9899 # elif defined(HAVE_OPENCL_CL_H)
9900 # include <OpenCL/cl.h>
9901 # else
9902 # error no CL.h
9903 # endif
9904int
9905main ()
9906{
9907clCreateContextFromType(0,0,0,0,0)
9908 ;
9909 return 0;
9910}
9911_ACEOF
9912if ac_fn_c_try_link "$LINENO"; then :
9913 ax_cv_check_cl_libcl=$LIBS
9914fi
9915rm -f core conftest.err conftest.$ac_objext \
9916 conftest$ac_exeext conftest.$ac_ext
9917fi
9918
9919 LIBS=$ax_save_LIBS
9920 CPPFLAGS=$ax_save_CPPFLAGS
9921fi
9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9923$as_echo "$ax_cv_check_cl_libcl" >&6; }
9924
9925 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9926 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9927else
9928 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9929$as_echo "#define _OPENCL 1" >>confdefs.h
9930
9931fi
9932 ac_ext=c
9933ac_cpp='$CPP $CPPFLAGS'
9934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9936ac_compiler_gnu=$ac_cv_c_compiler_gnu
9937
9938fi
9939
9940
9941
9942
cristyc7083c12009-10-14 03:16:55 +00009943CFLAGS="$CL_CFLAGS $CFLAGS"
9944LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009945
cristy391f1ce2010-09-09 17:23:28 +00009946if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009947 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009948 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9949 fi
cristyfd9dcd42010-08-08 18:07:02 +00009950fi
cristy2e8b51d2009-10-17 18:26:15 +00009951
cristy3ed852e2009-09-05 21:47:34 +00009952########
9953#
9954# Check for large file support
9955#
9956########
9957# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009958if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009959 enableval=$enable_largefile;
9960fi
9961
9962if test "$enable_largefile" != no; then
9963
cristy8b350f62009-11-15 23:12:43 +00009964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009965$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009966if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009967 $as_echo_n "(cached) " >&6
9968else
9969 ac_cv_sys_largefile_CC=no
9970 if test "$GCC" != yes; then
9971 ac_save_CC=$CC
9972 while :; do
9973 # IRIX 6.2 and later do not support large files by default,
9974 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009976/* end confdefs.h. */
9977#include <sys/types.h>
9978 /* Check that off_t can represent 2**63 - 1 correctly.
9979 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9980 since some C++ compilers masquerading as C compilers
9981 incorrectly reject 9223372036854775807. */
9982#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9984 && LARGE_OFF_T % 2147483647 == 1)
9985 ? 1 : -1];
9986int
9987main ()
9988{
9989
9990 ;
9991 return 0;
9992}
9993_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009994 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009995 break
cristy3ed852e2009-09-05 21:47:34 +00009996fi
cristy3ed852e2009-09-05 21:47:34 +00009997rm -f core conftest.err conftest.$ac_objext
9998 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009999 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010000 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010001fi
cristy3ed852e2009-09-05 21:47:34 +000010002rm -f core conftest.err conftest.$ac_objext
10003 break
10004 done
10005 CC=$ac_save_CC
10006 rm -f conftest.$ac_ext
10007 fi
10008fi
cristy8b350f62009-11-15 23:12:43 +000010009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010010$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10011 if test "$ac_cv_sys_largefile_CC" != no; then
10012 CC=$CC$ac_cv_sys_largefile_CC
10013 fi
10014
cristy8b350f62009-11-15 23:12:43 +000010015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010016$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010017if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010018 $as_echo_n "(cached) " >&6
10019else
10020 while :; do
cristy8b350f62009-11-15 23:12:43 +000010021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010022/* end confdefs.h. */
10023#include <sys/types.h>
10024 /* Check that off_t can represent 2**63 - 1 correctly.
10025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10026 since some C++ compilers masquerading as C compilers
10027 incorrectly reject 9223372036854775807. */
10028#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10030 && LARGE_OFF_T % 2147483647 == 1)
10031 ? 1 : -1];
10032int
10033main ()
10034{
10035
10036 ;
10037 return 0;
10038}
10039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010040if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010041 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010042fi
cristy3ed852e2009-09-05 21:47:34 +000010043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010045/* end confdefs.h. */
10046#define _FILE_OFFSET_BITS 64
10047#include <sys/types.h>
10048 /* Check that off_t can represent 2**63 - 1 correctly.
10049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10050 since some C++ compilers masquerading as C compilers
10051 incorrectly reject 9223372036854775807. */
10052#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10054 && LARGE_OFF_T % 2147483647 == 1)
10055 ? 1 : -1];
10056int
10057main ()
10058{
10059
10060 ;
10061 return 0;
10062}
10063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010064if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010065 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010066fi
cristy3ed852e2009-09-05 21:47:34 +000010067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068 ac_cv_sys_file_offset_bits=unknown
10069 break
10070done
10071fi
cristy8b350f62009-11-15 23:12:43 +000010072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010073$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10074case $ac_cv_sys_file_offset_bits in #(
10075 no | unknown) ;;
10076 *)
10077cat >>confdefs.h <<_ACEOF
10078#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10079_ACEOF
10080;;
10081esac
10082rm -rf conftest*
10083 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010085$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010086if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010087 $as_echo_n "(cached) " >&6
10088else
10089 while :; do
cristy8b350f62009-11-15 23:12:43 +000010090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010091/* end confdefs.h. */
10092#include <sys/types.h>
10093 /* Check that off_t can represent 2**63 - 1 correctly.
10094 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10095 since some C++ compilers masquerading as C compilers
10096 incorrectly reject 9223372036854775807. */
10097#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10098 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10099 && LARGE_OFF_T % 2147483647 == 1)
10100 ? 1 : -1];
10101int
10102main ()
10103{
10104
10105 ;
10106 return 0;
10107}
10108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010109if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010110 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010111fi
cristy3ed852e2009-09-05 21:47:34 +000010112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010114/* end confdefs.h. */
10115#define _LARGE_FILES 1
10116#include <sys/types.h>
10117 /* Check that off_t can represent 2**63 - 1 correctly.
10118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10119 since some C++ compilers masquerading as C compilers
10120 incorrectly reject 9223372036854775807. */
10121#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10123 && LARGE_OFF_T % 2147483647 == 1)
10124 ? 1 : -1];
10125int
10126main ()
10127{
10128
10129 ;
10130 return 0;
10131}
10132_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010133if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010134 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010135fi
cristy3ed852e2009-09-05 21:47:34 +000010136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10137 ac_cv_sys_large_files=unknown
10138 break
10139done
10140fi
cristy8b350f62009-11-15 23:12:43 +000010141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010142$as_echo "$ac_cv_sys_large_files" >&6; }
10143case $ac_cv_sys_large_files in #(
10144 no | unknown) ;;
10145 *)
10146cat >>confdefs.h <<_ACEOF
10147#define _LARGE_FILES $ac_cv_sys_large_files
10148_ACEOF
10149;;
10150esac
10151rm -rf conftest*
10152 fi
cristy14fefe52012-05-21 00:59:18 +000010153
10154
cristy3ed852e2009-09-05 21:47:34 +000010155fi
10156
cristy8b350f62009-11-15 23:12:43 +000010157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010158$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010159if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010160 $as_echo_n "(cached) " >&6
10161else
10162 while :; do
cristy8b350f62009-11-15 23:12:43 +000010163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010164/* end confdefs.h. */
10165#include <sys/types.h> /* for off_t */
10166 #include <stdio.h>
10167int
10168main ()
10169{
10170int (*fp) (FILE *, off_t, int) = fseeko;
10171 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10172 ;
10173 return 0;
10174}
10175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010176if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010177 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010178fi
cristy8b350f62009-11-15 23:12:43 +000010179rm -f core conftest.err conftest.$ac_objext \
10180 conftest$ac_exeext conftest.$ac_ext
10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010182/* end confdefs.h. */
10183#define _LARGEFILE_SOURCE 1
10184#include <sys/types.h> /* for off_t */
10185 #include <stdio.h>
10186int
10187main ()
10188{
10189int (*fp) (FILE *, off_t, int) = fseeko;
10190 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10191 ;
10192 return 0;
10193}
10194_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010195if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010196 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010197fi
cristy8b350f62009-11-15 23:12:43 +000010198rm -f core conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010200 ac_cv_sys_largefile_source=unknown
10201 break
10202done
10203fi
cristy8b350f62009-11-15 23:12:43 +000010204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010205$as_echo "$ac_cv_sys_largefile_source" >&6; }
10206case $ac_cv_sys_largefile_source in #(
10207 no | unknown) ;;
10208 *)
10209cat >>confdefs.h <<_ACEOF
10210#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10211_ACEOF
10212;;
10213esac
10214rm -rf conftest*
10215
10216# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10217# in glibc 2.1.3, but that breaks too many other things.
10218# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10219if test $ac_cv_sys_largefile_source != unknown; then
10220
cristy8b350f62009-11-15 23:12:43 +000010221$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010222
10223fi
10224
10225LFS_CPPFLAGS=''
10226if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010227 case $ac_cv_sys_file_offset_bits in
10228 no)
10229 # nothing to do here as the host supports LFS fine
10230 ;;
10231 unknown)
cristy8b350f62009-11-15 23:12:43 +000010232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010233$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010234 if test "$cross_compiling" = yes; then :
10235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010237as_fn_error $? "cannot run test program while cross compiling
10238See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010239else
cristy8b350f62009-11-15 23:12:43 +000010240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010242#include <unistd.h>
10243 main () {
10244 exit(!(sizeof(off_t) == 8));
10245 }
cristyda16f162011-02-19 23:52:17 +000010246int
10247main ()
10248{
10249
10250 ;
10251 return 0;
10252}
cristy3ed852e2009-09-05 21:47:34 +000010253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010254if ac_fn_c_try_run "$LINENO"; then :
10255 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010256
cristy09b53e12011-10-14 12:47:22 +000010257 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10258$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010259else
cristy09b53e12011-10-14 12:47:22 +000010260 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10261$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010262fi
cristy8b350f62009-11-15 23:12:43 +000010263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10264 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010265fi
10266
cristyc1e0cc12011-09-21 16:41:16 +000010267 ;;
10268 *)
10269 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10270 ;;
10271 esac
cristy3ed852e2009-09-05 21:47:34 +000010272 if test "$ac_cv_sys_large_files" != 'no'; then
10273 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10274 fi
10275 if test "$ac_cv_sys_largefile_source" != 'no'; then
10276 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10277 fi
10278fi
10279
10280
cristy3ed852e2009-09-05 21:47:34 +000010281# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010282enable_dlopen=yes
10283
10284
10285
10286case `pwd` in
10287 *\ * | *\ *)
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10289$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10290esac
10291
10292
10293
cristy99bd5232011-12-07 14:38:20 +000010294macro_version='2.4.2'
10295macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309ltmain="$ac_aux_dir/ltmain.sh"
10310
cristy0c60a692010-11-04 01:09:47 +000010311# Backslashify metacharacters that are still active within
10312# double-quoted strings.
10313sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10314
10315# Same as above, but do not quote variable references.
10316double_quote_subst='s/\(["`\\]\)/\\\1/g'
10317
10318# Sed substitution to delay expansion of an escaped shell variable in a
10319# double_quote_subst'ed string.
10320delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10321
10322# Sed substitution to delay expansion of an escaped single quote.
10323delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10324
10325# Sed substitution to avoid accidental globbing in evaled expressions
10326no_glob_subst='s/\*/\\\*/g'
10327
cristy73bd4a52010-10-05 11:24:23 +000010328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10329$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010330if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010331 $as_echo_n "(cached) " >&6
10332else
10333 if test -n "$NM"; then
10334 # Let the user override the test.
10335 lt_cv_path_NM="$NM"
10336else
10337 lt_nm_to_check="${ac_tool_prefix}nm"
10338 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10339 lt_nm_to_check="$lt_nm_to_check nm"
10340 fi
10341 for lt_tmp_nm in $lt_nm_to_check; do
10342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10343 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10344 IFS="$lt_save_ifs"
10345 test -z "$ac_dir" && ac_dir=.
10346 tmp_nm="$ac_dir/$lt_tmp_nm"
10347 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10348 # Check to see if the nm accepts a BSD-compat flag.
10349 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10350 # nm: unknown option "B" ignored
10351 # Tru64's nm complains that /dev/null is an invalid object file
10352 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10353 */dev/null* | *'Invalid file or object type'*)
10354 lt_cv_path_NM="$tmp_nm -B"
10355 break
10356 ;;
10357 *)
10358 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10359 */dev/null*)
10360 lt_cv_path_NM="$tmp_nm -p"
10361 break
10362 ;;
10363 *)
10364 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10365 continue # so that we can try to find one that supports BSD flags
10366 ;;
10367 esac
10368 ;;
10369 esac
10370 fi
10371 done
10372 IFS="$lt_save_ifs"
10373 done
10374 : ${lt_cv_path_NM=no}
10375fi
10376fi
10377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10378$as_echo "$lt_cv_path_NM" >&6; }
10379if test "$lt_cv_path_NM" != "no"; then
10380 NM="$lt_cv_path_NM"
10381else
10382 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010383 if test -n "$DUMPBIN"; then :
10384 # Let the user override the test.
10385 else
10386 if test -n "$ac_tool_prefix"; then
10387 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010388 do
10389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10390set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010393if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010394 $as_echo_n "(cached) " >&6
10395else
10396 if test -n "$DUMPBIN"; then
10397 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10398else
10399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400for as_dir in $PATH
10401do
10402 IFS=$as_save_IFS
10403 test -z "$as_dir" && as_dir=.
10404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010406 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10408 break 2
10409 fi
10410done
10411 done
10412IFS=$as_save_IFS
10413
10414fi
10415fi
10416DUMPBIN=$ac_cv_prog_DUMPBIN
10417if test -n "$DUMPBIN"; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10419$as_echo "$DUMPBIN" >&6; }
10420else
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422$as_echo "no" >&6; }
10423fi
10424
10425
10426 test -n "$DUMPBIN" && break
10427 done
10428fi
10429if test -z "$DUMPBIN"; then
10430 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010431 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010432do
10433 # Extract the first word of "$ac_prog", so it can be a program name with args.
10434set dummy $ac_prog; ac_word=$2
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010437if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010438 $as_echo_n "(cached) " >&6
10439else
10440 if test -n "$ac_ct_DUMPBIN"; then
10441 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10442else
10443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444for as_dir in $PATH
10445do
10446 IFS=$as_save_IFS
10447 test -z "$as_dir" && as_dir=.
10448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010450 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10452 break 2
10453 fi
10454done
10455 done
10456IFS=$as_save_IFS
10457
10458fi
10459fi
10460ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10461if test -n "$ac_ct_DUMPBIN"; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10463$as_echo "$ac_ct_DUMPBIN" >&6; }
10464else
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466$as_echo "no" >&6; }
10467fi
10468
10469
10470 test -n "$ac_ct_DUMPBIN" && break
10471done
10472
10473 if test "x$ac_ct_DUMPBIN" = x; then
10474 DUMPBIN=":"
10475 else
10476 case $cross_compiling:$ac_tool_warned in
10477yes:)
10478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10480ac_tool_warned=yes ;;
10481esac
10482 DUMPBIN=$ac_ct_DUMPBIN
10483 fi
10484fi
10485
cristy0c60a692010-11-04 01:09:47 +000010486 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10487 *COFF*)
10488 DUMPBIN="$DUMPBIN -symbols"
10489 ;;
10490 *)
10491 DUMPBIN=:
10492 ;;
10493 esac
10494 fi
cristy73bd4a52010-10-05 11:24:23 +000010495
10496 if test "$DUMPBIN" != ":"; then
10497 NM="$DUMPBIN"
10498 fi
10499fi
10500test -z "$NM" && NM=nm
10501
10502
10503
10504
10505
10506
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10508$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010509if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010510 $as_echo_n "(cached) " >&6
10511else
10512 lt_cv_nm_interface="BSD nm"
10513 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010514 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010515 (eval "$ac_compile" 2>conftest.err)
10516 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010517 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010518 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10519 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010520 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010521 cat conftest.out >&5
10522 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10523 lt_cv_nm_interface="MS dumpbin"
10524 fi
10525 rm -f conftest*
10526fi
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10528$as_echo "$lt_cv_nm_interface" >&6; }
10529
10530# find the maximum length of command line arguments
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10532$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010533if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010534 $as_echo_n "(cached) " >&6
10535else
10536 i=0
10537 teststring="ABCD"
10538
10539 case $build_os in
10540 msdosdjgpp*)
10541 # On DJGPP, this test can blow up pretty badly due to problems in libc
10542 # (any single argument exceeding 2000 bytes causes a buffer overrun
10543 # during glob expansion). Even if it were fixed, the result of this
10544 # check would be larger than it should be.
10545 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10546 ;;
10547
10548 gnu*)
10549 # Under GNU Hurd, this test is not required because there is
10550 # no limit to the length of command line arguments.
10551 # Libtool will interpret -1 as no limit whatsoever
10552 lt_cv_sys_max_cmd_len=-1;
10553 ;;
10554
10555 cygwin* | mingw* | cegcc*)
10556 # On Win9x/ME, this test blows up -- it succeeds, but takes
10557 # about 5 minutes as the teststring grows exponentially.
10558 # Worse, since 9x/ME are not pre-emptively multitasking,
10559 # you end up with a "frozen" computer, even though with patience
10560 # the test eventually succeeds (with a max line length of 256k).
10561 # Instead, let's just punt: use the minimum linelength reported by
10562 # all of the supported platforms: 8192 (on NT/2K/XP).
10563 lt_cv_sys_max_cmd_len=8192;
10564 ;;
10565
cristy0c60a692010-11-04 01:09:47 +000010566 mint*)
10567 # On MiNT this can take a long time and run out of memory.
10568 lt_cv_sys_max_cmd_len=8192;
10569 ;;
10570
cristy73bd4a52010-10-05 11:24:23 +000010571 amigaos*)
10572 # On AmigaOS with pdksh, this test takes hours, literally.
10573 # So we just punt and use a minimum line length of 8192.
10574 lt_cv_sys_max_cmd_len=8192;
10575 ;;
10576
10577 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10578 # This has been around since 386BSD, at least. Likely further.
10579 if test -x /sbin/sysctl; then
10580 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10581 elif test -x /usr/sbin/sysctl; then
10582 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10583 else
10584 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10585 fi
10586 # And add a safety zone
10587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10589 ;;
10590
10591 interix*)
10592 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10593 lt_cv_sys_max_cmd_len=196608
10594 ;;
10595
cristy99bd5232011-12-07 14:38:20 +000010596 os2*)
10597 # The test takes a long time on OS/2.
10598 lt_cv_sys_max_cmd_len=8192
10599 ;;
10600
cristy73bd4a52010-10-05 11:24:23 +000010601 osf*)
10602 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10603 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10604 # nice to cause kernel panics so lets avoid the loop below.
10605 # First set a reasonable default.
10606 lt_cv_sys_max_cmd_len=16384
10607 #
10608 if test -x /sbin/sysconfig; then
10609 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10610 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10611 esac
10612 fi
10613 ;;
10614 sco3.2v5*)
10615 lt_cv_sys_max_cmd_len=102400
10616 ;;
10617 sysv5* | sco5v6* | sysv4.2uw2*)
10618 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10619 if test -n "$kargmax"; then
10620 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10621 else
10622 lt_cv_sys_max_cmd_len=32768
10623 fi
10624 ;;
10625 *)
10626 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10627 if test -n "$lt_cv_sys_max_cmd_len"; then
10628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10630 else
10631 # Make teststring a little bigger before we do anything with it.
10632 # a 1K string should be a reasonable start.
10633 for i in 1 2 3 4 5 6 7 8 ; do
10634 teststring=$teststring$teststring
10635 done
10636 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10637 # If test is not a shell built-in, we'll probably end up computing a
10638 # maximum length that is only half of the actual maximum length, but
10639 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010640 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010641 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010642 test $i != 17 # 1/2 MB should be enough
10643 do
10644 i=`expr $i + 1`
10645 teststring=$teststring$teststring
10646 done
10647 # Only check the string length outside the loop.
10648 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10649 teststring=
10650 # Add a significant safety factor because C++ compilers can tack on
10651 # massive amounts of additional arguments before passing them to the
10652 # linker. It appears as though 1/2 is a usable value.
10653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10654 fi
10655 ;;
10656 esac
10657
10658fi
10659
10660if test -n $lt_cv_sys_max_cmd_len ; then
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10662$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10663else
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10665$as_echo "none" >&6; }
10666fi
10667max_cmd_len=$lt_cv_sys_max_cmd_len
10668
10669
10670
10671
10672
10673
10674: ${CP="cp -f"}
10675: ${MV="mv -f"}
10676: ${RM="rm -f"}
10677
10678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10679$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10680# Try some XSI features
10681xsi_shell=no
10682( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010683 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10684 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010685 && eval 'test $(( 1 + 1 )) -eq 2 \
10686 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10687 && xsi_shell=yes
10688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10689$as_echo "$xsi_shell" >&6; }
10690
10691
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10693$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10694lt_shell_append=no
10695( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10696 >/dev/null 2>&1 \
10697 && lt_shell_append=yes
10698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10699$as_echo "$lt_shell_append" >&6; }
10700
10701
10702if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10703 lt_unset=unset
10704else
10705 lt_unset=false
10706fi
10707
10708
10709
10710
10711
10712# test EBCDIC or ASCII
10713case `echo X|tr X '\101'` in
10714 A) # ASCII based system
10715 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10716 lt_SP2NL='tr \040 \012'
10717 lt_NL2SP='tr \015\012 \040\040'
10718 ;;
10719 *) # EBCDIC based system
10720 lt_SP2NL='tr \100 \n'
10721 lt_NL2SP='tr \r\n \100\100'
10722 ;;
10723esac
10724
10725
10726
10727
10728
10729
10730
10731
10732
cristyda16f162011-02-19 23:52:17 +000010733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10734$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10735if ${lt_cv_to_host_file_cmd+:} false; then :
10736 $as_echo_n "(cached) " >&6
10737else
10738 case $host in
10739 *-*-mingw* )
10740 case $build in
10741 *-*-mingw* ) # actually msys
10742 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10743 ;;
10744 *-*-cygwin* )
10745 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10746 ;;
10747 * ) # otherwise, assume *nix
10748 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10749 ;;
10750 esac
10751 ;;
10752 *-*-cygwin* )
10753 case $build in
10754 *-*-mingw* ) # actually msys
10755 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10756 ;;
10757 *-*-cygwin* )
10758 lt_cv_to_host_file_cmd=func_convert_file_noop
10759 ;;
10760 * ) # otherwise, assume *nix
10761 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10762 ;;
10763 esac
10764 ;;
10765 * ) # unhandled hosts (and "normal" native builds)
10766 lt_cv_to_host_file_cmd=func_convert_file_noop
10767 ;;
10768esac
10769
10770fi
10771
10772to_host_file_cmd=$lt_cv_to_host_file_cmd
10773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10774$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10775
10776
10777
10778
10779
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10781$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10782if ${lt_cv_to_tool_file_cmd+:} false; then :
10783 $as_echo_n "(cached) " >&6
10784else
10785 #assume ordinary cross tools, or native build.
10786lt_cv_to_tool_file_cmd=func_convert_file_noop
10787case $host in
10788 *-*-mingw* )
10789 case $build in
10790 *-*-mingw* ) # actually msys
10791 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10792 ;;
10793 esac
10794 ;;
10795esac
10796
10797fi
10798
10799to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10801$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10802
10803
10804
10805
10806
cristy73bd4a52010-10-05 11:24:23 +000010807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10808$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010809if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010810 $as_echo_n "(cached) " >&6
10811else
10812 lt_cv_ld_reload_flag='-r'
10813fi
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10815$as_echo "$lt_cv_ld_reload_flag" >&6; }
10816reload_flag=$lt_cv_ld_reload_flag
10817case $reload_flag in
10818"" | " "*) ;;
10819*) reload_flag=" $reload_flag" ;;
10820esac
10821reload_cmds='$LD$reload_flag -o $output$reload_objs'
10822case $host_os in
cristyda16f162011-02-19 23:52:17 +000010823 cygwin* | mingw* | pw32* | cegcc*)
10824 if test "$GCC" != yes; then
10825 reload_cmds=false
10826 fi
10827 ;;
cristy73bd4a52010-10-05 11:24:23 +000010828 darwin*)
10829 if test "$GCC" = yes; then
10830 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10831 else
10832 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10833 fi
10834 ;;
10835esac
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845if test -n "$ac_tool_prefix"; then
10846 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10847set dummy ${ac_tool_prefix}objdump; ac_word=$2
10848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010850if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010851 $as_echo_n "(cached) " >&6
10852else
10853 if test -n "$OBJDUMP"; then
10854 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10855else
10856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857for as_dir in $PATH
10858do
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
10861 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010863 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10865 break 2
10866 fi
10867done
10868 done
10869IFS=$as_save_IFS
10870
10871fi
10872fi
10873OBJDUMP=$ac_cv_prog_OBJDUMP
10874if test -n "$OBJDUMP"; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10876$as_echo "$OBJDUMP" >&6; }
10877else
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879$as_echo "no" >&6; }
10880fi
10881
10882
10883fi
10884if test -z "$ac_cv_prog_OBJDUMP"; then
10885 ac_ct_OBJDUMP=$OBJDUMP
10886 # Extract the first word of "objdump", so it can be a program name with args.
10887set dummy objdump; ac_word=$2
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010890if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010891 $as_echo_n "(cached) " >&6
10892else
10893 if test -n "$ac_ct_OBJDUMP"; then
10894 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10895else
10896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897for as_dir in $PATH
10898do
10899 IFS=$as_save_IFS
10900 test -z "$as_dir" && as_dir=.
10901 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010903 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10905 break 2
10906 fi
10907done
10908 done
10909IFS=$as_save_IFS
10910
10911fi
10912fi
10913ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10914if test -n "$ac_ct_OBJDUMP"; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10916$as_echo "$ac_ct_OBJDUMP" >&6; }
10917else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919$as_echo "no" >&6; }
10920fi
10921
10922 if test "x$ac_ct_OBJDUMP" = x; then
10923 OBJDUMP="false"
10924 else
10925 case $cross_compiling:$ac_tool_warned in
10926yes:)
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10929ac_tool_warned=yes ;;
10930esac
10931 OBJDUMP=$ac_ct_OBJDUMP
10932 fi
10933else
10934 OBJDUMP="$ac_cv_prog_OBJDUMP"
10935fi
10936
10937test -z "$OBJDUMP" && OBJDUMP=objdump
10938
10939
10940
10941
10942
10943
10944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10945$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010946if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010947 $as_echo_n "(cached) " >&6
10948else
10949 lt_cv_file_magic_cmd='$MAGIC_CMD'
10950lt_cv_file_magic_test_file=
10951lt_cv_deplibs_check_method='unknown'
10952# Need to set the preceding variable on all platforms that support
10953# interlibrary dependencies.
10954# 'none' -- dependencies not supported.
10955# `unknown' -- same as none, but documents that we really don't know.
10956# 'pass_all' -- all dependencies passed with no checks.
10957# 'test_compile' -- check by making test program.
10958# 'file_magic [[regex]]' -- check by looking for files in library path
10959# which responds to the $file_magic_cmd with a given extended regex.
10960# If you have `file' or equivalent on your system and you're not sure
10961# whether `pass_all' will *always* work, you probably want this one.
10962
10963case $host_os in
10964aix[4-9]*)
10965 lt_cv_deplibs_check_method=pass_all
10966 ;;
10967
10968beos*)
10969 lt_cv_deplibs_check_method=pass_all
10970 ;;
10971
10972bsdi[45]*)
10973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10974 lt_cv_file_magic_cmd='/usr/bin/file -L'
10975 lt_cv_file_magic_test_file=/shlib/libc.so
10976 ;;
10977
10978cygwin*)
10979 # func_win32_libid is a shell function defined in ltmain.sh
10980 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10981 lt_cv_file_magic_cmd='func_win32_libid'
10982 ;;
10983
10984mingw* | pw32*)
10985 # Base MSYS/MinGW do not provide the 'file' command needed by
10986 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10987 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010988 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10989 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010990 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10991 lt_cv_file_magic_cmd='func_win32_libid'
10992 else
cristy0c60a692010-11-04 01:09:47 +000010993 # Keep this pattern in sync with the one in func_win32_libid.
10994 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 +000010995 lt_cv_file_magic_cmd='$OBJDUMP -f'
10996 fi
10997 ;;
10998
cristy0c60a692010-11-04 01:09:47 +000010999cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011000 # use the weaker test based on 'objdump'. See mingw*.
11001 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11002 lt_cv_file_magic_cmd='$OBJDUMP -f'
11003 ;;
11004
11005darwin* | rhapsody*)
11006 lt_cv_deplibs_check_method=pass_all
11007 ;;
11008
11009freebsd* | dragonfly*)
11010 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11011 case $host_cpu in
11012 i*86 )
11013 # Not sure whether the presence of OpenBSD here was a mistake.
11014 # Let's accept both of them until this is cleared up.
11015 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11016 lt_cv_file_magic_cmd=/usr/bin/file
11017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11018 ;;
11019 esac
11020 else
11021 lt_cv_deplibs_check_method=pass_all
11022 fi
11023 ;;
11024
11025gnu*)
11026 lt_cv_deplibs_check_method=pass_all
11027 ;;
11028
cristy0c60a692010-11-04 01:09:47 +000011029haiku*)
11030 lt_cv_deplibs_check_method=pass_all
11031 ;;
11032
cristy73bd4a52010-10-05 11:24:23 +000011033hpux10.20* | hpux11*)
11034 lt_cv_file_magic_cmd=/usr/bin/file
11035 case $host_cpu in
11036 ia64*)
11037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11038 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11039 ;;
11040 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011041 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 +000011042 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11043 ;;
11044 *)
cristy0c60a692010-11-04 01:09:47 +000011045 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 +000011046 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11047 ;;
11048 esac
11049 ;;
11050
11051interix[3-9]*)
11052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11054 ;;
11055
11056irix5* | irix6* | nonstopux*)
11057 case $LD in
11058 *-32|*"-32 ") libmagic=32-bit;;
11059 *-n32|*"-n32 ") libmagic=N32;;
11060 *-64|*"-64 ") libmagic=64-bit;;
11061 *) libmagic=never-match;;
11062 esac
11063 lt_cv_deplibs_check_method=pass_all
11064 ;;
11065
cristy99bd5232011-12-07 14:38:20 +000011066# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011067linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011068 lt_cv_deplibs_check_method=pass_all
11069 ;;
11070
11071netbsd*)
11072 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11074 else
11075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11076 fi
11077 ;;
11078
11079newos6*)
11080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11081 lt_cv_file_magic_cmd=/usr/bin/file
11082 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11083 ;;
11084
11085*nto* | *qnx*)
11086 lt_cv_deplibs_check_method=pass_all
11087 ;;
11088
11089openbsd*)
11090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11092 else
11093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11094 fi
11095 ;;
11096
11097osf3* | osf4* | osf5*)
11098 lt_cv_deplibs_check_method=pass_all
11099 ;;
11100
11101rdos*)
11102 lt_cv_deplibs_check_method=pass_all
11103 ;;
11104
11105solaris*)
11106 lt_cv_deplibs_check_method=pass_all
11107 ;;
11108
11109sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11110 lt_cv_deplibs_check_method=pass_all
11111 ;;
11112
11113sysv4 | sysv4.3*)
11114 case $host_vendor in
11115 motorola)
11116 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]'
11117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11118 ;;
11119 ncr)
11120 lt_cv_deplibs_check_method=pass_all
11121 ;;
11122 sequent)
11123 lt_cv_file_magic_cmd='/bin/file'
11124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11125 ;;
11126 sni)
11127 lt_cv_file_magic_cmd='/bin/file'
11128 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11129 lt_cv_file_magic_test_file=/lib/libc.so
11130 ;;
11131 siemens)
11132 lt_cv_deplibs_check_method=pass_all
11133 ;;
11134 pc)
11135 lt_cv_deplibs_check_method=pass_all
11136 ;;
11137 esac
11138 ;;
11139
11140tpf*)
11141 lt_cv_deplibs_check_method=pass_all
11142 ;;
11143esac
11144
11145fi
11146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11147$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011148
11149file_magic_glob=
11150want_nocaseglob=no
11151if test "$build" = "$host"; then
11152 case $host_os in
11153 mingw* | pw32*)
11154 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11155 want_nocaseglob=yes
11156 else
11157 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11158 fi
11159 ;;
11160 esac
11161fi
11162
cristy73bd4a52010-10-05 11:24:23 +000011163file_magic_cmd=$lt_cv_file_magic_cmd
11164deplibs_check_method=$lt_cv_deplibs_check_method
11165test -z "$deplibs_check_method" && deplibs_check_method=unknown
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
cristyda16f162011-02-19 23:52:17 +000011178
11179
11180
11181
11182
11183
11184
11185
11186
11187
cristy73bd4a52010-10-05 11:24:23 +000011188if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011189 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11190set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011193if ${ac_cv_prog_DLLTOOL+:} false; then :
11194 $as_echo_n "(cached) " >&6
11195else
11196 if test -n "$DLLTOOL"; then
11197 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11198else
11199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200for as_dir in $PATH
11201do
11202 IFS=$as_save_IFS
11203 test -z "$as_dir" && as_dir=.
11204 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011206 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11208 break 2
11209 fi
11210done
11211 done
11212IFS=$as_save_IFS
11213
11214fi
11215fi
11216DLLTOOL=$ac_cv_prog_DLLTOOL
11217if test -n "$DLLTOOL"; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11219$as_echo "$DLLTOOL" >&6; }
11220else
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222$as_echo "no" >&6; }
11223fi
11224
11225
11226fi
11227if test -z "$ac_cv_prog_DLLTOOL"; then
11228 ac_ct_DLLTOOL=$DLLTOOL
11229 # Extract the first word of "dlltool", so it can be a program name with args.
11230set dummy dlltool; ac_word=$2
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11232$as_echo_n "checking for $ac_word... " >&6; }
11233if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11234 $as_echo_n "(cached) " >&6
11235else
11236 if test -n "$ac_ct_DLLTOOL"; then
11237 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11238else
11239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11240for as_dir in $PATH
11241do
11242 IFS=$as_save_IFS
11243 test -z "$as_dir" && as_dir=.
11244 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011246 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11248 break 2
11249 fi
11250done
11251 done
11252IFS=$as_save_IFS
11253
11254fi
11255fi
11256ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11257if test -n "$ac_ct_DLLTOOL"; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11259$as_echo "$ac_ct_DLLTOOL" >&6; }
11260else
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262$as_echo "no" >&6; }
11263fi
11264
11265 if test "x$ac_ct_DLLTOOL" = x; then
11266 DLLTOOL="false"
11267 else
11268 case $cross_compiling:$ac_tool_warned in
11269yes:)
11270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11272ac_tool_warned=yes ;;
11273esac
11274 DLLTOOL=$ac_ct_DLLTOOL
11275 fi
11276else
11277 DLLTOOL="$ac_cv_prog_DLLTOOL"
11278fi
11279
11280test -z "$DLLTOOL" && DLLTOOL=dlltool
11281
11282
11283
11284
11285
11286
11287
11288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11289$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11290if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292else
11293 lt_cv_sharedlib_from_linklib_cmd='unknown'
11294
11295case $host_os in
11296cygwin* | mingw* | pw32* | cegcc*)
11297 # two different shell functions defined in ltmain.sh
11298 # decide which to use based on capabilities of $DLLTOOL
11299 case `$DLLTOOL --help 2>&1` in
11300 *--identify-strict*)
11301 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11302 ;;
11303 *)
11304 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11305 ;;
11306 esac
11307 ;;
11308*)
11309 # fallback: assume linklib IS sharedlib
11310 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11311 ;;
11312esac
11313
11314fi
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11316$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11317sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11318test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11319
11320
11321
11322
11323
11324
11325
11326if test -n "$ac_tool_prefix"; then
11327 for ac_prog in ar
11328 do
11329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11330set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332$as_echo_n "checking for $ac_word... " >&6; }
11333if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011334 $as_echo_n "(cached) " >&6
11335else
11336 if test -n "$AR"; then
11337 ac_cv_prog_AR="$AR" # Let the user override the test.
11338else
11339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340for as_dir in $PATH
11341do
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011346 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11348 break 2
11349 fi
11350done
11351 done
11352IFS=$as_save_IFS
11353
11354fi
11355fi
11356AR=$ac_cv_prog_AR
11357if test -n "$AR"; then
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11359$as_echo "$AR" >&6; }
11360else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362$as_echo "no" >&6; }
11363fi
11364
11365
cristyda16f162011-02-19 23:52:17 +000011366 test -n "$AR" && break
11367 done
cristy73bd4a52010-10-05 11:24:23 +000011368fi
cristyda16f162011-02-19 23:52:17 +000011369if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011370 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011371 for ac_prog in ar
11372do
11373 # Extract the first word of "$ac_prog", so it can be a program name with args.
11374set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11376$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011377if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011378 $as_echo_n "(cached) " >&6
11379else
11380 if test -n "$ac_ct_AR"; then
11381 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11382else
11383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384for as_dir in $PATH
11385do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011390 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 break 2
11393 fi
11394done
11395 done
11396IFS=$as_save_IFS
11397
11398fi
11399fi
11400ac_ct_AR=$ac_cv_prog_ac_ct_AR
11401if test -n "$ac_ct_AR"; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11403$as_echo "$ac_ct_AR" >&6; }
11404else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406$as_echo "no" >&6; }
11407fi
11408
cristyda16f162011-02-19 23:52:17 +000011409
11410 test -n "$ac_ct_AR" && break
11411done
11412
cristy73bd4a52010-10-05 11:24:23 +000011413 if test "x$ac_ct_AR" = x; then
11414 AR="false"
11415 else
11416 case $cross_compiling:$ac_tool_warned in
11417yes:)
11418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11420ac_tool_warned=yes ;;
11421esac
11422 AR=$ac_ct_AR
11423 fi
cristy73bd4a52010-10-05 11:24:23 +000011424fi
11425
cristyda16f162011-02-19 23:52:17 +000011426: ${AR=ar}
11427: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
cristyda16f162011-02-19 23:52:17 +000011439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11440$as_echo_n "checking for archiver @FILE support... " >&6; }
11441if ${lt_cv_ar_at_file+:} false; then :
11442 $as_echo_n "(cached) " >&6
11443else
11444 lt_cv_ar_at_file=no
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446/* end confdefs.h. */
11447
11448int
11449main ()
11450{
11451
11452 ;
11453 return 0;
11454}
11455_ACEOF
11456if ac_fn_c_try_compile "$LINENO"; then :
11457 echo conftest.$ac_objext > conftest.lst
11458 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11460 (eval $lt_ar_try) 2>&5
11461 ac_status=$?
11462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11463 test $ac_status = 0; }
11464 if test "$ac_status" -eq 0; then
11465 # Ensure the archiver fails upon bogus file names.
11466 rm -f conftest.$ac_objext libconftest.a
11467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11468 (eval $lt_ar_try) 2>&5
11469 ac_status=$?
11470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11471 test $ac_status = 0; }
11472 if test "$ac_status" -ne 0; then
11473 lt_cv_ar_at_file=@
11474 fi
11475 fi
11476 rm -f conftest.* libconftest.a
11477
11478fi
11479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480
11481fi
11482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11483$as_echo "$lt_cv_ar_at_file" >&6; }
11484
11485if test "x$lt_cv_ar_at_file" = xno; then
11486 archiver_list_spec=
11487else
11488 archiver_list_spec=$lt_cv_ar_at_file
11489fi
11490
11491
11492
11493
11494
11495
11496
cristy73bd4a52010-10-05 11:24:23 +000011497if test -n "$ac_tool_prefix"; then
11498 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11499set dummy ${ac_tool_prefix}strip; ac_word=$2
11500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11501$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011502if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011503 $as_echo_n "(cached) " >&6
11504else
11505 if test -n "$STRIP"; then
11506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11507else
11508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509for as_dir in $PATH
11510do
11511 IFS=$as_save_IFS
11512 test -z "$as_dir" && as_dir=.
11513 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011515 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 break 2
11518 fi
11519done
11520 done
11521IFS=$as_save_IFS
11522
11523fi
11524fi
11525STRIP=$ac_cv_prog_STRIP
11526if test -n "$STRIP"; then
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11528$as_echo "$STRIP" >&6; }
11529else
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531$as_echo "no" >&6; }
11532fi
11533
11534
11535fi
11536if test -z "$ac_cv_prog_STRIP"; then
11537 ac_ct_STRIP=$STRIP
11538 # Extract the first word of "strip", so it can be a program name with args.
11539set dummy strip; ac_word=$2
11540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11541$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011542if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011543 $as_echo_n "(cached) " >&6
11544else
11545 if test -n "$ac_ct_STRIP"; then
11546 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11547else
11548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11549for as_dir in $PATH
11550do
11551 IFS=$as_save_IFS
11552 test -z "$as_dir" && as_dir=.
11553 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011555 ac_cv_prog_ac_ct_STRIP="strip"
11556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11557 break 2
11558 fi
11559done
11560 done
11561IFS=$as_save_IFS
11562
11563fi
11564fi
11565ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11566if test -n "$ac_ct_STRIP"; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11568$as_echo "$ac_ct_STRIP" >&6; }
11569else
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571$as_echo "no" >&6; }
11572fi
11573
11574 if test "x$ac_ct_STRIP" = x; then
11575 STRIP=":"
11576 else
11577 case $cross_compiling:$ac_tool_warned in
11578yes:)
11579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11581ac_tool_warned=yes ;;
11582esac
11583 STRIP=$ac_ct_STRIP
11584 fi
11585else
11586 STRIP="$ac_cv_prog_STRIP"
11587fi
11588
11589test -z "$STRIP" && STRIP=:
11590
11591
11592
11593
11594
11595
11596if test -n "$ac_tool_prefix"; then
11597 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11598set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11600$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011601if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011602 $as_echo_n "(cached) " >&6
11603else
11604 if test -n "$RANLIB"; then
11605 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11606else
11607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608for as_dir in $PATH
11609do
11610 IFS=$as_save_IFS
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011614 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11616 break 2
11617 fi
11618done
11619 done
11620IFS=$as_save_IFS
11621
11622fi
11623fi
11624RANLIB=$ac_cv_prog_RANLIB
11625if test -n "$RANLIB"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11627$as_echo "$RANLIB" >&6; }
11628else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630$as_echo "no" >&6; }
11631fi
11632
11633
11634fi
11635if test -z "$ac_cv_prog_RANLIB"; then
11636 ac_ct_RANLIB=$RANLIB
11637 # Extract the first word of "ranlib", so it can be a program name with args.
11638set dummy ranlib; ac_word=$2
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011641if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011642 $as_echo_n "(cached) " >&6
11643else
11644 if test -n "$ac_ct_RANLIB"; then
11645 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11646else
11647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648for as_dir in $PATH
11649do
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011654 ac_cv_prog_ac_ct_RANLIB="ranlib"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11657 fi
11658done
11659 done
11660IFS=$as_save_IFS
11661
11662fi
11663fi
11664ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11665if test -n "$ac_ct_RANLIB"; then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11667$as_echo "$ac_ct_RANLIB" >&6; }
11668else
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670$as_echo "no" >&6; }
11671fi
11672
11673 if test "x$ac_ct_RANLIB" = x; then
11674 RANLIB=":"
11675 else
11676 case $cross_compiling:$ac_tool_warned in
11677yes:)
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11680ac_tool_warned=yes ;;
11681esac
11682 RANLIB=$ac_ct_RANLIB
11683 fi
11684else
11685 RANLIB="$ac_cv_prog_RANLIB"
11686fi
11687
11688test -z "$RANLIB" && RANLIB=:
11689
11690
11691
11692
11693
11694
11695# Determine commands to create old-style static archives.
11696old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11697old_postinstall_cmds='chmod 644 $oldlib'
11698old_postuninstall_cmds=
11699
11700if test -n "$RANLIB"; then
11701 case $host_os in
11702 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011703 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011704 ;;
11705 *)
cristy99bd5232011-12-07 14:38:20 +000011706 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011707 ;;
11708 esac
cristy99bd5232011-12-07 14:38:20 +000011709 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011710fi
11711
cristy0c60a692010-11-04 01:09:47 +000011712case $host_os in
11713 darwin*)
11714 lock_old_archive_extraction=yes ;;
11715 *)
11716 lock_old_archive_extraction=no ;;
11717esac
11718
11719
11720
11721
11722
11723
cristy73bd4a52010-10-05 11:24:23 +000011724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757# If no C compiler was specified, use CC.
11758LTCC=${LTCC-"$CC"}
11759
11760# If no C compiler flags were specified, use CFLAGS.
11761LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11762
11763# Allow CC to be a program name with arguments.
11764compiler=$CC
11765
11766
11767# Check for command to grab the raw symbol name followed by C symbol from nm.
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11769$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011770if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011771 $as_echo_n "(cached) " >&6
11772else
11773
11774# These are sane defaults that work on at least a few old systems.
11775# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11776
11777# Character class describing NM global symbol codes.
11778symcode='[BCDEGRST]'
11779
11780# Regexp to match symbols that can be accessed directly from C.
11781sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11782
11783# Define system-specific variables.
11784case $host_os in
11785aix*)
11786 symcode='[BCDT]'
11787 ;;
11788cygwin* | mingw* | pw32* | cegcc*)
11789 symcode='[ABCDGISTW]'
11790 ;;
11791hpux*)
11792 if test "$host_cpu" = ia64; then
11793 symcode='[ABCDEGRST]'
11794 fi
11795 ;;
11796irix* | nonstopux*)
11797 symcode='[BCDEGRST]'
11798 ;;
11799osf*)
11800 symcode='[BCDEGQRST]'
11801 ;;
11802solaris*)
11803 symcode='[BDRT]'
11804 ;;
11805sco3.2v5*)
11806 symcode='[DT]'
11807 ;;
11808sysv4.2uw2*)
11809 symcode='[DT]'
11810 ;;
11811sysv5* | sco5v6* | unixware* | OpenUNIX*)
11812 symcode='[ABDT]'
11813 ;;
11814sysv4)
11815 symcode='[DFNSTU]'
11816 ;;
11817esac
11818
11819# If we're using GNU nm, then use its standard symbol codes.
11820case `$NM -V 2>&1` in
11821*GNU* | *'with BFD'*)
11822 symcode='[ABCDGIRSTW]' ;;
11823esac
11824
11825# Transform an extracted symbol line into a proper C declaration.
11826# Some systems (esp. on ia64) link data and code symbols differently,
11827# so use this general approach.
11828lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11829
11830# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011831lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11832lt_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 +000011833
11834# Handle CRLF in mingw tool chain
11835opt_cr=
11836case $build_os in
11837mingw*)
11838 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11839 ;;
11840esac
11841
11842# Try without a prefix underscore, then with it.
11843for ac_symprfx in "" "_"; do
11844
11845 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11846 symxfrm="\\1 $ac_symprfx\\2 \\2"
11847
11848 # Write the raw and C identifiers.
11849 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11850 # Fake it for dumpbin and say T for any non-static function
11851 # and D for any global variable.
11852 # Also find C++ and __fastcall symbols from MSVC++,
11853 # which start with @ or ?.
11854 lt_cv_sys_global_symbol_pipe="$AWK '"\
11855" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011856" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011857" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11858" \$ 0!~/External *\|/{next};"\
11859" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11860" {if(hide[section]) next};"\
11861" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11862" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11863" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11864" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11865" ' prfx=^$ac_symprfx"
11866 else
11867 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11868 fi
cristyda16f162011-02-19 23:52:17 +000011869 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011870
11871 # Check to see that the pipe works correctly.
11872 pipe_works=no
11873
11874 rm -f conftest*
11875 cat > conftest.$ac_ext <<_LT_EOF
11876#ifdef __cplusplus
11877extern "C" {
11878#endif
11879char nm_test_var;
11880void nm_test_func(void);
11881void nm_test_func(void){}
11882#ifdef __cplusplus
11883}
11884#endif
11885int main(){nm_test_var='a';nm_test_func();return(0);}
11886_LT_EOF
11887
11888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11889 (eval $ac_compile) 2>&5
11890 ac_status=$?
11891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11892 test $ac_status = 0; }; then
11893 # Now try to grab the symbols.
11894 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11896 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011897 ac_status=$?
11898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11899 test $ac_status = 0; } && test -s "$nlist"; then
11900 # Try sorting and uniquifying the output.
11901 if sort "$nlist" | uniq > "$nlist"T; then
11902 mv -f "$nlist"T "$nlist"
11903 else
11904 rm -f "$nlist"T
11905 fi
11906
11907 # Make sure that we snagged all the symbols we need.
11908 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11909 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11910 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011911/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11912#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11913/* DATA imports from DLLs on WIN32 con't be const, because runtime
11914 relocations are performed -- see ld's documentation on pseudo-relocs. */
11915# define LT_DLSYM_CONST
11916#elif defined(__osf__)
11917/* This system does not cope well with relocations in const data. */
11918# define LT_DLSYM_CONST
11919#else
11920# define LT_DLSYM_CONST const
11921#endif
11922
cristy73bd4a52010-10-05 11:24:23 +000011923#ifdef __cplusplus
11924extern "C" {
11925#endif
11926
11927_LT_EOF
11928 # Now generate the symbol file.
11929 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11930
11931 cat <<_LT_EOF >> conftest.$ac_ext
11932
11933/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011934LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011935 const char *name;
11936 void *address;
11937}
11938lt__PROGRAM__LTX_preloaded_symbols[] =
11939{
11940 { "@PROGRAM@", (void *) 0 },
11941_LT_EOF
11942 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11943 cat <<\_LT_EOF >> conftest.$ac_ext
11944 {0, (void *) 0}
11945};
11946
11947/* This works around a problem in FreeBSD linker */
11948#ifdef FREEBSD_WORKAROUND
11949static const void *lt_preloaded_setup() {
11950 return lt__PROGRAM__LTX_preloaded_symbols;
11951}
11952#endif
11953
11954#ifdef __cplusplus
11955}
11956#endif
11957_LT_EOF
11958 # Now try linking the two files.
11959 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011960 lt_globsym_save_LIBS=$LIBS
11961 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011962 LIBS="conftstm.$ac_objext"
11963 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11965 (eval $ac_link) 2>&5
11966 ac_status=$?
11967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11968 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11969 pipe_works=yes
11970 fi
cristyda16f162011-02-19 23:52:17 +000011971 LIBS=$lt_globsym_save_LIBS
11972 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011973 else
11974 echo "cannot find nm_test_func in $nlist" >&5
11975 fi
11976 else
11977 echo "cannot find nm_test_var in $nlist" >&5
11978 fi
11979 else
11980 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11981 fi
11982 else
11983 echo "$progname: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11985 fi
11986 rm -rf conftest* conftst*
11987
11988 # Do not use the global_symbol_pipe unless it works.
11989 if test "$pipe_works" = yes; then
11990 break
11991 else
11992 lt_cv_sys_global_symbol_pipe=
11993 fi
11994done
11995
11996fi
11997
11998if test -z "$lt_cv_sys_global_symbol_pipe"; then
11999 lt_cv_sys_global_symbol_to_cdecl=
12000fi
12001if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12003$as_echo "failed" >&6; }
12004else
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12006$as_echo "ok" >&6; }
12007fi
12008
cristyda16f162011-02-19 23:52:17 +000012009# Response file support.
12010if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12011 nm_file_list_spec='@'
12012elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12013 nm_file_list_spec='@'
12014fi
cristy73bd4a52010-10-05 11:24:23 +000012015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
cristyda16f162011-02-19 23:52:17 +000012036
12037
12038
12039
12040
12041
12042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12043$as_echo_n "checking for sysroot... " >&6; }
12044
12045# Check whether --with-sysroot was given.
12046if test "${with_sysroot+set}" = set; then :
12047 withval=$with_sysroot;
12048else
12049 with_sysroot=no
12050fi
12051
12052
12053lt_sysroot=
12054case ${with_sysroot} in #(
12055 yes)
12056 if test "$GCC" = yes; then
12057 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12058 fi
12059 ;; #(
12060 /*)
12061 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12062 ;; #(
12063 no|'')
12064 ;; #(
12065 *)
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12067$as_echo "${with_sysroot}" >&6; }
12068 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12069 ;;
12070esac
12071
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12073$as_echo "${lt_sysroot:-no}" >&6; }
12074
12075
12076
12077
12078
cristy73bd4a52010-10-05 11:24:23 +000012079# Check whether --enable-libtool-lock was given.
12080if test "${enable_libtool_lock+set}" = set; then :
12081 enableval=$enable_libtool_lock;
12082fi
12083
12084test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12085
12086# Some flags need to be propagated to the compiler or linker for good
12087# libtool support.
12088case $host in
12089ia64-*-hpux*)
12090 # Find out which ABI we are using.
12091 echo 'int i;' > conftest.$ac_ext
12092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12093 (eval $ac_compile) 2>&5
12094 ac_status=$?
12095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12096 test $ac_status = 0; }; then
12097 case `/usr/bin/file conftest.$ac_objext` in
12098 *ELF-32*)
12099 HPUX_IA64_MODE="32"
12100 ;;
12101 *ELF-64*)
12102 HPUX_IA64_MODE="64"
12103 ;;
12104 esac
12105 fi
12106 rm -rf conftest*
12107 ;;
12108*-*-irix6*)
12109 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012110 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12112 (eval $ac_compile) 2>&5
12113 ac_status=$?
12114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12115 test $ac_status = 0; }; then
12116 if test "$lt_cv_prog_gnu_ld" = yes; then
12117 case `/usr/bin/file conftest.$ac_objext` in
12118 *32-bit*)
12119 LD="${LD-ld} -melf32bsmip"
12120 ;;
12121 *N32*)
12122 LD="${LD-ld} -melf32bmipn32"
12123 ;;
12124 *64-bit*)
12125 LD="${LD-ld} -melf64bmip"
12126 ;;
12127 esac
12128 else
12129 case `/usr/bin/file conftest.$ac_objext` in
12130 *32-bit*)
12131 LD="${LD-ld} -32"
12132 ;;
12133 *N32*)
12134 LD="${LD-ld} -n32"
12135 ;;
12136 *64-bit*)
12137 LD="${LD-ld} -64"
12138 ;;
12139 esac
12140 fi
12141 fi
12142 rm -rf conftest*
12143 ;;
12144
12145x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12146s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12147 # Find out which ABI we are using.
12148 echo 'int i;' > conftest.$ac_ext
12149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12150 (eval $ac_compile) 2>&5
12151 ac_status=$?
12152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12153 test $ac_status = 0; }; then
12154 case `/usr/bin/file conftest.o` in
12155 *32-bit*)
12156 case $host in
12157 x86_64-*kfreebsd*-gnu)
12158 LD="${LD-ld} -m elf_i386_fbsd"
12159 ;;
12160 x86_64-*linux*)
12161 LD="${LD-ld} -m elf_i386"
12162 ;;
12163 ppc64-*linux*|powerpc64-*linux*)
12164 LD="${LD-ld} -m elf32ppclinux"
12165 ;;
12166 s390x-*linux*)
12167 LD="${LD-ld} -m elf_s390"
12168 ;;
12169 sparc64-*linux*)
12170 LD="${LD-ld} -m elf32_sparc"
12171 ;;
12172 esac
12173 ;;
12174 *64-bit*)
12175 case $host in
12176 x86_64-*kfreebsd*-gnu)
12177 LD="${LD-ld} -m elf_x86_64_fbsd"
12178 ;;
12179 x86_64-*linux*)
12180 LD="${LD-ld} -m elf_x86_64"
12181 ;;
12182 ppc*-*linux*|powerpc*-*linux*)
12183 LD="${LD-ld} -m elf64ppc"
12184 ;;
12185 s390*-*linux*|s390*-*tpf*)
12186 LD="${LD-ld} -m elf64_s390"
12187 ;;
12188 sparc*-*linux*)
12189 LD="${LD-ld} -m elf64_sparc"
12190 ;;
12191 esac
12192 ;;
12193 esac
12194 fi
12195 rm -rf conftest*
12196 ;;
12197
12198*-*-sco3.2v5*)
12199 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12200 SAVE_CFLAGS="$CFLAGS"
12201 CFLAGS="$CFLAGS -belf"
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12203$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012204if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012205 $as_echo_n "(cached) " >&6
12206else
12207 ac_ext=c
12208ac_cpp='$CPP $CPPFLAGS'
12209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12211ac_compiler_gnu=$ac_cv_c_compiler_gnu
12212
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214/* end confdefs.h. */
12215
12216int
12217main ()
12218{
12219
12220 ;
12221 return 0;
12222}
12223_ACEOF
12224if ac_fn_c_try_link "$LINENO"; then :
12225 lt_cv_cc_needs_belf=yes
12226else
12227 lt_cv_cc_needs_belf=no
12228fi
12229rm -f core conftest.err conftest.$ac_objext \
12230 conftest$ac_exeext conftest.$ac_ext
12231 ac_ext=c
12232ac_cpp='$CPP $CPPFLAGS'
12233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12235ac_compiler_gnu=$ac_cv_c_compiler_gnu
12236
12237fi
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12239$as_echo "$lt_cv_cc_needs_belf" >&6; }
12240 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12241 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12242 CFLAGS="$SAVE_CFLAGS"
12243 fi
12244 ;;
cristy99bd5232011-12-07 14:38:20 +000012245*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012246 # Find out which ABI we are using.
12247 echo 'int i;' > conftest.$ac_ext
12248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12249 (eval $ac_compile) 2>&5
12250 ac_status=$?
12251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12252 test $ac_status = 0; }; then
12253 case `/usr/bin/file conftest.o` in
12254 *64-bit*)
12255 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012256 yes*)
12257 case $host in
12258 i?86-*-solaris*)
12259 LD="${LD-ld} -m elf_x86_64"
12260 ;;
12261 sparc*-*-solaris*)
12262 LD="${LD-ld} -m elf64_sparc"
12263 ;;
12264 esac
12265 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12266 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12267 LD="${LD-ld}_sol2"
12268 fi
12269 ;;
cristy73bd4a52010-10-05 11:24:23 +000012270 *)
12271 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12272 LD="${LD-ld} -64"
12273 fi
12274 ;;
12275 esac
12276 ;;
12277 esac
12278 fi
12279 rm -rf conftest*
12280 ;;
12281esac
12282
12283need_locks="$enable_libtool_lock"
12284
cristyda16f162011-02-19 23:52:17 +000012285if test -n "$ac_tool_prefix"; then
12286 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12287set dummy ${ac_tool_prefix}mt; ac_word=$2
12288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12289$as_echo_n "checking for $ac_word... " >&6; }
12290if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12291 $as_echo_n "(cached) " >&6
12292else
12293 if test -n "$MANIFEST_TOOL"; then
12294 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12295else
12296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12297for as_dir in $PATH
12298do
12299 IFS=$as_save_IFS
12300 test -z "$as_dir" && as_dir=.
12301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012303 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12305 break 2
12306 fi
12307done
12308 done
12309IFS=$as_save_IFS
12310
12311fi
12312fi
12313MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12314if test -n "$MANIFEST_TOOL"; then
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12316$as_echo "$MANIFEST_TOOL" >&6; }
12317else
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319$as_echo "no" >&6; }
12320fi
12321
12322
12323fi
12324if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12325 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12326 # Extract the first word of "mt", so it can be a program name with args.
12327set dummy mt; ac_word=$2
12328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329$as_echo_n "checking for $ac_word... " >&6; }
12330if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12331 $as_echo_n "(cached) " >&6
12332else
12333 if test -n "$ac_ct_MANIFEST_TOOL"; then
12334 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12335else
12336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337for as_dir in $PATH
12338do
12339 IFS=$as_save_IFS
12340 test -z "$as_dir" && as_dir=.
12341 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012343 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12345 break 2
12346 fi
12347done
12348 done
12349IFS=$as_save_IFS
12350
12351fi
12352fi
12353ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12354if test -n "$ac_ct_MANIFEST_TOOL"; then
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12356$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12357else
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359$as_echo "no" >&6; }
12360fi
12361
12362 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12363 MANIFEST_TOOL=":"
12364 else
12365 case $cross_compiling:$ac_tool_warned in
12366yes:)
12367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12369ac_tool_warned=yes ;;
12370esac
12371 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12372 fi
12373else
12374 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12375fi
12376
12377test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12379$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12380if ${lt_cv_path_mainfest_tool+:} false; then :
12381 $as_echo_n "(cached) " >&6
12382else
12383 lt_cv_path_mainfest_tool=no
12384 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12385 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12386 cat conftest.err >&5
12387 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12388 lt_cv_path_mainfest_tool=yes
12389 fi
12390 rm -f conftest*
12391fi
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12393$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12394if test "x$lt_cv_path_mainfest_tool" != xyes; then
12395 MANIFEST_TOOL=:
12396fi
12397
12398
12399
12400
12401
cristy73bd4a52010-10-05 11:24:23 +000012402
12403 case $host_os in
12404 rhapsody* | darwin*)
12405 if test -n "$ac_tool_prefix"; then
12406 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12407set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012410if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012411 $as_echo_n "(cached) " >&6
12412else
12413 if test -n "$DSYMUTIL"; then
12414 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12415else
12416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417for as_dir in $PATH
12418do
12419 IFS=$as_save_IFS
12420 test -z "$as_dir" && as_dir=.
12421 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012423 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12425 break 2
12426 fi
12427done
12428 done
12429IFS=$as_save_IFS
12430
12431fi
12432fi
12433DSYMUTIL=$ac_cv_prog_DSYMUTIL
12434if test -n "$DSYMUTIL"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12436$as_echo "$DSYMUTIL" >&6; }
12437else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439$as_echo "no" >&6; }
12440fi
12441
12442
12443fi
12444if test -z "$ac_cv_prog_DSYMUTIL"; then
12445 ac_ct_DSYMUTIL=$DSYMUTIL
12446 # Extract the first word of "dsymutil", so it can be a program name with args.
12447set dummy dsymutil; ac_word=$2
12448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12449$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012450if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012451 $as_echo_n "(cached) " >&6
12452else
12453 if test -n "$ac_ct_DSYMUTIL"; then
12454 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12455else
12456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457for as_dir in $PATH
12458do
12459 IFS=$as_save_IFS
12460 test -z "$as_dir" && as_dir=.
12461 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012463 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12465 break 2
12466 fi
12467done
12468 done
12469IFS=$as_save_IFS
12470
12471fi
12472fi
12473ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12474if test -n "$ac_ct_DSYMUTIL"; then
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12476$as_echo "$ac_ct_DSYMUTIL" >&6; }
12477else
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479$as_echo "no" >&6; }
12480fi
12481
12482 if test "x$ac_ct_DSYMUTIL" = x; then
12483 DSYMUTIL=":"
12484 else
12485 case $cross_compiling:$ac_tool_warned in
12486yes:)
12487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12489ac_tool_warned=yes ;;
12490esac
12491 DSYMUTIL=$ac_ct_DSYMUTIL
12492 fi
12493else
12494 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12495fi
12496
12497 if test -n "$ac_tool_prefix"; then
12498 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12499set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012502if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012503 $as_echo_n "(cached) " >&6
12504else
12505 if test -n "$NMEDIT"; then
12506 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12507else
12508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509for as_dir in $PATH
12510do
12511 IFS=$as_save_IFS
12512 test -z "$as_dir" && as_dir=.
12513 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012515 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12517 break 2
12518 fi
12519done
12520 done
12521IFS=$as_save_IFS
12522
12523fi
12524fi
12525NMEDIT=$ac_cv_prog_NMEDIT
12526if test -n "$NMEDIT"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12528$as_echo "$NMEDIT" >&6; }
12529else
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531$as_echo "no" >&6; }
12532fi
12533
12534
12535fi
12536if test -z "$ac_cv_prog_NMEDIT"; then
12537 ac_ct_NMEDIT=$NMEDIT
12538 # Extract the first word of "nmedit", so it can be a program name with args.
12539set dummy nmedit; ac_word=$2
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12541$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012542if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012543 $as_echo_n "(cached) " >&6
12544else
12545 if test -n "$ac_ct_NMEDIT"; then
12546 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12547else
12548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549for as_dir in $PATH
12550do
12551 IFS=$as_save_IFS
12552 test -z "$as_dir" && as_dir=.
12553 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012555 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12557 break 2
12558 fi
12559done
12560 done
12561IFS=$as_save_IFS
12562
12563fi
12564fi
12565ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12566if test -n "$ac_ct_NMEDIT"; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12568$as_echo "$ac_ct_NMEDIT" >&6; }
12569else
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571$as_echo "no" >&6; }
12572fi
12573
12574 if test "x$ac_ct_NMEDIT" = x; then
12575 NMEDIT=":"
12576 else
12577 case $cross_compiling:$ac_tool_warned in
12578yes:)
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12581ac_tool_warned=yes ;;
12582esac
12583 NMEDIT=$ac_ct_NMEDIT
12584 fi
12585else
12586 NMEDIT="$ac_cv_prog_NMEDIT"
12587fi
12588
12589 if test -n "$ac_tool_prefix"; then
12590 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12591set dummy ${ac_tool_prefix}lipo; ac_word=$2
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012594if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012595 $as_echo_n "(cached) " >&6
12596else
12597 if test -n "$LIPO"; then
12598 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12599else
12600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601for as_dir in $PATH
12602do
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012607 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12610 fi
12611done
12612 done
12613IFS=$as_save_IFS
12614
12615fi
12616fi
12617LIPO=$ac_cv_prog_LIPO
12618if test -n "$LIPO"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12620$as_echo "$LIPO" >&6; }
12621else
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
12624fi
12625
12626
12627fi
12628if test -z "$ac_cv_prog_LIPO"; then
12629 ac_ct_LIPO=$LIPO
12630 # Extract the first word of "lipo", so it can be a program name with args.
12631set dummy lipo; ac_word=$2
12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012634if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012635 $as_echo_n "(cached) " >&6
12636else
12637 if test -n "$ac_ct_LIPO"; then
12638 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12639else
12640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641for as_dir in $PATH
12642do
12643 IFS=$as_save_IFS
12644 test -z "$as_dir" && as_dir=.
12645 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012647 ac_cv_prog_ac_ct_LIPO="lipo"
12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12649 break 2
12650 fi
12651done
12652 done
12653IFS=$as_save_IFS
12654
12655fi
12656fi
12657ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12658if test -n "$ac_ct_LIPO"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12660$as_echo "$ac_ct_LIPO" >&6; }
12661else
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663$as_echo "no" >&6; }
12664fi
12665
12666 if test "x$ac_ct_LIPO" = x; then
12667 LIPO=":"
12668 else
12669 case $cross_compiling:$ac_tool_warned in
12670yes:)
12671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12673ac_tool_warned=yes ;;
12674esac
12675 LIPO=$ac_ct_LIPO
12676 fi
12677else
12678 LIPO="$ac_cv_prog_LIPO"
12679fi
12680
12681 if test -n "$ac_tool_prefix"; then
12682 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12683set dummy ${ac_tool_prefix}otool; ac_word=$2
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012686if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012687 $as_echo_n "(cached) " >&6
12688else
12689 if test -n "$OTOOL"; then
12690 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12691else
12692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693for as_dir in $PATH
12694do
12695 IFS=$as_save_IFS
12696 test -z "$as_dir" && as_dir=.
12697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012699 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12701 break 2
12702 fi
12703done
12704 done
12705IFS=$as_save_IFS
12706
12707fi
12708fi
12709OTOOL=$ac_cv_prog_OTOOL
12710if test -n "$OTOOL"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12712$as_echo "$OTOOL" >&6; }
12713else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715$as_echo "no" >&6; }
12716fi
12717
12718
12719fi
12720if test -z "$ac_cv_prog_OTOOL"; then
12721 ac_ct_OTOOL=$OTOOL
12722 # Extract the first word of "otool", so it can be a program name with args.
12723set dummy otool; ac_word=$2
12724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12725$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012726if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012727 $as_echo_n "(cached) " >&6
12728else
12729 if test -n "$ac_ct_OTOOL"; then
12730 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12731else
12732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733for as_dir in $PATH
12734do
12735 IFS=$as_save_IFS
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012739 ac_cv_prog_ac_ct_OTOOL="otool"
12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741 break 2
12742 fi
12743done
12744 done
12745IFS=$as_save_IFS
12746
12747fi
12748fi
12749ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12750if test -n "$ac_ct_OTOOL"; then
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12752$as_echo "$ac_ct_OTOOL" >&6; }
12753else
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755$as_echo "no" >&6; }
12756fi
12757
12758 if test "x$ac_ct_OTOOL" = x; then
12759 OTOOL=":"
12760 else
12761 case $cross_compiling:$ac_tool_warned in
12762yes:)
12763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12765ac_tool_warned=yes ;;
12766esac
12767 OTOOL=$ac_ct_OTOOL
12768 fi
12769else
12770 OTOOL="$ac_cv_prog_OTOOL"
12771fi
12772
12773 if test -n "$ac_tool_prefix"; then
12774 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12775set dummy ${ac_tool_prefix}otool64; ac_word=$2
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012778if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012779 $as_echo_n "(cached) " >&6
12780else
12781 if test -n "$OTOOL64"; then
12782 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12783else
12784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785for as_dir in $PATH
12786do
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012791 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12794 fi
12795done
12796 done
12797IFS=$as_save_IFS
12798
12799fi
12800fi
12801OTOOL64=$ac_cv_prog_OTOOL64
12802if test -n "$OTOOL64"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12804$as_echo "$OTOOL64" >&6; }
12805else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807$as_echo "no" >&6; }
12808fi
12809
12810
12811fi
12812if test -z "$ac_cv_prog_OTOOL64"; then
12813 ac_ct_OTOOL64=$OTOOL64
12814 # Extract the first word of "otool64", so it can be a program name with args.
12815set dummy otool64; ac_word=$2
12816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012818if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012819 $as_echo_n "(cached) " >&6
12820else
12821 if test -n "$ac_ct_OTOOL64"; then
12822 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12823else
12824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825for as_dir in $PATH
12826do
12827 IFS=$as_save_IFS
12828 test -z "$as_dir" && as_dir=.
12829 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012831 ac_cv_prog_ac_ct_OTOOL64="otool64"
12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12833 break 2
12834 fi
12835done
12836 done
12837IFS=$as_save_IFS
12838
12839fi
12840fi
12841ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12842if test -n "$ac_ct_OTOOL64"; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12844$as_echo "$ac_ct_OTOOL64" >&6; }
12845else
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847$as_echo "no" >&6; }
12848fi
12849
12850 if test "x$ac_ct_OTOOL64" = x; then
12851 OTOOL64=":"
12852 else
12853 case $cross_compiling:$ac_tool_warned in
12854yes:)
12855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12857ac_tool_warned=yes ;;
12858esac
12859 OTOOL64=$ac_ct_OTOOL64
12860 fi
12861else
12862 OTOOL64="$ac_cv_prog_OTOOL64"
12863fi
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12892$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012893if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012894 $as_echo_n "(cached) " >&6
12895else
12896 lt_cv_apple_cc_single_mod=no
12897 if test -z "${LT_MULTI_MODULE}"; then
12898 # By default we will add the -single_module flag. You can override
12899 # by either setting the environment variable LT_MULTI_MODULE
12900 # non-empty at configure time, or by adding -multi_module to the
12901 # link flags.
12902 rm -rf libconftest.dylib*
12903 echo "int foo(void){return 1;}" > conftest.c
12904 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12905-dynamiclib -Wl,-single_module conftest.c" >&5
12906 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12907 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12908 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012909 # If there is a non-empty error log, and "single_module"
12910 # appears in it, assume the flag caused a linker warning
12911 if test -s conftest.err && $GREP single_module conftest.err; then
12912 cat conftest.err >&5
12913 # Otherwise, if the output was created with a 0 exit code from
12914 # the compiler, it worked.
12915 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012916 lt_cv_apple_cc_single_mod=yes
12917 else
12918 cat conftest.err >&5
12919 fi
12920 rm -rf libconftest.dylib*
12921 rm -f conftest.*
12922 fi
12923fi
12924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12925$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012926
cristy73bd4a52010-10-05 11:24:23 +000012927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12928$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012929if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012930 $as_echo_n "(cached) " >&6
12931else
12932 lt_cv_ld_exported_symbols_list=no
12933 save_LDFLAGS=$LDFLAGS
12934 echo "_main" > conftest.sym
12935 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937/* end confdefs.h. */
12938
12939int
12940main ()
12941{
12942
12943 ;
12944 return 0;
12945}
12946_ACEOF
12947if ac_fn_c_try_link "$LINENO"; then :
12948 lt_cv_ld_exported_symbols_list=yes
12949else
12950 lt_cv_ld_exported_symbols_list=no
12951fi
12952rm -f core conftest.err conftest.$ac_objext \
12953 conftest$ac_exeext conftest.$ac_ext
12954 LDFLAGS="$save_LDFLAGS"
12955
12956fi
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12958$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012959
cristy0c60a692010-11-04 01:09:47 +000012960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12961$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012962if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012963 $as_echo_n "(cached) " >&6
12964else
12965 lt_cv_ld_force_load=no
12966 cat > conftest.c << _LT_EOF
12967int forced_loaded() { return 2;}
12968_LT_EOF
12969 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12970 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12971 echo "$AR cru libconftest.a conftest.o" >&5
12972 $AR cru libconftest.a conftest.o 2>&5
12973 echo "$RANLIB libconftest.a" >&5
12974 $RANLIB libconftest.a 2>&5
12975 cat > conftest.c << _LT_EOF
12976int main() { return 0;}
12977_LT_EOF
12978 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12979 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12980 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012981 if test -s conftest.err && $GREP force_load conftest.err; then
12982 cat conftest.err >&5
12983 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012984 lt_cv_ld_force_load=yes
12985 else
12986 cat conftest.err >&5
12987 fi
12988 rm -f conftest.err libconftest.a conftest conftest.c
12989 rm -rf conftest.dSYM
12990
12991fi
12992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12993$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012994 case $host_os in
12995 rhapsody* | darwin1.[012])
12996 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12997 darwin1.*)
12998 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12999 darwin*) # darwin 5.x on
13000 # if running on 10.5 or later, the deployment target defaults
13001 # to the OS version, if on x86, and 10.4, the deployment
13002 # target defaults to 10.4. Don't you love it?
13003 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13004 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13005 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13006 10.[012]*)
13007 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13008 10.*)
13009 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13010 esac
13011 ;;
13012 esac
13013 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13014 _lt_dar_single_mod='$single_module'
13015 fi
13016 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13017 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13018 else
13019 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13020 fi
cristy0c60a692010-11-04 01:09:47 +000013021 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013022 _lt_dsymutil='~$DSYMUTIL $lib || :'
13023 else
13024 _lt_dsymutil=
13025 fi
13026 ;;
13027 esac
13028
13029for ac_header in dlfcn.h
13030do :
13031 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13032"
cristyda16f162011-02-19 23:52:17 +000013033if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013034 cat >>confdefs.h <<_ACEOF
13035#define HAVE_DLFCN_H 1
13036_ACEOF
13037
13038fi
13039
13040done
13041
13042
13043
cristy73bd4a52010-10-05 11:24:23 +000013044
cristyda16f162011-02-19 23:52:17 +000013045func_stripname_cnf ()
13046{
13047 case ${2} in
13048 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13049 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13050 esac
13051} # func_stripname_cnf
13052
13053
13054
cristy73bd4a52010-10-05 11:24:23 +000013055
13056
13057# Set options
13058enable_win32_dll=yes
13059
13060case $host in
cristy0c60a692010-11-04 01:09:47 +000013061*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013062 if test -n "$ac_tool_prefix"; then
13063 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13064set dummy ${ac_tool_prefix}as; ac_word=$2
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13066$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013067if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013068 $as_echo_n "(cached) " >&6
13069else
13070 if test -n "$AS"; then
13071 ac_cv_prog_AS="$AS" # Let the user override the test.
13072else
13073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074for as_dir in $PATH
13075do
13076 IFS=$as_save_IFS
13077 test -z "$as_dir" && as_dir=.
13078 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013080 ac_cv_prog_AS="${ac_tool_prefix}as"
13081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13082 break 2
13083 fi
13084done
13085 done
13086IFS=$as_save_IFS
13087
13088fi
13089fi
13090AS=$ac_cv_prog_AS
13091if test -n "$AS"; then
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13093$as_echo "$AS" >&6; }
13094else
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096$as_echo "no" >&6; }
13097fi
13098
13099
13100fi
13101if test -z "$ac_cv_prog_AS"; then
13102 ac_ct_AS=$AS
13103 # Extract the first word of "as", so it can be a program name with args.
13104set dummy as; ac_word=$2
13105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13106$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013107if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013108 $as_echo_n "(cached) " >&6
13109else
13110 if test -n "$ac_ct_AS"; then
13111 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13112else
13113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114for as_dir in $PATH
13115do
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013120 ac_cv_prog_ac_ct_AS="as"
13121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122 break 2
13123 fi
13124done
13125 done
13126IFS=$as_save_IFS
13127
13128fi
13129fi
13130ac_ct_AS=$ac_cv_prog_ac_ct_AS
13131if test -n "$ac_ct_AS"; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13133$as_echo "$ac_ct_AS" >&6; }
13134else
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136$as_echo "no" >&6; }
13137fi
13138
13139 if test "x$ac_ct_AS" = x; then
13140 AS="false"
13141 else
13142 case $cross_compiling:$ac_tool_warned in
13143yes:)
13144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13146ac_tool_warned=yes ;;
13147esac
13148 AS=$ac_ct_AS
13149 fi
13150else
13151 AS="$ac_cv_prog_AS"
13152fi
13153
13154 if test -n "$ac_tool_prefix"; then
13155 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13156set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013159if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013160 $as_echo_n "(cached) " >&6
13161else
13162 if test -n "$DLLTOOL"; then
13163 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13164else
13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166for as_dir in $PATH
13167do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013172 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13175 fi
13176done
13177 done
13178IFS=$as_save_IFS
13179
13180fi
13181fi
13182DLLTOOL=$ac_cv_prog_DLLTOOL
13183if test -n "$DLLTOOL"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13185$as_echo "$DLLTOOL" >&6; }
13186else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188$as_echo "no" >&6; }
13189fi
13190
13191
13192fi
13193if test -z "$ac_cv_prog_DLLTOOL"; then
13194 ac_ct_DLLTOOL=$DLLTOOL
13195 # Extract the first word of "dlltool", so it can be a program name with args.
13196set dummy dlltool; ac_word=$2
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013199if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013200 $as_echo_n "(cached) " >&6
13201else
13202 if test -n "$ac_ct_DLLTOOL"; then
13203 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13204else
13205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206for as_dir in $PATH
13207do
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013212 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13215 fi
13216done
13217 done
13218IFS=$as_save_IFS
13219
13220fi
13221fi
13222ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13223if test -n "$ac_ct_DLLTOOL"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13225$as_echo "$ac_ct_DLLTOOL" >&6; }
13226else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228$as_echo "no" >&6; }
13229fi
13230
13231 if test "x$ac_ct_DLLTOOL" = x; then
13232 DLLTOOL="false"
13233 else
13234 case $cross_compiling:$ac_tool_warned in
13235yes:)
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13238ac_tool_warned=yes ;;
13239esac
13240 DLLTOOL=$ac_ct_DLLTOOL
13241 fi
13242else
13243 DLLTOOL="$ac_cv_prog_DLLTOOL"
13244fi
13245
13246 if test -n "$ac_tool_prefix"; then
13247 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13248set dummy ${ac_tool_prefix}objdump; ac_word=$2
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13250$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013251if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013252 $as_echo_n "(cached) " >&6
13253else
13254 if test -n "$OBJDUMP"; then
13255 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13256else
13257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258for as_dir in $PATH
13259do
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013264 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13267 fi
13268done
13269 done
13270IFS=$as_save_IFS
13271
13272fi
13273fi
13274OBJDUMP=$ac_cv_prog_OBJDUMP
13275if test -n "$OBJDUMP"; then
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13277$as_echo "$OBJDUMP" >&6; }
13278else
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13280$as_echo "no" >&6; }
13281fi
13282
13283
13284fi
13285if test -z "$ac_cv_prog_OBJDUMP"; then
13286 ac_ct_OBJDUMP=$OBJDUMP
13287 # Extract the first word of "objdump", so it can be a program name with args.
13288set dummy objdump; ac_word=$2
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13290$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013291if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013292 $as_echo_n "(cached) " >&6
13293else
13294 if test -n "$ac_ct_OBJDUMP"; then
13295 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13296else
13297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13298for as_dir in $PATH
13299do
13300 IFS=$as_save_IFS
13301 test -z "$as_dir" && as_dir=.
13302 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013304 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13306 break 2
13307 fi
13308done
13309 done
13310IFS=$as_save_IFS
13311
13312fi
13313fi
13314ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13315if test -n "$ac_ct_OBJDUMP"; then
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13317$as_echo "$ac_ct_OBJDUMP" >&6; }
13318else
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320$as_echo "no" >&6; }
13321fi
13322
13323 if test "x$ac_ct_OBJDUMP" = x; then
13324 OBJDUMP="false"
13325 else
13326 case $cross_compiling:$ac_tool_warned in
13327yes:)
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13330ac_tool_warned=yes ;;
13331esac
13332 OBJDUMP=$ac_ct_OBJDUMP
13333 fi
13334else
13335 OBJDUMP="$ac_cv_prog_OBJDUMP"
13336fi
13337
13338 ;;
13339esac
13340
13341test -z "$AS" && AS=as
13342
13343
13344
13345
13346
13347test -z "$DLLTOOL" && DLLTOOL=dlltool
13348
13349
13350
13351
13352
13353test -z "$OBJDUMP" && OBJDUMP=objdump
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363 # Check whether --enable-shared was given.
13364if test "${enable_shared+set}" = set; then :
13365 enableval=$enable_shared; p=${PACKAGE-default}
13366 case $enableval in
13367 yes) enable_shared=yes ;;
13368 no) enable_shared=no ;;
13369 *)
13370 enable_shared=no
13371 # Look at the argument we got. We use all the common list separators.
13372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13373 for pkg in $enableval; do
13374 IFS="$lt_save_ifs"
13375 if test "X$pkg" = "X$p"; then
13376 enable_shared=yes
13377 fi
13378 done
13379 IFS="$lt_save_ifs"
13380 ;;
13381 esac
13382else
13383 enable_shared=yes
13384fi
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394 # Check whether --enable-static was given.
13395if test "${enable_static+set}" = set; then :
13396 enableval=$enable_static; p=${PACKAGE-default}
13397 case $enableval in
13398 yes) enable_static=yes ;;
13399 no) enable_static=no ;;
13400 *)
13401 enable_static=no
13402 # Look at the argument we got. We use all the common list separators.
13403 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13404 for pkg in $enableval; do
13405 IFS="$lt_save_ifs"
13406 if test "X$pkg" = "X$p"; then
13407 enable_static=yes
13408 fi
13409 done
13410 IFS="$lt_save_ifs"
13411 ;;
13412 esac
13413else
13414 enable_static=yes
13415fi
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426# Check whether --with-pic was given.
13427if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013428 withval=$with_pic; lt_p=${PACKAGE-default}
13429 case $withval in
13430 yes|no) pic_mode=$withval ;;
13431 *)
13432 pic_mode=default
13433 # Look at the argument we got. We use all the common list separators.
13434 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13435 for lt_pkg in $withval; do
13436 IFS="$lt_save_ifs"
13437 if test "X$lt_pkg" = "X$lt_p"; then
13438 pic_mode=yes
13439 fi
13440 done
13441 IFS="$lt_save_ifs"
13442 ;;
13443 esac
cristy73bd4a52010-10-05 11:24:23 +000013444else
13445 pic_mode=default
13446fi
13447
13448
13449test -z "$pic_mode" && pic_mode=default
13450
13451
13452
13453
13454
13455
13456
13457 # Check whether --enable-fast-install was given.
13458if test "${enable_fast_install+set}" = set; then :
13459 enableval=$enable_fast_install; p=${PACKAGE-default}
13460 case $enableval in
13461 yes) enable_fast_install=yes ;;
13462 no) enable_fast_install=no ;;
13463 *)
13464 enable_fast_install=no
13465 # Look at the argument we got. We use all the common list separators.
13466 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13467 for pkg in $enableval; do
13468 IFS="$lt_save_ifs"
13469 if test "X$pkg" = "X$p"; then
13470 enable_fast_install=yes
13471 fi
13472 done
13473 IFS="$lt_save_ifs"
13474 ;;
13475 esac
13476else
13477 enable_fast_install=yes
13478fi
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490# This can be used to rebuild libtool when needed
13491LIBTOOL_DEPS="$ltmain"
13492
13493# Always use our own libtool.
13494LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
cristy0c60a692010-11-04 01:09:47 +000013520
cristy99bd5232011-12-07 14:38:20 +000013521
13522
13523
13524
cristy73bd4a52010-10-05 11:24:23 +000013525test -z "$LN_S" && LN_S="ln -s"
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540if test -n "${ZSH_VERSION+set}" ; then
13541 setopt NO_GLOB_SUBST
13542fi
13543
13544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13545$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013546if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013547 $as_echo_n "(cached) " >&6
13548else
13549 rm -f .libs 2>/dev/null
13550mkdir .libs 2>/dev/null
13551if test -d .libs; then
13552 lt_cv_objdir=.libs
13553else
13554 # MS-DOS does not allow filenames that begin with a dot.
13555 lt_cv_objdir=_libs
13556fi
13557rmdir .libs 2>/dev/null
13558fi
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13560$as_echo "$lt_cv_objdir" >&6; }
13561objdir=$lt_cv_objdir
13562
13563
13564
13565
13566
13567cat >>confdefs.h <<_ACEOF
13568#define LT_OBJDIR "$lt_cv_objdir/"
13569_ACEOF
13570
13571
13572
13573
cristy73bd4a52010-10-05 11:24:23 +000013574case $host_os in
13575aix3*)
13576 # AIX sometimes has problems with the GCC collect2 program. For some
13577 # reason, if we set the COLLECT_NAMES environment variable, the problems
13578 # vanish in a puff of smoke.
13579 if test "X${COLLECT_NAMES+set}" != Xset; then
13580 COLLECT_NAMES=
13581 export COLLECT_NAMES
13582 fi
13583 ;;
13584esac
13585
cristy73bd4a52010-10-05 11:24:23 +000013586# Global variables:
13587ofile=libtool
13588can_build_shared=yes
13589
13590# All known linkers require a `.a' archive for static linking (except MSVC,
13591# which needs '.lib').
13592libext=a
13593
13594with_gnu_ld="$lt_cv_prog_gnu_ld"
13595
13596old_CC="$CC"
13597old_CFLAGS="$CFLAGS"
13598
13599# Set sane defaults for various variables
13600test -z "$CC" && CC=cc
13601test -z "$LTCC" && LTCC=$CC
13602test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13603test -z "$LD" && LD=ld
13604test -z "$ac_objext" && ac_objext=o
13605
13606for cc_temp in $compiler""; do
13607 case $cc_temp in
13608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13610 \-*) ;;
13611 *) break;;
13612 esac
13613done
cristy0c60a692010-11-04 01:09:47 +000013614cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013615
13616
13617# Only perform the check for file, if the check method requires it
13618test -z "$MAGIC_CMD" && MAGIC_CMD=file
13619case $deplibs_check_method in
13620file_magic*)
13621 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13623$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013624if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013625 $as_echo_n "(cached) " >&6
13626else
13627 case $MAGIC_CMD in
13628[\\/*] | ?:[\\/]*)
13629 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13630 ;;
13631*)
13632 lt_save_MAGIC_CMD="$MAGIC_CMD"
13633 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13634 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13635 for ac_dir in $ac_dummy; do
13636 IFS="$lt_save_ifs"
13637 test -z "$ac_dir" && ac_dir=.
13638 if test -f $ac_dir/${ac_tool_prefix}file; then
13639 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13640 if test -n "$file_magic_test_file"; then
13641 case $deplibs_check_method in
13642 "file_magic "*)
13643 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13645 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13646 $EGREP "$file_magic_regex" > /dev/null; then
13647 :
13648 else
13649 cat <<_LT_EOF 1>&2
13650
13651*** Warning: the command libtool uses to detect shared libraries,
13652*** $file_magic_cmd, produces output that libtool cannot recognize.
13653*** The result is that libtool may fail to recognize shared libraries
13654*** as such. This will affect the creation of libtool libraries that
13655*** depend on shared libraries, but programs linked with such libtool
13656*** libraries will work regardless of this problem. Nevertheless, you
13657*** may want to report the problem to your system manager and/or to
13658*** bug-libtool@gnu.org
13659
13660_LT_EOF
13661 fi ;;
13662 esac
13663 fi
13664 break
13665 fi
13666 done
13667 IFS="$lt_save_ifs"
13668 MAGIC_CMD="$lt_save_MAGIC_CMD"
13669 ;;
13670esac
13671fi
13672
13673MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13674if test -n "$MAGIC_CMD"; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13676$as_echo "$MAGIC_CMD" >&6; }
13677else
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679$as_echo "no" >&6; }
13680fi
13681
13682
13683
13684
13685
13686if test -z "$lt_cv_path_MAGIC_CMD"; then
13687 if test -n "$ac_tool_prefix"; then
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13689$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013690if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013691 $as_echo_n "(cached) " >&6
13692else
13693 case $MAGIC_CMD in
13694[\\/*] | ?:[\\/]*)
13695 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13696 ;;
13697*)
13698 lt_save_MAGIC_CMD="$MAGIC_CMD"
13699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13700 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13701 for ac_dir in $ac_dummy; do
13702 IFS="$lt_save_ifs"
13703 test -z "$ac_dir" && ac_dir=.
13704 if test -f $ac_dir/file; then
13705 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13706 if test -n "$file_magic_test_file"; then
13707 case $deplibs_check_method in
13708 "file_magic "*)
13709 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13710 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13711 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13712 $EGREP "$file_magic_regex" > /dev/null; then
13713 :
13714 else
13715 cat <<_LT_EOF 1>&2
13716
13717*** Warning: the command libtool uses to detect shared libraries,
13718*** $file_magic_cmd, produces output that libtool cannot recognize.
13719*** The result is that libtool may fail to recognize shared libraries
13720*** as such. This will affect the creation of libtool libraries that
13721*** depend on shared libraries, but programs linked with such libtool
13722*** libraries will work regardless of this problem. Nevertheless, you
13723*** may want to report the problem to your system manager and/or to
13724*** bug-libtool@gnu.org
13725
13726_LT_EOF
13727 fi ;;
13728 esac
13729 fi
13730 break
13731 fi
13732 done
13733 IFS="$lt_save_ifs"
13734 MAGIC_CMD="$lt_save_MAGIC_CMD"
13735 ;;
13736esac
13737fi
13738
13739MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13740if test -n "$MAGIC_CMD"; then
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13742$as_echo "$MAGIC_CMD" >&6; }
13743else
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745$as_echo "no" >&6; }
13746fi
13747
13748
13749 else
13750 MAGIC_CMD=:
13751 fi
13752fi
13753
13754 fi
13755 ;;
13756esac
13757
13758# Use C for the default configuration in the libtool script
13759
13760lt_save_CC="$CC"
13761ac_ext=c
13762ac_cpp='$CPP $CPPFLAGS'
13763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13765ac_compiler_gnu=$ac_cv_c_compiler_gnu
13766
13767
13768# Source file extension for C test sources.
13769ac_ext=c
13770
13771# Object file extension for compiled C test sources.
13772objext=o
13773objext=$objext
13774
13775# Code to be used in simple compile tests
13776lt_simple_compile_test_code="int some_variable = 0;"
13777
13778# Code to be used in simple link tests
13779lt_simple_link_test_code='int main(){return(0);}'
13780
13781
13782
13783
13784
13785
13786
13787# If no C compiler was specified, use CC.
13788LTCC=${LTCC-"$CC"}
13789
13790# If no C compiler flags were specified, use CFLAGS.
13791LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13792
13793# Allow CC to be a program name with arguments.
13794compiler=$CC
13795
13796# Save the default compiler, since it gets overwritten when the other
13797# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13798compiler_DEFAULT=$CC
13799
13800# save warnings/boilerplate of simple test code
13801ac_outfile=conftest.$ac_objext
13802echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13803eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13804_lt_compiler_boilerplate=`cat conftest.err`
13805$RM conftest*
13806
13807ac_outfile=conftest.$ac_objext
13808echo "$lt_simple_link_test_code" >conftest.$ac_ext
13809eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13810_lt_linker_boilerplate=`cat conftest.err`
13811$RM -r conftest*
13812
13813
13814## CAVEAT EMPTOR:
13815## There is no encapsulation within the following macros, do not change
13816## the running order or otherwise move them around unless you know exactly
13817## what you are doing...
13818if test -n "$compiler"; then
13819
13820lt_prog_compiler_no_builtin_flag=
13821
13822if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013823 case $cc_basename in
13824 nvcc*)
13825 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13826 *)
13827 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13828 esac
cristy73bd4a52010-10-05 11:24:23 +000013829
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13831$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013832if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013833 $as_echo_n "(cached) " >&6
13834else
13835 lt_cv_prog_compiler_rtti_exceptions=no
13836 ac_outfile=conftest.$ac_objext
13837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13838 lt_compiler_flag="-fno-rtti -fno-exceptions"
13839 # Insert the option either (1) after the last *FLAGS variable, or
13840 # (2) before a word containing "conftest.", or (3) at the end.
13841 # Note that $ac_compile itself does not contain backslashes and begins
13842 # with a dollar sign (not a hyphen), so the echo should work correctly.
13843 # The option is referenced via a variable to avoid confusing sed.
13844 lt_compile=`echo "$ac_compile" | $SED \
13845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13847 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013848 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013849 (eval "$lt_compile" 2>conftest.err)
13850 ac_status=$?
13851 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013853 if (exit $ac_status) && test -s "$ac_outfile"; then
13854 # The compiler can only warn and ignore the option if not recognized
13855 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013856 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13858 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13859 lt_cv_prog_compiler_rtti_exceptions=yes
13860 fi
13861 fi
13862 $RM conftest*
13863
13864fi
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13866$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13867
13868if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13869 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13870else
13871 :
13872fi
13873
13874fi
13875
13876
13877
13878
13879
13880
13881 lt_prog_compiler_wl=
13882lt_prog_compiler_pic=
13883lt_prog_compiler_static=
13884
cristy73bd4a52010-10-05 11:24:23 +000013885
13886 if test "$GCC" = yes; then
13887 lt_prog_compiler_wl='-Wl,'
13888 lt_prog_compiler_static='-static'
13889
13890 case $host_os in
13891 aix*)
13892 # All AIX code is PIC.
13893 if test "$host_cpu" = ia64; then
13894 # AIX 5 now supports IA64 processor
13895 lt_prog_compiler_static='-Bstatic'
13896 fi
13897 ;;
13898
13899 amigaos*)
13900 case $host_cpu in
13901 powerpc)
13902 # see comment about AmigaOS4 .so support
13903 lt_prog_compiler_pic='-fPIC'
13904 ;;
13905 m68k)
13906 # FIXME: we need at least 68020 code to build shared libraries, but
13907 # adding the `-m68020' flag to GCC prevents building anything better,
13908 # like `-m68040'.
13909 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13910 ;;
13911 esac
13912 ;;
13913
13914 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13915 # PIC is the default for these OSes.
13916 ;;
13917
13918 mingw* | cygwin* | pw32* | os2* | cegcc*)
13919 # This hack is so that the source file can tell whether it is being
13920 # built for inclusion in a dll (and should export symbols for example).
13921 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13922 # (--disable-auto-import) libraries
13923 lt_prog_compiler_pic='-DDLL_EXPORT'
13924 ;;
13925
13926 darwin* | rhapsody*)
13927 # PIC is the default on this platform
13928 # Common symbols not allowed in MH_DYLIB files
13929 lt_prog_compiler_pic='-fno-common'
13930 ;;
13931
cristy0c60a692010-11-04 01:09:47 +000013932 haiku*)
13933 # PIC is the default for Haiku.
13934 # The "-static" flag exists, but is broken.
13935 lt_prog_compiler_static=
13936 ;;
13937
cristy73bd4a52010-10-05 11:24:23 +000013938 hpux*)
13939 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13940 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13941 # sets the default TLS model and affects inlining.
13942 case $host_cpu in
13943 hppa*64*)
13944 # +Z the default
13945 ;;
13946 *)
13947 lt_prog_compiler_pic='-fPIC'
13948 ;;
13949 esac
13950 ;;
13951
13952 interix[3-9]*)
13953 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13954 # Instead, we relocate shared libraries at runtime.
13955 ;;
13956
13957 msdosdjgpp*)
13958 # Just because we use GCC doesn't mean we suddenly get shared libraries
13959 # on systems that don't support them.
13960 lt_prog_compiler_can_build_shared=no
13961 enable_shared=no
13962 ;;
13963
13964 *nto* | *qnx*)
13965 # QNX uses GNU C++, but need to define -shared option too, otherwise
13966 # it will coredump.
13967 lt_prog_compiler_pic='-fPIC -shared'
13968 ;;
13969
13970 sysv4*MP*)
13971 if test -d /usr/nec; then
13972 lt_prog_compiler_pic=-Kconform_pic
13973 fi
13974 ;;
13975
13976 *)
13977 lt_prog_compiler_pic='-fPIC'
13978 ;;
13979 esac
cristy0c60a692010-11-04 01:09:47 +000013980
13981 case $cc_basename in
13982 nvcc*) # Cuda Compiler Driver 2.2
13983 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013984 if test -n "$lt_prog_compiler_pic"; then
13985 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13986 fi
cristy0c60a692010-11-04 01:09:47 +000013987 ;;
13988 esac
cristy73bd4a52010-10-05 11:24:23 +000013989 else
13990 # PORTME Check for flag to pass linker flags through the system compiler.
13991 case $host_os in
13992 aix*)
13993 lt_prog_compiler_wl='-Wl,'
13994 if test "$host_cpu" = ia64; then
13995 # AIX 5 now supports IA64 processor
13996 lt_prog_compiler_static='-Bstatic'
13997 else
13998 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13999 fi
14000 ;;
14001
14002 mingw* | cygwin* | pw32* | os2* | cegcc*)
14003 # This hack is so that the source file can tell whether it is being
14004 # built for inclusion in a dll (and should export symbols for example).
14005 lt_prog_compiler_pic='-DDLL_EXPORT'
14006 ;;
14007
14008 hpux9* | hpux10* | hpux11*)
14009 lt_prog_compiler_wl='-Wl,'
14010 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14011 # not for PA HP-UX.
14012 case $host_cpu in
14013 hppa*64*|ia64*)
14014 # +Z the default
14015 ;;
14016 *)
14017 lt_prog_compiler_pic='+Z'
14018 ;;
14019 esac
14020 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14021 lt_prog_compiler_static='${wl}-a ${wl}archive'
14022 ;;
14023
14024 irix5* | irix6* | nonstopux*)
14025 lt_prog_compiler_wl='-Wl,'
14026 # PIC (with -KPIC) is the default.
14027 lt_prog_compiler_static='-non_shared'
14028 ;;
14029
cristy0c60a692010-11-04 01:09:47 +000014030 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014031 case $cc_basename in
14032 # old Intel for x86_64 which still supported -KPIC.
14033 ecc*)
14034 lt_prog_compiler_wl='-Wl,'
14035 lt_prog_compiler_pic='-KPIC'
14036 lt_prog_compiler_static='-static'
14037 ;;
14038 # icc used to be incompatible with GCC.
14039 # ICC 10 doesn't accept -KPIC any more.
14040 icc* | ifort*)
14041 lt_prog_compiler_wl='-Wl,'
14042 lt_prog_compiler_pic='-fPIC'
14043 lt_prog_compiler_static='-static'
14044 ;;
14045 # Lahey Fortran 8.1.
14046 lf95*)
14047 lt_prog_compiler_wl='-Wl,'
14048 lt_prog_compiler_pic='--shared'
14049 lt_prog_compiler_static='--static'
14050 ;;
cristyda16f162011-02-19 23:52:17 +000014051 nagfor*)
14052 # NAG Fortran compiler
14053 lt_prog_compiler_wl='-Wl,-Wl,,'
14054 lt_prog_compiler_pic='-PIC'
14055 lt_prog_compiler_static='-Bstatic'
14056 ;;
cristy0c60a692010-11-04 01:09:47 +000014057 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014058 # Portland Group compilers (*not* the Pentium gcc compiler,
14059 # which looks to be a dead project)
14060 lt_prog_compiler_wl='-Wl,'
14061 lt_prog_compiler_pic='-fpic'
14062 lt_prog_compiler_static='-Bstatic'
14063 ;;
14064 ccc*)
14065 lt_prog_compiler_wl='-Wl,'
14066 # All Alpha code is PIC.
14067 lt_prog_compiler_static='-non_shared'
14068 ;;
cristy0c60a692010-11-04 01:09:47 +000014069 xl* | bgxl* | bgf* | mpixl*)
14070 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014071 lt_prog_compiler_wl='-Wl,'
14072 lt_prog_compiler_pic='-qpic'
14073 lt_prog_compiler_static='-qstaticlink'
14074 ;;
14075 *)
14076 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014077 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014078 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14079 lt_prog_compiler_pic='-KPIC'
14080 lt_prog_compiler_static='-Bstatic'
14081 lt_prog_compiler_wl=''
14082 ;;
cristy99bd5232011-12-07 14:38:20 +000014083 *Sun\ F* | *Sun*Fortran*)
14084 lt_prog_compiler_pic='-KPIC'
14085 lt_prog_compiler_static='-Bstatic'
14086 lt_prog_compiler_wl='-Qoption ld '
14087 ;;
cristy73bd4a52010-10-05 11:24:23 +000014088 *Sun\ C*)
14089 # Sun C 5.9
14090 lt_prog_compiler_pic='-KPIC'
14091 lt_prog_compiler_static='-Bstatic'
14092 lt_prog_compiler_wl='-Wl,'
14093 ;;
cristy99bd5232011-12-07 14:38:20 +000014094 *Intel*\ [CF]*Compiler*)
14095 lt_prog_compiler_wl='-Wl,'
14096 lt_prog_compiler_pic='-fPIC'
14097 lt_prog_compiler_static='-static'
14098 ;;
14099 *Portland\ Group*)
14100 lt_prog_compiler_wl='-Wl,'
14101 lt_prog_compiler_pic='-fpic'
14102 lt_prog_compiler_static='-Bstatic'
14103 ;;
cristy73bd4a52010-10-05 11:24:23 +000014104 esac
14105 ;;
14106 esac
14107 ;;
14108
14109 newsos6)
14110 lt_prog_compiler_pic='-KPIC'
14111 lt_prog_compiler_static='-Bstatic'
14112 ;;
14113
14114 *nto* | *qnx*)
14115 # QNX uses GNU C++, but need to define -shared option too, otherwise
14116 # it will coredump.
14117 lt_prog_compiler_pic='-fPIC -shared'
14118 ;;
14119
14120 osf3* | osf4* | osf5*)
14121 lt_prog_compiler_wl='-Wl,'
14122 # All OSF/1 code is PIC.
14123 lt_prog_compiler_static='-non_shared'
14124 ;;
14125
14126 rdos*)
14127 lt_prog_compiler_static='-non_shared'
14128 ;;
14129
14130 solaris*)
14131 lt_prog_compiler_pic='-KPIC'
14132 lt_prog_compiler_static='-Bstatic'
14133 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014134 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014135 lt_prog_compiler_wl='-Qoption ld ';;
14136 *)
14137 lt_prog_compiler_wl='-Wl,';;
14138 esac
14139 ;;
14140
14141 sunos4*)
14142 lt_prog_compiler_wl='-Qoption ld '
14143 lt_prog_compiler_pic='-PIC'
14144 lt_prog_compiler_static='-Bstatic'
14145 ;;
14146
14147 sysv4 | sysv4.2uw2* | sysv4.3*)
14148 lt_prog_compiler_wl='-Wl,'
14149 lt_prog_compiler_pic='-KPIC'
14150 lt_prog_compiler_static='-Bstatic'
14151 ;;
14152
14153 sysv4*MP*)
14154 if test -d /usr/nec ;then
14155 lt_prog_compiler_pic='-Kconform_pic'
14156 lt_prog_compiler_static='-Bstatic'
14157 fi
14158 ;;
14159
14160 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14161 lt_prog_compiler_wl='-Wl,'
14162 lt_prog_compiler_pic='-KPIC'
14163 lt_prog_compiler_static='-Bstatic'
14164 ;;
14165
14166 unicos*)
14167 lt_prog_compiler_wl='-Wl,'
14168 lt_prog_compiler_can_build_shared=no
14169 ;;
14170
14171 uts4*)
14172 lt_prog_compiler_pic='-pic'
14173 lt_prog_compiler_static='-Bstatic'
14174 ;;
14175
14176 *)
14177 lt_prog_compiler_can_build_shared=no
14178 ;;
14179 esac
14180 fi
14181
14182case $host_os in
14183 # For platforms which do not support PIC, -DPIC is meaningless:
14184 *djgpp*)
14185 lt_prog_compiler_pic=
14186 ;;
14187 *)
14188 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14189 ;;
14190esac
cristy73bd4a52010-10-05 11:24:23 +000014191
cristyda16f162011-02-19 23:52:17 +000014192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14193$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14194if ${lt_cv_prog_compiler_pic+:} false; then :
14195 $as_echo_n "(cached) " >&6
14196else
14197 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14198fi
14199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14200$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14201lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014202
14203#
14204# Check to make sure the PIC flag actually works.
14205#
14206if test -n "$lt_prog_compiler_pic"; then
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14208$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014209if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014210 $as_echo_n "(cached) " >&6
14211else
14212 lt_cv_prog_compiler_pic_works=no
14213 ac_outfile=conftest.$ac_objext
14214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14215 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14216 # Insert the option either (1) after the last *FLAGS variable, or
14217 # (2) before a word containing "conftest.", or (3) at the end.
14218 # Note that $ac_compile itself does not contain backslashes and begins
14219 # with a dollar sign (not a hyphen), so the echo should work correctly.
14220 # The option is referenced via a variable to avoid confusing sed.
14221 lt_compile=`echo "$ac_compile" | $SED \
14222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14224 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014225 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014226 (eval "$lt_compile" 2>conftest.err)
14227 ac_status=$?
14228 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014230 if (exit $ac_status) && test -s "$ac_outfile"; then
14231 # The compiler can only warn and ignore the option if not recognized
14232 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014233 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14235 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14236 lt_cv_prog_compiler_pic_works=yes
14237 fi
14238 fi
14239 $RM conftest*
14240
14241fi
14242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14243$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14244
14245if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14246 case $lt_prog_compiler_pic in
14247 "" | " "*) ;;
14248 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14249 esac
14250else
14251 lt_prog_compiler_pic=
14252 lt_prog_compiler_can_build_shared=no
14253fi
14254
14255fi
14256
14257
14258
14259
14260
14261
cristyda16f162011-02-19 23:52:17 +000014262
14263
14264
14265
14266
cristy73bd4a52010-10-05 11:24:23 +000014267#
14268# Check to make sure the static flag actually works.
14269#
14270wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14272$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014273if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014274 $as_echo_n "(cached) " >&6
14275else
14276 lt_cv_prog_compiler_static_works=no
14277 save_LDFLAGS="$LDFLAGS"
14278 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14279 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14280 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14281 # The linker can only warn and ignore the option if not recognized
14282 # So say no if there are warnings
14283 if test -s conftest.err; then
14284 # Append any errors to the config.log.
14285 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014286 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14288 if diff conftest.exp conftest.er2 >/dev/null; then
14289 lt_cv_prog_compiler_static_works=yes
14290 fi
14291 else
14292 lt_cv_prog_compiler_static_works=yes
14293 fi
14294 fi
14295 $RM -r conftest*
14296 LDFLAGS="$save_LDFLAGS"
14297
14298fi
14299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14300$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14301
14302if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14303 :
14304else
14305 lt_prog_compiler_static=
14306fi
14307
14308
14309
14310
14311
14312
14313
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14315$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014316if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014317 $as_echo_n "(cached) " >&6
14318else
14319 lt_cv_prog_compiler_c_o=no
14320 $RM -r conftest 2>/dev/null
14321 mkdir conftest
14322 cd conftest
14323 mkdir out
14324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14325
14326 lt_compiler_flag="-o out/conftest2.$ac_objext"
14327 # Insert the option either (1) after the last *FLAGS variable, or
14328 # (2) before a word containing "conftest.", or (3) at the end.
14329 # Note that $ac_compile itself does not contain backslashes and begins
14330 # with a dollar sign (not a hyphen), so the echo should work correctly.
14331 lt_compile=`echo "$ac_compile" | $SED \
14332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14334 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014335 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014336 (eval "$lt_compile" 2>out/conftest.err)
14337 ac_status=$?
14338 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014340 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14341 then
14342 # The compiler can only warn and ignore the option if not recognized
14343 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014344 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014345 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14346 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14347 lt_cv_prog_compiler_c_o=yes
14348 fi
14349 fi
14350 chmod u+w . 2>&5
14351 $RM conftest*
14352 # SGI C++ compiler will create directory out/ii_files/ for
14353 # template instantiation
14354 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14355 $RM out/* && rmdir out
14356 cd ..
14357 $RM -r conftest
14358 $RM conftest*
14359
14360fi
14361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14362$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14363
14364
14365
14366
14367
14368
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14370$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014371if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014372 $as_echo_n "(cached) " >&6
14373else
14374 lt_cv_prog_compiler_c_o=no
14375 $RM -r conftest 2>/dev/null
14376 mkdir conftest
14377 cd conftest
14378 mkdir out
14379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14380
14381 lt_compiler_flag="-o out/conftest2.$ac_objext"
14382 # Insert the option either (1) after the last *FLAGS variable, or
14383 # (2) before a word containing "conftest.", or (3) at the end.
14384 # Note that $ac_compile itself does not contain backslashes and begins
14385 # with a dollar sign (not a hyphen), so the echo should work correctly.
14386 lt_compile=`echo "$ac_compile" | $SED \
14387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14389 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014391 (eval "$lt_compile" 2>out/conftest.err)
14392 ac_status=$?
14393 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014395 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14396 then
14397 # The compiler can only warn and ignore the option if not recognized
14398 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014399 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014400 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14401 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14402 lt_cv_prog_compiler_c_o=yes
14403 fi
14404 fi
14405 chmod u+w . 2>&5
14406 $RM conftest*
14407 # SGI C++ compiler will create directory out/ii_files/ for
14408 # template instantiation
14409 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14410 $RM out/* && rmdir out
14411 cd ..
14412 $RM -r conftest
14413 $RM conftest*
14414
14415fi
14416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14417$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14418
14419
14420
14421
14422hard_links="nottested"
14423if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14424 # do not overwrite the value of need_locks provided by the user
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14426$as_echo_n "checking if we can lock with hard links... " >&6; }
14427 hard_links=yes
14428 $RM conftest*
14429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14430 touch conftest.a
14431 ln conftest.a conftest.b 2>&5 || hard_links=no
14432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14434$as_echo "$hard_links" >&6; }
14435 if test "$hard_links" = no; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14437$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14438 need_locks=warn
14439 fi
14440else
14441 need_locks=no
14442fi
14443
14444
14445
14446
14447
14448
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14450$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14451
14452 runpath_var=
14453 allow_undefined_flag=
14454 always_export_symbols=no
14455 archive_cmds=
14456 archive_expsym_cmds=
14457 compiler_needs_object=no
14458 enable_shared_with_static_runtimes=no
14459 export_dynamic_flag_spec=
14460 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14461 hardcode_automatic=no
14462 hardcode_direct=no
14463 hardcode_direct_absolute=no
14464 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014465 hardcode_libdir_separator=
14466 hardcode_minus_L=no
14467 hardcode_shlibpath_var=unsupported
14468 inherit_rpath=no
14469 link_all_deplibs=unknown
14470 module_cmds=
14471 module_expsym_cmds=
14472 old_archive_from_new_cmds=
14473 old_archive_from_expsyms_cmds=
14474 thread_safe_flag_spec=
14475 whole_archive_flag_spec=
14476 # include_expsyms should be a list of space-separated symbols to be *always*
14477 # included in the symbol list
14478 include_expsyms=
14479 # exclude_expsyms can be an extended regexp of symbols to exclude
14480 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14481 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14482 # as well as any symbol that contains `d'.
14483 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14484 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14485 # platforms (ab)use it in PIC code, but their linkers get confused if
14486 # the symbol is explicitly referenced. Since portable code cannot
14487 # rely on this symbol name, it's probably fine to never include it in
14488 # preloaded symbol tables.
14489 # Exclude shared library initialization/finalization symbols.
14490 extract_expsyms_cmds=
14491
14492 case $host_os in
14493 cygwin* | mingw* | pw32* | cegcc*)
14494 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14495 # When not using gcc, we currently assume that we are using
14496 # Microsoft Visual C++.
14497 if test "$GCC" != yes; then
14498 with_gnu_ld=no
14499 fi
14500 ;;
14501 interix*)
14502 # we just hope/assume this is gcc and not c89 (= MSVC++)
14503 with_gnu_ld=yes
14504 ;;
14505 openbsd*)
14506 with_gnu_ld=no
14507 ;;
14508 esac
14509
14510 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014511
14512 # On some targets, GNU ld is compatible enough with the native linker
14513 # that we're better off using the native interface for both.
14514 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014515 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014516 case $host_os in
14517 aix*)
14518 # The AIX port of GNU ld has always aspired to compatibility
14519 # with the native linker. However, as the warning in the GNU ld
14520 # block says, versions before 2.19.5* couldn't really create working
14521 # shared libraries, regardless of the interface used.
14522 case `$LD -v 2>&1` in
14523 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14524 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14525 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14526 *)
14527 lt_use_gnu_ld_interface=yes
14528 ;;
14529 esac
14530 ;;
14531 *)
14532 lt_use_gnu_ld_interface=yes
14533 ;;
14534 esac
14535 fi
14536
14537 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014538 # If archive_cmds runs LD, not CC, wlarc should be empty
14539 wlarc='${wl}'
14540
14541 # Set some defaults for GNU ld with shared library support. These
14542 # are reset later if shared libraries are not supported. Putting them
14543 # here allows them to be overridden if necessary.
14544 runpath_var=LD_RUN_PATH
14545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14546 export_dynamic_flag_spec='${wl}--export-dynamic'
14547 # ancient GNU ld didn't support --whole-archive et. al.
14548 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14549 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14550 else
14551 whole_archive_flag_spec=
14552 fi
14553 supports_anon_versioning=no
14554 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014555 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014556 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14557 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14558 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14559 *\ 2.11.*) ;; # other 2.11 versions
14560 *) supports_anon_versioning=yes ;;
14561 esac
14562
14563 # See if GNU ld supports shared libraries.
14564 case $host_os in
14565 aix[3-9]*)
14566 # On AIX/PPC, the GNU linker is very broken
14567 if test "$host_cpu" != ia64; then
14568 ld_shlibs=no
14569 cat <<_LT_EOF 1>&2
14570
cristy0c60a692010-11-04 01:09:47 +000014571*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014572*** to be unable to reliably create shared libraries on AIX.
14573*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014574*** really care for shared libraries, you may want to install binutils
14575*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14576*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014577
14578_LT_EOF
14579 fi
14580 ;;
14581
14582 amigaos*)
14583 case $host_cpu in
14584 powerpc)
14585 # see comment about AmigaOS4 .so support
14586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14587 archive_expsym_cmds=''
14588 ;;
14589 m68k)
14590 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)'
14591 hardcode_libdir_flag_spec='-L$libdir'
14592 hardcode_minus_L=yes
14593 ;;
14594 esac
14595 ;;
14596
14597 beos*)
14598 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14599 allow_undefined_flag=unsupported
14600 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14601 # support --undefined. This deserves some investigation. FIXME
14602 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14603 else
14604 ld_shlibs=no
14605 fi
14606 ;;
14607
14608 cygwin* | mingw* | pw32* | cegcc*)
14609 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14610 # as there is no search path for DLLs.
14611 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014612 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014613 allow_undefined_flag=unsupported
14614 always_export_symbols=no
14615 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014616 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'
14617 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 +000014618
14619 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14621 # If the export-symbols file already is a .def file (1st line
14622 # is EXPORTS), use it as is; otherwise, prepend...
14623 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14624 cp $export_symbols $output_objdir/$soname.def;
14625 else
14626 echo EXPORTS > $output_objdir/$soname.def;
14627 cat $export_symbols >> $output_objdir/$soname.def;
14628 fi~
14629 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14630 else
14631 ld_shlibs=no
14632 fi
14633 ;;
14634
cristy0c60a692010-11-04 01:09:47 +000014635 haiku*)
14636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14637 link_all_deplibs=yes
14638 ;;
14639
cristy73bd4a52010-10-05 11:24:23 +000014640 interix[3-9]*)
14641 hardcode_direct=no
14642 hardcode_shlibpath_var=no
14643 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14644 export_dynamic_flag_spec='${wl}-E'
14645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14646 # Instead, shared libraries are loaded at an image base (0x10000000 by
14647 # default) and relocated if they conflict, which is a slow very memory
14648 # consuming and fragmenting process. To avoid this, we pick a random,
14649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14650 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14651 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14652 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'
14653 ;;
14654
cristy0c60a692010-11-04 01:09:47 +000014655 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014656 tmp_diet=no
14657 if test "$host_os" = linux-dietlibc; then
14658 case $cc_basename in
14659 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14660 esac
14661 fi
14662 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14663 && test "$tmp_diet" = no
14664 then
cristyda16f162011-02-19 23:52:17 +000014665 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014666 tmp_sharedflag='-shared'
14667 case $cc_basename,$host_cpu in
14668 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014669 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 +000014670 tmp_addflag=' $pic_flag'
14671 ;;
cristy0c60a692010-11-04 01:09:47 +000014672 pgf77* | pgf90* | pgf95* | pgfortran*)
14673 # Portland Group f77 and f90 compilers
14674 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 +000014675 tmp_addflag=' $pic_flag -Mnomain' ;;
14676 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14677 tmp_addflag=' -i_dynamic' ;;
14678 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14679 tmp_addflag=' -i_dynamic -nofor_main' ;;
14680 ifc* | ifort*) # Intel Fortran compiler
14681 tmp_addflag=' -nofor_main' ;;
14682 lf95*) # Lahey Fortran 8.1
14683 whole_archive_flag_spec=
14684 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014685 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014686 tmp_sharedflag='-qmkshrobj'
14687 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014688 nvcc*) # Cuda Compiler Driver 2.2
14689 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'
14690 compiler_needs_object=yes
14691 ;;
cristy73bd4a52010-10-05 11:24:23 +000014692 esac
14693 case `$CC -V 2>&1 | sed 5q` in
14694 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014695 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 +000014696 compiler_needs_object=yes
14697 tmp_sharedflag='-G' ;;
14698 *Sun\ F*) # Sun Fortran 8.3
14699 tmp_sharedflag='-G' ;;
14700 esac
14701 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14702
14703 if test "x$supports_anon_versioning" = xyes; then
14704 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14706 echo "local: *; };" >> $output_objdir/$libname.ver~
14707 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14708 fi
14709
14710 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014711 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014712 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14713 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014715 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014716 if test "x$supports_anon_versioning" = xyes; then
14717 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14718 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14719 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014720 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014721 fi
14722 ;;
14723 esac
14724 else
14725 ld_shlibs=no
14726 fi
14727 ;;
14728
14729 netbsd*)
14730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14731 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14732 wlarc=
14733 else
cristyda16f162011-02-19 23:52:17 +000014734 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14735 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 +000014736 fi
14737 ;;
14738
14739 solaris*)
14740 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14741 ld_shlibs=no
14742 cat <<_LT_EOF 1>&2
14743
14744*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14745*** create shared libraries on Solaris systems. Therefore, libtool
14746*** is disabling shared libraries support. We urge you to upgrade GNU
14747*** binutils to release 2.9.1 or newer. Another option is to modify
14748*** your PATH or compiler configuration so that the native linker is
14749*** used, and then restart.
14750
14751_LT_EOF
14752 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014753 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14754 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 +000014755 else
14756 ld_shlibs=no
14757 fi
14758 ;;
14759
14760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14761 case `$LD -v 2>&1` in
14762 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14763 ld_shlibs=no
14764 cat <<_LT_EOF 1>&2
14765
14766*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14767*** reliably create shared libraries on SCO systems. Therefore, libtool
14768*** is disabling shared libraries support. We urge you to upgrade GNU
14769*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14770*** your PATH or compiler configuration so that the native linker is
14771*** used, and then restart.
14772
14773_LT_EOF
14774 ;;
14775 *)
14776 # For security reasons, it is highly recommended that you always
14777 # use absolute paths for naming shared libraries, and exclude the
14778 # DT_RUNPATH tag from executables and libraries. But doing so
14779 # requires that you compile everything twice, which is a pain.
14780 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14784 else
14785 ld_shlibs=no
14786 fi
14787 ;;
14788 esac
14789 ;;
14790
14791 sunos4*)
14792 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14793 wlarc=
14794 hardcode_direct=yes
14795 hardcode_shlibpath_var=no
14796 ;;
14797
14798 *)
14799 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014800 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14801 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 +000014802 else
14803 ld_shlibs=no
14804 fi
14805 ;;
14806 esac
14807
14808 if test "$ld_shlibs" = no; then
14809 runpath_var=
14810 hardcode_libdir_flag_spec=
14811 export_dynamic_flag_spec=
14812 whole_archive_flag_spec=
14813 fi
14814 else
14815 # PORTME fill in a description of your system's linker (not GNU ld)
14816 case $host_os in
14817 aix3*)
14818 allow_undefined_flag=unsupported
14819 always_export_symbols=yes
14820 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'
14821 # Note: this linker hardcodes the directories in LIBPATH if there
14822 # are no directories specified by -L.
14823 hardcode_minus_L=yes
14824 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14825 # Neither direct hardcoding nor static linking is supported with a
14826 # broken collect2.
14827 hardcode_direct=unsupported
14828 fi
14829 ;;
14830
14831 aix[4-9]*)
14832 if test "$host_cpu" = ia64; then
14833 # On IA64, the linker does run time linking by default, so we don't
14834 # have to do anything special.
14835 aix_use_runtimelinking=no
14836 exp_sym_flag='-Bexport'
14837 no_entry_flag=""
14838 else
14839 # If we're using GNU nm, then we don't want the "-C" option.
14840 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014841 # Also, AIX nm treats weak defined symbols like other global
14842 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014843 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014844 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 +000014845 else
14846 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'
14847 fi
14848 aix_use_runtimelinking=no
14849
14850 # Test if we are trying to use run time linking or normal
14851 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14852 # need to do runtime linking.
14853 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14854 for ld_flag in $LDFLAGS; do
14855 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14856 aix_use_runtimelinking=yes
14857 break
14858 fi
14859 done
14860 ;;
14861 esac
14862
14863 exp_sym_flag='-bexport'
14864 no_entry_flag='-bnoentry'
14865 fi
14866
14867 # When large executables or shared objects are built, AIX ld can
14868 # have problems creating the table of contents. If linking a library
14869 # or program results in "error TOC overflow" add -mminimal-toc to
14870 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14871 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14872
14873 archive_cmds=''
14874 hardcode_direct=yes
14875 hardcode_direct_absolute=yes
14876 hardcode_libdir_separator=':'
14877 link_all_deplibs=yes
14878 file_list_spec='${wl}-f,'
14879
14880 if test "$GCC" = yes; then
14881 case $host_os in aix4.[012]|aix4.[012].*)
14882 # We only want to do this on AIX 4.2 and lower, the check
14883 # below for broken collect2 doesn't work under 4.3+
14884 collect2name=`${CC} -print-prog-name=collect2`
14885 if test -f "$collect2name" &&
14886 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14887 then
14888 # We have reworked collect2
14889 :
14890 else
14891 # We have old collect2
14892 hardcode_direct=unsupported
14893 # It fails to find uninstalled libraries when the uninstalled
14894 # path is not listed in the libpath. Setting hardcode_minus_L
14895 # to unsupported forces relinking
14896 hardcode_minus_L=yes
14897 hardcode_libdir_flag_spec='-L$libdir'
14898 hardcode_libdir_separator=
14899 fi
14900 ;;
14901 esac
14902 shared_flag='-shared'
14903 if test "$aix_use_runtimelinking" = yes; then
14904 shared_flag="$shared_flag "'${wl}-G'
14905 fi
14906 else
14907 # not using gcc
14908 if test "$host_cpu" = ia64; then
14909 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14910 # chokes on -Wl,-G. The following line is correct:
14911 shared_flag='-G'
14912 else
14913 if test "$aix_use_runtimelinking" = yes; then
14914 shared_flag='${wl}-G'
14915 else
14916 shared_flag='${wl}-bM:SRE'
14917 fi
14918 fi
14919 fi
14920
14921 export_dynamic_flag_spec='${wl}-bexpall'
14922 # It seems that -bexpall does not export symbols beginning with
14923 # underscore (_), so it is better to generate a list of symbols to export.
14924 always_export_symbols=yes
14925 if test "$aix_use_runtimelinking" = yes; then
14926 # Warning - without using the other runtime loading flags (-brtl),
14927 # -berok will link without error, but may produce a broken library.
14928 allow_undefined_flag='-berok'
14929 # Determine the default libpath from the value encoded in an
14930 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014931 if test "${lt_cv_aix_libpath+set}" = set; then
14932 aix_libpath=$lt_cv_aix_libpath
14933else
14934 if ${lt_cv_aix_libpath_+:} false; then :
14935 $as_echo_n "(cached) " >&6
14936else
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014938/* end confdefs.h. */
14939
14940int
14941main ()
14942{
14943
14944 ;
14945 return 0;
14946}
14947_ACEOF
14948if ac_fn_c_try_link "$LINENO"; then :
14949
cristyda16f162011-02-19 23:52:17 +000014950 lt_aix_libpath_sed='
14951 /Import File Strings/,/^$/ {
14952 /^0/ {
14953 s/^0 *\([^ ]*\) *$/\1/
14954 p
14955 }
14956 }'
14957 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14958 # Check for a 64-bit object if we didn't find anything.
14959 if test -z "$lt_cv_aix_libpath_"; then
14960 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14961 fi
cristy73bd4a52010-10-05 11:24:23 +000014962fi
14963rm -f core conftest.err conftest.$ac_objext \
14964 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014965 if test -z "$lt_cv_aix_libpath_"; then
14966 lt_cv_aix_libpath_="/usr/lib:/lib"
14967 fi
14968
14969fi
14970
14971 aix_libpath=$lt_cv_aix_libpath_
14972fi
cristy73bd4a52010-10-05 11:24:23 +000014973
14974 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014975 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 +000014976 else
14977 if test "$host_cpu" = ia64; then
14978 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14979 allow_undefined_flag="-z nodefs"
14980 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"
14981 else
14982 # Determine the default libpath from the value encoded in an
14983 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014984 if test "${lt_cv_aix_libpath+set}" = set; then
14985 aix_libpath=$lt_cv_aix_libpath
14986else
14987 if ${lt_cv_aix_libpath_+:} false; then :
14988 $as_echo_n "(cached) " >&6
14989else
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014991/* end confdefs.h. */
14992
14993int
14994main ()
14995{
14996
14997 ;
14998 return 0;
14999}
15000_ACEOF
15001if ac_fn_c_try_link "$LINENO"; then :
15002
cristyda16f162011-02-19 23:52:17 +000015003 lt_aix_libpath_sed='
15004 /Import File Strings/,/^$/ {
15005 /^0/ {
15006 s/^0 *\([^ ]*\) *$/\1/
15007 p
15008 }
15009 }'
15010 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15011 # Check for a 64-bit object if we didn't find anything.
15012 if test -z "$lt_cv_aix_libpath_"; then
15013 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15014 fi
cristy73bd4a52010-10-05 11:24:23 +000015015fi
15016rm -f core conftest.err conftest.$ac_objext \
15017 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015018 if test -z "$lt_cv_aix_libpath_"; then
15019 lt_cv_aix_libpath_="/usr/lib:/lib"
15020 fi
15021
15022fi
15023
15024 aix_libpath=$lt_cv_aix_libpath_
15025fi
cristy73bd4a52010-10-05 11:24:23 +000015026
15027 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15028 # Warning - without using the other run time loading flags,
15029 # -berok will link without error, but may produce a broken library.
15030 no_undefined_flag=' ${wl}-bernotok'
15031 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015032 if test "$with_gnu_ld" = yes; then
15033 # We only use this code for GNU lds that support --whole-archive.
15034 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15035 else
15036 # Exported symbols can be pulled into shared objects from archives
15037 whole_archive_flag_spec='$convenience'
15038 fi
cristy73bd4a52010-10-05 11:24:23 +000015039 archive_cmds_need_lc=yes
15040 # This is similar to how AIX traditionally builds its shared libraries.
15041 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'
15042 fi
15043 fi
15044 ;;
15045
15046 amigaos*)
15047 case $host_cpu in
15048 powerpc)
15049 # see comment about AmigaOS4 .so support
15050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15051 archive_expsym_cmds=''
15052 ;;
15053 m68k)
15054 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)'
15055 hardcode_libdir_flag_spec='-L$libdir'
15056 hardcode_minus_L=yes
15057 ;;
15058 esac
15059 ;;
15060
15061 bsdi[45]*)
15062 export_dynamic_flag_spec=-rdynamic
15063 ;;
15064
15065 cygwin* | mingw* | pw32* | cegcc*)
15066 # When not using gcc, we currently assume that we are using
15067 # Microsoft Visual C++.
15068 # hardcode_libdir_flag_spec is actually meaningless, as there is
15069 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015070 case $cc_basename in
15071 cl*)
15072 # Native MSVC
15073 hardcode_libdir_flag_spec=' '
15074 allow_undefined_flag=unsupported
15075 always_export_symbols=yes
15076 file_list_spec='@'
15077 # Tell ltmain to make .lib files, not .a files.
15078 libext=lib
15079 # Tell ltmain to make .dll files, not .so files.
15080 shrext_cmds=".dll"
15081 # FIXME: Setting linknames here is a bad hack.
15082 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15083 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15084 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15085 else
15086 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15087 fi~
15088 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15089 linknames='
15090 # The linker will not automatically build a static lib if we build a DLL.
15091 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15092 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015093 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015094 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15095 # Don't use ranlib
15096 old_postinstall_cmds='chmod 644 $oldlib'
15097 postlink_cmds='lt_outputfile="@OUTPUT@"~
15098 lt_tool_outputfile="@TOOL_OUTPUT@"~
15099 case $lt_outputfile in
15100 *.exe|*.EXE) ;;
15101 *)
15102 lt_outputfile="$lt_outputfile.exe"
15103 lt_tool_outputfile="$lt_tool_outputfile.exe"
15104 ;;
15105 esac~
15106 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15107 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15108 $RM "$lt_outputfile.manifest";
15109 fi'
15110 ;;
15111 *)
15112 # Assume MSVC wrapper
15113 hardcode_libdir_flag_spec=' '
15114 allow_undefined_flag=unsupported
15115 # Tell ltmain to make .lib files, not .a files.
15116 libext=lib
15117 # Tell ltmain to make .dll files, not .so files.
15118 shrext_cmds=".dll"
15119 # FIXME: Setting linknames here is a bad hack.
15120 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15121 # The linker will automatically build a .lib file if we build a DLL.
15122 old_archive_from_new_cmds='true'
15123 # FIXME: Should let the user specify the lib program.
15124 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15125 enable_shared_with_static_runtimes=yes
15126 ;;
15127 esac
cristy73bd4a52010-10-05 11:24:23 +000015128 ;;
15129
15130 darwin* | rhapsody*)
15131
15132
15133 archive_cmds_need_lc=no
15134 hardcode_direct=no
15135 hardcode_automatic=yes
15136 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015137 if test "$lt_cv_ld_force_load" = "yes"; then
15138 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 +000015139
cristy0c60a692010-11-04 01:09:47 +000015140 else
15141 whole_archive_flag_spec=''
15142 fi
cristy73bd4a52010-10-05 11:24:23 +000015143 link_all_deplibs=yes
15144 allow_undefined_flag="$_lt_dar_allow_undefined"
15145 case $cc_basename in
15146 ifort*) _lt_dar_can_shared=yes ;;
15147 *) _lt_dar_can_shared=$GCC ;;
15148 esac
15149 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015150 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015151 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15152 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15153 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}"
15154 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}"
15155
15156 else
15157 ld_shlibs=no
15158 fi
15159
15160 ;;
15161
15162 dgux*)
15163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15164 hardcode_libdir_flag_spec='-L$libdir'
15165 hardcode_shlibpath_var=no
15166 ;;
15167
cristy73bd4a52010-10-05 11:24:23 +000015168 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15169 # support. Future versions do this automatically, but an explicit c++rt0.o
15170 # does not break anything, and helps significantly (at the cost of a little
15171 # extra space).
15172 freebsd2.2*)
15173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15174 hardcode_libdir_flag_spec='-R$libdir'
15175 hardcode_direct=yes
15176 hardcode_shlibpath_var=no
15177 ;;
15178
15179 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015180 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015181 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15182 hardcode_direct=yes
15183 hardcode_minus_L=yes
15184 hardcode_shlibpath_var=no
15185 ;;
15186
15187 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15188 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015189 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015190 hardcode_libdir_flag_spec='-R$libdir'
15191 hardcode_direct=yes
15192 hardcode_shlibpath_var=no
15193 ;;
15194
15195 hpux9*)
15196 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015197 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 +000015198 else
15199 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'
15200 fi
15201 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15202 hardcode_libdir_separator=:
15203 hardcode_direct=yes
15204
15205 # hardcode_minus_L: Not really in the search PATH,
15206 # but as the default location of the library.
15207 hardcode_minus_L=yes
15208 export_dynamic_flag_spec='${wl}-E'
15209 ;;
15210
15211 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015212 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015213 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 +000015214 else
15215 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15216 fi
15217 if test "$with_gnu_ld" = no; then
15218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015219 hardcode_libdir_separator=:
15220 hardcode_direct=yes
15221 hardcode_direct_absolute=yes
15222 export_dynamic_flag_spec='${wl}-E'
15223 # hardcode_minus_L: Not really in the search PATH,
15224 # but as the default location of the library.
15225 hardcode_minus_L=yes
15226 fi
15227 ;;
15228
15229 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015230 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015231 case $host_cpu in
15232 hppa*64*)
15233 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15234 ;;
15235 ia64*)
cristyda16f162011-02-19 23:52:17 +000015236 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015237 ;;
15238 *)
cristyda16f162011-02-19 23:52:17 +000015239 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 +000015240 ;;
15241 esac
15242 else
15243 case $host_cpu in
15244 hppa*64*)
15245 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15246 ;;
15247 ia64*)
15248 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15249 ;;
15250 *)
cristy0c60a692010-11-04 01:09:47 +000015251
15252 # Older versions of the 11.00 compiler do not understand -b yet
15253 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15255$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015256if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015257 $as_echo_n "(cached) " >&6
15258else
15259 lt_cv_prog_compiler__b=no
15260 save_LDFLAGS="$LDFLAGS"
15261 LDFLAGS="$LDFLAGS -b"
15262 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15263 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15264 # The linker can only warn and ignore the option if not recognized
15265 # So say no if there are warnings
15266 if test -s conftest.err; then
15267 # Append any errors to the config.log.
15268 cat conftest.err 1>&5
15269 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15271 if diff conftest.exp conftest.er2 >/dev/null; then
15272 lt_cv_prog_compiler__b=yes
15273 fi
15274 else
15275 lt_cv_prog_compiler__b=yes
15276 fi
15277 fi
15278 $RM -r conftest*
15279 LDFLAGS="$save_LDFLAGS"
15280
15281fi
15282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15283$as_echo "$lt_cv_prog_compiler__b" >&6; }
15284
15285if test x"$lt_cv_prog_compiler__b" = xyes; then
15286 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15287else
15288 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15289fi
15290
cristy73bd4a52010-10-05 11:24:23 +000015291 ;;
15292 esac
15293 fi
15294 if test "$with_gnu_ld" = no; then
15295 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15296 hardcode_libdir_separator=:
15297
15298 case $host_cpu in
15299 hppa*64*|ia64*)
15300 hardcode_direct=no
15301 hardcode_shlibpath_var=no
15302 ;;
15303 *)
15304 hardcode_direct=yes
15305 hardcode_direct_absolute=yes
15306 export_dynamic_flag_spec='${wl}-E'
15307
15308 # hardcode_minus_L: Not really in the search PATH,
15309 # but as the default location of the library.
15310 hardcode_minus_L=yes
15311 ;;
15312 esac
15313 fi
15314 ;;
15315
15316 irix5* | irix6* | nonstopux*)
15317 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015318 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 +000015319 # Try to use the -exported_symbol ld option, if it does not
15320 # work, assume that -exports_file does not work either and
15321 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015322 # This should be the same for all languages, so no per-tag cache variable.
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15324$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15325if ${lt_cv_irix_exported_symbol+:} false; then :
15326 $as_echo_n "(cached) " >&6
15327else
15328 save_LDFLAGS="$LDFLAGS"
15329 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015331/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015332int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015333_ACEOF
15334if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015335 lt_cv_irix_exported_symbol=yes
15336else
15337 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015338fi
15339rm -f core conftest.err conftest.$ac_objext \
15340 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015341 LDFLAGS="$save_LDFLAGS"
15342fi
15343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15344$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15345 if test "$lt_cv_irix_exported_symbol" = yes; then
15346 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'
15347 fi
cristy73bd4a52010-10-05 11:24:23 +000015348 else
cristy0c60a692010-11-04 01:09:47 +000015349 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'
15350 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 +000015351 fi
15352 archive_cmds_need_lc='no'
15353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15354 hardcode_libdir_separator=:
15355 inherit_rpath=yes
15356 link_all_deplibs=yes
15357 ;;
15358
15359 netbsd*)
15360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15362 else
15363 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15364 fi
15365 hardcode_libdir_flag_spec='-R$libdir'
15366 hardcode_direct=yes
15367 hardcode_shlibpath_var=no
15368 ;;
15369
15370 newsos6)
15371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15372 hardcode_direct=yes
15373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15374 hardcode_libdir_separator=:
15375 hardcode_shlibpath_var=no
15376 ;;
15377
15378 *nto* | *qnx*)
15379 ;;
15380
15381 openbsd*)
15382 if test -f /usr/libexec/ld.so; then
15383 hardcode_direct=yes
15384 hardcode_shlibpath_var=no
15385 hardcode_direct_absolute=yes
15386 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15387 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15388 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15389 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15390 export_dynamic_flag_spec='${wl}-E'
15391 else
15392 case $host_os in
15393 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15395 hardcode_libdir_flag_spec='-R$libdir'
15396 ;;
15397 *)
15398 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15399 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15400 ;;
15401 esac
15402 fi
15403 else
15404 ld_shlibs=no
15405 fi
15406 ;;
15407
15408 os2*)
15409 hardcode_libdir_flag_spec='-L$libdir'
15410 hardcode_minus_L=yes
15411 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015412 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 +000015413 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15414 ;;
15415
15416 osf3*)
15417 if test "$GCC" = yes; then
15418 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015419 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 +000015420 else
15421 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015422 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 +000015423 fi
15424 archive_cmds_need_lc='no'
15425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15426 hardcode_libdir_separator=:
15427 ;;
15428
15429 osf4* | osf5*) # as osf3* with the addition of -msym flag
15430 if test "$GCC" = yes; then
15431 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015432 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 +000015433 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15434 else
15435 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015436 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 +000015437 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 +000015438 $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 +000015439
15440 # Both c and cxx compiler support -rpath directly
15441 hardcode_libdir_flag_spec='-rpath $libdir'
15442 fi
15443 archive_cmds_need_lc='no'
15444 hardcode_libdir_separator=:
15445 ;;
15446
15447 solaris*)
15448 no_undefined_flag=' -z defs'
15449 if test "$GCC" = yes; then
15450 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015451 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 +000015452 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 +000015453 $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 +000015454 else
15455 case `$CC -V 2>&1` in
15456 *"Compilers 5.0"*)
15457 wlarc=''
15458 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15459 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15460 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15461 ;;
15462 *)
15463 wlarc='${wl}'
15464 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15465 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15466 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15467 ;;
15468 esac
15469 fi
15470 hardcode_libdir_flag_spec='-R$libdir'
15471 hardcode_shlibpath_var=no
15472 case $host_os in
15473 solaris2.[0-5] | solaris2.[0-5].*) ;;
15474 *)
15475 # The compiler driver will combine and reorder linker options,
15476 # but understands `-z linker_flag'. GCC discards it without `$wl',
15477 # but is careful enough not to reorder.
15478 # Supported since Solaris 2.6 (maybe 2.5.1?)
15479 if test "$GCC" = yes; then
15480 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15481 else
15482 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15483 fi
15484 ;;
15485 esac
15486 link_all_deplibs=yes
15487 ;;
15488
15489 sunos4*)
15490 if test "x$host_vendor" = xsequent; then
15491 # Use $CC to link under sequent, because it throws in some extra .o
15492 # files that make .init and .fini sections work.
15493 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15494 else
15495 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15496 fi
15497 hardcode_libdir_flag_spec='-L$libdir'
15498 hardcode_direct=yes
15499 hardcode_minus_L=yes
15500 hardcode_shlibpath_var=no
15501 ;;
15502
15503 sysv4)
15504 case $host_vendor in
15505 sni)
15506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15507 hardcode_direct=yes # is this really true???
15508 ;;
15509 siemens)
15510 ## LD is ld it makes a PLAMLIB
15511 ## CC just makes a GrossModule.
15512 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15513 reload_cmds='$CC -r -o $output$reload_objs'
15514 hardcode_direct=no
15515 ;;
15516 motorola)
15517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15518 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15519 ;;
15520 esac
15521 runpath_var='LD_RUN_PATH'
15522 hardcode_shlibpath_var=no
15523 ;;
15524
15525 sysv4.3*)
15526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15527 hardcode_shlibpath_var=no
15528 export_dynamic_flag_spec='-Bexport'
15529 ;;
15530
15531 sysv4*MP*)
15532 if test -d /usr/nec; then
15533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15534 hardcode_shlibpath_var=no
15535 runpath_var=LD_RUN_PATH
15536 hardcode_runpath_var=yes
15537 ld_shlibs=yes
15538 fi
15539 ;;
15540
15541 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15542 no_undefined_flag='${wl}-z,text'
15543 archive_cmds_need_lc=no
15544 hardcode_shlibpath_var=no
15545 runpath_var='LD_RUN_PATH'
15546
15547 if test "$GCC" = yes; then
15548 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15549 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15550 else
15551 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15552 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15553 fi
15554 ;;
15555
15556 sysv5* | sco3.2v5* | sco5v6*)
15557 # Note: We can NOT use -z defs as we might desire, because we do not
15558 # link with -lc, and that would cause any symbols used from libc to
15559 # always be unresolved, which means just about no library would
15560 # ever link correctly. If we're not using GNU ld we use -z text
15561 # though, which does catch some bad symbols but isn't as heavy-handed
15562 # as -z defs.
15563 no_undefined_flag='${wl}-z,text'
15564 allow_undefined_flag='${wl}-z,nodefs'
15565 archive_cmds_need_lc=no
15566 hardcode_shlibpath_var=no
15567 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15568 hardcode_libdir_separator=':'
15569 link_all_deplibs=yes
15570 export_dynamic_flag_spec='${wl}-Bexport'
15571 runpath_var='LD_RUN_PATH'
15572
15573 if test "$GCC" = yes; then
15574 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15575 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15576 else
15577 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15578 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15579 fi
15580 ;;
15581
15582 uts4*)
15583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15584 hardcode_libdir_flag_spec='-L$libdir'
15585 hardcode_shlibpath_var=no
15586 ;;
15587
15588 *)
15589 ld_shlibs=no
15590 ;;
15591 esac
15592
15593 if test x$host_vendor = xsni; then
15594 case $host in
15595 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15596 export_dynamic_flag_spec='${wl}-Blargedynsym'
15597 ;;
15598 esac
15599 fi
15600 fi
15601
15602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15603$as_echo "$ld_shlibs" >&6; }
15604test "$ld_shlibs" = no && can_build_shared=no
15605
15606with_gnu_ld=$with_gnu_ld
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622#
15623# Do we need to explicitly link libc?
15624#
15625case "x$archive_cmds_need_lc" in
15626x|xyes)
15627 # Assume -lc should be added
15628 archive_cmds_need_lc=yes
15629
15630 if test "$enable_shared" = yes && test "$GCC" = yes; then
15631 case $archive_cmds in
15632 *'~'*)
15633 # FIXME: we may have to deal with multi-command sequences.
15634 ;;
15635 '$CC '*)
15636 # Test whether the compiler implicitly links with -lc since on some
15637 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15638 # to ld, don't add -lc before -lgcc.
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15640$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015641if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015642 $as_echo_n "(cached) " >&6
15643else
15644 $RM conftest*
15645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015646
cristy0c60a692010-11-04 01:09:47 +000015647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015648 (eval $ac_compile) 2>&5
15649 ac_status=$?
15650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15651 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015652 soname=conftest
15653 lib=conftest
15654 libobjs=conftest.$ac_objext
15655 deplibs=
15656 wl=$lt_prog_compiler_wl
15657 pic_flag=$lt_prog_compiler_pic
15658 compiler_flags=-v
15659 linker_flags=-v
15660 verstring=
15661 output_objdir=.
15662 libname=conftest
15663 lt_save_allow_undefined_flag=$allow_undefined_flag
15664 allow_undefined_flag=
15665 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 +000015666 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15667 ac_status=$?
15668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15669 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015670 then
15671 lt_cv_archive_cmds_need_lc=no
15672 else
15673 lt_cv_archive_cmds_need_lc=yes
15674 fi
15675 allow_undefined_flag=$lt_save_allow_undefined_flag
15676 else
15677 cat conftest.err 1>&5
15678 fi
15679 $RM conftest*
15680
15681fi
15682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15683$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15684 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015685 ;;
15686 esac
15687 fi
15688 ;;
15689esac
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
cristy73bd4a52010-10-05 11:24:23 +000015842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15843$as_echo_n "checking dynamic linker characteristics... " >&6; }
15844
15845if test "$GCC" = yes; then
15846 case $host_os in
15847 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15848 *) lt_awk_arg="/^libraries:/" ;;
15849 esac
cristy0c60a692010-11-04 01:09:47 +000015850 case $host_os in
15851 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15852 *) lt_sed_strip_eq="s,=/,/,g" ;;
15853 esac
15854 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15855 case $lt_search_path_spec in
15856 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015857 # if the path contains ";" then we assume it to be the separator
15858 # otherwise default to the standard path separator (i.e. ":") - it is
15859 # assumed that no part of a normal pathname contains ";" but that should
15860 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015861 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15862 ;;
15863 *)
15864 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15865 ;;
15866 esac
cristy73bd4a52010-10-05 11:24:23 +000015867 # Ok, now we have the path, separated by spaces, we can step through it
15868 # and add multilib dir if necessary.
15869 lt_tmp_lt_search_path_spec=
15870 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15871 for lt_sys_path in $lt_search_path_spec; do
15872 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15873 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15874 else
15875 test -d "$lt_sys_path" && \
15876 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15877 fi
15878 done
cristy0c60a692010-11-04 01:09:47 +000015879 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015880BEGIN {RS=" "; FS="/|\n";} {
15881 lt_foo="";
15882 lt_count=0;
15883 for (lt_i = NF; lt_i > 0; lt_i--) {
15884 if ($lt_i != "" && $lt_i != ".") {
15885 if ($lt_i == "..") {
15886 lt_count++;
15887 } else {
15888 if (lt_count == 0) {
15889 lt_foo="/" $lt_i lt_foo;
15890 } else {
15891 lt_count--;
15892 }
15893 }
15894 }
15895 }
15896 if (lt_foo != "") { lt_freq[lt_foo]++; }
15897 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15898}'`
cristy0c60a692010-11-04 01:09:47 +000015899 # AWK program above erroneously prepends '/' to C:/dos/paths
15900 # for these hosts.
15901 case $host_os in
15902 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15903 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15904 esac
15905 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015906else
15907 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15908fi
15909library_names_spec=
15910libname_spec='lib$name'
15911soname_spec=
15912shrext_cmds=".so"
15913postinstall_cmds=
15914postuninstall_cmds=
15915finish_cmds=
15916finish_eval=
15917shlibpath_var=
15918shlibpath_overrides_runpath=unknown
15919version_type=none
15920dynamic_linker="$host_os ld.so"
15921sys_lib_dlsearch_path_spec="/lib /usr/lib"
15922need_lib_prefix=unknown
15923hardcode_into_libs=no
15924
15925# when you set need_version to no, make sure it does not cause -set_version
15926# flags to be left without arguments
15927need_version=unknown
15928
15929case $host_os in
15930aix3*)
cristy99bd5232011-12-07 14:38:20 +000015931 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015932 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15933 shlibpath_var=LIBPATH
15934
15935 # AIX 3 has no versioning support, so we append a major version to the name.
15936 soname_spec='${libname}${release}${shared_ext}$major'
15937 ;;
15938
15939aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015940 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015941 need_lib_prefix=no
15942 need_version=no
15943 hardcode_into_libs=yes
15944 if test "$host_cpu" = ia64; then
15945 # AIX 5 supports IA64
15946 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15947 shlibpath_var=LD_LIBRARY_PATH
15948 else
15949 # With GCC up to 2.95.x, collect2 would create an import file
15950 # for dependence libraries. The import file would start with
15951 # the line `#! .'. This would cause the generated library to
15952 # depend on `.', always an invalid library. This was fixed in
15953 # development snapshots of GCC prior to 3.0.
15954 case $host_os in
15955 aix4 | aix4.[01] | aix4.[01].*)
15956 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15957 echo ' yes '
15958 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15959 :
15960 else
15961 can_build_shared=no
15962 fi
15963 ;;
15964 esac
15965 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15966 # soname into executable. Probably we can add versioning support to
15967 # collect2, so additional links can be useful in future.
15968 if test "$aix_use_runtimelinking" = yes; then
15969 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15970 # instead of lib<name>.a to let people know that these are not
15971 # typical AIX shared libraries.
15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15973 else
15974 # We preserve .a as extension for shared libraries through AIX4.2
15975 # and later when we are not doing run time linking.
15976 library_names_spec='${libname}${release}.a $libname.a'
15977 soname_spec='${libname}${release}${shared_ext}$major'
15978 fi
15979 shlibpath_var=LIBPATH
15980 fi
15981 ;;
15982
15983amigaos*)
15984 case $host_cpu in
15985 powerpc)
15986 # Since July 2007 AmigaOS4 officially supports .so libraries.
15987 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15989 ;;
15990 m68k)
15991 library_names_spec='$libname.ixlibrary $libname.a'
15992 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015993 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 +000015994 ;;
15995 esac
15996 ;;
15997
15998beos*)
15999 library_names_spec='${libname}${shared_ext}'
16000 dynamic_linker="$host_os ld.so"
16001 shlibpath_var=LIBRARY_PATH
16002 ;;
16003
16004bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016005 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016006 need_version=no
16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16008 soname_spec='${libname}${release}${shared_ext}$major'
16009 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16010 shlibpath_var=LD_LIBRARY_PATH
16011 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16012 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16013 # the default ld.so.conf also contains /usr/contrib/lib and
16014 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16015 # libtool to hard-code these into programs
16016 ;;
16017
16018cygwin* | mingw* | pw32* | cegcc*)
16019 version_type=windows
16020 shrext_cmds=".dll"
16021 need_version=no
16022 need_lib_prefix=no
16023
cristyda16f162011-02-19 23:52:17 +000016024 case $GCC,$cc_basename in
16025 yes,*)
16026 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016027 library_names_spec='$libname.dll.a'
16028 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16029 postinstall_cmds='base_file=`basename \${file}`~
16030 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16031 dldir=$destdir/`dirname \$dlpath`~
16032 test -d \$dldir || mkdir -p \$dldir~
16033 $install_prog $dir/$dlname \$dldir/$dlname~
16034 chmod a+x \$dldir/$dlname~
16035 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16036 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16037 fi'
16038 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16039 dlpath=$dir/\$dldll~
16040 $RM \$dlpath'
16041 shlibpath_overrides_runpath=yes
16042
16043 case $host_os in
16044 cygwin*)
16045 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16046 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016047
16048 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016049 ;;
16050 mingw* | cegcc*)
16051 # MinGW DLLs use traditional 'lib' prefix
16052 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016053 ;;
16054 pw32*)
16055 # pw32 DLLs use 'pw' prefix rather than 'lib'
16056 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16057 ;;
16058 esac
cristyda16f162011-02-19 23:52:17 +000016059 dynamic_linker='Win32 ld.exe'
16060 ;;
16061
16062 *,cl*)
16063 # Native MSVC
16064 libname_spec='$name'
16065 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16066 library_names_spec='${libname}.dll.lib'
16067
16068 case $build_os in
16069 mingw*)
16070 sys_lib_search_path_spec=
16071 lt_save_ifs=$IFS
16072 IFS=';'
16073 for lt_path in $LIB
16074 do
16075 IFS=$lt_save_ifs
16076 # Let DOS variable expansion print the short 8.3 style file name.
16077 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16078 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16079 done
16080 IFS=$lt_save_ifs
16081 # Convert to MSYS style.
16082 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16083 ;;
16084 cygwin*)
16085 # Convert to unix form, then to dos form, then back to unix form
16086 # but this time dos style (no spaces!) so that the unix form looks
16087 # like /cygdrive/c/PROGRA~1:/cygdr...
16088 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16089 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16090 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16091 ;;
16092 *)
16093 sys_lib_search_path_spec="$LIB"
16094 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16095 # It is most probably a Windows format PATH.
16096 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16097 else
16098 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16099 fi
16100 # FIXME: find the short name or the path components, as spaces are
16101 # common. (e.g. "Program Files" -> "PROGRA~1")
16102 ;;
16103 esac
16104
16105 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16106 postinstall_cmds='base_file=`basename \${file}`~
16107 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16108 dldir=$destdir/`dirname \$dlpath`~
16109 test -d \$dldir || mkdir -p \$dldir~
16110 $install_prog $dir/$dlname \$dldir/$dlname'
16111 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16112 dlpath=$dir/\$dldll~
16113 $RM \$dlpath'
16114 shlibpath_overrides_runpath=yes
16115 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016116 ;;
16117
16118 *)
cristyda16f162011-02-19 23:52:17 +000016119 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016120 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016121 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016122 ;;
16123 esac
cristy73bd4a52010-10-05 11:24:23 +000016124 # FIXME: first we should search . and the directory the executable is in
16125 shlibpath_var=PATH
16126 ;;
16127
16128darwin* | rhapsody*)
16129 dynamic_linker="$host_os dyld"
16130 version_type=darwin
16131 need_lib_prefix=no
16132 need_version=no
16133 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16134 soname_spec='${libname}${release}${major}$shared_ext'
16135 shlibpath_overrides_runpath=yes
16136 shlibpath_var=DYLD_LIBRARY_PATH
16137 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16138
16139 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16140 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16141 ;;
16142
16143dgux*)
cristy99bd5232011-12-07 14:38:20 +000016144 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016145 need_lib_prefix=no
16146 need_version=no
16147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16148 soname_spec='${libname}${release}${shared_ext}$major'
16149 shlibpath_var=LD_LIBRARY_PATH
16150 ;;
16151
cristy73bd4a52010-10-05 11:24:23 +000016152freebsd* | dragonfly*)
16153 # DragonFly does not have aout. When/if they implement a new
16154 # versioning mechanism, adjust this.
16155 if test -x /usr/bin/objformat; then
16156 objformat=`/usr/bin/objformat`
16157 else
16158 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016159 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016160 *) objformat=elf ;;
16161 esac
16162 fi
16163 version_type=freebsd-$objformat
16164 case $version_type in
16165 freebsd-elf*)
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16167 need_version=no
16168 need_lib_prefix=no
16169 ;;
16170 freebsd-*)
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16172 need_version=yes
16173 ;;
16174 esac
16175 shlibpath_var=LD_LIBRARY_PATH
16176 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016177 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016178 shlibpath_overrides_runpath=yes
16179 ;;
16180 freebsd3.[01]* | freebsdelf3.[01]*)
16181 shlibpath_overrides_runpath=yes
16182 hardcode_into_libs=yes
16183 ;;
16184 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16185 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16186 shlibpath_overrides_runpath=no
16187 hardcode_into_libs=yes
16188 ;;
16189 *) # from 4.6 on, and DragonFly
16190 shlibpath_overrides_runpath=yes
16191 hardcode_into_libs=yes
16192 ;;
16193 esac
16194 ;;
16195
16196gnu*)
cristy99bd5232011-12-07 14:38:20 +000016197 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016198 need_lib_prefix=no
16199 need_version=no
16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016203 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016204 hardcode_into_libs=yes
16205 ;;
16206
cristy0c60a692010-11-04 01:09:47 +000016207haiku*)
cristy99bd5232011-12-07 14:38:20 +000016208 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016209 need_lib_prefix=no
16210 need_version=no
16211 dynamic_linker="$host_os runtime_loader"
16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16213 soname_spec='${libname}${release}${shared_ext}$major'
16214 shlibpath_var=LIBRARY_PATH
16215 shlibpath_overrides_runpath=yes
16216 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16217 hardcode_into_libs=yes
16218 ;;
16219
cristy73bd4a52010-10-05 11:24:23 +000016220hpux9* | hpux10* | hpux11*)
16221 # Give a soname corresponding to the major version so that dld.sl refuses to
16222 # link against other versions.
16223 version_type=sunos
16224 need_lib_prefix=no
16225 need_version=no
16226 case $host_cpu in
16227 ia64*)
16228 shrext_cmds='.so'
16229 hardcode_into_libs=yes
16230 dynamic_linker="$host_os dld.so"
16231 shlibpath_var=LD_LIBRARY_PATH
16232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234 soname_spec='${libname}${release}${shared_ext}$major'
16235 if test "X$HPUX_IA64_MODE" = X32; then
16236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16237 else
16238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16239 fi
16240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16241 ;;
16242 hppa*64*)
16243 shrext_cmds='.sl'
16244 hardcode_into_libs=yes
16245 dynamic_linker="$host_os dld.sl"
16246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16252 ;;
16253 *)
16254 shrext_cmds='.sl'
16255 dynamic_linker="$host_os dld.sl"
16256 shlibpath_var=SHLIB_PATH
16257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259 soname_spec='${libname}${release}${shared_ext}$major'
16260 ;;
16261 esac
cristy0c60a692010-11-04 01:09:47 +000016262 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016263 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016264 # or fails outright, so override atomically:
16265 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016266 ;;
16267
16268interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016269 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016270 need_lib_prefix=no
16271 need_version=no
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16273 soname_spec='${libname}${release}${shared_ext}$major'
16274 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16275 shlibpath_var=LD_LIBRARY_PATH
16276 shlibpath_overrides_runpath=no
16277 hardcode_into_libs=yes
16278 ;;
16279
16280irix5* | irix6* | nonstopux*)
16281 case $host_os in
16282 nonstopux*) version_type=nonstopux ;;
16283 *)
16284 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016285 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016286 else
16287 version_type=irix
16288 fi ;;
16289 esac
16290 need_lib_prefix=no
16291 need_version=no
16292 soname_spec='${libname}${release}${shared_ext}$major'
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16294 case $host_os in
16295 irix5* | nonstopux*)
16296 libsuff= shlibsuff=
16297 ;;
16298 *)
16299 case $LD in # libtool.m4 will add one of these switches to LD
16300 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16301 libsuff= shlibsuff= libmagic=32-bit;;
16302 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16303 libsuff=32 shlibsuff=N32 libmagic=N32;;
16304 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16305 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16306 *) libsuff= shlibsuff= libmagic=never-match;;
16307 esac
16308 ;;
16309 esac
16310 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16311 shlibpath_overrides_runpath=no
16312 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16313 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16314 hardcode_into_libs=yes
16315 ;;
16316
16317# No shared lib support for Linux oldld, aout, or coff.
16318linux*oldld* | linux*aout* | linux*coff*)
16319 dynamic_linker=no
16320 ;;
16321
cristy99bd5232011-12-07 14:38:20 +000016322# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016323linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016324 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016325 need_lib_prefix=no
16326 need_version=no
16327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16328 soname_spec='${libname}${release}${shared_ext}$major'
16329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16330 shlibpath_var=LD_LIBRARY_PATH
16331 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016332
cristy73bd4a52010-10-05 11:24:23 +000016333 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016334 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016335 $as_echo_n "(cached) " >&6
16336else
16337 lt_cv_shlibpath_overrides_runpath=no
16338 save_LDFLAGS=$LDFLAGS
16339 save_libdir=$libdir
16340 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16341 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016343/* end confdefs.h. */
16344
16345int
16346main ()
16347{
16348
16349 ;
16350 return 0;
16351}
16352_ACEOF
16353if ac_fn_c_try_link "$LINENO"; then :
16354 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016355 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016356fi
16357fi
16358rm -f core conftest.err conftest.$ac_objext \
16359 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016360 LDFLAGS=$save_LDFLAGS
16361 libdir=$save_libdir
16362
16363fi
16364
16365 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016366
16367 # This implies no fast_install, which is unacceptable.
16368 # Some rework will be needed to allow for fast_install
16369 # before this can be enabled.
16370 hardcode_into_libs=yes
16371
16372 # Add ABI-specific directories to the system library path.
16373 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16374
16375 # Append ld.so.conf contents to the search path
16376 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016377 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 +000016378 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016379
cristy73bd4a52010-10-05 11:24:23 +000016380 fi
16381
16382 # We used to test for /lib/ld.so.1 and disable shared libraries on
16383 # powerpc, because MkLinux only supported shared libraries with the
16384 # GNU dynamic linker. Since this was broken with cross compilers,
16385 # most powerpc-linux boxes support dynamic linking these days and
16386 # people can always --disable-shared, the test was removed, and we
16387 # assume the GNU/Linux dynamic linker is in use.
16388 dynamic_linker='GNU/Linux ld.so'
16389 ;;
16390
16391netbsd*)
16392 version_type=sunos
16393 need_lib_prefix=no
16394 need_version=no
16395 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16398 dynamic_linker='NetBSD (a.out) ld.so'
16399 else
16400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16401 soname_spec='${libname}${release}${shared_ext}$major'
16402 dynamic_linker='NetBSD ld.elf_so'
16403 fi
16404 shlibpath_var=LD_LIBRARY_PATH
16405 shlibpath_overrides_runpath=yes
16406 hardcode_into_libs=yes
16407 ;;
16408
16409newsos6)
cristy99bd5232011-12-07 14:38:20 +000016410 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16412 shlibpath_var=LD_LIBRARY_PATH
16413 shlibpath_overrides_runpath=yes
16414 ;;
16415
16416*nto* | *qnx*)
16417 version_type=qnx
16418 need_lib_prefix=no
16419 need_version=no
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421 soname_spec='${libname}${release}${shared_ext}$major'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 shlibpath_overrides_runpath=no
16424 hardcode_into_libs=yes
16425 dynamic_linker='ldqnx.so'
16426 ;;
16427
16428openbsd*)
16429 version_type=sunos
16430 sys_lib_dlsearch_path_spec="/usr/lib"
16431 need_lib_prefix=no
16432 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16433 case $host_os in
16434 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16435 *) need_version=no ;;
16436 esac
16437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16439 shlibpath_var=LD_LIBRARY_PATH
16440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16441 case $host_os in
16442 openbsd2.[89] | openbsd2.[89].*)
16443 shlibpath_overrides_runpath=no
16444 ;;
16445 *)
16446 shlibpath_overrides_runpath=yes
16447 ;;
16448 esac
16449 else
16450 shlibpath_overrides_runpath=yes
16451 fi
16452 ;;
16453
16454os2*)
16455 libname_spec='$name'
16456 shrext_cmds=".dll"
16457 need_lib_prefix=no
16458 library_names_spec='$libname${shared_ext} $libname.a'
16459 dynamic_linker='OS/2 ld.exe'
16460 shlibpath_var=LIBPATH
16461 ;;
16462
16463osf3* | osf4* | osf5*)
16464 version_type=osf
16465 need_lib_prefix=no
16466 need_version=no
16467 soname_spec='${libname}${release}${shared_ext}$major'
16468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16469 shlibpath_var=LD_LIBRARY_PATH
16470 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16471 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16472 ;;
16473
16474rdos*)
16475 dynamic_linker=no
16476 ;;
16477
16478solaris*)
cristy99bd5232011-12-07 14:38:20 +000016479 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016480 need_lib_prefix=no
16481 need_version=no
16482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16483 soname_spec='${libname}${release}${shared_ext}$major'
16484 shlibpath_var=LD_LIBRARY_PATH
16485 shlibpath_overrides_runpath=yes
16486 hardcode_into_libs=yes
16487 # ldd complains unless libraries are executable
16488 postinstall_cmds='chmod +x $lib'
16489 ;;
16490
16491sunos4*)
16492 version_type=sunos
16493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16494 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16495 shlibpath_var=LD_LIBRARY_PATH
16496 shlibpath_overrides_runpath=yes
16497 if test "$with_gnu_ld" = yes; then
16498 need_lib_prefix=no
16499 fi
16500 need_version=yes
16501 ;;
16502
16503sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016504 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016505 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
16508 case $host_vendor in
16509 sni)
16510 shlibpath_overrides_runpath=no
16511 need_lib_prefix=no
16512 runpath_var=LD_RUN_PATH
16513 ;;
16514 siemens)
16515 need_lib_prefix=no
16516 ;;
16517 motorola)
16518 need_lib_prefix=no
16519 need_version=no
16520 shlibpath_overrides_runpath=no
16521 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16522 ;;
16523 esac
16524 ;;
16525
16526sysv4*MP*)
16527 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016528 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016529 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16530 soname_spec='$libname${shared_ext}.$major'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 fi
16533 ;;
16534
16535sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16536 version_type=freebsd-elf
16537 need_lib_prefix=no
16538 need_version=no
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16540 soname_spec='${libname}${release}${shared_ext}$major'
16541 shlibpath_var=LD_LIBRARY_PATH
16542 shlibpath_overrides_runpath=yes
16543 hardcode_into_libs=yes
16544 if test "$with_gnu_ld" = yes; then
16545 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16546 else
16547 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16548 case $host_os in
16549 sco3.2v5*)
16550 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16551 ;;
16552 esac
16553 fi
16554 sys_lib_dlsearch_path_spec='/usr/lib'
16555 ;;
16556
16557tpf*)
16558 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016559 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016560 need_lib_prefix=no
16561 need_version=no
16562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563 shlibpath_var=LD_LIBRARY_PATH
16564 shlibpath_overrides_runpath=no
16565 hardcode_into_libs=yes
16566 ;;
16567
16568uts4*)
cristy99bd5232011-12-07 14:38:20 +000016569 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571 soname_spec='${libname}${release}${shared_ext}$major'
16572 shlibpath_var=LD_LIBRARY_PATH
16573 ;;
16574
16575*)
16576 dynamic_linker=no
16577 ;;
16578esac
16579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16580$as_echo "$dynamic_linker" >&6; }
16581test "$dynamic_linker" = no && can_build_shared=no
16582
16583variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16584if test "$GCC" = yes; then
16585 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16586fi
16587
16588if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16589 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16590fi
16591if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16592 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16593fi
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
cristy0c60a692010-11-04 01:09:47 +000016681
16682
16683
16684
16685
cristy73bd4a52010-10-05 11:24:23 +000016686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16687$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16688hardcode_action=
16689if test -n "$hardcode_libdir_flag_spec" ||
16690 test -n "$runpath_var" ||
16691 test "X$hardcode_automatic" = "Xyes" ; then
16692
16693 # We can hardcode non-existent directories.
16694 if test "$hardcode_direct" != no &&
16695 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16696 # have to relink, otherwise we might link with an installed library
16697 # when we should be linking with a yet-to-be-installed one
16698 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16699 test "$hardcode_minus_L" != no; then
16700 # Linking always hardcodes the temporary library directory.
16701 hardcode_action=relink
16702 else
16703 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16704 hardcode_action=immediate
16705 fi
16706else
16707 # We cannot hardcode anything, or else we can only hardcode existing
16708 # directories.
16709 hardcode_action=unsupported
16710fi
16711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16712$as_echo "$hardcode_action" >&6; }
16713
16714if test "$hardcode_action" = relink ||
16715 test "$inherit_rpath" = yes; then
16716 # Fast installation is not supported
16717 enable_fast_install=no
16718elif test "$shlibpath_overrides_runpath" = yes ||
16719 test "$enable_shared" = no; then
16720 # Fast installation is not necessary
16721 enable_fast_install=needless
16722fi
16723
16724
16725
16726
16727
16728
16729 if test "x$enable_dlopen" != xyes; then
16730 enable_dlopen=unknown
16731 enable_dlopen_self=unknown
16732 enable_dlopen_self_static=unknown
16733else
16734 lt_cv_dlopen=no
16735 lt_cv_dlopen_libs=
16736
16737 case $host_os in
16738 beos*)
16739 lt_cv_dlopen="load_add_on"
16740 lt_cv_dlopen_libs=
16741 lt_cv_dlopen_self=yes
16742 ;;
16743
16744 mingw* | pw32* | cegcc*)
16745 lt_cv_dlopen="LoadLibrary"
16746 lt_cv_dlopen_libs=
16747 ;;
16748
16749 cygwin*)
16750 lt_cv_dlopen="dlopen"
16751 lt_cv_dlopen_libs=
16752 ;;
16753
16754 darwin*)
16755 # if libdl is installed we need to link against it
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16757$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016758if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016759 $as_echo_n "(cached) " >&6
16760else
16761 ac_check_lib_save_LIBS=$LIBS
16762LIBS="-ldl $LIBS"
16763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16764/* end confdefs.h. */
16765
16766/* Override any GCC internal prototype to avoid an error.
16767 Use char because int might match the return type of a GCC
16768 builtin and then its argument prototype would still apply. */
16769#ifdef __cplusplus
16770extern "C"
16771#endif
16772char dlopen ();
16773int
16774main ()
16775{
16776return dlopen ();
16777 ;
16778 return 0;
16779}
16780_ACEOF
16781if ac_fn_c_try_link "$LINENO"; then :
16782 ac_cv_lib_dl_dlopen=yes
16783else
16784 ac_cv_lib_dl_dlopen=no
16785fi
16786rm -f core conftest.err conftest.$ac_objext \
16787 conftest$ac_exeext conftest.$ac_ext
16788LIBS=$ac_check_lib_save_LIBS
16789fi
16790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16791$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016792if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016793 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16794else
16795
16796 lt_cv_dlopen="dyld"
16797 lt_cv_dlopen_libs=
16798 lt_cv_dlopen_self=yes
16799
16800fi
16801
16802 ;;
16803
16804 *)
16805 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016806if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016807 lt_cv_dlopen="shl_load"
16808else
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16810$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016811if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016812 $as_echo_n "(cached) " >&6
16813else
16814 ac_check_lib_save_LIBS=$LIBS
16815LIBS="-ldld $LIBS"
16816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817/* end confdefs.h. */
16818
16819/* Override any GCC internal prototype to avoid an error.
16820 Use char because int might match the return type of a GCC
16821 builtin and then its argument prototype would still apply. */
16822#ifdef __cplusplus
16823extern "C"
16824#endif
16825char shl_load ();
16826int
16827main ()
16828{
16829return shl_load ();
16830 ;
16831 return 0;
16832}
16833_ACEOF
16834if ac_fn_c_try_link "$LINENO"; then :
16835 ac_cv_lib_dld_shl_load=yes
16836else
16837 ac_cv_lib_dld_shl_load=no
16838fi
16839rm -f core conftest.err conftest.$ac_objext \
16840 conftest$ac_exeext conftest.$ac_ext
16841LIBS=$ac_check_lib_save_LIBS
16842fi
16843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16844$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016845if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016846 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16847else
16848 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016849if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016850 lt_cv_dlopen="dlopen"
16851else
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16853$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016854if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016855 $as_echo_n "(cached) " >&6
16856else
16857 ac_check_lib_save_LIBS=$LIBS
16858LIBS="-ldl $LIBS"
16859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860/* end confdefs.h. */
16861
16862/* Override any GCC internal prototype to avoid an error.
16863 Use char because int might match the return type of a GCC
16864 builtin and then its argument prototype would still apply. */
16865#ifdef __cplusplus
16866extern "C"
16867#endif
16868char dlopen ();
16869int
16870main ()
16871{
16872return dlopen ();
16873 ;
16874 return 0;
16875}
16876_ACEOF
16877if ac_fn_c_try_link "$LINENO"; then :
16878 ac_cv_lib_dl_dlopen=yes
16879else
16880 ac_cv_lib_dl_dlopen=no
16881fi
16882rm -f core conftest.err conftest.$ac_objext \
16883 conftest$ac_exeext conftest.$ac_ext
16884LIBS=$ac_check_lib_save_LIBS
16885fi
16886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16887$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016888if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16890else
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16892$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016893if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016894 $as_echo_n "(cached) " >&6
16895else
16896 ac_check_lib_save_LIBS=$LIBS
16897LIBS="-lsvld $LIBS"
16898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899/* end confdefs.h. */
16900
16901/* Override any GCC internal prototype to avoid an error.
16902 Use char because int might match the return type of a GCC
16903 builtin and then its argument prototype would still apply. */
16904#ifdef __cplusplus
16905extern "C"
16906#endif
16907char dlopen ();
16908int
16909main ()
16910{
16911return dlopen ();
16912 ;
16913 return 0;
16914}
16915_ACEOF
16916if ac_fn_c_try_link "$LINENO"; then :
16917 ac_cv_lib_svld_dlopen=yes
16918else
16919 ac_cv_lib_svld_dlopen=no
16920fi
16921rm -f core conftest.err conftest.$ac_objext \
16922 conftest$ac_exeext conftest.$ac_ext
16923LIBS=$ac_check_lib_save_LIBS
16924fi
16925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16926$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016927if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016928 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16929else
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16931$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016932if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016933 $as_echo_n "(cached) " >&6
16934else
16935 ac_check_lib_save_LIBS=$LIBS
16936LIBS="-ldld $LIBS"
16937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938/* end confdefs.h. */
16939
16940/* Override any GCC internal prototype to avoid an error.
16941 Use char because int might match the return type of a GCC
16942 builtin and then its argument prototype would still apply. */
16943#ifdef __cplusplus
16944extern "C"
16945#endif
16946char dld_link ();
16947int
16948main ()
16949{
16950return dld_link ();
16951 ;
16952 return 0;
16953}
16954_ACEOF
16955if ac_fn_c_try_link "$LINENO"; then :
16956 ac_cv_lib_dld_dld_link=yes
16957else
16958 ac_cv_lib_dld_dld_link=no
16959fi
16960rm -f core conftest.err conftest.$ac_objext \
16961 conftest$ac_exeext conftest.$ac_ext
16962LIBS=$ac_check_lib_save_LIBS
16963fi
16964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16965$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016966if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016967 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16968fi
16969
16970
16971fi
16972
16973
16974fi
16975
16976
16977fi
16978
16979
16980fi
16981
16982
16983fi
16984
16985 ;;
16986 esac
16987
16988 if test "x$lt_cv_dlopen" != xno; then
16989 enable_dlopen=yes
16990 else
16991 enable_dlopen=no
16992 fi
16993
16994 case $lt_cv_dlopen in
16995 dlopen)
16996 save_CPPFLAGS="$CPPFLAGS"
16997 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16998
16999 save_LDFLAGS="$LDFLAGS"
17000 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17001
17002 save_LIBS="$LIBS"
17003 LIBS="$lt_cv_dlopen_libs $LIBS"
17004
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17006$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017007if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017008 $as_echo_n "(cached) " >&6
17009else
17010 if test "$cross_compiling" = yes; then :
17011 lt_cv_dlopen_self=cross
17012else
17013 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17014 lt_status=$lt_dlunknown
17015 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017016#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017017#include "confdefs.h"
17018
17019#if HAVE_DLFCN_H
17020#include <dlfcn.h>
17021#endif
17022
17023#include <stdio.h>
17024
17025#ifdef RTLD_GLOBAL
17026# define LT_DLGLOBAL RTLD_GLOBAL
17027#else
17028# ifdef DL_GLOBAL
17029# define LT_DLGLOBAL DL_GLOBAL
17030# else
17031# define LT_DLGLOBAL 0
17032# endif
17033#endif
17034
17035/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17036 find out it does not work in some platform. */
17037#ifndef LT_DLLAZY_OR_NOW
17038# ifdef RTLD_LAZY
17039# define LT_DLLAZY_OR_NOW RTLD_LAZY
17040# else
17041# ifdef DL_LAZY
17042# define LT_DLLAZY_OR_NOW DL_LAZY
17043# else
17044# ifdef RTLD_NOW
17045# define LT_DLLAZY_OR_NOW RTLD_NOW
17046# else
17047# ifdef DL_NOW
17048# define LT_DLLAZY_OR_NOW DL_NOW
17049# else
17050# define LT_DLLAZY_OR_NOW 0
17051# endif
17052# endif
17053# endif
17054# endif
17055#endif
17056
cristy0c60a692010-11-04 01:09:47 +000017057/* When -fvisbility=hidden is used, assume the code has been annotated
17058 correspondingly for the symbols needed. */
17059#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017060int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017061#endif
17062
cristyda16f162011-02-19 23:52:17 +000017063int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017064int main ()
17065{
17066 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17067 int status = $lt_dlunknown;
17068
17069 if (self)
17070 {
17071 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017072 else
17073 {
17074 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17075 else puts (dlerror ());
17076 }
cristy73bd4a52010-10-05 11:24:23 +000017077 /* dlclose (self); */
17078 }
17079 else
17080 puts (dlerror ());
17081
17082 return status;
17083}
17084_LT_EOF
17085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17086 (eval $ac_link) 2>&5
17087 ac_status=$?
17088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17089 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17090 (./conftest; exit; ) >&5 2>/dev/null
17091 lt_status=$?
17092 case x$lt_status in
17093 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17094 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17095 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17096 esac
17097 else :
17098 # compilation failed
17099 lt_cv_dlopen_self=no
17100 fi
17101fi
17102rm -fr conftest*
17103
17104
17105fi
17106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17107$as_echo "$lt_cv_dlopen_self" >&6; }
17108
17109 if test "x$lt_cv_dlopen_self" = xyes; then
17110 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17112$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017113if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017114 $as_echo_n "(cached) " >&6
17115else
17116 if test "$cross_compiling" = yes; then :
17117 lt_cv_dlopen_self_static=cross
17118else
17119 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17120 lt_status=$lt_dlunknown
17121 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017122#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017123#include "confdefs.h"
17124
17125#if HAVE_DLFCN_H
17126#include <dlfcn.h>
17127#endif
17128
17129#include <stdio.h>
17130
17131#ifdef RTLD_GLOBAL
17132# define LT_DLGLOBAL RTLD_GLOBAL
17133#else
17134# ifdef DL_GLOBAL
17135# define LT_DLGLOBAL DL_GLOBAL
17136# else
17137# define LT_DLGLOBAL 0
17138# endif
17139#endif
17140
17141/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17142 find out it does not work in some platform. */
17143#ifndef LT_DLLAZY_OR_NOW
17144# ifdef RTLD_LAZY
17145# define LT_DLLAZY_OR_NOW RTLD_LAZY
17146# else
17147# ifdef DL_LAZY
17148# define LT_DLLAZY_OR_NOW DL_LAZY
17149# else
17150# ifdef RTLD_NOW
17151# define LT_DLLAZY_OR_NOW RTLD_NOW
17152# else
17153# ifdef DL_NOW
17154# define LT_DLLAZY_OR_NOW DL_NOW
17155# else
17156# define LT_DLLAZY_OR_NOW 0
17157# endif
17158# endif
17159# endif
17160# endif
17161#endif
17162
cristy0c60a692010-11-04 01:09:47 +000017163/* When -fvisbility=hidden is used, assume the code has been annotated
17164 correspondingly for the symbols needed. */
17165#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017166int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017167#endif
17168
cristyda16f162011-02-19 23:52:17 +000017169int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017170int main ()
17171{
17172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17173 int status = $lt_dlunknown;
17174
17175 if (self)
17176 {
17177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017178 else
17179 {
17180 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17181 else puts (dlerror ());
17182 }
cristy73bd4a52010-10-05 11:24:23 +000017183 /* dlclose (self); */
17184 }
17185 else
17186 puts (dlerror ());
17187
17188 return status;
17189}
17190_LT_EOF
17191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17192 (eval $ac_link) 2>&5
17193 ac_status=$?
17194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17195 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17196 (./conftest; exit; ) >&5 2>/dev/null
17197 lt_status=$?
17198 case x$lt_status in
17199 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17200 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17201 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17202 esac
17203 else :
17204 # compilation failed
17205 lt_cv_dlopen_self_static=no
17206 fi
17207fi
17208rm -fr conftest*
17209
17210
17211fi
17212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17213$as_echo "$lt_cv_dlopen_self_static" >&6; }
17214 fi
17215
17216 CPPFLAGS="$save_CPPFLAGS"
17217 LDFLAGS="$save_LDFLAGS"
17218 LIBS="$save_LIBS"
17219 ;;
17220 esac
17221
17222 case $lt_cv_dlopen_self in
17223 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17224 *) enable_dlopen_self=unknown ;;
17225 esac
17226
17227 case $lt_cv_dlopen_self_static in
17228 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17229 *) enable_dlopen_self_static=unknown ;;
17230 esac
17231fi
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249striplib=
17250old_striplib=
17251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17252$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17253if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17254 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17255 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17257$as_echo "yes" >&6; }
17258else
17259# FIXME - insert some real tests, host_os isn't really good enough
17260 case $host_os in
17261 darwin*)
17262 if test -n "$STRIP" ; then
17263 striplib="$STRIP -x"
17264 old_striplib="$STRIP -S"
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17266$as_echo "yes" >&6; }
17267 else
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17269$as_echo "no" >&6; }
17270 fi
17271 ;;
17272 *)
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17274$as_echo "no" >&6; }
17275 ;;
17276 esac
17277fi
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290 # Report which library types will actually be built
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17292$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17294$as_echo "$can_build_shared" >&6; }
17295
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17297$as_echo_n "checking whether to build shared libraries... " >&6; }
17298 test "$can_build_shared" = "no" && enable_shared=no
17299
17300 # On AIX, shared libraries and static libraries use the same namespace, and
17301 # are all built from PIC.
17302 case $host_os in
17303 aix3*)
17304 test "$enable_shared" = yes && enable_static=no
17305 if test -n "$RANLIB"; then
17306 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17307 postinstall_cmds='$RANLIB $lib'
17308 fi
17309 ;;
17310
17311 aix[4-9]*)
17312 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17313 test "$enable_shared" = yes && enable_static=no
17314 fi
17315 ;;
17316 esac
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17318$as_echo "$enable_shared" >&6; }
17319
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17321$as_echo_n "checking whether to build static libraries... " >&6; }
17322 # Make sure either enable_shared or enable_static is yes.
17323 test "$enable_shared" = yes || enable_static=yes
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17325$as_echo "$enable_static" >&6; }
17326
17327
17328
17329
17330fi
17331ac_ext=c
17332ac_cpp='$CPP $CPPFLAGS'
17333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17335ac_compiler_gnu=$ac_cv_c_compiler_gnu
17336
17337CC="$lt_save_CC"
17338
cristy0c60a692010-11-04 01:09:47 +000017339 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17340 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17341 (test "X$CXX" != "Xg++"))) ; then
17342 ac_ext=cpp
17343ac_cpp='$CXXCPP $CPPFLAGS'
17344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17348$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17349if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017350 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017351 $as_echo_n "(cached) " >&6
17352else
17353 # Double quotes because CXXCPP needs to be expanded
17354 for CXXCPP in "$CXX -E" "/lib/cpp"
17355 do
17356 ac_preproc_ok=false
17357for ac_cxx_preproc_warn_flag in '' yes
17358do
17359 # Use a header file that comes with gcc, so configuring glibc
17360 # with a fresh cross-compiler works.
17361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17362 # <limits.h> exists even on freestanding compilers.
17363 # On the NeXT, cc -E runs the code through the compiler's parser,
17364 # not just through cpp. "Syntax error" is here to catch this case.
17365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17366/* end confdefs.h. */
17367#ifdef __STDC__
17368# include <limits.h>
17369#else
17370# include <assert.h>
17371#endif
17372 Syntax error
17373_ACEOF
17374if ac_fn_cxx_try_cpp "$LINENO"; then :
17375
17376else
17377 # Broken: fails on valid input.
17378continue
17379fi
cristyda16f162011-02-19 23:52:17 +000017380rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017381
17382 # OK, works on sane cases. Now check whether nonexistent headers
17383 # can be detected and how.
17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385/* end confdefs.h. */
17386#include <ac_nonexistent.h>
17387_ACEOF
17388if ac_fn_cxx_try_cpp "$LINENO"; then :
17389 # Broken: success on invalid input.
17390continue
17391else
17392 # Passes both tests.
17393ac_preproc_ok=:
17394break
17395fi
cristyda16f162011-02-19 23:52:17 +000017396rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017397
17398done
17399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017400rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017401if $ac_preproc_ok; then :
17402 break
17403fi
17404
17405 done
17406 ac_cv_prog_CXXCPP=$CXXCPP
17407
17408fi
17409 CXXCPP=$ac_cv_prog_CXXCPP
17410else
17411 ac_cv_prog_CXXCPP=$CXXCPP
17412fi
17413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17414$as_echo "$CXXCPP" >&6; }
17415ac_preproc_ok=false
17416for ac_cxx_preproc_warn_flag in '' yes
17417do
17418 # Use a header file that comes with gcc, so configuring glibc
17419 # with a fresh cross-compiler works.
17420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17421 # <limits.h> exists even on freestanding compilers.
17422 # On the NeXT, cc -E runs the code through the compiler's parser,
17423 # not just through cpp. "Syntax error" is here to catch this case.
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425/* end confdefs.h. */
17426#ifdef __STDC__
17427# include <limits.h>
17428#else
17429# include <assert.h>
17430#endif
17431 Syntax error
17432_ACEOF
17433if ac_fn_cxx_try_cpp "$LINENO"; then :
17434
17435else
17436 # Broken: fails on valid input.
17437continue
17438fi
cristyda16f162011-02-19 23:52:17 +000017439rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017440
17441 # OK, works on sane cases. Now check whether nonexistent headers
17442 # can be detected and how.
17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444/* end confdefs.h. */
17445#include <ac_nonexistent.h>
17446_ACEOF
17447if ac_fn_cxx_try_cpp "$LINENO"; then :
17448 # Broken: success on invalid input.
17449continue
17450else
17451 # Passes both tests.
17452ac_preproc_ok=:
17453break
17454fi
cristyda16f162011-02-19 23:52:17 +000017455rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017456
17457done
17458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017459rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017460if $ac_preproc_ok; then :
17461
17462else
17463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17465as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17466See \`config.log' for more details" "$LINENO" 5; }
17467fi
17468
17469ac_ext=c
17470ac_cpp='$CPP $CPPFLAGS'
17471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17473ac_compiler_gnu=$ac_cv_c_compiler_gnu
17474
17475else
17476 _lt_caught_CXX_error=yes
17477fi
cristy73bd4a52010-10-05 11:24:23 +000017478
17479ac_ext=cpp
17480ac_cpp='$CXXCPP $CPPFLAGS'
17481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17484
17485archive_cmds_need_lc_CXX=no
17486allow_undefined_flag_CXX=
17487always_export_symbols_CXX=no
17488archive_expsym_cmds_CXX=
17489compiler_needs_object_CXX=no
17490export_dynamic_flag_spec_CXX=
17491hardcode_direct_CXX=no
17492hardcode_direct_absolute_CXX=no
17493hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017494hardcode_libdir_separator_CXX=
17495hardcode_minus_L_CXX=no
17496hardcode_shlibpath_var_CXX=unsupported
17497hardcode_automatic_CXX=no
17498inherit_rpath_CXX=no
17499module_cmds_CXX=
17500module_expsym_cmds_CXX=
17501link_all_deplibs_CXX=unknown
17502old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017503reload_flag_CXX=$reload_flag
17504reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017505no_undefined_flag_CXX=
17506whole_archive_flag_spec_CXX=
17507enable_shared_with_static_runtimes_CXX=no
17508
17509# Source file extension for C++ test sources.
17510ac_ext=cpp
17511
17512# Object file extension for compiled C++ test sources.
17513objext=o
17514objext_CXX=$objext
17515
17516# No sense in running all these tests if we already determined that
17517# the CXX compiler isn't working. Some variables (like enable_shared)
17518# are currently assumed to apply to all compilers on this platform,
17519# and will be corrupted by setting them based on a non-working compiler.
17520if test "$_lt_caught_CXX_error" != yes; then
17521 # Code to be used in simple compile tests
17522 lt_simple_compile_test_code="int some_variable = 0;"
17523
17524 # Code to be used in simple link tests
17525 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17526
17527 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17528
17529
17530
17531
17532
17533
17534# If no C compiler was specified, use CC.
17535LTCC=${LTCC-"$CC"}
17536
17537# If no C compiler flags were specified, use CFLAGS.
17538LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17539
17540# Allow CC to be a program name with arguments.
17541compiler=$CC
17542
17543
17544 # save warnings/boilerplate of simple test code
17545 ac_outfile=conftest.$ac_objext
17546echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17547eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17548_lt_compiler_boilerplate=`cat conftest.err`
17549$RM conftest*
17550
17551 ac_outfile=conftest.$ac_objext
17552echo "$lt_simple_link_test_code" >conftest.$ac_ext
17553eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17554_lt_linker_boilerplate=`cat conftest.err`
17555$RM -r conftest*
17556
17557
17558 # Allow CC to be a program name with arguments.
17559 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017560 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017561 lt_save_LD=$LD
17562 lt_save_GCC=$GCC
17563 GCC=$GXX
17564 lt_save_with_gnu_ld=$with_gnu_ld
17565 lt_save_path_LD=$lt_cv_path_LD
17566 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17567 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17568 else
17569 $as_unset lt_cv_prog_gnu_ld
17570 fi
17571 if test -n "${lt_cv_path_LDCXX+set}"; then
17572 lt_cv_path_LD=$lt_cv_path_LDCXX
17573 else
17574 $as_unset lt_cv_path_LD
17575 fi
17576 test -z "${LDCXX+set}" || LD=$LDCXX
17577 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017578 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017579 compiler=$CC
17580 compiler_CXX=$CC
17581 for cc_temp in $compiler""; do
17582 case $cc_temp in
17583 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17584 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17585 \-*) ;;
17586 *) break;;
17587 esac
17588done
cristy0c60a692010-11-04 01:09:47 +000017589cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017590
17591
17592 if test -n "$compiler"; then
17593 # We don't want -fno-exception when compiling C++ code, so set the
17594 # no_builtin_flag separately
17595 if test "$GXX" = yes; then
17596 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17597 else
17598 lt_prog_compiler_no_builtin_flag_CXX=
17599 fi
17600
17601 if test "$GXX" = yes; then
17602 # Set up default GNU C++ configuration
17603
17604
17605
17606# Check whether --with-gnu-ld was given.
17607if test "${with_gnu_ld+set}" = set; then :
17608 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17609else
17610 with_gnu_ld=no
17611fi
17612
17613ac_prog=ld
17614if test "$GCC" = yes; then
17615 # Check if gcc -print-prog-name=ld gives a path.
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17617$as_echo_n "checking for ld used by $CC... " >&6; }
17618 case $host in
17619 *-*-mingw*)
17620 # gcc leaves a trailing carriage return which upsets mingw
17621 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17622 *)
17623 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17624 esac
17625 case $ac_prog in
17626 # Accept absolute paths.
17627 [\\/]* | ?:[\\/]*)
17628 re_direlt='/[^/][^/]*/\.\./'
17629 # Canonicalize the pathname of ld
17630 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17631 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17632 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17633 done
17634 test -z "$LD" && LD="$ac_prog"
17635 ;;
17636 "")
17637 # If it fails, then pretend we aren't using GCC.
17638 ac_prog=ld
17639 ;;
17640 *)
17641 # If it is relative, then search for the first ld in PATH.
17642 with_gnu_ld=unknown
17643 ;;
17644 esac
17645elif test "$with_gnu_ld" = yes; then
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17647$as_echo_n "checking for GNU ld... " >&6; }
17648else
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17650$as_echo_n "checking for non-GNU ld... " >&6; }
17651fi
cristyda16f162011-02-19 23:52:17 +000017652if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017653 $as_echo_n "(cached) " >&6
17654else
17655 if test -z "$LD"; then
17656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17657 for ac_dir in $PATH; do
17658 IFS="$lt_save_ifs"
17659 test -z "$ac_dir" && ac_dir=.
17660 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17661 lt_cv_path_LD="$ac_dir/$ac_prog"
17662 # Check to see if the program is GNU ld. I'd rather use --version,
17663 # but apparently some variants of GNU ld only accept -v.
17664 # Break only if it was the GNU/non-GNU ld that we prefer.
17665 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17666 *GNU* | *'with BFD'*)
17667 test "$with_gnu_ld" != no && break
17668 ;;
17669 *)
17670 test "$with_gnu_ld" != yes && break
17671 ;;
17672 esac
17673 fi
17674 done
17675 IFS="$lt_save_ifs"
17676else
17677 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17678fi
17679fi
17680
17681LD="$lt_cv_path_LD"
17682if test -n "$LD"; then
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17684$as_echo "$LD" >&6; }
17685else
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17687$as_echo "no" >&6; }
17688fi
cristy98dddb52010-11-04 00:30:15 +000017689test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17691$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017692if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017693 $as_echo_n "(cached) " >&6
17694else
17695 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17696case `$LD -v 2>&1 </dev/null` in
17697*GNU* | *'with BFD'*)
17698 lt_cv_prog_gnu_ld=yes
17699 ;;
17700*)
17701 lt_cv_prog_gnu_ld=no
17702 ;;
17703esac
17704fi
17705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17706$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17707with_gnu_ld=$lt_cv_prog_gnu_ld
17708
17709
17710
17711
17712
17713
17714
17715 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17716 # archiving commands below assume that GNU ld is being used.
17717 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017718 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17719 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 +000017720
17721 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17722 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17723
17724 # If archive_cmds runs LD, not CC, wlarc should be empty
17725 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17726 # investigate it a little bit more. (MM)
17727 wlarc='${wl}'
17728
17729 # ancient GNU ld didn't support --whole-archive et. al.
17730 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17731 $GREP 'no-whole-archive' > /dev/null; then
17732 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17733 else
17734 whole_archive_flag_spec_CXX=
17735 fi
17736 else
17737 with_gnu_ld=no
17738 wlarc=
17739
17740 # A generic and very simple default shared library creation
17741 # command for GNU C++ for the case where it uses the native
17742 # linker, instead of GNU ld. If possible, this setting should
17743 # overridden to take advantage of the native linker features on
17744 # the platform it is being used on.
17745 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17746 fi
17747
17748 # Commands to make compiler produce verbose output that lists
17749 # what "hidden" libraries, object files and flags are used when
17750 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017751 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017752
17753 else
17754 GXX=no
17755 with_gnu_ld=no
17756 wlarc=
17757 fi
17758
17759 # PORTME: fill in a description of your system's C++ link characteristics
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17761$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17762 ld_shlibs_CXX=yes
17763 case $host_os in
17764 aix3*)
17765 # FIXME: insert proper C++ library support
17766 ld_shlibs_CXX=no
17767 ;;
17768 aix[4-9]*)
17769 if test "$host_cpu" = ia64; then
17770 # On IA64, the linker does run time linking by default, so we don't
17771 # have to do anything special.
17772 aix_use_runtimelinking=no
17773 exp_sym_flag='-Bexport'
17774 no_entry_flag=""
17775 else
17776 aix_use_runtimelinking=no
17777
17778 # Test if we are trying to use run time linking or normal
17779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17780 # need to do runtime linking.
17781 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17782 for ld_flag in $LDFLAGS; do
17783 case $ld_flag in
17784 *-brtl*)
17785 aix_use_runtimelinking=yes
17786 break
17787 ;;
17788 esac
17789 done
17790 ;;
17791 esac
17792
17793 exp_sym_flag='-bexport'
17794 no_entry_flag='-bnoentry'
17795 fi
17796
17797 # When large executables or shared objects are built, AIX ld can
17798 # have problems creating the table of contents. If linking a library
17799 # or program results in "error TOC overflow" add -mminimal-toc to
17800 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17801 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17802
17803 archive_cmds_CXX=''
17804 hardcode_direct_CXX=yes
17805 hardcode_direct_absolute_CXX=yes
17806 hardcode_libdir_separator_CXX=':'
17807 link_all_deplibs_CXX=yes
17808 file_list_spec_CXX='${wl}-f,'
17809
17810 if test "$GXX" = yes; then
17811 case $host_os in aix4.[012]|aix4.[012].*)
17812 # We only want to do this on AIX 4.2 and lower, the check
17813 # below for broken collect2 doesn't work under 4.3+
17814 collect2name=`${CC} -print-prog-name=collect2`
17815 if test -f "$collect2name" &&
17816 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17817 then
17818 # We have reworked collect2
17819 :
17820 else
17821 # We have old collect2
17822 hardcode_direct_CXX=unsupported
17823 # It fails to find uninstalled libraries when the uninstalled
17824 # path is not listed in the libpath. Setting hardcode_minus_L
17825 # to unsupported forces relinking
17826 hardcode_minus_L_CXX=yes
17827 hardcode_libdir_flag_spec_CXX='-L$libdir'
17828 hardcode_libdir_separator_CXX=
17829 fi
17830 esac
17831 shared_flag='-shared'
17832 if test "$aix_use_runtimelinking" = yes; then
17833 shared_flag="$shared_flag "'${wl}-G'
17834 fi
17835 else
17836 # not using gcc
17837 if test "$host_cpu" = ia64; then
17838 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17839 # chokes on -Wl,-G. The following line is correct:
17840 shared_flag='-G'
17841 else
17842 if test "$aix_use_runtimelinking" = yes; then
17843 shared_flag='${wl}-G'
17844 else
17845 shared_flag='${wl}-bM:SRE'
17846 fi
17847 fi
17848 fi
17849
17850 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17851 # It seems that -bexpall does not export symbols beginning with
17852 # underscore (_), so it is better to generate a list of symbols to
17853 # export.
17854 always_export_symbols_CXX=yes
17855 if test "$aix_use_runtimelinking" = yes; then
17856 # Warning - without using the other runtime loading flags (-brtl),
17857 # -berok will link without error, but may produce a broken library.
17858 allow_undefined_flag_CXX='-berok'
17859 # Determine the default libpath from the value encoded in an empty
17860 # executable.
cristyda16f162011-02-19 23:52:17 +000017861 if test "${lt_cv_aix_libpath+set}" = set; then
17862 aix_libpath=$lt_cv_aix_libpath
17863else
17864 if ${lt_cv_aix_libpath__CXX+:} false; then :
17865 $as_echo_n "(cached) " >&6
17866else
17867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017868/* end confdefs.h. */
17869
17870int
17871main ()
17872{
17873
17874 ;
17875 return 0;
17876}
17877_ACEOF
17878if ac_fn_cxx_try_link "$LINENO"; then :
17879
cristyda16f162011-02-19 23:52:17 +000017880 lt_aix_libpath_sed='
17881 /Import File Strings/,/^$/ {
17882 /^0/ {
17883 s/^0 *\([^ ]*\) *$/\1/
17884 p
17885 }
17886 }'
17887 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17888 # Check for a 64-bit object if we didn't find anything.
17889 if test -z "$lt_cv_aix_libpath__CXX"; then
17890 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17891 fi
cristy73bd4a52010-10-05 11:24:23 +000017892fi
17893rm -f core conftest.err conftest.$ac_objext \
17894 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017895 if test -z "$lt_cv_aix_libpath__CXX"; then
17896 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17897 fi
17898
17899fi
17900
17901 aix_libpath=$lt_cv_aix_libpath__CXX
17902fi
cristy73bd4a52010-10-05 11:24:23 +000017903
17904 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17905
cristy0c60a692010-11-04 01:09:47 +000017906 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 +000017907 else
17908 if test "$host_cpu" = ia64; then
17909 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17910 allow_undefined_flag_CXX="-z nodefs"
17911 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"
17912 else
17913 # Determine the default libpath from the value encoded in an
17914 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017915 if test "${lt_cv_aix_libpath+set}" = set; then
17916 aix_libpath=$lt_cv_aix_libpath
17917else
17918 if ${lt_cv_aix_libpath__CXX+:} false; then :
17919 $as_echo_n "(cached) " >&6
17920else
17921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017922/* end confdefs.h. */
17923
17924int
17925main ()
17926{
17927
17928 ;
17929 return 0;
17930}
17931_ACEOF
17932if ac_fn_cxx_try_link "$LINENO"; then :
17933
cristyda16f162011-02-19 23:52:17 +000017934 lt_aix_libpath_sed='
17935 /Import File Strings/,/^$/ {
17936 /^0/ {
17937 s/^0 *\([^ ]*\) *$/\1/
17938 p
17939 }
17940 }'
17941 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17942 # Check for a 64-bit object if we didn't find anything.
17943 if test -z "$lt_cv_aix_libpath__CXX"; then
17944 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17945 fi
cristy73bd4a52010-10-05 11:24:23 +000017946fi
17947rm -f core conftest.err conftest.$ac_objext \
17948 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017949 if test -z "$lt_cv_aix_libpath__CXX"; then
17950 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17951 fi
17952
17953fi
17954
17955 aix_libpath=$lt_cv_aix_libpath__CXX
17956fi
cristy73bd4a52010-10-05 11:24:23 +000017957
17958 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17959 # Warning - without using the other run time loading flags,
17960 # -berok will link without error, but may produce a broken library.
17961 no_undefined_flag_CXX=' ${wl}-bernotok'
17962 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017963 if test "$with_gnu_ld" = yes; then
17964 # We only use this code for GNU lds that support --whole-archive.
17965 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17966 else
17967 # Exported symbols can be pulled into shared objects from archives
17968 whole_archive_flag_spec_CXX='$convenience'
17969 fi
cristy73bd4a52010-10-05 11:24:23 +000017970 archive_cmds_need_lc_CXX=yes
17971 # This is similar to how AIX traditionally builds its shared
17972 # libraries.
17973 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'
17974 fi
17975 fi
17976 ;;
17977
17978 beos*)
17979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17980 allow_undefined_flag_CXX=unsupported
17981 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17982 # support --undefined. This deserves some investigation. FIXME
17983 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17984 else
17985 ld_shlibs_CXX=no
17986 fi
17987 ;;
17988
17989 chorus*)
17990 case $cc_basename in
17991 *)
17992 # FIXME: insert proper C++ library support
17993 ld_shlibs_CXX=no
17994 ;;
17995 esac
17996 ;;
17997
17998 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017999 case $GXX,$cc_basename in
18000 ,cl* | no,cl*)
18001 # Native MSVC
18002 # hardcode_libdir_flag_spec is actually meaningless, as there is
18003 # no search path for DLLs.
18004 hardcode_libdir_flag_spec_CXX=' '
18005 allow_undefined_flag_CXX=unsupported
18006 always_export_symbols_CXX=yes
18007 file_list_spec_CXX='@'
18008 # Tell ltmain to make .lib files, not .a files.
18009 libext=lib
18010 # Tell ltmain to make .dll files, not .so files.
18011 shrext_cmds=".dll"
18012 # FIXME: Setting linknames here is a bad hack.
18013 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18014 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18015 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18016 else
18017 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18018 fi~
18019 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18020 linknames='
18021 # The linker will not automatically build a static lib if we build a DLL.
18022 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18023 enable_shared_with_static_runtimes_CXX=yes
18024 # Don't use ranlib
18025 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18026 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18027 lt_tool_outputfile="@TOOL_OUTPUT@"~
18028 case $lt_outputfile in
18029 *.exe|*.EXE) ;;
18030 *)
18031 lt_outputfile="$lt_outputfile.exe"
18032 lt_tool_outputfile="$lt_tool_outputfile.exe"
18033 ;;
18034 esac~
18035 func_to_tool_file "$lt_outputfile"~
18036 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18037 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18038 $RM "$lt_outputfile.manifest";
18039 fi'
18040 ;;
18041 *)
18042 # g++
18043 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18044 # as there is no search path for DLLs.
18045 hardcode_libdir_flag_spec_CXX='-L$libdir'
18046 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18047 allow_undefined_flag_CXX=unsupported
18048 always_export_symbols_CXX=no
18049 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018050
cristyda16f162011-02-19 23:52:17 +000018051 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18052 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'
18053 # If the export-symbols file already is a .def file (1st line
18054 # is EXPORTS), use it as is; otherwise, prepend...
18055 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18056 cp $export_symbols $output_objdir/$soname.def;
18057 else
18058 echo EXPORTS > $output_objdir/$soname.def;
18059 cat $export_symbols >> $output_objdir/$soname.def;
18060 fi~
18061 $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'
18062 else
18063 ld_shlibs_CXX=no
18064 fi
18065 ;;
18066 esac
18067 ;;
cristy73bd4a52010-10-05 11:24:23 +000018068 darwin* | rhapsody*)
18069
18070
18071 archive_cmds_need_lc_CXX=no
18072 hardcode_direct_CXX=no
18073 hardcode_automatic_CXX=yes
18074 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018075 if test "$lt_cv_ld_force_load" = "yes"; then
18076 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 +000018077
cristy0c60a692010-11-04 01:09:47 +000018078 else
18079 whole_archive_flag_spec_CXX=''
18080 fi
cristy73bd4a52010-10-05 11:24:23 +000018081 link_all_deplibs_CXX=yes
18082 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18083 case $cc_basename in
18084 ifort*) _lt_dar_can_shared=yes ;;
18085 *) _lt_dar_can_shared=$GCC ;;
18086 esac
18087 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018088 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018089 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}"
18090 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18091 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}"
18092 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}"
18093 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18094 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}"
18095 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}"
18096 fi
18097
18098 else
18099 ld_shlibs_CXX=no
18100 fi
18101
18102 ;;
18103
18104 dgux*)
18105 case $cc_basename in
18106 ec++*)
18107 # FIXME: insert proper C++ library support
18108 ld_shlibs_CXX=no
18109 ;;
18110 ghcx*)
18111 # Green Hills C++ Compiler
18112 # FIXME: insert proper C++ library support
18113 ld_shlibs_CXX=no
18114 ;;
18115 *)
18116 # FIXME: insert proper C++ library support
18117 ld_shlibs_CXX=no
18118 ;;
18119 esac
18120 ;;
18121
cristy99bd5232011-12-07 14:38:20 +000018122 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018123 # C++ shared libraries reported to be fairly broken before
18124 # switch to ELF
18125 ld_shlibs_CXX=no
18126 ;;
18127
18128 freebsd-elf*)
18129 archive_cmds_need_lc_CXX=no
18130 ;;
18131
18132 freebsd* | dragonfly*)
18133 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18134 # conventions
18135 ld_shlibs_CXX=yes
18136 ;;
18137
18138 gnu*)
18139 ;;
18140
cristy0c60a692010-11-04 01:09:47 +000018141 haiku*)
18142 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18143 link_all_deplibs_CXX=yes
18144 ;;
18145
cristy73bd4a52010-10-05 11:24:23 +000018146 hpux9*)
18147 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18148 hardcode_libdir_separator_CXX=:
18149 export_dynamic_flag_spec_CXX='${wl}-E'
18150 hardcode_direct_CXX=yes
18151 hardcode_minus_L_CXX=yes # Not in the search PATH,
18152 # but as the default
18153 # location of the library.
18154
18155 case $cc_basename in
18156 CC*)
18157 # FIXME: insert proper C++ library support
18158 ld_shlibs_CXX=no
18159 ;;
18160 aCC*)
18161 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'
18162 # Commands to make compiler produce verbose output that lists
18163 # what "hidden" libraries, object files and flags are used when
18164 # linking a shared library.
18165 #
18166 # There doesn't appear to be a way to prevent this compiler from
18167 # explicitly linking system object files so we need to strip them
18168 # from the output so that they don't get included in the library
18169 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018170 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 +000018171 ;;
18172 *)
18173 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018174 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 +000018175 else
18176 # FIXME: insert proper C++ library support
18177 ld_shlibs_CXX=no
18178 fi
18179 ;;
18180 esac
18181 ;;
18182
18183 hpux10*|hpux11*)
18184 if test $with_gnu_ld = no; then
18185 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18186 hardcode_libdir_separator_CXX=:
18187
18188 case $host_cpu in
18189 hppa*64*|ia64*)
18190 ;;
18191 *)
18192 export_dynamic_flag_spec_CXX='${wl}-E'
18193 ;;
18194 esac
18195 fi
18196 case $host_cpu in
18197 hppa*64*|ia64*)
18198 hardcode_direct_CXX=no
18199 hardcode_shlibpath_var_CXX=no
18200 ;;
18201 *)
18202 hardcode_direct_CXX=yes
18203 hardcode_direct_absolute_CXX=yes
18204 hardcode_minus_L_CXX=yes # Not in the search PATH,
18205 # but as the default
18206 # location of the library.
18207 ;;
18208 esac
18209
18210 case $cc_basename in
18211 CC*)
18212 # FIXME: insert proper C++ library support
18213 ld_shlibs_CXX=no
18214 ;;
18215 aCC*)
18216 case $host_cpu in
18217 hppa*64*)
18218 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18219 ;;
18220 ia64*)
18221 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18222 ;;
18223 *)
18224 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18225 ;;
18226 esac
18227 # Commands to make compiler produce verbose output that lists
18228 # what "hidden" libraries, object files and flags are used when
18229 # linking a shared library.
18230 #
18231 # There doesn't appear to be a way to prevent this compiler from
18232 # explicitly linking system object files so we need to strip them
18233 # from the output so that they don't get included in the library
18234 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018235 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 +000018236 ;;
18237 *)
18238 if test "$GXX" = yes; then
18239 if test $with_gnu_ld = no; then
18240 case $host_cpu in
18241 hppa*64*)
18242 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18243 ;;
18244 ia64*)
cristyda16f162011-02-19 23:52:17 +000018245 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 +000018246 ;;
18247 *)
cristyda16f162011-02-19 23:52:17 +000018248 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 +000018249 ;;
18250 esac
18251 fi
18252 else
18253 # FIXME: insert proper C++ library support
18254 ld_shlibs_CXX=no
18255 fi
18256 ;;
18257 esac
18258 ;;
18259
18260 interix[3-9]*)
18261 hardcode_direct_CXX=no
18262 hardcode_shlibpath_var_CXX=no
18263 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18264 export_dynamic_flag_spec_CXX='${wl}-E'
18265 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18266 # Instead, shared libraries are loaded at an image base (0x10000000 by
18267 # default) and relocated if they conflict, which is a slow very memory
18268 # consuming and fragmenting process. To avoid this, we pick a random,
18269 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18270 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18271 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'
18272 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'
18273 ;;
18274 irix5* | irix6*)
18275 case $cc_basename in
18276 CC*)
18277 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018278 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 +000018279
18280 # Archives containing C++ object files must be created using
18281 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18282 # necessary to make sure instantiated templates are included
18283 # in the archive.
18284 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18285 ;;
18286 *)
18287 if test "$GXX" = yes; then
18288 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018289 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 +000018290 else
cristyda16f162011-02-19 23:52:17 +000018291 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 +000018292 fi
18293 fi
18294 link_all_deplibs_CXX=yes
18295 ;;
18296 esac
18297 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18298 hardcode_libdir_separator_CXX=:
18299 inherit_rpath_CXX=yes
18300 ;;
18301
cristy0c60a692010-11-04 01:09:47 +000018302 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018303 case $cc_basename in
18304 KCC*)
18305 # Kuck and Associates, Inc. (KAI) C++ Compiler
18306
18307 # KCC will only create a shared library if the output file
18308 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18309 # to its proper name (with version) after linking.
18310 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'
18311 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'
18312 # Commands to make compiler produce verbose output that lists
18313 # what "hidden" libraries, object files and flags are used when
18314 # linking a shared library.
18315 #
18316 # There doesn't appear to be a way to prevent this compiler from
18317 # explicitly linking system object files so we need to strip them
18318 # from the output so that they don't get included in the library
18319 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018320 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 +000018321
18322 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18323 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18324
18325 # Archives containing C++ object files must be created using
18326 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18327 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18328 ;;
18329 icpc* | ecpc* )
18330 # Intel C++
18331 with_gnu_ld=yes
18332 # version 8.0 and above of icpc choke on multiply defined symbols
18333 # if we add $predep_objects and $postdep_objects, however 7.1 and
18334 # earlier do not add the objects themselves.
18335 case `$CC -V 2>&1` in
18336 *"Version 7."*)
18337 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18338 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'
18339 ;;
18340 *) # Version 8.0 or newer
18341 tmp_idyn=
18342 case $host_cpu in
18343 ia64*) tmp_idyn=' -i_dynamic';;
18344 esac
18345 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18346 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'
18347 ;;
18348 esac
18349 archive_cmds_need_lc_CXX=no
18350 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18351 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18352 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18353 ;;
18354 pgCC* | pgcpp*)
18355 # Portland Group C++ compiler
18356 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018357 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018358 prelink_cmds_CXX='tpldir=Template.dir~
18359 rm -rf $tpldir~
18360 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018361 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018362 old_archive_cmds_CXX='tpldir=Template.dir~
18363 rm -rf $tpldir~
18364 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018365 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018366 $RANLIB $oldlib'
18367 archive_cmds_CXX='tpldir=Template.dir~
18368 rm -rf $tpldir~
18369 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018370 $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 +000018371 archive_expsym_cmds_CXX='tpldir=Template.dir~
18372 rm -rf $tpldir~
18373 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018374 $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 +000018375 ;;
cristy0c60a692010-11-04 01:09:47 +000018376 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018377 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18378 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'
18379 ;;
18380 esac
18381
18382 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18383 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018384 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 +000018385 ;;
18386 cxx*)
18387 # Compaq C++
18388 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18389 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'
18390
18391 runpath_var=LD_RUN_PATH
18392 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18393 hardcode_libdir_separator_CXX=:
18394
18395 # Commands to make compiler produce verbose output that lists
18396 # what "hidden" libraries, object files and flags are used when
18397 # linking a shared library.
18398 #
18399 # There doesn't appear to be a way to prevent this compiler from
18400 # explicitly linking system object files so we need to strip them
18401 # from the output so that they don't get included in the library
18402 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018403 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 +000018404 ;;
cristy0c60a692010-11-04 01:09:47 +000018405 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018406 # IBM XL 8.0 on PPC, with GNU ld
18407 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18408 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18409 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18410 if test "x$supports_anon_versioning" = xyes; then
18411 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18412 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18413 echo "local: *; };" >> $output_objdir/$libname.ver~
18414 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18415 fi
18416 ;;
18417 *)
18418 case `$CC -V 2>&1 | sed 5q` in
18419 *Sun\ C*)
18420 # Sun C++ 5.9
18421 no_undefined_flag_CXX=' -zdefs'
18422 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18423 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'
18424 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018425 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 +000018426 compiler_needs_object_CXX=yes
18427
18428 # Not sure whether something based on
18429 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18430 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018431 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018432
18433 # Archives containing C++ object files must be created using
18434 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18435 # necessary to make sure instantiated templates are included
18436 # in the archive.
18437 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18438 ;;
18439 esac
18440 ;;
18441 esac
18442 ;;
18443
18444 lynxos*)
18445 # FIXME: insert proper C++ library support
18446 ld_shlibs_CXX=no
18447 ;;
18448
18449 m88k*)
18450 # FIXME: insert proper C++ library support
18451 ld_shlibs_CXX=no
18452 ;;
18453
18454 mvs*)
18455 case $cc_basename in
18456 cxx*)
18457 # FIXME: insert proper C++ library support
18458 ld_shlibs_CXX=no
18459 ;;
18460 *)
18461 # FIXME: insert proper C++ library support
18462 ld_shlibs_CXX=no
18463 ;;
18464 esac
18465 ;;
18466
18467 netbsd*)
18468 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18469 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18470 wlarc=
18471 hardcode_libdir_flag_spec_CXX='-R$libdir'
18472 hardcode_direct_CXX=yes
18473 hardcode_shlibpath_var_CXX=no
18474 fi
18475 # Workaround some broken pre-1.5 toolchains
18476 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18477 ;;
18478
18479 *nto* | *qnx*)
18480 ld_shlibs_CXX=yes
18481 ;;
18482
18483 openbsd2*)
18484 # C++ shared libraries are fairly broken
18485 ld_shlibs_CXX=no
18486 ;;
18487
18488 openbsd*)
18489 if test -f /usr/libexec/ld.so; then
18490 hardcode_direct_CXX=yes
18491 hardcode_shlibpath_var_CXX=no
18492 hardcode_direct_absolute_CXX=yes
18493 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18494 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18496 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18497 export_dynamic_flag_spec_CXX='${wl}-E'
18498 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18499 fi
cristy0c60a692010-11-04 01:09:47 +000018500 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018501 else
18502 ld_shlibs_CXX=no
18503 fi
18504 ;;
18505
18506 osf3* | osf4* | osf5*)
18507 case $cc_basename in
18508 KCC*)
18509 # Kuck and Associates, Inc. (KAI) C++ Compiler
18510
18511 # KCC will only create a shared library if the output file
18512 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18513 # to its proper name (with version) after linking.
18514 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'
18515
18516 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18517 hardcode_libdir_separator_CXX=:
18518
18519 # Archives containing C++ object files must be created using
18520 # the KAI C++ compiler.
18521 case $host in
18522 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18523 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18524 esac
18525 ;;
18526 RCC*)
18527 # Rational C++ 2.4.1
18528 # FIXME: insert proper C++ library support
18529 ld_shlibs_CXX=no
18530 ;;
18531 cxx*)
18532 case $host in
18533 osf3*)
18534 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018535 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 +000018536 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18537 ;;
18538 *)
18539 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018540 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 +000018541 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18542 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018543 $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 +000018544 $RM $lib.exp'
18545 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18546 ;;
18547 esac
18548
18549 hardcode_libdir_separator_CXX=:
18550
18551 # Commands to make compiler produce verbose output that lists
18552 # what "hidden" libraries, object files and flags are used when
18553 # linking a shared library.
18554 #
18555 # There doesn't appear to be a way to prevent this compiler from
18556 # explicitly linking system object files so we need to strip them
18557 # from the output so that they don't get included in the library
18558 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018559 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 +000018560 ;;
18561 *)
18562 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18563 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18564 case $host in
18565 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018566 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 +000018567 ;;
18568 *)
cristyda16f162011-02-19 23:52:17 +000018569 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 +000018570 ;;
18571 esac
18572
18573 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18574 hardcode_libdir_separator_CXX=:
18575
18576 # Commands to make compiler produce verbose output that lists
18577 # what "hidden" libraries, object files and flags are used when
18578 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018579 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018580
18581 else
18582 # FIXME: insert proper C++ library support
18583 ld_shlibs_CXX=no
18584 fi
18585 ;;
18586 esac
18587 ;;
18588
18589 psos*)
18590 # FIXME: insert proper C++ library support
18591 ld_shlibs_CXX=no
18592 ;;
18593
18594 sunos4*)
18595 case $cc_basename in
18596 CC*)
18597 # Sun C++ 4.x
18598 # FIXME: insert proper C++ library support
18599 ld_shlibs_CXX=no
18600 ;;
18601 lcc*)
18602 # Lucid
18603 # FIXME: insert proper C++ library support
18604 ld_shlibs_CXX=no
18605 ;;
18606 *)
18607 # FIXME: insert proper C++ library support
18608 ld_shlibs_CXX=no
18609 ;;
18610 esac
18611 ;;
18612
18613 solaris*)
18614 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018615 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018616 # Sun C++ 4.2, 5.x and Centerline C++
18617 archive_cmds_need_lc_CXX=yes
18618 no_undefined_flag_CXX=' -zdefs'
18619 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18620 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18621 $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'
18622
18623 hardcode_libdir_flag_spec_CXX='-R$libdir'
18624 hardcode_shlibpath_var_CXX=no
18625 case $host_os in
18626 solaris2.[0-5] | solaris2.[0-5].*) ;;
18627 *)
18628 # The compiler driver will combine and reorder linker options,
18629 # but understands `-z linker_flag'.
18630 # Supported since Solaris 2.6 (maybe 2.5.1?)
18631 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18632 ;;
18633 esac
18634 link_all_deplibs_CXX=yes
18635
cristy0c60a692010-11-04 01:09:47 +000018636 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018637
18638 # Archives containing C++ object files must be created using
18639 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18640 # necessary to make sure instantiated templates are included
18641 # in the archive.
18642 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18643 ;;
18644 gcx*)
18645 # Green Hills C++ Compiler
18646 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18647
18648 # The C++ compiler must be used to create the archive.
18649 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18650 ;;
18651 *)
18652 # GNU C++ compiler with Solaris linker
18653 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18654 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18655 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018656 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 +000018657 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 +000018658 $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 +000018659
18660 # Commands to make compiler produce verbose output that lists
18661 # what "hidden" libraries, object files and flags are used when
18662 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018663 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018664 else
18665 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18666 # platform.
18667 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18668 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18669 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18670
18671 # Commands to make compiler produce verbose output that lists
18672 # what "hidden" libraries, object files and flags are used when
18673 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018674 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018675 fi
18676
18677 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18678 case $host_os in
18679 solaris2.[0-5] | solaris2.[0-5].*) ;;
18680 *)
18681 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18682 ;;
18683 esac
18684 fi
18685 ;;
18686 esac
18687 ;;
18688
18689 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18690 no_undefined_flag_CXX='${wl}-z,text'
18691 archive_cmds_need_lc_CXX=no
18692 hardcode_shlibpath_var_CXX=no
18693 runpath_var='LD_RUN_PATH'
18694
18695 case $cc_basename in
18696 CC*)
18697 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18698 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18699 ;;
18700 *)
18701 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18702 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18703 ;;
18704 esac
18705 ;;
18706
18707 sysv5* | sco3.2v5* | sco5v6*)
18708 # Note: We can NOT use -z defs as we might desire, because we do not
18709 # link with -lc, and that would cause any symbols used from libc to
18710 # always be unresolved, which means just about no library would
18711 # ever link correctly. If we're not using GNU ld we use -z text
18712 # though, which does catch some bad symbols but isn't as heavy-handed
18713 # as -z defs.
18714 no_undefined_flag_CXX='${wl}-z,text'
18715 allow_undefined_flag_CXX='${wl}-z,nodefs'
18716 archive_cmds_need_lc_CXX=no
18717 hardcode_shlibpath_var_CXX=no
18718 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18719 hardcode_libdir_separator_CXX=':'
18720 link_all_deplibs_CXX=yes
18721 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18722 runpath_var='LD_RUN_PATH'
18723
18724 case $cc_basename in
18725 CC*)
18726 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18727 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 +000018728 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18729 '"$old_archive_cmds_CXX"
18730 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18731 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018732 ;;
18733 *)
18734 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18735 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18736 ;;
18737 esac
18738 ;;
18739
18740 tandem*)
18741 case $cc_basename in
18742 NCC*)
18743 # NonStop-UX NCC 3.20
18744 # FIXME: insert proper C++ library support
18745 ld_shlibs_CXX=no
18746 ;;
18747 *)
18748 # FIXME: insert proper C++ library support
18749 ld_shlibs_CXX=no
18750 ;;
18751 esac
18752 ;;
18753
18754 vxworks*)
18755 # FIXME: insert proper C++ library support
18756 ld_shlibs_CXX=no
18757 ;;
18758
18759 *)
18760 # FIXME: insert proper C++ library support
18761 ld_shlibs_CXX=no
18762 ;;
18763 esac
18764
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18766$as_echo "$ld_shlibs_CXX" >&6; }
18767 test "$ld_shlibs_CXX" = no && can_build_shared=no
18768
18769 GCC_CXX="$GXX"
18770 LD_CXX="$LD"
18771
18772 ## CAVEAT EMPTOR:
18773 ## There is no encapsulation within the following macros, do not change
18774 ## the running order or otherwise move them around unless you know exactly
18775 ## what you are doing...
18776 # Dependencies to place before and after the object being linked:
18777predep_objects_CXX=
18778postdep_objects_CXX=
18779predeps_CXX=
18780postdeps_CXX=
18781compiler_lib_search_path_CXX=
18782
18783cat > conftest.$ac_ext <<_LT_EOF
18784class Foo
18785{
18786public:
18787 Foo (void) { a = 0; }
18788private:
18789 int a;
18790};
18791_LT_EOF
18792
cristyda16f162011-02-19 23:52:17 +000018793
18794_lt_libdeps_save_CFLAGS=$CFLAGS
18795case "$CC $CFLAGS " in #(
18796*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18797*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018798*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018799esac
18800
cristy73bd4a52010-10-05 11:24:23 +000018801if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18802 (eval $ac_compile) 2>&5
18803 ac_status=$?
18804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18805 test $ac_status = 0; }; then
18806 # Parse the compiler output and extract the necessary
18807 # objects, libraries and library flags.
18808
18809 # Sentinel used to keep track of whether or not we are before
18810 # the conftest object file.
18811 pre_test_object_deps_done=no
18812
18813 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018814 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018815
18816 -L* | -R* | -l*)
18817 # Some compilers place space between "-{L,R}" and the path.
18818 # Remove the space.
18819 if test $p = "-L" ||
18820 test $p = "-R"; then
18821 prev=$p
18822 continue
cristy73bd4a52010-10-05 11:24:23 +000018823 fi
18824
cristyda16f162011-02-19 23:52:17 +000018825 # Expand the sysroot to ease extracting the directories later.
18826 if test -z "$prev"; then
18827 case $p in
18828 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18829 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18830 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18831 esac
18832 fi
18833 case $p in
18834 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18835 esac
cristy73bd4a52010-10-05 11:24:23 +000018836 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018837 case ${prev} in
18838 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018839 # Internal compiler library paths should come after those
18840 # provided the user. The postdeps already come after the
18841 # user supplied libs so there is no need to process them.
18842 if test -z "$compiler_lib_search_path_CXX"; then
18843 compiler_lib_search_path_CXX="${prev}${p}"
18844 else
18845 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18846 fi
18847 ;;
18848 # The "-l" case would never come before the object being
18849 # linked, so don't bother handling this case.
18850 esac
18851 else
18852 if test -z "$postdeps_CXX"; then
18853 postdeps_CXX="${prev}${p}"
18854 else
18855 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18856 fi
18857 fi
cristyda16f162011-02-19 23:52:17 +000018858 prev=
cristy73bd4a52010-10-05 11:24:23 +000018859 ;;
18860
cristyda16f162011-02-19 23:52:17 +000018861 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018862 *.$objext)
18863 # This assumes that the test object file only shows up
18864 # once in the compiler output.
18865 if test "$p" = "conftest.$objext"; then
18866 pre_test_object_deps_done=yes
18867 continue
18868 fi
18869
18870 if test "$pre_test_object_deps_done" = no; then
18871 if test -z "$predep_objects_CXX"; then
18872 predep_objects_CXX="$p"
18873 else
18874 predep_objects_CXX="$predep_objects_CXX $p"
18875 fi
18876 else
18877 if test -z "$postdep_objects_CXX"; then
18878 postdep_objects_CXX="$p"
18879 else
18880 postdep_objects_CXX="$postdep_objects_CXX $p"
18881 fi
18882 fi
18883 ;;
18884
18885 *) ;; # Ignore the rest.
18886
18887 esac
18888 done
18889
18890 # Clean up.
18891 rm -f a.out a.exe
18892else
18893 echo "libtool.m4: error: problem compiling CXX test program"
18894fi
18895
18896$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018897CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018898
18899# PORTME: override above test on systems where it is broken
18900case $host_os in
18901interix[3-9]*)
18902 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18903 # hack all around it, let's just trust "g++" to DTRT.
18904 predep_objects_CXX=
18905 postdep_objects_CXX=
18906 postdeps_CXX=
18907 ;;
18908
18909linux*)
18910 case `$CC -V 2>&1 | sed 5q` in
18911 *Sun\ C*)
18912 # Sun C++ 5.9
18913
18914 # The more standards-conforming stlport4 library is
18915 # incompatible with the Cstd library. Avoid specifying
18916 # it if it's in CXXFLAGS. Ignore libCrun as
18917 # -library=stlport4 depends on it.
18918 case " $CXX $CXXFLAGS " in
18919 *" -library=stlport4 "*)
18920 solaris_use_stlport4=yes
18921 ;;
18922 esac
18923
18924 if test "$solaris_use_stlport4" != yes; then
18925 postdeps_CXX='-library=Cstd -library=Crun'
18926 fi
18927 ;;
18928 esac
18929 ;;
18930
18931solaris*)
18932 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018933 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018934 # The more standards-conforming stlport4 library is
18935 # incompatible with the Cstd library. Avoid specifying
18936 # it if it's in CXXFLAGS. Ignore libCrun as
18937 # -library=stlport4 depends on it.
18938 case " $CXX $CXXFLAGS " in
18939 *" -library=stlport4 "*)
18940 solaris_use_stlport4=yes
18941 ;;
18942 esac
18943
18944 # Adding this requires a known-good setup of shared libraries for
18945 # Sun compiler versions before 5.6, else PIC objects from an old
18946 # archive will be linked into the output, leading to subtle bugs.
18947 if test "$solaris_use_stlport4" != yes; then
18948 postdeps_CXX='-library=Cstd -library=Crun'
18949 fi
18950 ;;
18951 esac
18952 ;;
18953esac
18954
18955
18956case " $postdeps_CXX " in
18957*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18958esac
18959 compiler_lib_search_dirs_CXX=
18960if test -n "${compiler_lib_search_path_CXX}"; then
18961 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18962fi
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994 lt_prog_compiler_wl_CXX=
18995lt_prog_compiler_pic_CXX=
18996lt_prog_compiler_static_CXX=
18997
cristy73bd4a52010-10-05 11:24:23 +000018998
18999 # C++ specific cases for pic, static, wl, etc.
19000 if test "$GXX" = yes; then
19001 lt_prog_compiler_wl_CXX='-Wl,'
19002 lt_prog_compiler_static_CXX='-static'
19003
19004 case $host_os in
19005 aix*)
19006 # All AIX code is PIC.
19007 if test "$host_cpu" = ia64; then
19008 # AIX 5 now supports IA64 processor
19009 lt_prog_compiler_static_CXX='-Bstatic'
19010 fi
19011 ;;
19012
19013 amigaos*)
19014 case $host_cpu in
19015 powerpc)
19016 # see comment about AmigaOS4 .so support
19017 lt_prog_compiler_pic_CXX='-fPIC'
19018 ;;
19019 m68k)
19020 # FIXME: we need at least 68020 code to build shared libraries, but
19021 # adding the `-m68020' flag to GCC prevents building anything better,
19022 # like `-m68040'.
19023 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19024 ;;
19025 esac
19026 ;;
19027
19028 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19029 # PIC is the default for these OSes.
19030 ;;
19031 mingw* | cygwin* | os2* | pw32* | cegcc*)
19032 # This hack is so that the source file can tell whether it is being
19033 # built for inclusion in a dll (and should export symbols for example).
19034 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19035 # (--disable-auto-import) libraries
19036 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19037 ;;
19038 darwin* | rhapsody*)
19039 # PIC is the default on this platform
19040 # Common symbols not allowed in MH_DYLIB files
19041 lt_prog_compiler_pic_CXX='-fno-common'
19042 ;;
19043 *djgpp*)
19044 # DJGPP does not support shared libraries at all
19045 lt_prog_compiler_pic_CXX=
19046 ;;
cristy0c60a692010-11-04 01:09:47 +000019047 haiku*)
19048 # PIC is the default for Haiku.
19049 # The "-static" flag exists, but is broken.
19050 lt_prog_compiler_static_CXX=
19051 ;;
cristy73bd4a52010-10-05 11:24:23 +000019052 interix[3-9]*)
19053 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19054 # Instead, we relocate shared libraries at runtime.
19055 ;;
19056 sysv4*MP*)
19057 if test -d /usr/nec; then
19058 lt_prog_compiler_pic_CXX=-Kconform_pic
19059 fi
19060 ;;
19061 hpux*)
19062 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19063 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19064 # sets the default TLS model and affects inlining.
19065 case $host_cpu in
19066 hppa*64*)
19067 ;;
19068 *)
19069 lt_prog_compiler_pic_CXX='-fPIC'
19070 ;;
19071 esac
19072 ;;
19073 *qnx* | *nto*)
19074 # QNX uses GNU C++, but need to define -shared option too, otherwise
19075 # it will coredump.
19076 lt_prog_compiler_pic_CXX='-fPIC -shared'
19077 ;;
19078 *)
19079 lt_prog_compiler_pic_CXX='-fPIC'
19080 ;;
19081 esac
19082 else
19083 case $host_os in
19084 aix[4-9]*)
19085 # All AIX code is PIC.
19086 if test "$host_cpu" = ia64; then
19087 # AIX 5 now supports IA64 processor
19088 lt_prog_compiler_static_CXX='-Bstatic'
19089 else
19090 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19091 fi
19092 ;;
19093 chorus*)
19094 case $cc_basename in
19095 cxch68*)
19096 # Green Hills C++ Compiler
19097 # _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"
19098 ;;
19099 esac
19100 ;;
cristyda16f162011-02-19 23:52:17 +000019101 mingw* | cygwin* | os2* | pw32* | cegcc*)
19102 # This hack is so that the source file can tell whether it is being
19103 # built for inclusion in a dll (and should export symbols for example).
19104 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19105 ;;
cristy73bd4a52010-10-05 11:24:23 +000019106 dgux*)
19107 case $cc_basename in
19108 ec++*)
19109 lt_prog_compiler_pic_CXX='-KPIC'
19110 ;;
19111 ghcx*)
19112 # Green Hills C++ Compiler
19113 lt_prog_compiler_pic_CXX='-pic'
19114 ;;
19115 *)
19116 ;;
19117 esac
19118 ;;
19119 freebsd* | dragonfly*)
19120 # FreeBSD uses GNU C++
19121 ;;
19122 hpux9* | hpux10* | hpux11*)
19123 case $cc_basename in
19124 CC*)
19125 lt_prog_compiler_wl_CXX='-Wl,'
19126 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19127 if test "$host_cpu" != ia64; then
19128 lt_prog_compiler_pic_CXX='+Z'
19129 fi
19130 ;;
19131 aCC*)
19132 lt_prog_compiler_wl_CXX='-Wl,'
19133 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19134 case $host_cpu in
19135 hppa*64*|ia64*)
19136 # +Z the default
19137 ;;
19138 *)
19139 lt_prog_compiler_pic_CXX='+Z'
19140 ;;
19141 esac
19142 ;;
19143 *)
19144 ;;
19145 esac
19146 ;;
19147 interix*)
19148 # This is c89, which is MS Visual C++ (no shared libs)
19149 # Anyone wants to do a port?
19150 ;;
19151 irix5* | irix6* | nonstopux*)
19152 case $cc_basename in
19153 CC*)
19154 lt_prog_compiler_wl_CXX='-Wl,'
19155 lt_prog_compiler_static_CXX='-non_shared'
19156 # CC pic flag -KPIC is the default.
19157 ;;
19158 *)
19159 ;;
19160 esac
19161 ;;
cristy0c60a692010-11-04 01:09:47 +000019162 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019163 case $cc_basename in
19164 KCC*)
19165 # KAI C++ Compiler
19166 lt_prog_compiler_wl_CXX='--backend -Wl,'
19167 lt_prog_compiler_pic_CXX='-fPIC'
19168 ;;
19169 ecpc* )
19170 # old Intel C++ for x86_64 which still supported -KPIC.
19171 lt_prog_compiler_wl_CXX='-Wl,'
19172 lt_prog_compiler_pic_CXX='-KPIC'
19173 lt_prog_compiler_static_CXX='-static'
19174 ;;
19175 icpc* )
19176 # Intel C++, used to be incompatible with GCC.
19177 # ICC 10 doesn't accept -KPIC any more.
19178 lt_prog_compiler_wl_CXX='-Wl,'
19179 lt_prog_compiler_pic_CXX='-fPIC'
19180 lt_prog_compiler_static_CXX='-static'
19181 ;;
19182 pgCC* | pgcpp*)
19183 # Portland Group C++ compiler
19184 lt_prog_compiler_wl_CXX='-Wl,'
19185 lt_prog_compiler_pic_CXX='-fpic'
19186 lt_prog_compiler_static_CXX='-Bstatic'
19187 ;;
19188 cxx*)
19189 # Compaq C++
19190 # Make sure the PIC flag is empty. It appears that all Alpha
19191 # Linux and Compaq Tru64 Unix objects are PIC.
19192 lt_prog_compiler_pic_CXX=
19193 lt_prog_compiler_static_CXX='-non_shared'
19194 ;;
cristy0c60a692010-11-04 01:09:47 +000019195 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19196 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019197 lt_prog_compiler_wl_CXX='-Wl,'
19198 lt_prog_compiler_pic_CXX='-qpic'
19199 lt_prog_compiler_static_CXX='-qstaticlink'
19200 ;;
19201 *)
19202 case `$CC -V 2>&1 | sed 5q` in
19203 *Sun\ C*)
19204 # Sun C++ 5.9
19205 lt_prog_compiler_pic_CXX='-KPIC'
19206 lt_prog_compiler_static_CXX='-Bstatic'
19207 lt_prog_compiler_wl_CXX='-Qoption ld '
19208 ;;
19209 esac
19210 ;;
19211 esac
19212 ;;
19213 lynxos*)
19214 ;;
19215 m88k*)
19216 ;;
19217 mvs*)
19218 case $cc_basename in
19219 cxx*)
19220 lt_prog_compiler_pic_CXX='-W c,exportall'
19221 ;;
19222 *)
19223 ;;
19224 esac
19225 ;;
19226 netbsd*)
19227 ;;
19228 *qnx* | *nto*)
19229 # QNX uses GNU C++, but need to define -shared option too, otherwise
19230 # it will coredump.
19231 lt_prog_compiler_pic_CXX='-fPIC -shared'
19232 ;;
19233 osf3* | osf4* | osf5*)
19234 case $cc_basename in
19235 KCC*)
19236 lt_prog_compiler_wl_CXX='--backend -Wl,'
19237 ;;
19238 RCC*)
19239 # Rational C++ 2.4.1
19240 lt_prog_compiler_pic_CXX='-pic'
19241 ;;
19242 cxx*)
19243 # Digital/Compaq C++
19244 lt_prog_compiler_wl_CXX='-Wl,'
19245 # Make sure the PIC flag is empty. It appears that all Alpha
19246 # Linux and Compaq Tru64 Unix objects are PIC.
19247 lt_prog_compiler_pic_CXX=
19248 lt_prog_compiler_static_CXX='-non_shared'
19249 ;;
19250 *)
19251 ;;
19252 esac
19253 ;;
19254 psos*)
19255 ;;
19256 solaris*)
19257 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019258 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019259 # Sun C++ 4.2, 5.x and Centerline C++
19260 lt_prog_compiler_pic_CXX='-KPIC'
19261 lt_prog_compiler_static_CXX='-Bstatic'
19262 lt_prog_compiler_wl_CXX='-Qoption ld '
19263 ;;
19264 gcx*)
19265 # Green Hills C++ Compiler
19266 lt_prog_compiler_pic_CXX='-PIC'
19267 ;;
19268 *)
19269 ;;
19270 esac
19271 ;;
19272 sunos4*)
19273 case $cc_basename in
19274 CC*)
19275 # Sun C++ 4.x
19276 lt_prog_compiler_pic_CXX='-pic'
19277 lt_prog_compiler_static_CXX='-Bstatic'
19278 ;;
19279 lcc*)
19280 # Lucid
19281 lt_prog_compiler_pic_CXX='-pic'
19282 ;;
19283 *)
19284 ;;
19285 esac
19286 ;;
19287 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19288 case $cc_basename in
19289 CC*)
19290 lt_prog_compiler_wl_CXX='-Wl,'
19291 lt_prog_compiler_pic_CXX='-KPIC'
19292 lt_prog_compiler_static_CXX='-Bstatic'
19293 ;;
19294 esac
19295 ;;
19296 tandem*)
19297 case $cc_basename in
19298 NCC*)
19299 # NonStop-UX NCC 3.20
19300 lt_prog_compiler_pic_CXX='-KPIC'
19301 ;;
19302 *)
19303 ;;
19304 esac
19305 ;;
19306 vxworks*)
19307 ;;
19308 *)
19309 lt_prog_compiler_can_build_shared_CXX=no
19310 ;;
19311 esac
19312 fi
19313
19314case $host_os in
19315 # For platforms which do not support PIC, -DPIC is meaningless:
19316 *djgpp*)
19317 lt_prog_compiler_pic_CXX=
19318 ;;
19319 *)
19320 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19321 ;;
19322esac
cristy73bd4a52010-10-05 11:24:23 +000019323
cristyda16f162011-02-19 23:52:17 +000019324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19325$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19326if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19327 $as_echo_n "(cached) " >&6
19328else
19329 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19330fi
19331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19332$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19333lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019334
19335#
19336# Check to make sure the PIC flag actually works.
19337#
19338if test -n "$lt_prog_compiler_pic_CXX"; then
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19340$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019341if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019342 $as_echo_n "(cached) " >&6
19343else
19344 lt_cv_prog_compiler_pic_works_CXX=no
19345 ac_outfile=conftest.$ac_objext
19346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19347 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19348 # Insert the option either (1) after the last *FLAGS variable, or
19349 # (2) before a word containing "conftest.", or (3) at the end.
19350 # Note that $ac_compile itself does not contain backslashes and begins
19351 # with a dollar sign (not a hyphen), so the echo should work correctly.
19352 # The option is referenced via a variable to avoid confusing sed.
19353 lt_compile=`echo "$ac_compile" | $SED \
19354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19356 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019357 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019358 (eval "$lt_compile" 2>conftest.err)
19359 ac_status=$?
19360 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019362 if (exit $ac_status) && test -s "$ac_outfile"; then
19363 # The compiler can only warn and ignore the option if not recognized
19364 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19367 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19368 lt_cv_prog_compiler_pic_works_CXX=yes
19369 fi
19370 fi
19371 $RM conftest*
19372
19373fi
19374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19375$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19376
19377if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19378 case $lt_prog_compiler_pic_CXX in
19379 "" | " "*) ;;
19380 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19381 esac
19382else
19383 lt_prog_compiler_pic_CXX=
19384 lt_prog_compiler_can_build_shared_CXX=no
19385fi
19386
19387fi
19388
19389
19390
cristyda16f162011-02-19 23:52:17 +000019391
19392
cristy73bd4a52010-10-05 11:24:23 +000019393#
19394# Check to make sure the static flag actually works.
19395#
19396wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19398$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019399if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019400 $as_echo_n "(cached) " >&6
19401else
19402 lt_cv_prog_compiler_static_works_CXX=no
19403 save_LDFLAGS="$LDFLAGS"
19404 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19405 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19406 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19407 # The linker can only warn and ignore the option if not recognized
19408 # So say no if there are warnings
19409 if test -s conftest.err; then
19410 # Append any errors to the config.log.
19411 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019412 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19414 if diff conftest.exp conftest.er2 >/dev/null; then
19415 lt_cv_prog_compiler_static_works_CXX=yes
19416 fi
19417 else
19418 lt_cv_prog_compiler_static_works_CXX=yes
19419 fi
19420 fi
19421 $RM -r conftest*
19422 LDFLAGS="$save_LDFLAGS"
19423
19424fi
19425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19426$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19427
19428if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19429 :
19430else
19431 lt_prog_compiler_static_CXX=
19432fi
19433
19434
19435
19436
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19438$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019439if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019440 $as_echo_n "(cached) " >&6
19441else
19442 lt_cv_prog_compiler_c_o_CXX=no
19443 $RM -r conftest 2>/dev/null
19444 mkdir conftest
19445 cd conftest
19446 mkdir out
19447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19448
19449 lt_compiler_flag="-o out/conftest2.$ac_objext"
19450 # Insert the option either (1) after the last *FLAGS variable, or
19451 # (2) before a word containing "conftest.", or (3) at the end.
19452 # Note that $ac_compile itself does not contain backslashes and begins
19453 # with a dollar sign (not a hyphen), so the echo should work correctly.
19454 lt_compile=`echo "$ac_compile" | $SED \
19455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19457 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019459 (eval "$lt_compile" 2>out/conftest.err)
19460 ac_status=$?
19461 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019463 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19464 then
19465 # The compiler can only warn and ignore the option if not recognized
19466 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019468 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19469 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19470 lt_cv_prog_compiler_c_o_CXX=yes
19471 fi
19472 fi
19473 chmod u+w . 2>&5
19474 $RM conftest*
19475 # SGI C++ compiler will create directory out/ii_files/ for
19476 # template instantiation
19477 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19478 $RM out/* && rmdir out
19479 cd ..
19480 $RM -r conftest
19481 $RM conftest*
19482
19483fi
19484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19485$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19486
19487
19488
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19490$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019491if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019492 $as_echo_n "(cached) " >&6
19493else
19494 lt_cv_prog_compiler_c_o_CXX=no
19495 $RM -r conftest 2>/dev/null
19496 mkdir conftest
19497 cd conftest
19498 mkdir out
19499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19500
19501 lt_compiler_flag="-o out/conftest2.$ac_objext"
19502 # Insert the option either (1) after the last *FLAGS variable, or
19503 # (2) before a word containing "conftest.", or (3) at the end.
19504 # Note that $ac_compile itself does not contain backslashes and begins
19505 # with a dollar sign (not a hyphen), so the echo should work correctly.
19506 lt_compile=`echo "$ac_compile" | $SED \
19507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19509 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019510 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019511 (eval "$lt_compile" 2>out/conftest.err)
19512 ac_status=$?
19513 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019515 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19516 then
19517 # The compiler can only warn and ignore the option if not recognized
19518 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019520 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19521 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19522 lt_cv_prog_compiler_c_o_CXX=yes
19523 fi
19524 fi
19525 chmod u+w . 2>&5
19526 $RM conftest*
19527 # SGI C++ compiler will create directory out/ii_files/ for
19528 # template instantiation
19529 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19530 $RM out/* && rmdir out
19531 cd ..
19532 $RM -r conftest
19533 $RM conftest*
19534
19535fi
19536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19537$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19538
19539
19540
19541
19542hard_links="nottested"
19543if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19544 # do not overwrite the value of need_locks provided by the user
19545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19546$as_echo_n "checking if we can lock with hard links... " >&6; }
19547 hard_links=yes
19548 $RM conftest*
19549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19550 touch conftest.a
19551 ln conftest.a conftest.b 2>&5 || hard_links=no
19552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19554$as_echo "$hard_links" >&6; }
19555 if test "$hard_links" = no; then
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19557$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19558 need_locks=warn
19559 fi
19560else
19561 need_locks=no
19562fi
19563
19564
19565
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19567$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19568
19569 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019570 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019571 case $host_os in
19572 aix[4-9]*)
19573 # If we're using GNU nm, then we don't want the "-C" option.
19574 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019575 # Also, AIX nm treats weak defined symbols like other global defined
19576 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019577 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019578 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 +000019579 else
19580 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'
19581 fi
19582 ;;
19583 pw32*)
19584 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019585 ;;
cristy73bd4a52010-10-05 11:24:23 +000019586 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019587 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019588 cl*)
19589 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19590 ;;
cristyda16f162011-02-19 23:52:17 +000019591 *)
19592 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'
19593 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19594 ;;
19595 esac
19596 ;;
cristy73bd4a52010-10-05 11:24:23 +000019597 *)
19598 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019599 ;;
cristy73bd4a52010-10-05 11:24:23 +000019600 esac
cristy73bd4a52010-10-05 11:24:23 +000019601
19602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19603$as_echo "$ld_shlibs_CXX" >&6; }
19604test "$ld_shlibs_CXX" = no && can_build_shared=no
19605
19606with_gnu_ld_CXX=$with_gnu_ld
19607
19608
19609
19610
19611
19612
19613#
19614# Do we need to explicitly link libc?
19615#
19616case "x$archive_cmds_need_lc_CXX" in
19617x|xyes)
19618 # Assume -lc should be added
19619 archive_cmds_need_lc_CXX=yes
19620
19621 if test "$enable_shared" = yes && test "$GCC" = yes; then
19622 case $archive_cmds_CXX in
19623 *'~'*)
19624 # FIXME: we may have to deal with multi-command sequences.
19625 ;;
19626 '$CC '*)
19627 # Test whether the compiler implicitly links with -lc since on some
19628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19629 # to ld, don't add -lc before -lgcc.
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19631$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019632if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019633 $as_echo_n "(cached) " >&6
19634else
19635 $RM conftest*
19636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019637
cristy0c60a692010-11-04 01:09:47 +000019638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019639 (eval $ac_compile) 2>&5
19640 ac_status=$?
19641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19642 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019643 soname=conftest
19644 lib=conftest
19645 libobjs=conftest.$ac_objext
19646 deplibs=
19647 wl=$lt_prog_compiler_wl_CXX
19648 pic_flag=$lt_prog_compiler_pic_CXX
19649 compiler_flags=-v
19650 linker_flags=-v
19651 verstring=
19652 output_objdir=.
19653 libname=conftest
19654 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19655 allow_undefined_flag_CXX=
19656 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 +000019657 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19658 ac_status=$?
19659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19660 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019661 then
19662 lt_cv_archive_cmds_need_lc_CXX=no
19663 else
19664 lt_cv_archive_cmds_need_lc_CXX=yes
19665 fi
19666 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19667 else
19668 cat conftest.err 1>&5
19669 fi
19670 $RM conftest*
19671
19672fi
19673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19674$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19675 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019676 ;;
19677 esac
19678 fi
19679 ;;
19680esac
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
cristy73bd4a52010-10-05 11:24:23 +000019743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19744$as_echo_n "checking dynamic linker characteristics... " >&6; }
19745
19746library_names_spec=
19747libname_spec='lib$name'
19748soname_spec=
19749shrext_cmds=".so"
19750postinstall_cmds=
19751postuninstall_cmds=
19752finish_cmds=
19753finish_eval=
19754shlibpath_var=
19755shlibpath_overrides_runpath=unknown
19756version_type=none
19757dynamic_linker="$host_os ld.so"
19758sys_lib_dlsearch_path_spec="/lib /usr/lib"
19759need_lib_prefix=unknown
19760hardcode_into_libs=no
19761
19762# when you set need_version to no, make sure it does not cause -set_version
19763# flags to be left without arguments
19764need_version=unknown
19765
19766case $host_os in
19767aix3*)
cristy99bd5232011-12-07 14:38:20 +000019768 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19770 shlibpath_var=LIBPATH
19771
19772 # AIX 3 has no versioning support, so we append a major version to the name.
19773 soname_spec='${libname}${release}${shared_ext}$major'
19774 ;;
19775
19776aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019777 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019778 need_lib_prefix=no
19779 need_version=no
19780 hardcode_into_libs=yes
19781 if test "$host_cpu" = ia64; then
19782 # AIX 5 supports IA64
19783 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19784 shlibpath_var=LD_LIBRARY_PATH
19785 else
19786 # With GCC up to 2.95.x, collect2 would create an import file
19787 # for dependence libraries. The import file would start with
19788 # the line `#! .'. This would cause the generated library to
19789 # depend on `.', always an invalid library. This was fixed in
19790 # development snapshots of GCC prior to 3.0.
19791 case $host_os in
19792 aix4 | aix4.[01] | aix4.[01].*)
19793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19794 echo ' yes '
19795 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19796 :
19797 else
19798 can_build_shared=no
19799 fi
19800 ;;
19801 esac
19802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19803 # soname into executable. Probably we can add versioning support to
19804 # collect2, so additional links can be useful in future.
19805 if test "$aix_use_runtimelinking" = yes; then
19806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19807 # instead of lib<name>.a to let people know that these are not
19808 # typical AIX shared libraries.
19809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19810 else
19811 # We preserve .a as extension for shared libraries through AIX4.2
19812 # and later when we are not doing run time linking.
19813 library_names_spec='${libname}${release}.a $libname.a'
19814 soname_spec='${libname}${release}${shared_ext}$major'
19815 fi
19816 shlibpath_var=LIBPATH
19817 fi
19818 ;;
19819
19820amigaos*)
19821 case $host_cpu in
19822 powerpc)
19823 # Since July 2007 AmigaOS4 officially supports .so libraries.
19824 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19826 ;;
19827 m68k)
19828 library_names_spec='$libname.ixlibrary $libname.a'
19829 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019830 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 +000019831 ;;
19832 esac
19833 ;;
19834
19835beos*)
19836 library_names_spec='${libname}${shared_ext}'
19837 dynamic_linker="$host_os ld.so"
19838 shlibpath_var=LIBRARY_PATH
19839 ;;
19840
19841bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019842 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019843 need_version=no
19844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19845 soname_spec='${libname}${release}${shared_ext}$major'
19846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19847 shlibpath_var=LD_LIBRARY_PATH
19848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19850 # the default ld.so.conf also contains /usr/contrib/lib and
19851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19852 # libtool to hard-code these into programs
19853 ;;
19854
19855cygwin* | mingw* | pw32* | cegcc*)
19856 version_type=windows
19857 shrext_cmds=".dll"
19858 need_version=no
19859 need_lib_prefix=no
19860
cristyda16f162011-02-19 23:52:17 +000019861 case $GCC,$cc_basename in
19862 yes,*)
19863 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019864 library_names_spec='$libname.dll.a'
19865 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19866 postinstall_cmds='base_file=`basename \${file}`~
19867 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19868 dldir=$destdir/`dirname \$dlpath`~
19869 test -d \$dldir || mkdir -p \$dldir~
19870 $install_prog $dir/$dlname \$dldir/$dlname~
19871 chmod a+x \$dldir/$dlname~
19872 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19873 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19874 fi'
19875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19876 dlpath=$dir/\$dldll~
19877 $RM \$dlpath'
19878 shlibpath_overrides_runpath=yes
19879
19880 case $host_os in
19881 cygwin*)
19882 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19883 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019884
cristy73bd4a52010-10-05 11:24:23 +000019885 ;;
19886 mingw* | cegcc*)
19887 # MinGW DLLs use traditional 'lib' prefix
19888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019889 ;;
19890 pw32*)
19891 # pw32 DLLs use 'pw' prefix rather than 'lib'
19892 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19893 ;;
19894 esac
cristyda16f162011-02-19 23:52:17 +000019895 dynamic_linker='Win32 ld.exe'
19896 ;;
19897
19898 *,cl*)
19899 # Native MSVC
19900 libname_spec='$name'
19901 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19902 library_names_spec='${libname}.dll.lib'
19903
19904 case $build_os in
19905 mingw*)
19906 sys_lib_search_path_spec=
19907 lt_save_ifs=$IFS
19908 IFS=';'
19909 for lt_path in $LIB
19910 do
19911 IFS=$lt_save_ifs
19912 # Let DOS variable expansion print the short 8.3 style file name.
19913 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19914 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19915 done
19916 IFS=$lt_save_ifs
19917 # Convert to MSYS style.
19918 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19919 ;;
19920 cygwin*)
19921 # Convert to unix form, then to dos form, then back to unix form
19922 # but this time dos style (no spaces!) so that the unix form looks
19923 # like /cygdrive/c/PROGRA~1:/cygdr...
19924 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19925 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19926 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19927 ;;
19928 *)
19929 sys_lib_search_path_spec="$LIB"
19930 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19931 # It is most probably a Windows format PATH.
19932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19933 else
19934 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19935 fi
19936 # FIXME: find the short name or the path components, as spaces are
19937 # common. (e.g. "Program Files" -> "PROGRA~1")
19938 ;;
19939 esac
19940
19941 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19942 postinstall_cmds='base_file=`basename \${file}`~
19943 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19944 dldir=$destdir/`dirname \$dlpath`~
19945 test -d \$dldir || mkdir -p \$dldir~
19946 $install_prog $dir/$dlname \$dldir/$dlname'
19947 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19948 dlpath=$dir/\$dldll~
19949 $RM \$dlpath'
19950 shlibpath_overrides_runpath=yes
19951 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019952 ;;
19953
19954 *)
cristyda16f162011-02-19 23:52:17 +000019955 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019957 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019958 ;;
19959 esac
cristy73bd4a52010-10-05 11:24:23 +000019960 # FIXME: first we should search . and the directory the executable is in
19961 shlibpath_var=PATH
19962 ;;
19963
19964darwin* | rhapsody*)
19965 dynamic_linker="$host_os dyld"
19966 version_type=darwin
19967 need_lib_prefix=no
19968 need_version=no
19969 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19970 soname_spec='${libname}${release}${major}$shared_ext'
19971 shlibpath_overrides_runpath=yes
19972 shlibpath_var=DYLD_LIBRARY_PATH
19973 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19974
19975 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19976 ;;
19977
19978dgux*)
cristy99bd5232011-12-07 14:38:20 +000019979 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019980 need_lib_prefix=no
19981 need_version=no
19982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19983 soname_spec='${libname}${release}${shared_ext}$major'
19984 shlibpath_var=LD_LIBRARY_PATH
19985 ;;
19986
cristy73bd4a52010-10-05 11:24:23 +000019987freebsd* | dragonfly*)
19988 # DragonFly does not have aout. When/if they implement a new
19989 # versioning mechanism, adjust this.
19990 if test -x /usr/bin/objformat; then
19991 objformat=`/usr/bin/objformat`
19992 else
19993 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019994 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000019995 *) objformat=elf ;;
19996 esac
19997 fi
19998 version_type=freebsd-$objformat
19999 case $version_type in
20000 freebsd-elf*)
20001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20002 need_version=no
20003 need_lib_prefix=no
20004 ;;
20005 freebsd-*)
20006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20007 need_version=yes
20008 ;;
20009 esac
20010 shlibpath_var=LD_LIBRARY_PATH
20011 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020012 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020013 shlibpath_overrides_runpath=yes
20014 ;;
20015 freebsd3.[01]* | freebsdelf3.[01]*)
20016 shlibpath_overrides_runpath=yes
20017 hardcode_into_libs=yes
20018 ;;
20019 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20020 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20021 shlibpath_overrides_runpath=no
20022 hardcode_into_libs=yes
20023 ;;
20024 *) # from 4.6 on, and DragonFly
20025 shlibpath_overrides_runpath=yes
20026 hardcode_into_libs=yes
20027 ;;
20028 esac
20029 ;;
20030
20031gnu*)
cristy99bd5232011-12-07 14:38:20 +000020032 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020033 need_lib_prefix=no
20034 need_version=no
20035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20036 soname_spec='${libname}${release}${shared_ext}$major'
20037 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020038 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020039 hardcode_into_libs=yes
20040 ;;
20041
cristy0c60a692010-11-04 01:09:47 +000020042haiku*)
cristy99bd5232011-12-07 14:38:20 +000020043 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020044 need_lib_prefix=no
20045 need_version=no
20046 dynamic_linker="$host_os runtime_loader"
20047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20048 soname_spec='${libname}${release}${shared_ext}$major'
20049 shlibpath_var=LIBRARY_PATH
20050 shlibpath_overrides_runpath=yes
20051 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20052 hardcode_into_libs=yes
20053 ;;
20054
cristy73bd4a52010-10-05 11:24:23 +000020055hpux9* | hpux10* | hpux11*)
20056 # Give a soname corresponding to the major version so that dld.sl refuses to
20057 # link against other versions.
20058 version_type=sunos
20059 need_lib_prefix=no
20060 need_version=no
20061 case $host_cpu in
20062 ia64*)
20063 shrext_cmds='.so'
20064 hardcode_into_libs=yes
20065 dynamic_linker="$host_os dld.so"
20066 shlibpath_var=LD_LIBRARY_PATH
20067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20069 soname_spec='${libname}${release}${shared_ext}$major'
20070 if test "X$HPUX_IA64_MODE" = X32; then
20071 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20072 else
20073 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20074 fi
20075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20076 ;;
20077 hppa*64*)
20078 shrext_cmds='.sl'
20079 hardcode_into_libs=yes
20080 dynamic_linker="$host_os dld.sl"
20081 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20084 soname_spec='${libname}${release}${shared_ext}$major'
20085 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20087 ;;
20088 *)
20089 shrext_cmds='.sl'
20090 dynamic_linker="$host_os dld.sl"
20091 shlibpath_var=SHLIB_PATH
20092 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20094 soname_spec='${libname}${release}${shared_ext}$major'
20095 ;;
20096 esac
cristy0c60a692010-11-04 01:09:47 +000020097 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020098 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020099 # or fails outright, so override atomically:
20100 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020101 ;;
20102
20103interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020104 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020105 need_lib_prefix=no
20106 need_version=no
20107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20108 soname_spec='${libname}${release}${shared_ext}$major'
20109 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20110 shlibpath_var=LD_LIBRARY_PATH
20111 shlibpath_overrides_runpath=no
20112 hardcode_into_libs=yes
20113 ;;
20114
20115irix5* | irix6* | nonstopux*)
20116 case $host_os in
20117 nonstopux*) version_type=nonstopux ;;
20118 *)
20119 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020120 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020121 else
20122 version_type=irix
20123 fi ;;
20124 esac
20125 need_lib_prefix=no
20126 need_version=no
20127 soname_spec='${libname}${release}${shared_ext}$major'
20128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20129 case $host_os in
20130 irix5* | nonstopux*)
20131 libsuff= shlibsuff=
20132 ;;
20133 *)
20134 case $LD in # libtool.m4 will add one of these switches to LD
20135 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20136 libsuff= shlibsuff= libmagic=32-bit;;
20137 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20138 libsuff=32 shlibsuff=N32 libmagic=N32;;
20139 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20140 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20141 *) libsuff= shlibsuff= libmagic=never-match;;
20142 esac
20143 ;;
20144 esac
20145 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20146 shlibpath_overrides_runpath=no
20147 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20148 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20149 hardcode_into_libs=yes
20150 ;;
20151
20152# No shared lib support for Linux oldld, aout, or coff.
20153linux*oldld* | linux*aout* | linux*coff*)
20154 dynamic_linker=no
20155 ;;
20156
cristy99bd5232011-12-07 14:38:20 +000020157# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020158linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020159 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020160 need_lib_prefix=no
20161 need_version=no
20162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20163 soname_spec='${libname}${release}${shared_ext}$major'
20164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20165 shlibpath_var=LD_LIBRARY_PATH
20166 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020167
cristy73bd4a52010-10-05 11:24:23 +000020168 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020169 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020170 $as_echo_n "(cached) " >&6
20171else
20172 lt_cv_shlibpath_overrides_runpath=no
20173 save_LDFLAGS=$LDFLAGS
20174 save_libdir=$libdir
20175 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20176 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020178/* end confdefs.h. */
20179
20180int
20181main ()
20182{
20183
20184 ;
20185 return 0;
20186}
20187_ACEOF
20188if ac_fn_cxx_try_link "$LINENO"; then :
20189 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020190 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020191fi
20192fi
20193rm -f core conftest.err conftest.$ac_objext \
20194 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020195 LDFLAGS=$save_LDFLAGS
20196 libdir=$save_libdir
20197
20198fi
20199
20200 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020201
20202 # This implies no fast_install, which is unacceptable.
20203 # Some rework will be needed to allow for fast_install
20204 # before this can be enabled.
20205 hardcode_into_libs=yes
20206
20207 # Add ABI-specific directories to the system library path.
20208 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20209
20210 # Append ld.so.conf contents to the search path
20211 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020212 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 +000020213 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020214
cristy73bd4a52010-10-05 11:24:23 +000020215 fi
20216
20217 # We used to test for /lib/ld.so.1 and disable shared libraries on
20218 # powerpc, because MkLinux only supported shared libraries with the
20219 # GNU dynamic linker. Since this was broken with cross compilers,
20220 # most powerpc-linux boxes support dynamic linking these days and
20221 # people can always --disable-shared, the test was removed, and we
20222 # assume the GNU/Linux dynamic linker is in use.
20223 dynamic_linker='GNU/Linux ld.so'
20224 ;;
20225
20226netbsd*)
20227 version_type=sunos
20228 need_lib_prefix=no
20229 need_version=no
20230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20233 dynamic_linker='NetBSD (a.out) ld.so'
20234 else
20235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20236 soname_spec='${libname}${release}${shared_ext}$major'
20237 dynamic_linker='NetBSD ld.elf_so'
20238 fi
20239 shlibpath_var=LD_LIBRARY_PATH
20240 shlibpath_overrides_runpath=yes
20241 hardcode_into_libs=yes
20242 ;;
20243
20244newsos6)
cristy99bd5232011-12-07 14:38:20 +000020245 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20247 shlibpath_var=LD_LIBRARY_PATH
20248 shlibpath_overrides_runpath=yes
20249 ;;
20250
20251*nto* | *qnx*)
20252 version_type=qnx
20253 need_lib_prefix=no
20254 need_version=no
20255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20256 soname_spec='${libname}${release}${shared_ext}$major'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 shlibpath_overrides_runpath=no
20259 hardcode_into_libs=yes
20260 dynamic_linker='ldqnx.so'
20261 ;;
20262
20263openbsd*)
20264 version_type=sunos
20265 sys_lib_dlsearch_path_spec="/usr/lib"
20266 need_lib_prefix=no
20267 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20268 case $host_os in
20269 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20270 *) need_version=no ;;
20271 esac
20272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20274 shlibpath_var=LD_LIBRARY_PATH
20275 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20276 case $host_os in
20277 openbsd2.[89] | openbsd2.[89].*)
20278 shlibpath_overrides_runpath=no
20279 ;;
20280 *)
20281 shlibpath_overrides_runpath=yes
20282 ;;
20283 esac
20284 else
20285 shlibpath_overrides_runpath=yes
20286 fi
20287 ;;
20288
20289os2*)
20290 libname_spec='$name'
20291 shrext_cmds=".dll"
20292 need_lib_prefix=no
20293 library_names_spec='$libname${shared_ext} $libname.a'
20294 dynamic_linker='OS/2 ld.exe'
20295 shlibpath_var=LIBPATH
20296 ;;
20297
20298osf3* | osf4* | osf5*)
20299 version_type=osf
20300 need_lib_prefix=no
20301 need_version=no
20302 soname_spec='${libname}${release}${shared_ext}$major'
20303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20304 shlibpath_var=LD_LIBRARY_PATH
20305 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20306 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20307 ;;
20308
20309rdos*)
20310 dynamic_linker=no
20311 ;;
20312
20313solaris*)
cristy99bd5232011-12-07 14:38:20 +000020314 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020315 need_lib_prefix=no
20316 need_version=no
20317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20318 soname_spec='${libname}${release}${shared_ext}$major'
20319 shlibpath_var=LD_LIBRARY_PATH
20320 shlibpath_overrides_runpath=yes
20321 hardcode_into_libs=yes
20322 # ldd complains unless libraries are executable
20323 postinstall_cmds='chmod +x $lib'
20324 ;;
20325
20326sunos4*)
20327 version_type=sunos
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20329 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20330 shlibpath_var=LD_LIBRARY_PATH
20331 shlibpath_overrides_runpath=yes
20332 if test "$with_gnu_ld" = yes; then
20333 need_lib_prefix=no
20334 fi
20335 need_version=yes
20336 ;;
20337
20338sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020339 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020340 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
20343 case $host_vendor in
20344 sni)
20345 shlibpath_overrides_runpath=no
20346 need_lib_prefix=no
20347 runpath_var=LD_RUN_PATH
20348 ;;
20349 siemens)
20350 need_lib_prefix=no
20351 ;;
20352 motorola)
20353 need_lib_prefix=no
20354 need_version=no
20355 shlibpath_overrides_runpath=no
20356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20357 ;;
20358 esac
20359 ;;
20360
20361sysv4*MP*)
20362 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020363 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020364 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20365 soname_spec='$libname${shared_ext}.$major'
20366 shlibpath_var=LD_LIBRARY_PATH
20367 fi
20368 ;;
20369
20370sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20371 version_type=freebsd-elf
20372 need_lib_prefix=no
20373 need_version=no
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20375 soname_spec='${libname}${release}${shared_ext}$major'
20376 shlibpath_var=LD_LIBRARY_PATH
20377 shlibpath_overrides_runpath=yes
20378 hardcode_into_libs=yes
20379 if test "$with_gnu_ld" = yes; then
20380 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20381 else
20382 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20383 case $host_os in
20384 sco3.2v5*)
20385 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20386 ;;
20387 esac
20388 fi
20389 sys_lib_dlsearch_path_spec='/usr/lib'
20390 ;;
20391
20392tpf*)
20393 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020394 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020395 need_lib_prefix=no
20396 need_version=no
20397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20398 shlibpath_var=LD_LIBRARY_PATH
20399 shlibpath_overrides_runpath=no
20400 hardcode_into_libs=yes
20401 ;;
20402
20403uts4*)
cristy99bd5232011-12-07 14:38:20 +000020404 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20406 soname_spec='${libname}${release}${shared_ext}$major'
20407 shlibpath_var=LD_LIBRARY_PATH
20408 ;;
20409
20410*)
20411 dynamic_linker=no
20412 ;;
20413esac
20414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20415$as_echo "$dynamic_linker" >&6; }
20416test "$dynamic_linker" = no && can_build_shared=no
20417
20418variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20419if test "$GCC" = yes; then
20420 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20421fi
20422
20423if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20424 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20425fi
20426if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20427 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20428fi
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
cristy0c60a692010-11-04 01:09:47 +000020465
20466
cristy73bd4a52010-10-05 11:24:23 +000020467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20468$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20469hardcode_action_CXX=
20470if test -n "$hardcode_libdir_flag_spec_CXX" ||
20471 test -n "$runpath_var_CXX" ||
20472 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20473
20474 # We can hardcode non-existent directories.
20475 if test "$hardcode_direct_CXX" != no &&
20476 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20477 # have to relink, otherwise we might link with an installed library
20478 # when we should be linking with a yet-to-be-installed one
20479 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20480 test "$hardcode_minus_L_CXX" != no; then
20481 # Linking always hardcodes the temporary library directory.
20482 hardcode_action_CXX=relink
20483 else
20484 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20485 hardcode_action_CXX=immediate
20486 fi
20487else
20488 # We cannot hardcode anything, or else we can only hardcode existing
20489 # directories.
20490 hardcode_action_CXX=unsupported
20491fi
20492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20493$as_echo "$hardcode_action_CXX" >&6; }
20494
20495if test "$hardcode_action_CXX" = relink ||
20496 test "$inherit_rpath_CXX" = yes; then
20497 # Fast installation is not supported
20498 enable_fast_install=no
20499elif test "$shlibpath_overrides_runpath" = yes ||
20500 test "$enable_shared" = no; then
20501 # Fast installation is not necessary
20502 enable_fast_install=needless
20503fi
20504
20505
20506
20507
20508
20509
20510
20511 fi # test -n "$compiler"
20512
20513 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020514 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020515 LDCXX=$LD
20516 LD=$lt_save_LD
20517 GCC=$lt_save_GCC
20518 with_gnu_ld=$lt_save_with_gnu_ld
20519 lt_cv_path_LDCXX=$lt_cv_path_LD
20520 lt_cv_path_LD=$lt_save_path_LD
20521 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20522 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20523fi # test "$_lt_caught_CXX_error" != yes
20524
20525ac_ext=c
20526ac_cpp='$CPP $CPPFLAGS'
20527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20529ac_compiler_gnu=$ac_cv_c_compiler_gnu
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
cristy99bd5232011-12-07 14:38:20 +000020543
20544
cristy73bd4a52010-10-05 11:24:23 +000020545 ac_config_commands="$ac_config_commands libtool"
20546
20547
20548
20549
20550# Only expand once:
20551
20552
20553
cristy3ed852e2009-09-05 21:47:34 +000020554
20555
20556# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020557
20558
20559
20560
20561
20562
20563
cristy73bd4a52010-10-05 11:24:23 +000020564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20565$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020566if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020567 $as_echo_n "(cached) " >&6
20568else
20569
20570module=yes
20571eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020572module=no
20573eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020574
20575fi
20576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20577$as_echo "$libltdl_cv_shlibext" >&6; }
20578if test -n "$libltdl_cv_shlibext"; then
20579
20580cat >>confdefs.h <<_ACEOF
20581#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20582_ACEOF
20583
20584fi
cristy99bd5232011-12-07 14:38:20 +000020585if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20586
20587cat >>confdefs.h <<_ACEOF
20588#define LT_SHARED_EXT "$libltdl_cv_shrext"
20589_ACEOF
20590
20591fi
cristy73bd4a52010-10-05 11:24:23 +000020592
20593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20594$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020595if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020596 $as_echo_n "(cached) " >&6
20597else
20598 lt_cv_module_path_var="$shlibpath_var"
20599fi
20600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20601$as_echo "$lt_cv_module_path_var" >&6; }
20602if test -n "$lt_cv_module_path_var"; then
20603
20604cat >>confdefs.h <<_ACEOF
20605#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20606_ACEOF
20607
20608fi
20609
20610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20611$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020612if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020613 $as_echo_n "(cached) " >&6
20614else
20615 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20616fi
20617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20618$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20619if test -n "$lt_cv_sys_dlsearch_path"; then
20620 sys_dlsearch_path=
20621 for dir in $lt_cv_sys_dlsearch_path; do
20622 if test -z "$sys_dlsearch_path"; then
20623 sys_dlsearch_path="$dir"
20624 else
20625 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20626 fi
20627 done
20628
20629cat >>confdefs.h <<_ACEOF
20630#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20631_ACEOF
20632
20633fi
20634
20635
20636LT_DLLOADERS=
20637
20638
20639ac_ext=c
20640ac_cpp='$CPP $CPPFLAGS'
20641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20643ac_compiler_gnu=$ac_cv_c_compiler_gnu
20644
20645
20646LIBADD_DLOPEN=
20647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20648$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020649if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020650 $as_echo_n "(cached) " >&6
20651else
20652 ac_func_search_save_LIBS=$LIBS
20653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20654/* end confdefs.h. */
20655
20656/* Override any GCC internal prototype to avoid an error.
20657 Use char because int might match the return type of a GCC
20658 builtin and then its argument prototype would still apply. */
20659#ifdef __cplusplus
20660extern "C"
20661#endif
20662char dlopen ();
20663int
20664main ()
20665{
20666return dlopen ();
20667 ;
20668 return 0;
20669}
20670_ACEOF
20671for ac_lib in '' dl; do
20672 if test -z "$ac_lib"; then
20673 ac_res="none required"
20674 else
20675 ac_res=-l$ac_lib
20676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20677 fi
20678 if ac_fn_c_try_link "$LINENO"; then :
20679 ac_cv_search_dlopen=$ac_res
20680fi
20681rm -f core conftest.err conftest.$ac_objext \
20682 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020683 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020684 break
20685fi
20686done
cristyda16f162011-02-19 23:52:17 +000020687if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020688
20689else
20690 ac_cv_search_dlopen=no
20691fi
20692rm conftest.$ac_ext
20693LIBS=$ac_func_search_save_LIBS
20694fi
20695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20696$as_echo "$ac_cv_search_dlopen" >&6; }
20697ac_res=$ac_cv_search_dlopen
20698if test "$ac_res" != no; then :
20699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20700
20701$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20702
20703 if test "$ac_cv_search_dlopen" != "none required" ; then
20704 LIBADD_DLOPEN="-ldl"
20705 fi
20706 libltdl_cv_lib_dl_dlopen="yes"
20707 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20708else
20709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20710/* end confdefs.h. */
20711#if HAVE_DLFCN_H
20712# include <dlfcn.h>
20713#endif
20714
20715int
20716main ()
20717{
20718dlopen(0, 0);
20719 ;
20720 return 0;
20721}
20722_ACEOF
20723if ac_fn_c_try_link "$LINENO"; then :
20724
20725$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20726
20727 libltdl_cv_func_dlopen="yes"
20728 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20729else
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20731$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020732if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020733 $as_echo_n "(cached) " >&6
20734else
20735 ac_check_lib_save_LIBS=$LIBS
20736LIBS="-lsvld $LIBS"
20737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20738/* end confdefs.h. */
20739
20740/* Override any GCC internal prototype to avoid an error.
20741 Use char because int might match the return type of a GCC
20742 builtin and then its argument prototype would still apply. */
20743#ifdef __cplusplus
20744extern "C"
20745#endif
20746char dlopen ();
20747int
20748main ()
20749{
20750return dlopen ();
20751 ;
20752 return 0;
20753}
20754_ACEOF
20755if ac_fn_c_try_link "$LINENO"; then :
20756 ac_cv_lib_svld_dlopen=yes
20757else
20758 ac_cv_lib_svld_dlopen=no
20759fi
20760rm -f core conftest.err conftest.$ac_objext \
20761 conftest$ac_exeext conftest.$ac_ext
20762LIBS=$ac_check_lib_save_LIBS
20763fi
20764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20765$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020766if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020767
20768$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20769
20770 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20771 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20772fi
20773
20774fi
20775rm -f core conftest.err conftest.$ac_objext \
20776 conftest$ac_exeext conftest.$ac_ext
20777fi
20778
20779if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20780then
20781 lt_save_LIBS="$LIBS"
20782 LIBS="$LIBS $LIBADD_DLOPEN"
20783 for ac_func in dlerror
20784do :
20785 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020786if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020787 cat >>confdefs.h <<_ACEOF
20788#define HAVE_DLERROR 1
20789_ACEOF
20790
20791fi
20792done
20793
20794 LIBS="$lt_save_LIBS"
20795fi
20796
20797
20798LIBADD_SHL_LOAD=
20799ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020800if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020801
20802$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20803
20804 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20805else
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20807$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020808if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020809 $as_echo_n "(cached) " >&6
20810else
20811 ac_check_lib_save_LIBS=$LIBS
20812LIBS="-ldld $LIBS"
20813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20814/* end confdefs.h. */
20815
20816/* Override any GCC internal prototype to avoid an error.
20817 Use char because int might match the return type of a GCC
20818 builtin and then its argument prototype would still apply. */
20819#ifdef __cplusplus
20820extern "C"
20821#endif
20822char shl_load ();
20823int
20824main ()
20825{
20826return shl_load ();
20827 ;
20828 return 0;
20829}
20830_ACEOF
20831if ac_fn_c_try_link "$LINENO"; then :
20832 ac_cv_lib_dld_shl_load=yes
20833else
20834 ac_cv_lib_dld_shl_load=no
20835fi
20836rm -f core conftest.err conftest.$ac_objext \
20837 conftest$ac_exeext conftest.$ac_ext
20838LIBS=$ac_check_lib_save_LIBS
20839fi
20840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20841$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020842if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020843
20844$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20845
20846 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20847 LIBADD_SHL_LOAD="-ldld"
20848fi
20849
20850fi
20851
20852
20853
20854case $host_os in
20855darwin[1567].*)
20856# We only want this for pre-Mac OS X 10.4.
20857 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020858if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020859
20860$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20861
20862 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20863fi
20864
20865 ;;
20866beos*)
20867 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20868 ;;
20869cygwin* | mingw* | os2* | pw32*)
20870 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20871"
cristyda16f162011-02-19 23:52:17 +000020872if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020873 ac_have_decl=1
20874else
20875 ac_have_decl=0
20876fi
20877
20878cat >>confdefs.h <<_ACEOF
20879#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20880_ACEOF
20881
20882 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20883 ;;
20884esac
20885
20886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20887$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020888if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020889 $as_echo_n "(cached) " >&6
20890else
20891 ac_check_lib_save_LIBS=$LIBS
20892LIBS="-ldld $LIBS"
20893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20894/* end confdefs.h. */
20895
20896/* Override any GCC internal prototype to avoid an error.
20897 Use char because int might match the return type of a GCC
20898 builtin and then its argument prototype would still apply. */
20899#ifdef __cplusplus
20900extern "C"
20901#endif
20902char dld_link ();
20903int
20904main ()
20905{
20906return dld_link ();
20907 ;
20908 return 0;
20909}
20910_ACEOF
20911if ac_fn_c_try_link "$LINENO"; then :
20912 ac_cv_lib_dld_dld_link=yes
20913else
20914 ac_cv_lib_dld_dld_link=no
20915fi
20916rm -f core conftest.err conftest.$ac_objext \
20917 conftest$ac_exeext conftest.$ac_ext
20918LIBS=$ac_check_lib_save_LIBS
20919fi
20920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20921$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020922if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020923
20924$as_echo "#define HAVE_DLD 1" >>confdefs.h
20925
20926 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20927fi
20928
20929
20930
20931
20932LT_DLPREOPEN=
20933if test -n "$LT_DLLOADERS"
20934then
20935 for lt_loader in $LT_DLLOADERS; do
20936 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20937 done
20938
20939$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20940
20941fi
20942
20943
20944LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20945
20946
20947ac_ext=c
20948ac_cpp='$CPP $CPPFLAGS'
20949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951ac_compiler_gnu=$ac_cv_c_compiler_gnu
20952
20953
20954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20955$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020956if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020957 $as_echo_n "(cached) " >&6
20958else
20959 lt_cv_sys_symbol_underscore=no
20960 cat > conftest.$ac_ext <<_LT_EOF
20961void nm_test_func(){}
20962int main(){nm_test_func;return 0;}
20963_LT_EOF
20964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20965 (eval $ac_compile) 2>&5
20966 ac_status=$?
20967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20968 test $ac_status = 0; }; then
20969 # Now try to grab the symbols.
20970 ac_nlist=conftest.nm
20971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20972 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20973 ac_status=$?
20974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20975 test $ac_status = 0; } && test -s "$ac_nlist"; then
20976 # See whether the symbols have a leading underscore.
20977 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20978 lt_cv_sys_symbol_underscore=yes
20979 else
20980 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20981 :
20982 else
20983 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20984 fi
20985 fi
20986 else
20987 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20988 fi
20989 else
20990 echo "configure: failed program was:" >&5
20991 cat conftest.c >&5
20992 fi
20993 rm -rf conftest*
20994
20995fi
20996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20997$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20998 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20999
21000
21001if test x"$lt_cv_sys_symbol_underscore" = xyes; then
21002 if test x"$libltdl_cv_func_dlopen" = xyes ||
21003 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
21005$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021006if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021007 $as_echo_n "(cached) " >&6
21008else
21009 libltdl_cv_need_uscore=unknown
21010 save_LIBS="$LIBS"
21011 LIBS="$LIBS $LIBADD_DLOPEN"
21012 if test "$cross_compiling" = yes; then :
21013 libltdl_cv_need_uscore=cross
21014else
21015 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21016 lt_status=$lt_dlunknown
21017 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000021018#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000021019#include "confdefs.h"
21020
21021#if HAVE_DLFCN_H
21022#include <dlfcn.h>
21023#endif
21024
21025#include <stdio.h>
21026
21027#ifdef RTLD_GLOBAL
21028# define LT_DLGLOBAL RTLD_GLOBAL
21029#else
21030# ifdef DL_GLOBAL
21031# define LT_DLGLOBAL DL_GLOBAL
21032# else
21033# define LT_DLGLOBAL 0
21034# endif
21035#endif
21036
21037/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21038 find out it does not work in some platform. */
21039#ifndef LT_DLLAZY_OR_NOW
21040# ifdef RTLD_LAZY
21041# define LT_DLLAZY_OR_NOW RTLD_LAZY
21042# else
21043# ifdef DL_LAZY
21044# define LT_DLLAZY_OR_NOW DL_LAZY
21045# else
21046# ifdef RTLD_NOW
21047# define LT_DLLAZY_OR_NOW RTLD_NOW
21048# else
21049# ifdef DL_NOW
21050# define LT_DLLAZY_OR_NOW DL_NOW
21051# else
21052# define LT_DLLAZY_OR_NOW 0
21053# endif
21054# endif
21055# endif
21056# endif
21057#endif
21058
cristy0c60a692010-11-04 01:09:47 +000021059/* When -fvisbility=hidden is used, assume the code has been annotated
21060 correspondingly for the symbols needed. */
21061#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021062int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021063#endif
21064
cristyda16f162011-02-19 23:52:17 +000021065int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021066int main ()
21067{
21068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21069 int status = $lt_dlunknown;
21070
21071 if (self)
21072 {
21073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021074 else
21075 {
21076 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21077 else puts (dlerror ());
21078 }
cristy73bd4a52010-10-05 11:24:23 +000021079 /* dlclose (self); */
21080 }
21081 else
21082 puts (dlerror ());
21083
21084 return status;
21085}
21086_LT_EOF
21087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21088 (eval $ac_link) 2>&5
21089 ac_status=$?
21090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21091 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21092 (./conftest; exit; ) >&5 2>/dev/null
21093 lt_status=$?
21094 case x$lt_status in
21095 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21096 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21097 x$lt_dlunknown|x*) ;;
21098 esac
21099 else :
21100 # compilation failed
21101
21102 fi
21103fi
21104rm -fr conftest*
21105
21106 LIBS="$save_LIBS"
21107
21108fi
21109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21110$as_echo "$libltdl_cv_need_uscore" >&6; }
21111 fi
21112fi
21113
21114if test x"$libltdl_cv_need_uscore" = xyes; then
21115
21116$as_echo "#define NEED_USCORE 1" >>confdefs.h
21117
21118fi
21119
21120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21121$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021122if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021123 $as_echo_n "(cached) " >&6
21124else
21125 # PORTME does your system automatically load deplibs for dlopen?
21126 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21127 # For now, we just catch OSes we know something about -- in the
21128 # future, we'll try test this programmatically.
21129 lt_cv_sys_dlopen_deplibs=unknown
21130 case $host_os in
21131 aix3*|aix4.1.*|aix4.2.*)
21132 # Unknown whether this is true for these versions of AIX, but
21133 # we want this `case' here to explicitly catch those versions.
21134 lt_cv_sys_dlopen_deplibs=unknown
21135 ;;
21136 aix[4-9]*)
21137 lt_cv_sys_dlopen_deplibs=yes
21138 ;;
21139 amigaos*)
21140 case $host_cpu in
21141 powerpc)
21142 lt_cv_sys_dlopen_deplibs=no
21143 ;;
21144 esac
21145 ;;
21146 darwin*)
21147 # Assuming the user has installed a libdl from somewhere, this is true
21148 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21149 lt_cv_sys_dlopen_deplibs=yes
21150 ;;
21151 freebsd* | dragonfly*)
21152 lt_cv_sys_dlopen_deplibs=yes
21153 ;;
cristy0c60a692010-11-04 01:09:47 +000021154 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021155 # GNU and its variants, using gnu ld.so (Glibc)
21156 lt_cv_sys_dlopen_deplibs=yes
21157 ;;
21158 hpux10*|hpux11*)
21159 lt_cv_sys_dlopen_deplibs=yes
21160 ;;
21161 interix*)
21162 lt_cv_sys_dlopen_deplibs=yes
21163 ;;
21164 irix[12345]*|irix6.[01]*)
21165 # Catch all versions of IRIX before 6.2, and indicate that we don't
21166 # know how it worked for any of those versions.
21167 lt_cv_sys_dlopen_deplibs=unknown
21168 ;;
21169 irix*)
21170 # The case above catches anything before 6.2, and it's known that
21171 # at 6.2 and later dlopen does load deplibs.
21172 lt_cv_sys_dlopen_deplibs=yes
21173 ;;
21174 netbsd*)
21175 lt_cv_sys_dlopen_deplibs=yes
21176 ;;
21177 openbsd*)
21178 lt_cv_sys_dlopen_deplibs=yes
21179 ;;
21180 osf[1234]*)
21181 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21182 # it did *not* use an RPATH in a shared library to find objects the
21183 # library depends on, so we explicitly say `no'.
21184 lt_cv_sys_dlopen_deplibs=no
21185 ;;
21186 osf5.0|osf5.0a|osf5.1)
21187 # dlopen *does* load deplibs and with the right loader patch applied
21188 # it even uses RPATH in a shared library to search for shared objects
21189 # that the library depends on, but there's no easy way to know if that
21190 # patch is installed. Since this is the case, all we can really
21191 # say is unknown -- it depends on the patch being installed. If
21192 # it is, this changes to `yes'. Without it, it would be `no'.
21193 lt_cv_sys_dlopen_deplibs=unknown
21194 ;;
21195 osf*)
21196 # the two cases above should catch all versions of osf <= 5.1. Read
21197 # the comments above for what we know about them.
21198 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21199 # is used to find them so we can finally say `yes'.
21200 lt_cv_sys_dlopen_deplibs=yes
21201 ;;
21202 qnx*)
21203 lt_cv_sys_dlopen_deplibs=yes
21204 ;;
21205 solaris*)
21206 lt_cv_sys_dlopen_deplibs=yes
21207 ;;
21208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21209 libltdl_cv_sys_dlopen_deplibs=yes
21210 ;;
21211 esac
21212
21213fi
21214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21215$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21216if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21217
21218$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21219
21220fi
21221
21222:
21223
21224for ac_header in argz.h
21225do :
21226 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21227"
cristyda16f162011-02-19 23:52:17 +000021228if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021229 cat >>confdefs.h <<_ACEOF
21230#define HAVE_ARGZ_H 1
21231_ACEOF
21232
21233fi
21234
21235done
21236
21237
21238ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21239# include <argz.h>
21240#endif
21241"
cristyda16f162011-02-19 23:52:17 +000021242if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021243
21244cat >>confdefs.h <<_ACEOF
21245#define HAVE_ERROR_T 1
21246_ACEOF
21247
21248
21249else
21250
21251$as_echo "#define error_t int" >>confdefs.h
21252
21253
21254$as_echo "#define __error_t_defined 1" >>confdefs.h
21255
21256fi
21257
21258
21259ARGZ_H=
21260for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21261 argz_next argz_stringify
21262do :
21263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21264ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021265if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021266 cat >>confdefs.h <<_ACEOF
21267#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21268_ACEOF
21269
21270else
21271 ARGZ_H=argz.h;
21272
21273 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21274
21275fi
21276done
21277
21278
21279if test -z "$ARGZ_H"; then :
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21281$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021282if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021283 $as_echo_n "(cached) " >&6
21284else
21285 case $host_os in #(
21286 *cygwin*)
21287 lt_cv_sys_argz_works=no
21288 if test "$cross_compiling" != no; then
21289 lt_cv_sys_argz_works="guessing no"
21290 else
21291 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21292 save_IFS=$IFS
21293 IFS=-.
21294 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21295 IFS=$save_IFS
21296 lt_os_major=${2-0}
21297 lt_os_minor=${3-0}
21298 lt_os_micro=${4-0}
21299 if test "$lt_os_major" -gt 1 \
21300 || { test "$lt_os_major" -eq 1 \
21301 && { test "$lt_os_minor" -gt 5 \
21302 || { test "$lt_os_minor" -eq 5 \
21303 && test "$lt_os_micro" -gt 24; }; }; }; then
21304 lt_cv_sys_argz_works=yes
21305 fi
21306 fi
21307 ;; #(
21308 *) lt_cv_sys_argz_works=yes ;;
21309 esac
21310fi
21311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21312$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021313 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021314
21315$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21316
21317else
21318 ARGZ_H=argz.h
21319
21320
21321 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21322
21323fi
21324fi
21325
21326
21327
21328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21329$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021330if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021331 $as_echo_n "(cached) " >&6
21332else
21333 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21334 libltdl_cv_preloaded_symbols=yes
21335 else
21336 libltdl_cv_preloaded_symbols=no
21337 fi
21338
21339fi
21340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21341$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21342if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21343
21344$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21345
21346fi
21347
21348# Set options
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360# Check whether --with-included_ltdl was given.
21361if test "${with_included_ltdl+set}" = set; then :
21362 withval=$with_included_ltdl;
21363fi
21364
21365
21366if test "x$with_included_ltdl" != xyes; then
21367 # We are not being forced to use the included libltdl sources, so
21368 # decide whether there is a useful installed version we can use.
21369 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21370
21371"
cristyda16f162011-02-19 23:52:17 +000021372if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021373 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21374 #include <ltdl.h>
21375"
cristyda16f162011-02-19 23:52:17 +000021376if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21378$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021379if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021380 $as_echo_n "(cached) " >&6
21381else
21382 ac_check_lib_save_LIBS=$LIBS
21383LIBS="-lltdl $LIBS"
21384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21385/* end confdefs.h. */
21386
21387/* Override any GCC internal prototype to avoid an error.
21388 Use char because int might match the return type of a GCC
21389 builtin and then its argument prototype would still apply. */
21390#ifdef __cplusplus
21391extern "C"
21392#endif
21393char lt_dladvise_preload ();
21394int
21395main ()
21396{
21397return lt_dladvise_preload ();
21398 ;
21399 return 0;
21400}
21401_ACEOF
21402if ac_fn_c_try_link "$LINENO"; then :
21403 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21404else
21405 ac_cv_lib_ltdl_lt_dladvise_preload=no
21406fi
21407rm -f core conftest.err conftest.$ac_objext \
21408 conftest$ac_exeext conftest.$ac_ext
21409LIBS=$ac_check_lib_save_LIBS
21410fi
21411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21412$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021413if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021414 with_included_ltdl=no
21415else
21416 with_included_ltdl=yes
21417fi
21418
21419else
21420 with_included_ltdl=yes
21421fi
21422
21423else
21424 with_included_ltdl=yes
21425fi
21426
21427
21428fi
21429
21430
21431
21432
21433# Check whether --with-ltdl_include was given.
21434if test "${with_ltdl_include+set}" = set; then :
21435 withval=$with_ltdl_include;
21436fi
21437
21438
21439if test -n "$with_ltdl_include"; then
21440 if test -f "$with_ltdl_include/ltdl.h"; then :
21441 else
cristy98dddb52010-11-04 00:30:15 +000021442 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021443 fi
21444else
21445 with_ltdl_include=no
21446fi
21447
21448
21449# Check whether --with-ltdl_lib was given.
21450if test "${with_ltdl_lib+set}" = set; then :
21451 withval=$with_ltdl_lib;
21452fi
21453
21454
21455if test -n "$with_ltdl_lib"; then
21456 if test -f "$with_ltdl_lib/libltdl.la"; then :
21457 else
cristy98dddb52010-11-04 00:30:15 +000021458 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021459 fi
21460else
21461 with_ltdl_lib=no
21462fi
21463
21464case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21465 ,yes,no,no,)
21466 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021467 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021468 "") enable_ltdl_convenience=yes
21469 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21470esac
21471LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21472LTDLDEPS=$LIBLTDL
21473LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21474
21475
21476
21477
21478
21479# For backwards non-gettext consistent compatibility...
21480INCLTDL="$LTDLINCL"
21481
21482
21483 ;;
21484 ,no,no,no,)
21485 # If the included ltdl is not to be used, then use the
21486 # preinstalled libltdl we found.
21487
21488$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21489
21490 LIBLTDL=-lltdl
21491 LTDLDEPS=
21492 LTDLINCL=
21493 ;;
21494 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021495 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021496 ;;
21497 *) with_included_ltdl=no
21498 LIBLTDL="-L$with_ltdl_lib -lltdl"
21499 LTDLDEPS=
21500 LTDLINCL="-I$with_ltdl_include"
21501 ;;
21502esac
21503INCLTDL="$LTDLINCL"
21504
21505# Report our decision...
21506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21507$as_echo_n "checking where to find libltdl headers... " >&6; }
21508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21509$as_echo "$LTDLINCL" >&6; }
21510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21511$as_echo_n "checking where to find libltdl library... " >&6; }
21512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21513$as_echo "$LIBLTDL" >&6; }
21514
21515
21516
21517# Check whether --enable-ltdl-install was given.
21518if test "${enable_ltdl_install+set}" = set; then :
21519 enableval=$enable_ltdl_install;
21520fi
21521
21522
21523case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21524 *yes*) ;;
21525 *) enable_ltdl_convenience=yes ;;
21526esac
21527
21528 if test x"${enable_ltdl_install-no}" != xno; then
21529 INSTALL_LTDL_TRUE=
21530 INSTALL_LTDL_FALSE='#'
21531else
21532 INSTALL_LTDL_TRUE='#'
21533 INSTALL_LTDL_FALSE=
21534fi
21535
21536 if test x"${enable_ltdl_convenience-no}" != xno; then
21537 CONVENIENCE_LTDL_TRUE=
21538 CONVENIENCE_LTDL_FALSE='#'
21539else
21540 CONVENIENCE_LTDL_TRUE='#'
21541 CONVENIENCE_LTDL_FALSE=
21542fi
21543
21544
21545
21546
21547
21548
cristy73bd4a52010-10-05 11:24:23 +000021549# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21550# the user used. This is so that ltdl.h can pick up the parent projects
21551# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21552# definitions required by ltdl.c.
21553# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21554
21555
21556
21557for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21558do :
21559 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21560ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21561"
cristy98dddb52010-11-04 00:30:15 +000021562if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021563 cat >>confdefs.h <<_ACEOF
21564#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21565_ACEOF
21566
21567fi
21568
21569done
21570
21571
21572for ac_func in closedir opendir readdir
21573do :
21574 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21575ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021576if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021577 cat >>confdefs.h <<_ACEOF
21578#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21579_ACEOF
21580
21581else
21582
21583
21584 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21585
21586fi
21587done
21588
21589for ac_func in strlcat strlcpy
21590do :
21591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21592ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021593if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021594 cat >>confdefs.h <<_ACEOF
21595#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21596_ACEOF
21597
21598else
21599
21600
21601 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21602
21603fi
21604done
21605
21606
21607
21608cat >>confdefs.h <<_ACEOF
21609#define LT_LIBEXT "$libext"
21610_ACEOF
21611
21612
cristyda16f162011-02-19 23:52:17 +000021613name=
21614eval "lt_libprefix=\"$libname_spec\""
21615
21616cat >>confdefs.h <<_ACEOF
21617#define LT_LIBPREFIX "$lt_libprefix"
21618_ACEOF
21619
21620
cristy73bd4a52010-10-05 11:24:23 +000021621name=ltdl
cristyda16f162011-02-19 23:52:17 +000021622eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021623
21624
21625
21626
21627
21628
21629
21630
21631# Only expand once:
21632
21633
cristy3ed852e2009-09-05 21:47:34 +000021634
21635# Check to see if building shared libraries
21636libtool_build_shared_libs='no'
21637if test "$enable_shared" = 'yes'; then
21638 libtool_build_shared_libs='yes'
21639fi
21640
21641# Check to see if building static libraries
21642libtool_build_static_libs='no'
21643if test "$enable_static" = 'yes'; then
21644 libtool_build_static_libs='yes'
21645fi
21646
cristy73bd4a52010-10-05 11:24:23 +000021647 if test "${libtool_build_shared_libs}" = 'yes'; then
21648 WITH_SHARED_LIBS_TRUE=
21649 WITH_SHARED_LIBS_FALSE='#'
21650else
21651 WITH_SHARED_LIBS_TRUE='#'
21652 WITH_SHARED_LIBS_FALSE=
21653fi
21654
cristy3ed852e2009-09-05 21:47:34 +000021655#
21656# Enable support for building loadable modules
21657#
21658
21659# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021660if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021661 withval=$with_modules; with_modules=$withval
21662else
cristy5a1cefd2010-01-06 20:42:35 +000021663 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021664fi
21665
21666
21667# Only allow building loadable modules if we are building shared libraries
21668if test "$with_modules" != 'no' ; then
21669 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021670 { $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 +000021671$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21672 with_modules='no'
21673 fi
21674fi
21675if test "$with_modules" != 'no'; then
21676
cristy8b350f62009-11-15 23:12:43 +000021677$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021678
21679fi
cristy73bd4a52010-10-05 11:24:23 +000021680 if test "$with_modules" != 'no'; then
21681 WITH_MODULES_TRUE=
21682 WITH_MODULES_FALSE='#'
21683else
21684 WITH_MODULES_TRUE='#'
21685 WITH_MODULES_FALSE=
21686fi
21687
cristy3ed852e2009-09-05 21:47:34 +000021688
21689# Enable building/use of libltdl if we are building shared libraries regardless
21690# of whether modules are built or not.
21691with_ltdl='no'
21692if test "$libtool_build_shared_libs" != 'no'; then
21693 with_ltdl='yes'
21694fi
21695
cristy73bd4a52010-10-05 11:24:23 +000021696 if test "$with_ltdl" != 'no'; then
21697 WITH_LTDL_TRUE=
21698 WITH_LTDL_FALSE='#'
21699else
21700 WITH_LTDL_TRUE='#'
21701 WITH_LTDL_FALSE=
21702fi
21703
cristy3ed852e2009-09-05 21:47:34 +000021704if test "$with_ltdl" != 'no'; then
21705
cristy8b350f62009-11-15 23:12:43 +000021706$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021707
21708
21709 # Set DLLDFLAGS
21710 if test X"$enable_shared" = Xyes; then
21711 DLLDFLAGS=-export-dynamic
21712
21713 fi
21714fi
21715
21716# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021717# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021718# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021719if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021720 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21721else
21722 enable_delegate_build='no'
21723fi
21724
21725
21726# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021727if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021728 enableval=$enable_deprecated; enable_deprecated=$enableval
21729else
21730 enable_deprecated='no'
21731fi
21732
21733
21734if test "$enable_deprecated" = 'yes'; then
21735
cristy8b350f62009-11-15 23:12:43 +000021736$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021737
21738else
21739 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21740fi
21741
21742# Build a version of ImageMagick which operates uninstalled.
21743# Used to build distributions located via MAGICK_HOME / executable path
21744# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021745if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021746 enableval=$enable_installed; enable_installed=$enableval
21747else
21748 enable_installed='yes'
21749fi
21750
21751
21752if test "$enable_installed" = 'yes'; then
21753
cristy8b350f62009-11-15 23:12:43 +000021754$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021755
21756else
21757 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21758fi
21759
21760# Permit enciphering and deciphering image pixels.
21761# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021762if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021763 enableval=$enable_cipher; enable_cipher=$enableval
21764else
21765 enable_cipher='yes'
21766fi
21767
21768
21769if test "$enable_cipher" = 'yes'; then
21770
cristy8b350f62009-11-15 23:12:43 +000021771$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021772
21773fi
21774
cristy6e3607c2011-09-13 13:59:17 +000021775# Build a zero-configuration version of ImageMagick.
21776# Check whether --enable-zero-configuration was given.
21777if test "${enable_zero_configuration+set}" = set; then :
21778 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021779else
cristy6e3607c2011-09-13 13:59:17 +000021780 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021781fi
21782
21783
cristy6e3607c2011-09-13 13:59:17 +000021784if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021785
cristy6e3607c2011-09-13 13:59:17 +000021786$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021787
cristy81af5702011-09-13 14:20:58 +000021788 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021789fi
21790
21791# Build a high dynamic range version of ImageMagick.
21792# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021793if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021794 enableval=$enable_hdri; enable_hdri=$enableval
21795else
21796 enable_hdri='no'
21797fi
21798
21799
21800MAGICK_HDRI=""
21801if test "$enable_hdri" = 'yes'; then
21802 MAGICK_HDRI="HDRI"
21803
cristy8b350f62009-11-15 23:12:43 +000021804$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021805
cristyfd9dcd42010-08-08 18:07:02 +000021806 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021807fi
21808
cristy3ed852e2009-09-05 21:47:34 +000021809# Build a version of ImageMagick with assert statements.
21810# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021811if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021812 enableval=$enable_assert; enable_assert=$enableval
21813else
21814 enable_assert='yes'
21815fi
21816
21817
21818if test "$enable_assert" = 'no'; then
21819
cristy8b350f62009-11-15 23:12:43 +000021820$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021821
21822fi
21823
cristya448bd22011-10-14 12:38:13 +000021824# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021825
21826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21827$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21828 # Check whether --enable-maintainer-mode was given.
21829if test "${enable_maintainer_mode+set}" = set; then :
21830 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21831else
21832 USE_MAINTAINER_MODE=no
21833fi
21834
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21836$as_echo "$USE_MAINTAINER_MODE" >&6; }
21837 if test $USE_MAINTAINER_MODE = yes; then
21838 MAINTAINER_MODE_TRUE=
21839 MAINTAINER_MODE_FALSE='#'
21840else
21841 MAINTAINER_MODE_TRUE='#'
21842 MAINTAINER_MODE_FALSE=
21843fi
21844
21845 MAINT=$MAINTAINER_MODE_TRUE
21846
21847
cristy3ed852e2009-09-05 21:47:34 +000021848
cristy3ed852e2009-09-05 21:47:34 +000021849# Enable ccmalloc memory debugging support
21850# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021851if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021852 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21853else
21854 enable_ccmalloc='no'
21855fi
21856
21857
21858# Enable Electric Fence memory debugging support
21859# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021860if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021861 enableval=$enable_efence; enable_efence=$enableval
21862else
21863 enable_efence='no'
21864fi
21865
21866
21867# Enable prof-based profiling support
21868# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021869if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021870 enableval=$enable_prof; enable_prof=$enableval
21871else
21872 enable_prof='no'
21873fi
21874
21875
21876# Enable gprof-based profiling support
21877# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021878if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021879 enableval=$enable_gprof; enable_gprof=$enableval
21880else
21881 enable_gprof='no'
21882fi
21883
21884
21885# Enable gcov-based profiling support
21886# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021887if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021888 enableval=$enable_gcov; enable_gcov=$enableval
21889else
21890 enable_gcov='no'
21891fi
21892
21893
21894enable_profiling='no'
21895if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21896 enable_profiling='yes'
21897 if test "$libtool_build_shared_libs" = 'yes'; then
21898 echo "Warning: Can not profile code using shared libraries"
21899 fi
21900fi
21901
21902# Magick API method prefix
21903
21904# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021905if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021906 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021907else
cristyfc3d0222012-02-07 15:05:57 +000021908 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021909fi
21910
21911
cristyfc3d0222012-02-07 15:05:57 +000021912if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021913
21914cat >>confdefs.h <<_ACEOF
21915#define NAMESPACE_PREFIX $with_method_prefix
21916_ACEOF
21917
cristyfc3d0222012-02-07 15:05:57 +000021918 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021919fi
21920
cristy71d8c202012-03-20 17:05:01 +000021921# Enable legacy support (default no)
21922# Check whether --enable-legacy-support was given.
21923if test "${enable_legacy_support+set}" = set; then :
21924 enableval=$enable_legacy_support; with_legacy_support=$enableval
21925else
21926 with_legacy_support='no'
21927fi
21928
21929 if test "$with_legacy_support" != 'no'; then
21930 LEGACY_SUPPORT_TRUE=
21931 LEGACY_SUPPORT_FALSE='#'
21932else
21933 LEGACY_SUPPORT_TRUE='#'
21934 LEGACY_SUPPORT_FALSE=
21935fi
21936
21937
cristy3ed852e2009-09-05 21:47:34 +000021938# Number of bits in a Quantum
21939
21940# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021941if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021942 withval=$with_quantum_depth; with_quantum_depth=$withval
21943else
21944 with_quantum_depth=16
21945fi
21946
21947
21948if test "$with_quantum_depth" != '8'; then
21949 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21950fi
21951
21952case "${with_quantum_depth}" in
21953 8 ) ;;
21954 16 ) ;;
21955 32 ) ;;
21956 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021957 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021958esac
21959QUANTUM_DEPTH="$with_quantum_depth"
21960
21961cat >>confdefs.h <<_ACEOF
21962#define QUANTUM_DEPTH $QUANTUM_DEPTH
21963_ACEOF
21964
21965
21966# Set pixel cache threshold
21967
21968# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021969if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021970 withval=$with_cache; with_cache=$withval
21971else
21972 with_cache=''
21973fi
21974
21975
21976if test "$with_cache" != ''; then
21977
21978cat >>confdefs.h <<_ACEOF
21979#define PixelCacheThreshold $with_cache
21980_ACEOF
21981
21982 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21983fi
21984
21985# Disable/Enable support for full delegate paths
21986
21987# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021988if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021989 withval=$with_frozenpaths; with_frozenpaths=$withval
21990else
21991 with_frozenpaths='no'
21992fi
21993
21994
21995# Enable build/install of Magick++
21996
21997# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021998if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021999 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22000else
22001 with_magick_plus_plus='yes'
22002fi
22003
22004
22005# Disable build/install of PerlMagick.
22006
22007# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022008if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022009 withval=$with_perl; with_perl=$withval
22010else
cristyb5f4e2f2010-04-25 00:49:11 +000022011 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022012fi
22013
22014
22015# Options to pass when configuring PerlMagick
22016
22017# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022018if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022019 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022020fi
22021
22022
cristy3ed852e2009-09-05 21:47:34 +000022023
22024# Enable umem, object-caching memory allocation library.
22025
22026# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022027if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022028 withval=$with_umem; with_umem=$withval
22029else
22030 with_umem='no'
22031fi
22032
22033if test "$with_umem" != 'yes' ; then
22034 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22035fi
22036
22037#
22038# Specify path to shared libstdc++ if not in normal location
22039#
22040
22041# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022042if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022043 withval=$with_libstdc; with_libstdc=$withval
22044else
22045 with_libstdc=''
22046fi
22047
22048
22049if test "$with_libstdc" != ''; then
22050 if test -d "$with_libstdc"; then
22051 LIBSTDCLDFLAGS="-L$with_libstdc"
22052 fi
22053fi
22054
22055
22056# Does gcc required -traditional?
22057if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022059$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022060if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022061 $as_echo_n "(cached) " >&6
22062else
22063 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022065/* end confdefs.h. */
22066#include <sgtty.h>
22067Autoconf TIOCGETP
22068_ACEOF
22069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022070 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022071 ac_cv_prog_gcc_traditional=yes
22072else
22073 ac_cv_prog_gcc_traditional=no
22074fi
22075rm -f conftest*
22076
22077
22078 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022080/* end confdefs.h. */
22081#include <termio.h>
22082Autoconf TCGETA
22083_ACEOF
22084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022085 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022086 ac_cv_prog_gcc_traditional=yes
22087fi
22088rm -f conftest*
22089
22090 fi
22091fi
cristy8b350f62009-11-15 23:12:43 +000022092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022093$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22094 if test $ac_cv_prog_gcc_traditional = yes; then
22095 CC="$CC -traditional"
22096 fi
22097fi
22098
22099
22100########
22101#
22102# Set defines required to build DLLs and modules using MinGW
22103#
22104########
22105# These options are set for multi-thread DLL module build
22106# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22107# module: _DLL
22108# executable/Magick++: _DLL _MAGICKMOD_
22109MODULE_EXTRA_CPPFLAGS=''
22110LIBRARY_EXTRA_CPPFLAGS=''
22111if test "${native_win32_build}" = 'yes'; then
22112 if test "${libtool_build_shared_libs}" = 'yes'; then
22113 CPPFLAGS="$CPPFLAGS -D_DLL"
22114 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22115 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22116 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22117 if test "$with_modules" = 'yes'; then
22118 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22119 else
22120 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22121 fi
22122 else
22123 CPPFLAGS="$CPPFLAGS -D_LIB"
22124 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22125 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22126 fi
22127 if test "$with_threads" = 'yes'; then
22128 CPPFLAGS="$CPPFLAGS -D_MT"
22129 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22130 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22131 fi
22132fi
22133
22134
22135
22136# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022138$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022139if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022140 $as_echo_n "(cached) " >&6
22141else
cristy8b350f62009-11-15 23:12:43 +000022142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022143/* end confdefs.h. */
22144#include <stdlib.h>
22145#include <stdarg.h>
22146#include <string.h>
22147#include <float.h>
22148
22149int
22150main ()
22151{
22152
22153 ;
22154 return 0;
22155}
22156_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022157if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022158 ac_cv_header_stdc=yes
22159else
cristy8b350f62009-11-15 23:12:43 +000022160 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022161fi
cristy3ed852e2009-09-05 21:47:34 +000022162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22163
22164if test $ac_cv_header_stdc = yes; then
22165 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022167/* end confdefs.h. */
22168#include <string.h>
22169
22170_ACEOF
22171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022172 $EGREP "memchr" >/dev/null 2>&1; then :
22173
cristy3ed852e2009-09-05 21:47:34 +000022174else
22175 ac_cv_header_stdc=no
22176fi
22177rm -f conftest*
22178
22179fi
22180
22181if test $ac_cv_header_stdc = yes; then
22182 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022184/* end confdefs.h. */
22185#include <stdlib.h>
22186
22187_ACEOF
22188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022189 $EGREP "free" >/dev/null 2>&1; then :
22190
cristy3ed852e2009-09-05 21:47:34 +000022191else
22192 ac_cv_header_stdc=no
22193fi
22194rm -f conftest*
22195
22196fi
22197
22198if test $ac_cv_header_stdc = yes; then
22199 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022200 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022201 :
22202else
cristy8b350f62009-11-15 23:12:43 +000022203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022204/* end confdefs.h. */
22205#include <ctype.h>
22206#include <stdlib.h>
22207#if ((' ' & 0x0FF) == 0x020)
22208# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22209# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22210#else
22211# define ISLOWER(c) \
22212 (('a' <= (c) && (c) <= 'i') \
22213 || ('j' <= (c) && (c) <= 'r') \
22214 || ('s' <= (c) && (c) <= 'z'))
22215# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22216#endif
22217
22218#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22219int
22220main ()
22221{
22222 int i;
22223 for (i = 0; i < 256; i++)
22224 if (XOR (islower (i), ISLOWER (i))
22225 || toupper (i) != TOUPPER (i))
22226 return 2;
22227 return 0;
22228}
22229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022230if ac_fn_c_try_run "$LINENO"; then :
22231
cristy3ed852e2009-09-05 21:47:34 +000022232else
cristy8b350f62009-11-15 23:12:43 +000022233 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022234fi
cristy8b350f62009-11-15 23:12:43 +000022235rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22236 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022237fi
22238
cristy3ed852e2009-09-05 21:47:34 +000022239fi
22240fi
cristy8b350f62009-11-15 23:12:43 +000022241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022242$as_echo "$ac_cv_header_stdc" >&6; }
22243if test $ac_cv_header_stdc = yes; then
22244
cristy8b350f62009-11-15 23:12:43 +000022245$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022246
22247fi
22248
22249if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022250 { $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 +000022251 header files. Compilation cannot proceed. Please install the ANSI C
22252 headers and rerun this script." >&5
22253$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22254 header files. Compilation cannot proceed. Please install the ANSI C
22255 headers and rerun this script." >&2;};
22256fi
cristya0b81c32010-01-22 02:54:33 +000022257
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22259$as_echo_n "checking whether to enable assertions... " >&6; }
22260 # Check whether --enable-assert was given.
22261if test "${enable_assert+set}" = set; then :
22262 enableval=$enable_assert; ac_enable_assert=$enableval
22263 if test "x$enableval" = xno; then :
22264
22265$as_echo "#define NDEBUG 1" >>confdefs.h
22266
22267elif test "x$enableval" != xyes; then :
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22269$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22270 ac_enable_assert=yes
22271fi
22272else
22273 ac_enable_assert=yes
22274fi
22275
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22277$as_echo "$ac_enable_assert" >&6; }
22278
cristy3ed852e2009-09-05 21:47:34 +000022279ac_header_dirent=no
22280for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22281 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022283$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022284if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022285 $as_echo_n "(cached) " >&6
22286else
cristy8b350f62009-11-15 23:12:43 +000022287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022288/* end confdefs.h. */
22289#include <sys/types.h>
22290#include <$ac_hdr>
22291
22292int
22293main ()
22294{
22295if ((DIR *) 0)
22296return 0;
22297 ;
22298 return 0;
22299}
22300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022301if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022302 eval "$as_ac_Header=yes"
22303else
cristy8b350f62009-11-15 23:12:43 +000022304 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022305fi
cristy3ed852e2009-09-05 21:47:34 +000022306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22307fi
cristy8b350f62009-11-15 23:12:43 +000022308eval ac_res=\$$as_ac_Header
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022310$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022311if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022312 cat >>confdefs.h <<_ACEOF
22313#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22314_ACEOF
22315
22316ac_header_dirent=$ac_hdr; break
22317fi
22318
22319done
22320# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22321if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022323$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022324if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022325 $as_echo_n "(cached) " >&6
22326else
22327 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022329/* end confdefs.h. */
22330
22331/* Override any GCC internal prototype to avoid an error.
22332 Use char because int might match the return type of a GCC
22333 builtin and then its argument prototype would still apply. */
22334#ifdef __cplusplus
22335extern "C"
22336#endif
22337char opendir ();
22338int
22339main ()
22340{
22341return opendir ();
22342 ;
22343 return 0;
22344}
22345_ACEOF
22346for ac_lib in '' dir; do
22347 if test -z "$ac_lib"; then
22348 ac_res="none required"
22349 else
22350 ac_res=-l$ac_lib
22351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22352 fi
cristy8b350f62009-11-15 23:12:43 +000022353 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022354 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022355fi
cristy8b350f62009-11-15 23:12:43 +000022356rm -f core conftest.err conftest.$ac_objext \
22357 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022358 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022359 break
22360fi
22361done
cristyda16f162011-02-19 23:52:17 +000022362if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022363
cristy3ed852e2009-09-05 21:47:34 +000022364else
22365 ac_cv_search_opendir=no
22366fi
22367rm conftest.$ac_ext
22368LIBS=$ac_func_search_save_LIBS
22369fi
cristy8b350f62009-11-15 23:12:43 +000022370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022371$as_echo "$ac_cv_search_opendir" >&6; }
22372ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022373if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22375
22376fi
22377
22378else
cristy8b350f62009-11-15 23:12:43 +000022379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022380$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022381if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022382 $as_echo_n "(cached) " >&6
22383else
22384 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022386/* end confdefs.h. */
22387
22388/* Override any GCC internal prototype to avoid an error.
22389 Use char because int might match the return type of a GCC
22390 builtin and then its argument prototype would still apply. */
22391#ifdef __cplusplus
22392extern "C"
22393#endif
22394char opendir ();
22395int
22396main ()
22397{
22398return opendir ();
22399 ;
22400 return 0;
22401}
22402_ACEOF
22403for ac_lib in '' x; do
22404 if test -z "$ac_lib"; then
22405 ac_res="none required"
22406 else
22407 ac_res=-l$ac_lib
22408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22409 fi
cristy8b350f62009-11-15 23:12:43 +000022410 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022411 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022412fi
cristy8b350f62009-11-15 23:12:43 +000022413rm -f core conftest.err conftest.$ac_objext \
22414 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022415 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022416 break
22417fi
22418done
cristyda16f162011-02-19 23:52:17 +000022419if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022420
cristy3ed852e2009-09-05 21:47:34 +000022421else
22422 ac_cv_search_opendir=no
22423fi
22424rm conftest.$ac_ext
22425LIBS=$ac_func_search_save_LIBS
22426fi
cristy8b350f62009-11-15 23:12:43 +000022427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022428$as_echo "$ac_cv_search_opendir" >&6; }
22429ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022430if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022431 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22432
22433fi
22434
22435fi
22436
22437
22438# Check additional headers
cristya8549b12011-05-18 19:05:08 +000022439for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.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 +000022440do :
22441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22442ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022443if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022444 cat >>confdefs.h <<_ACEOF
22445#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22446_ACEOF
22447
22448fi
22449
22450done
22451
22452
22453########
22454#
22455# Checks for typedefs, structures, and compiler characteristics.
22456#
22457########
22458
cristy8b350f62009-11-15 23:12:43 +000022459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022460$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022461if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022462 $as_echo_n "(cached) " >&6
22463else
cristy8b350f62009-11-15 23:12:43 +000022464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022465/* end confdefs.h. */
22466
cristy14fefe52012-05-21 00:59:18 +000022467 #include <stdbool.h>
22468 #ifndef bool
22469 "error: bool is not defined"
22470 #endif
22471 #ifndef false
22472 "error: false is not defined"
22473 #endif
22474 #if false
22475 "error: false is not 0"
22476 #endif
22477 #ifndef true
22478 "error: true is not defined"
22479 #endif
22480 #if true != 1
22481 "error: true is not 1"
22482 #endif
22483 #ifndef __bool_true_false_are_defined
22484 "error: __bool_true_false_are_defined is not defined"
22485 #endif
cristy3ed852e2009-09-05 21:47:34 +000022486
cristy14fefe52012-05-21 00:59:18 +000022487 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022488
cristy14fefe52012-05-21 00:59:18 +000022489 char a[true == 1 ? 1 : -1];
22490 char b[false == 0 ? 1 : -1];
22491 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22492 char d[(bool) 0.5 == true ? 1 : -1];
22493 /* See body of main program for 'e'. */
22494 char f[(_Bool) 0.0 == false ? 1 : -1];
22495 char g[true];
22496 char h[sizeof (_Bool)];
22497 char i[sizeof s.t];
22498 enum { j = false, k = true, l = false * true, m = true * 256 };
22499 /* The following fails for
22500 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22501 _Bool n[m];
22502 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22503 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22504 /* Catch a bug in an HP-UX C compiler. See
22505 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22506 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22507 */
22508 _Bool q = true;
22509 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022510
22511int
22512main ()
22513{
22514
cristy14fefe52012-05-21 00:59:18 +000022515 bool e = &s;
22516 *pq |= q;
22517 *pq |= ! q;
22518 /* Refer to every declared value, to avoid compiler optimizations. */
22519 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22520 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022521
22522 ;
22523 return 0;
22524}
22525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022526if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022527 ac_cv_header_stdbool_h=yes
22528else
cristy8b350f62009-11-15 23:12:43 +000022529 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022530fi
cristy3ed852e2009-09-05 21:47:34 +000022531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532fi
cristy8b350f62009-11-15 23:12:43 +000022533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022534$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022535 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022536if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022537
22538cat >>confdefs.h <<_ACEOF
22539#define HAVE__BOOL 1
22540_ACEOF
22541
22542
22543fi
22544
cristy14fefe52012-05-21 00:59:18 +000022545
cristy3ed852e2009-09-05 21:47:34 +000022546if test $ac_cv_header_stdbool_h = yes; then
22547
cristy8b350f62009-11-15 23:12:43 +000022548$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022549
22550fi
22551
cristy8b350f62009-11-15 23:12:43 +000022552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022553$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022554if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022555 $as_echo_n "(cached) " >&6
22556else
cristy8b350f62009-11-15 23:12:43 +000022557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022558/* end confdefs.h. */
22559
22560int
22561main ()
22562{
22563
22564volatile int x;
22565int * volatile y = (int *) 0;
22566return !x && !y;
22567 ;
22568 return 0;
22569}
22570_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022571if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022572 ac_cv_c_volatile=yes
22573else
cristy8b350f62009-11-15 23:12:43 +000022574 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022575fi
cristy3ed852e2009-09-05 21:47:34 +000022576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22577fi
cristy8b350f62009-11-15 23:12:43 +000022578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022579$as_echo "$ac_cv_c_volatile" >&6; }
22580if test $ac_cv_c_volatile = no; then
22581
cristy8b350f62009-11-15 23:12:43 +000022582$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022583
22584fi
22585
cristy8b350f62009-11-15 23:12:43 +000022586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022587$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022588if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022589 $as_echo_n "(cached) " >&6
22590else
cristy8b350f62009-11-15 23:12:43 +000022591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022592/* end confdefs.h. */
22593#define x(y) #y
22594
22595char *s = x(teststring);
22596_ACEOF
22597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022598 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022599 ac_cv_c_stringize=no
22600else
22601 ac_cv_c_stringize=yes
22602fi
22603rm -f conftest*
22604
22605fi
cristy8b350f62009-11-15 23:12:43 +000022606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022607$as_echo "$ac_cv_c_stringize" >&6; }
22608if test $ac_cv_c_stringize = yes; then
22609
cristy8b350f62009-11-15 23:12:43 +000022610$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022611
22612fi
22613
cristy8b350f62009-11-15 23:12:43 +000022614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022615$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022616if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022617 $as_echo_n "(cached) " >&6
22618else
cristy8b350f62009-11-15 23:12:43 +000022619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022620/* end confdefs.h. */
22621#include <sys/types.h>
22622#include <sys/stat.h>
22623
22624#if defined S_ISBLK && defined S_IFDIR
22625extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22626#endif
22627
22628#if defined S_ISBLK && defined S_IFCHR
22629extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22630#endif
22631
22632#if defined S_ISLNK && defined S_IFREG
22633extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22634#endif
22635
22636#if defined S_ISSOCK && defined S_IFREG
22637extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22638#endif
22639
22640_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022641if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022642 ac_cv_header_stat_broken=no
22643else
cristy8b350f62009-11-15 23:12:43 +000022644 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022645fi
cristy3ed852e2009-09-05 21:47:34 +000022646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22647fi
cristy8b350f62009-11-15 23:12:43 +000022648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022649$as_echo "$ac_cv_header_stat_broken" >&6; }
22650if test $ac_cv_header_stat_broken = yes; then
22651
cristy8b350f62009-11-15 23:12:43 +000022652$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022653
22654fi
22655
cristy8b350f62009-11-15 23:12:43 +000022656{ $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 +000022657$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022658if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022659 $as_echo_n "(cached) " >&6
22660else
cristy8b350f62009-11-15 23:12:43 +000022661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022662/* end confdefs.h. */
22663#include <sys/types.h>
22664#include <sys/time.h>
22665#include <time.h>
22666
22667int
22668main ()
22669{
22670if ((struct tm *) 0)
22671return 0;
22672 ;
22673 return 0;
22674}
22675_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022676if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022677 ac_cv_header_time=yes
22678else
cristy8b350f62009-11-15 23:12:43 +000022679 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022680fi
cristy3ed852e2009-09-05 21:47:34 +000022681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22682fi
cristy8b350f62009-11-15 23:12:43 +000022683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022684$as_echo "$ac_cv_header_time" >&6; }
22685if test $ac_cv_header_time = yes; then
22686
cristy8b350f62009-11-15 23:12:43 +000022687$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022688
22689fi
22690
cristy8b350f62009-11-15 23:12:43 +000022691{ $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 +000022692$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022693if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022694 $as_echo_n "(cached) " >&6
22695else
cristy8b350f62009-11-15 23:12:43 +000022696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022697/* end confdefs.h. */
22698#include <sys/types.h>
22699#include <time.h>
22700
22701int
22702main ()
22703{
22704struct tm tm;
22705 int *p = &tm.tm_sec;
22706 return !p;
22707 ;
22708 return 0;
22709}
22710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022711if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022712 ac_cv_struct_tm=time.h
22713else
cristy8b350f62009-11-15 23:12:43 +000022714 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022715fi
cristy3ed852e2009-09-05 21:47:34 +000022716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22717fi
cristy8b350f62009-11-15 23:12:43 +000022718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022719$as_echo "$ac_cv_struct_tm" >&6; }
22720if test $ac_cv_struct_tm = sys/time.h; then
22721
cristy8b350f62009-11-15 23:12:43 +000022722$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022723
22724fi
22725
cristy92703d82010-04-26 00:18:18 +000022726ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22727#include <$ac_cv_struct_tm>
22728
22729"
cristyda16f162011-02-19 23:52:17 +000022730if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022731
22732cat >>confdefs.h <<_ACEOF
22733#define HAVE_STRUCT_TM_TM_ZONE 1
22734_ACEOF
22735
22736
22737fi
22738
22739if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22740
22741$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22742
22743else
22744 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22745"
cristyda16f162011-02-19 23:52:17 +000022746if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022747 ac_have_decl=1
22748else
22749 ac_have_decl=0
22750fi
22751
22752cat >>confdefs.h <<_ACEOF
22753#define HAVE_DECL_TZNAME $ac_have_decl
22754_ACEOF
22755
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22757$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022758if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022759 $as_echo_n "(cached) " >&6
22760else
22761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22762/* end confdefs.h. */
22763#include <time.h>
22764#if !HAVE_DECL_TZNAME
22765extern char *tzname[];
22766#endif
22767
22768int
22769main ()
22770{
22771return tzname[0][0];
22772 ;
22773 return 0;
22774}
22775_ACEOF
22776if ac_fn_c_try_link "$LINENO"; then :
22777 ac_cv_var_tzname=yes
22778else
22779 ac_cv_var_tzname=no
22780fi
22781rm -f core conftest.err conftest.$ac_objext \
22782 conftest$ac_exeext conftest.$ac_ext
22783fi
22784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22785$as_echo "$ac_cv_var_tzname" >&6; }
22786 if test $ac_cv_var_tzname = yes; then
22787
22788$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22789
22790 fi
22791fi
22792
cristy8b350f62009-11-15 23:12:43 +000022793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022794$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022795if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022796 $as_echo_n "(cached) " >&6
22797else
22798 echo '#! /bin/cat
22799exit 69
22800' >conftest
22801chmod u+x conftest
22802(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22803if test $? -ne 69; then
22804 ac_cv_sys_interpreter=yes
22805else
22806 ac_cv_sys_interpreter=no
22807fi
22808rm -f conftest
22809fi
cristy8b350f62009-11-15 23:12:43 +000022810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022811$as_echo "$ac_cv_sys_interpreter" >&6; }
22812interpval=$ac_cv_sys_interpreter
22813
22814
cristy3ed852e2009-09-05 21:47:34 +000022815# If the C compiler supports the keyword inline, do nothing. Otherwise
22816# define inline to __inline__ or __inline if it accepts one of those,
22817# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022819$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022820if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022821 $as_echo_n "(cached) " >&6
22822else
22823 ac_cv_c_inline=no
22824for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022826/* end confdefs.h. */
22827#ifndef __cplusplus
22828typedef int foo_t;
22829static $ac_kw foo_t static_foo () {return 0; }
22830$ac_kw foo_t foo () {return 0; }
22831#endif
22832
22833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022834if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022835 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022836fi
cristy3ed852e2009-09-05 21:47:34 +000022837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838 test "$ac_cv_c_inline" != no && break
22839done
22840
22841fi
cristy8b350f62009-11-15 23:12:43 +000022842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022843$as_echo "$ac_cv_c_inline" >&6; }
22844
cristy3ed852e2009-09-05 21:47:34 +000022845case $ac_cv_c_inline in
22846 inline | yes) ;;
22847 *)
22848 case $ac_cv_c_inline in
22849 no) ac_val=;;
22850 *) ac_val=$ac_cv_c_inline;;
22851 esac
22852 cat >>confdefs.h <<_ACEOF
22853#ifndef __cplusplus
22854#define inline $ac_val
22855#endif
22856_ACEOF
22857 ;;
22858esac
22859
22860
22861# If the C compiler supports the keyword restrict, do nothing. Otherwise
22862# define restrict to __restrict__ or __restrict if it accepts one of those,
22863# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022865$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022866if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022867 $as_echo_n "(cached) " >&6
22868else
22869 ac_cv_c_restrict=no
22870 # The order here caters to the fact that C++ does not require restrict.
22871 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022873/* end confdefs.h. */
22874typedef int * int_ptr;
22875 int foo (int_ptr $ac_kw ip) {
22876 return ip[0];
22877 }
22878int
22879main ()
22880{
22881int s[1];
22882 int * $ac_kw t = s;
22883 t[0] = 0;
22884 return foo(t)
22885 ;
22886 return 0;
22887}
22888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022889if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022890 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022891fi
cristy3ed852e2009-09-05 21:47:34 +000022892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22893 test "$ac_cv_c_restrict" != no && break
22894 done
22895
22896fi
cristy8b350f62009-11-15 23:12:43 +000022897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022898$as_echo "$ac_cv_c_restrict" >&6; }
22899
cristy3ed852e2009-09-05 21:47:34 +000022900 case $ac_cv_c_restrict in
22901 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022902 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022903 ;;
22904 *) cat >>confdefs.h <<_ACEOF
22905#define restrict $ac_cv_c_restrict
22906_ACEOF
22907 ;;
22908 esac
22909
22910
22911# If words are stored with the most significant byte first (like
22912# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022914$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022915if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022916 $as_echo_n "(cached) " >&6
22917else
22918 ac_cv_c_bigendian=unknown
22919 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022921/* end confdefs.h. */
22922#ifndef __APPLE_CC__
22923 not a universal capable compiler
22924 #endif
22925 typedef int dummy;
22926
22927_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022928if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022929
22930 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022931 # there are at least two -arch flags with different values.
22932 ac_arch=
22933 ac_prev=
22934 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22935 if test -n "$ac_prev"; then
22936 case $ac_word in
22937 i?86 | x86_64 | ppc | ppc64)
22938 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22939 ac_arch=$ac_word
22940 else
22941 ac_cv_c_bigendian=universal
22942 break
22943 fi
22944 ;;
22945 esac
22946 ac_prev=
22947 elif test "x$ac_word" = "x-arch"; then
22948 ac_prev=arch
22949 fi
22950 done
cristy3ed852e2009-09-05 21:47:34 +000022951fi
cristy3ed852e2009-09-05 21:47:34 +000022952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22953 if test $ac_cv_c_bigendian = unknown; then
22954 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022956/* end confdefs.h. */
22957#include <sys/types.h>
22958 #include <sys/param.h>
22959
22960int
22961main ()
22962{
22963#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22964 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22965 && LITTLE_ENDIAN)
22966 bogus endian macros
22967 #endif
22968
22969 ;
22970 return 0;
22971}
22972_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022973if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022974 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022976/* end confdefs.h. */
22977#include <sys/types.h>
22978 #include <sys/param.h>
22979
22980int
22981main ()
22982{
22983#if BYTE_ORDER != BIG_ENDIAN
22984 not big endian
22985 #endif
22986
22987 ;
22988 return 0;
22989}
22990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022991if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022992 ac_cv_c_bigendian=yes
22993else
cristy8b350f62009-11-15 23:12:43 +000022994 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022995fi
cristy3ed852e2009-09-05 21:47:34 +000022996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022997fi
cristy3ed852e2009-09-05 21:47:34 +000022998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22999 fi
23000 if test $ac_cv_c_bigendian = unknown; then
23001 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023003/* end confdefs.h. */
23004#include <limits.h>
23005
23006int
23007main ()
23008{
23009#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23010 bogus endian macros
23011 #endif
23012
23013 ;
23014 return 0;
23015}
23016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023017if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023018 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023020/* end confdefs.h. */
23021#include <limits.h>
23022
23023int
23024main ()
23025{
23026#ifndef _BIG_ENDIAN
23027 not big endian
23028 #endif
23029
23030 ;
23031 return 0;
23032}
23033_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023034if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023035 ac_cv_c_bigendian=yes
23036else
cristy8b350f62009-11-15 23:12:43 +000023037 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023038fi
cristy3ed852e2009-09-05 21:47:34 +000023039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023040fi
cristy3ed852e2009-09-05 21:47:34 +000023041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23042 fi
23043 if test $ac_cv_c_bigendian = unknown; then
23044 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023045 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023046 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023048/* end confdefs.h. */
23049short int ascii_mm[] =
23050 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23051 short int ascii_ii[] =
23052 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23053 int use_ascii (int i) {
23054 return ascii_mm[i] + ascii_ii[i];
23055 }
23056 short int ebcdic_ii[] =
23057 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23058 short int ebcdic_mm[] =
23059 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23060 int use_ebcdic (int i) {
23061 return ebcdic_mm[i] + ebcdic_ii[i];
23062 }
23063 extern int foo;
23064
23065int
23066main ()
23067{
23068return use_ascii (foo) == use_ebcdic (foo);
23069 ;
23070 return 0;
23071}
23072_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023073if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023074 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23075 ac_cv_c_bigendian=yes
23076 fi
23077 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23078 if test "$ac_cv_c_bigendian" = unknown; then
23079 ac_cv_c_bigendian=no
23080 else
23081 # finding both strings is unlikely to happen, but who knows?
23082 ac_cv_c_bigendian=unknown
23083 fi
23084 fi
cristy3ed852e2009-09-05 21:47:34 +000023085fi
cristy3ed852e2009-09-05 21:47:34 +000023086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23087else
cristy8b350f62009-11-15 23:12:43 +000023088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023089/* end confdefs.h. */
23090$ac_includes_default
23091int
23092main ()
23093{
23094
23095 /* Are we little or big endian? From Harbison&Steele. */
23096 union
23097 {
23098 long int l;
23099 char c[sizeof (long int)];
23100 } u;
23101 u.l = 1;
23102 return u.c[sizeof (long int) - 1] == 1;
23103
23104 ;
23105 return 0;
23106}
23107_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023108if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023109 ac_cv_c_bigendian=no
23110else
cristy8b350f62009-11-15 23:12:43 +000023111 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023112fi
cristy8b350f62009-11-15 23:12:43 +000023113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23114 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023115fi
23116
cristy3ed852e2009-09-05 21:47:34 +000023117 fi
23118fi
cristy8b350f62009-11-15 23:12:43 +000023119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023120$as_echo "$ac_cv_c_bigendian" >&6; }
23121 case $ac_cv_c_bigendian in #(
23122 yes)
cristy8b350f62009-11-15 23:12:43 +000023123 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023124;; #(
23125 no)
23126 ;; #(
23127 universal)
23128
cristy8b350f62009-11-15 23:12:43 +000023129$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023130
23131 ;; #(
23132 *)
cristy98dddb52010-11-04 00:30:15 +000023133 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023134 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023135 esac
23136
23137
cristy501c8042011-05-26 17:46:28 +000023138# Define to a suitable type, if standard headers do not define it.
23139ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23140case $ac_cv_c_int8_t in #(
23141 no|yes) ;; #(
23142 *)
cristy3ed852e2009-09-05 21:47:34 +000023143
23144cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023145#define int8_t $ac_cv_c_int8_t
23146_ACEOF
23147;;
23148esac
23149
23150ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23151case $ac_cv_c_int16_t in #(
23152 no|yes) ;; #(
23153 *)
23154
23155cat >>confdefs.h <<_ACEOF
23156#define int16_t $ac_cv_c_int16_t
23157_ACEOF
23158;;
23159esac
23160
23161ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23162case $ac_cv_c_int32_t in #(
23163 no|yes) ;; #(
23164 *)
23165
23166cat >>confdefs.h <<_ACEOF
23167#define int32_t $ac_cv_c_int32_t
23168_ACEOF
23169;;
23170esac
23171
23172ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23173case $ac_cv_c_int64_t in #(
23174 no|yes) ;; #(
23175 *)
23176
23177cat >>confdefs.h <<_ACEOF
23178#define int64_t $ac_cv_c_int64_t
23179_ACEOF
23180;;
23181esac
23182
23183
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23185$as_echo_n "checking for long long int... " >&6; }
23186if ${ac_cv_type_long_long_int+:} false; then :
23187 $as_echo_n "(cached) " >&6
23188else
23189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23190/* end confdefs.h. */
23191
23192 /* For now, do not test the preprocessor; as of 2007 there are too many
23193 implementations with broken preprocessors. Perhaps this can
23194 be revisited in 2012. In the meantime, code should not expect
23195 #if to work with literals wider than 32 bits. */
23196 /* Test literals. */
23197 long long int ll = 9223372036854775807ll;
23198 long long int nll = -9223372036854775807LL;
23199 unsigned long long int ull = 18446744073709551615ULL;
23200 /* Test constant expressions. */
23201 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23202 ? 1 : -1)];
23203 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23204 ? 1 : -1)];
23205 int i = 63;
23206int
23207main ()
23208{
23209/* Test availability of runtime routines for shift and division. */
23210 long long int llmax = 9223372036854775807ll;
23211 unsigned long long int ullmax = 18446744073709551615ull;
23212 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23213 | (llmax / ll) | (llmax % ll)
23214 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23215 | (ullmax / ull) | (ullmax % ull));
23216 ;
23217 return 0;
23218}
23219
23220_ACEOF
23221if ac_fn_c_try_link "$LINENO"; then :
23222 if test "$cross_compiling" = yes; then :
23223 ac_cv_type_long_long_int=yes
23224else
23225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23226/* end confdefs.h. */
23227#include <limits.h>
23228 #ifndef LLONG_MAX
23229 # define HALF \
23230 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23231 # define LLONG_MAX (HALF - 1 + HALF)
23232 #endif
23233int
23234main ()
23235{
23236long long int n = 1;
23237 int i;
23238 for (i = 0; ; i++)
23239 {
23240 long long int m = n << i;
23241 if (m >> i != n)
23242 return 1;
23243 if (LLONG_MAX / 2 < m)
23244 break;
23245 }
23246 return 0;
23247 ;
23248 return 0;
23249}
23250_ACEOF
23251if ac_fn_c_try_run "$LINENO"; then :
23252 ac_cv_type_long_long_int=yes
23253else
23254 ac_cv_type_long_long_int=no
23255fi
23256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23257 conftest.$ac_objext conftest.beam conftest.$ac_ext
23258fi
23259
23260else
23261 ac_cv_type_long_long_int=no
23262fi
23263rm -f core conftest.err conftest.$ac_objext \
23264 conftest$ac_exeext conftest.$ac_ext
23265fi
23266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23267$as_echo "$ac_cv_type_long_long_int" >&6; }
23268 if test $ac_cv_type_long_long_int = yes; then
23269
23270$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23271
23272 fi
23273
23274
23275
23276 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23277if test "x$ac_cv_type_intmax_t" = xyes; then :
23278
23279$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23280
23281else
23282 test $ac_cv_type_long_long_int = yes \
23283 && ac_type='long long int' \
23284 || ac_type='long int'
23285
23286cat >>confdefs.h <<_ACEOF
23287#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023288_ACEOF
23289
23290fi
23291
23292
cristy501c8042011-05-26 17:46:28 +000023293
23294 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23295if test "x$ac_cv_type_intptr_t" = xyes; then :
23296
23297$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023298
cristy3ed852e2009-09-05 21:47:34 +000023299else
cristy501c8042011-05-26 17:46:28 +000023300 for ac_type in 'int' 'long int' 'long long int'; do
23301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23302/* end confdefs.h. */
23303$ac_includes_default
23304int
23305main ()
23306{
23307static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023308test_array [0] = 0;
23309return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023310
23311 ;
23312 return 0;
23313}
23314_ACEOF
23315if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023316
23317cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023318#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023319_ACEOF
23320
cristy501c8042011-05-26 17:46:28 +000023321 ac_type=
23322fi
23323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23324 test -z "$ac_type" && break
23325 done
cristy3ed852e2009-09-05 21:47:34 +000023326fi
23327
23328
cristy3ed852e2009-09-05 21:47:34 +000023329
cristy501c8042011-05-26 17:46:28 +000023330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23331$as_echo_n "checking for long double... " >&6; }
23332if ${ac_cv_type_long_double+:} false; then :
23333 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023334else
cristy501c8042011-05-26 17:46:28 +000023335 if test "$GCC" = yes; then
23336 ac_cv_type_long_double=yes
23337 else
23338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23339/* end confdefs.h. */
23340/* The Stardent Vistra knows sizeof (long double), but does
23341 not support it. */
23342 long double foo = 0.0L;
23343int
23344main ()
23345{
23346static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23347 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023348test_array [0] = 0;
23349return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023350
cristy501c8042011-05-26 17:46:28 +000023351 ;
23352 return 0;
23353}
cristy3ed852e2009-09-05 21:47:34 +000023354_ACEOF
cristy501c8042011-05-26 17:46:28 +000023355if ac_fn_c_try_compile "$LINENO"; then :
23356 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023357else
cristy501c8042011-05-26 17:46:28 +000023358 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023359fi
cristy501c8042011-05-26 17:46:28 +000023360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361 fi
cristy3ed852e2009-09-05 21:47:34 +000023362fi
cristy501c8042011-05-26 17:46:28 +000023363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23364$as_echo "$ac_cv_type_long_double" >&6; }
23365 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023366
cristy501c8042011-05-26 17:46:28 +000023367$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023368
cristy501c8042011-05-26 17:46:28 +000023369 fi
23370
cristy3ed852e2009-09-05 21:47:34 +000023371
cristy8b350f62009-11-15 23:12:43 +000023372 { $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 +000023373$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023374if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023375 $as_echo_n "(cached) " >&6
23376else
cristy8b350f62009-11-15 23:12:43 +000023377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023378/* end confdefs.h. */
23379#include <float.h>
23380 long double const a[] =
23381 {
23382 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23383 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23384 };
23385 long double
23386 f (long double x)
23387 {
23388 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23389 + (x ? f (x) : 'c'));
23390 }
23391
23392int
23393main ()
23394{
23395static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23396 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23397 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23398 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23399 && (int) LDBL_EPSILON == 0
23400 )];
cristy14fefe52012-05-21 00:59:18 +000023401test_array [0] = 0;
23402return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023403
23404 ;
23405 return 0;
23406}
23407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023408if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023409 ac_cv_type_long_double_wider=yes
23410else
cristy8b350f62009-11-15 23:12:43 +000023411 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023412fi
cristy3ed852e2009-09-05 21:47:34 +000023413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414fi
cristy8b350f62009-11-15 23:12:43 +000023415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023416$as_echo "$ac_cv_type_long_double_wider" >&6; }
23417 if test $ac_cv_type_long_double_wider = yes; then
23418
cristy8b350f62009-11-15 23:12:43 +000023419$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023420
23421 fi
23422
23423
cristy501c8042011-05-26 17:46:28 +000023424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23425$as_echo_n "checking for long long int... " >&6; }
23426if ${ac_cv_type_long_long_int+:} false; then :
23427 $as_echo_n "(cached) " >&6
23428else
23429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23430/* end confdefs.h. */
23431
23432 /* For now, do not test the preprocessor; as of 2007 there are too many
23433 implementations with broken preprocessors. Perhaps this can
23434 be revisited in 2012. In the meantime, code should not expect
23435 #if to work with literals wider than 32 bits. */
23436 /* Test literals. */
23437 long long int ll = 9223372036854775807ll;
23438 long long int nll = -9223372036854775807LL;
23439 unsigned long long int ull = 18446744073709551615ULL;
23440 /* Test constant expressions. */
23441 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23442 ? 1 : -1)];
23443 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23444 ? 1 : -1)];
23445 int i = 63;
23446int
23447main ()
23448{
23449/* Test availability of runtime routines for shift and division. */
23450 long long int llmax = 9223372036854775807ll;
23451 unsigned long long int ullmax = 18446744073709551615ull;
23452 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23453 | (llmax / ll) | (llmax % ll)
23454 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23455 | (ullmax / ull) | (ullmax % ull));
23456 ;
23457 return 0;
23458}
23459
23460_ACEOF
23461if ac_fn_c_try_link "$LINENO"; then :
23462 if test "$cross_compiling" = yes; then :
23463 ac_cv_type_long_long_int=yes
23464else
23465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23466/* end confdefs.h. */
23467#include <limits.h>
23468 #ifndef LLONG_MAX
23469 # define HALF \
23470 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23471 # define LLONG_MAX (HALF - 1 + HALF)
23472 #endif
23473int
23474main ()
23475{
23476long long int n = 1;
23477 int i;
23478 for (i = 0; ; i++)
23479 {
23480 long long int m = n << i;
23481 if (m >> i != n)
23482 return 1;
23483 if (LLONG_MAX / 2 < m)
23484 break;
23485 }
23486 return 0;
23487 ;
23488 return 0;
23489}
23490_ACEOF
23491if ac_fn_c_try_run "$LINENO"; then :
23492 ac_cv_type_long_long_int=yes
23493else
23494 ac_cv_type_long_long_int=no
23495fi
23496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23497 conftest.$ac_objext conftest.beam conftest.$ac_ext
23498fi
23499
23500else
23501 ac_cv_type_long_long_int=no
23502fi
23503rm -f core conftest.err conftest.$ac_objext \
23504 conftest$ac_exeext conftest.$ac_ext
23505fi
23506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23507$as_echo "$ac_cv_type_long_long_int" >&6; }
23508 if test $ac_cv_type_long_long_int = yes; then
23509
23510$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23511
23512 fi
23513
23514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23515$as_echo_n "checking for mbstate_t... " >&6; }
23516if ${ac_cv_type_mbstate_t+:} false; then :
23517 $as_echo_n "(cached) " >&6
23518else
23519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23520/* end confdefs.h. */
23521$ac_includes_default
23522# include <wchar.h>
23523int
23524main ()
23525{
23526mbstate_t x; return sizeof x;
23527 ;
23528 return 0;
23529}
23530_ACEOF
23531if ac_fn_c_try_compile "$LINENO"; then :
23532 ac_cv_type_mbstate_t=yes
23533else
23534 ac_cv_type_mbstate_t=no
23535fi
23536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23537fi
23538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23539$as_echo "$ac_cv_type_mbstate_t" >&6; }
23540 if test $ac_cv_type_mbstate_t = yes; then
23541
23542$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23543
23544 else
23545
23546$as_echo "#define mbstate_t int" >>confdefs.h
23547
23548 fi
23549ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23550if test "x$ac_cv_type_mode_t" = xyes; then :
23551
23552else
23553
23554cat >>confdefs.h <<_ACEOF
23555#define mode_t int
23556_ACEOF
23557
23558fi
23559
23560ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23561if test "x$ac_cv_type_off_t" = xyes; then :
23562
23563else
23564
23565cat >>confdefs.h <<_ACEOF
23566#define off_t long int
23567_ACEOF
23568
23569fi
23570
23571ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23572if test "x$ac_cv_type_pid_t" = xyes; then :
23573
23574else
23575
23576cat >>confdefs.h <<_ACEOF
23577#define pid_t int
23578_ACEOF
23579
23580fi
23581
23582ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23583if test "x$ac_cv_type_size_t" = xyes; then :
23584
23585else
23586
23587cat >>confdefs.h <<_ACEOF
23588#define size_t unsigned int
23589_ACEOF
23590
23591fi
23592
23593ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23594if test "x$ac_cv_type_ssize_t" = xyes; then :
23595
23596else
23597
23598cat >>confdefs.h <<_ACEOF
23599#define ssize_t int
23600_ACEOF
23601
23602fi
23603
23604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23605$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23606if ${ac_cv_type_uid_t+:} false; then :
23607 $as_echo_n "(cached) " >&6
23608else
23609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23610/* end confdefs.h. */
23611#include <sys/types.h>
23612
23613_ACEOF
23614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23615 $EGREP "uid_t" >/dev/null 2>&1; then :
23616 ac_cv_type_uid_t=yes
23617else
23618 ac_cv_type_uid_t=no
23619fi
23620rm -f conftest*
23621
23622fi
23623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23624$as_echo "$ac_cv_type_uid_t" >&6; }
23625if test $ac_cv_type_uid_t = no; then
23626
23627$as_echo "#define uid_t int" >>confdefs.h
23628
23629
23630$as_echo "#define gid_t int" >>confdefs.h
23631
23632fi
23633
23634ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23635case $ac_cv_c_uint8_t in #(
23636 no|yes) ;; #(
23637 *)
23638
23639$as_echo "#define _UINT8_T 1" >>confdefs.h
23640
23641
23642cat >>confdefs.h <<_ACEOF
23643#define uint8_t $ac_cv_c_uint8_t
23644_ACEOF
23645;;
23646 esac
23647
23648ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23649case $ac_cv_c_uint16_t in #(
23650 no|yes) ;; #(
23651 *)
23652
23653
23654cat >>confdefs.h <<_ACEOF
23655#define uint16_t $ac_cv_c_uint16_t
23656_ACEOF
23657;;
23658 esac
23659
23660ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23661case $ac_cv_c_uint32_t in #(
23662 no|yes) ;; #(
23663 *)
23664
23665$as_echo "#define _UINT32_T 1" >>confdefs.h
23666
23667
23668cat >>confdefs.h <<_ACEOF
23669#define uint32_t $ac_cv_c_uint32_t
23670_ACEOF
23671;;
23672 esac
23673
23674ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23675case $ac_cv_c_uint64_t in #(
23676 no|yes) ;; #(
23677 *)
23678
23679$as_echo "#define _UINT64_T 1" >>confdefs.h
23680
23681
23682cat >>confdefs.h <<_ACEOF
23683#define uint64_t $ac_cv_c_uint64_t
23684_ACEOF
23685;;
23686 esac
23687
23688
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23690$as_echo_n "checking for unsigned long long int... " >&6; }
23691if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23692 $as_echo_n "(cached) " >&6
23693else
23694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23695/* end confdefs.h. */
23696
23697 /* For now, do not test the preprocessor; as of 2007 there are too many
23698 implementations with broken preprocessors. Perhaps this can
23699 be revisited in 2012. In the meantime, code should not expect
23700 #if to work with literals wider than 32 bits. */
23701 /* Test literals. */
23702 long long int ll = 9223372036854775807ll;
23703 long long int nll = -9223372036854775807LL;
23704 unsigned long long int ull = 18446744073709551615ULL;
23705 /* Test constant expressions. */
23706 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23707 ? 1 : -1)];
23708 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23709 ? 1 : -1)];
23710 int i = 63;
23711int
23712main ()
23713{
23714/* Test availability of runtime routines for shift and division. */
23715 long long int llmax = 9223372036854775807ll;
23716 unsigned long long int ullmax = 18446744073709551615ull;
23717 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23718 | (llmax / ll) | (llmax % ll)
23719 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23720 | (ullmax / ull) | (ullmax % ull));
23721 ;
23722 return 0;
23723}
23724
23725_ACEOF
23726if ac_fn_c_try_link "$LINENO"; then :
23727 ac_cv_type_unsigned_long_long_int=yes
23728else
23729 ac_cv_type_unsigned_long_long_int=no
23730fi
23731rm -f core conftest.err conftest.$ac_objext \
23732 conftest$ac_exeext conftest.$ac_ext
23733fi
23734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23735$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23736 if test $ac_cv_type_unsigned_long_long_int = yes; then
23737
23738$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23739
23740 fi
23741
23742
23743
23744 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23745if test "x$ac_cv_type_uintmax_t" = xyes; then :
23746
23747$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23748
23749else
23750 test $ac_cv_type_unsigned_long_long_int = yes \
23751 && ac_type='unsigned long long int' \
23752 || ac_type='unsigned long int'
23753
23754cat >>confdefs.h <<_ACEOF
23755#define uintmax_t $ac_type
23756_ACEOF
23757
23758fi
23759
23760
23761
23762 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23763if test "x$ac_cv_type_uintptr_t" = xyes; then :
23764
23765$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23766
23767else
23768 for ac_type in 'unsigned int' 'unsigned long int' \
23769 'unsigned long long int'; do
23770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23771/* end confdefs.h. */
23772$ac_includes_default
23773int
23774main ()
23775{
23776static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023777test_array [0] = 0;
23778return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023779
23780 ;
23781 return 0;
23782}
23783_ACEOF
23784if ac_fn_c_try_compile "$LINENO"; then :
23785
23786cat >>confdefs.h <<_ACEOF
23787#define uintptr_t $ac_type
23788_ACEOF
23789
23790 ac_type=
23791fi
23792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23793 test -z "$ac_type" && break
23794 done
23795fi
23796
23797
23798
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23800$as_echo_n "checking for unsigned long long int... " >&6; }
23801if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23802 $as_echo_n "(cached) " >&6
23803else
23804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23805/* end confdefs.h. */
23806
23807 /* For now, do not test the preprocessor; as of 2007 there are too many
23808 implementations with broken preprocessors. Perhaps this can
23809 be revisited in 2012. In the meantime, code should not expect
23810 #if to work with literals wider than 32 bits. */
23811 /* Test literals. */
23812 long long int ll = 9223372036854775807ll;
23813 long long int nll = -9223372036854775807LL;
23814 unsigned long long int ull = 18446744073709551615ULL;
23815 /* Test constant expressions. */
23816 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23817 ? 1 : -1)];
23818 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23819 ? 1 : -1)];
23820 int i = 63;
23821int
23822main ()
23823{
23824/* Test availability of runtime routines for shift and division. */
23825 long long int llmax = 9223372036854775807ll;
23826 unsigned long long int ullmax = 18446744073709551615ull;
23827 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23828 | (llmax / ll) | (llmax % ll)
23829 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23830 | (ullmax / ull) | (ullmax % ull));
23831 ;
23832 return 0;
23833}
23834
23835_ACEOF
23836if ac_fn_c_try_link "$LINENO"; then :
23837 ac_cv_type_unsigned_long_long_int=yes
23838else
23839 ac_cv_type_unsigned_long_long_int=no
23840fi
23841rm -f core conftest.err conftest.$ac_objext \
23842 conftest$ac_exeext conftest.$ac_ext
23843fi
23844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23845$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23846 if test $ac_cv_type_unsigned_long_long_int = yes; then
23847
23848$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23849
23850 fi
23851
23852
cristy3ed852e2009-09-05 21:47:34 +000023853# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23854# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023856$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023857if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023858 $as_echo_n "(cached) " >&6
23859else
cristy8b350f62009-11-15 23:12:43 +000023860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023861/* end confdefs.h. */
23862$ac_includes_default
23863int
23864main ()
23865{
23866static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000023867test_array [0] = 0;
23868return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023869
23870 ;
23871 return 0;
23872}
23873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023874if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023875 ac_cv_c_char_unsigned=no
23876else
cristy8b350f62009-11-15 23:12:43 +000023877 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023878fi
cristy3ed852e2009-09-05 21:47:34 +000023879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880fi
cristy8b350f62009-11-15 23:12:43 +000023881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023882$as_echo "$ac_cv_c_char_unsigned" >&6; }
23883if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023884 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023885
23886fi
23887
23888
23889# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23890# The cast to long int works around a bug in the HP C Compiler
23891# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23892# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23893# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023895$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023896if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023897 $as_echo_n "(cached) " >&6
23898else
cristy8b350f62009-11-15 23:12:43 +000023899 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 +000023900
cristy3ed852e2009-09-05 21:47:34 +000023901else
cristy8b350f62009-11-15 23:12:43 +000023902 if test "$ac_cv_type_signed_short" = yes; then
23903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023905as_fn_error 77 "cannot compute sizeof (signed short)
23906See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023907 else
23908 ac_cv_sizeof_signed_short=0
23909 fi
23910fi
cristy8b350f62009-11-15 23:12:43 +000023911
cristy3ed852e2009-09-05 21:47:34 +000023912fi
cristy8b350f62009-11-15 23:12:43 +000023913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023914$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23915
23916
23917
23918cat >>confdefs.h <<_ACEOF
23919#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23920_ACEOF
23921
23922
23923
23924# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23925# The cast to long int works around a bug in the HP C Compiler
23926# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23927# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23928# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023930$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023931if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023932 $as_echo_n "(cached) " >&6
23933else
cristy8b350f62009-11-15 23:12:43 +000023934 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 +000023935
cristy3ed852e2009-09-05 21:47:34 +000023936else
cristy8b350f62009-11-15 23:12:43 +000023937 if test "$ac_cv_type_unsigned_short" = yes; then
23938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023940as_fn_error 77 "cannot compute sizeof (unsigned short)
23941See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023942 else
23943 ac_cv_sizeof_unsigned_short=0
23944 fi
23945fi
cristy8b350f62009-11-15 23:12:43 +000023946
cristy3ed852e2009-09-05 21:47:34 +000023947fi
cristy8b350f62009-11-15 23:12:43 +000023948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023949$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23950
23951
23952
23953cat >>confdefs.h <<_ACEOF
23954#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23955_ACEOF
23956
23957
23958
23959# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23960# The cast to long int works around a bug in the HP C Compiler
23961# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23962# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23963# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023965$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023966if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023967 $as_echo_n "(cached) " >&6
23968else
cristy8b350f62009-11-15 23:12:43 +000023969 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 +000023970
cristy3ed852e2009-09-05 21:47:34 +000023971else
cristy8b350f62009-11-15 23:12:43 +000023972 if test "$ac_cv_type_signed_int" = yes; then
23973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023975as_fn_error 77 "cannot compute sizeof (signed int)
23976See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023977 else
23978 ac_cv_sizeof_signed_int=0
23979 fi
23980fi
cristy8b350f62009-11-15 23:12:43 +000023981
cristy3ed852e2009-09-05 21:47:34 +000023982fi
cristy8b350f62009-11-15 23:12:43 +000023983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023984$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23985
23986
23987
23988cat >>confdefs.h <<_ACEOF
23989#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23990_ACEOF
23991
23992
23993
23994# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23995# The cast to long int works around a bug in the HP C Compiler
23996# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23997# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23998# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024000$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024001if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024002 $as_echo_n "(cached) " >&6
24003else
cristy8b350f62009-11-15 23:12:43 +000024004 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 +000024005
cristy3ed852e2009-09-05 21:47:34 +000024006else
cristy8b350f62009-11-15 23:12:43 +000024007 if test "$ac_cv_type_unsigned_int" = yes; then
24008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024010as_fn_error 77 "cannot compute sizeof (unsigned int)
24011See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024012 else
24013 ac_cv_sizeof_unsigned_int=0
24014 fi
24015fi
cristy8b350f62009-11-15 23:12:43 +000024016
cristy3ed852e2009-09-05 21:47:34 +000024017fi
cristy8b350f62009-11-15 23:12:43 +000024018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024019$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24020
24021
24022
24023cat >>confdefs.h <<_ACEOF
24024#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24025_ACEOF
24026
24027
24028
24029# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24030# The cast to long int works around a bug in the HP C Compiler
24031# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24032# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24033# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024035$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024036if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024037 $as_echo_n "(cached) " >&6
24038else
cristy8b350f62009-11-15 23:12:43 +000024039 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 +000024040
cristy3ed852e2009-09-05 21:47:34 +000024041else
cristy8b350f62009-11-15 23:12:43 +000024042 if test "$ac_cv_type_signed_long" = yes; then
24043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024045as_fn_error 77 "cannot compute sizeof (signed long)
24046See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024047 else
24048 ac_cv_sizeof_signed_long=0
24049 fi
24050fi
cristy8b350f62009-11-15 23:12:43 +000024051
cristy3ed852e2009-09-05 21:47:34 +000024052fi
cristy8b350f62009-11-15 23:12:43 +000024053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024054$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24055
24056
24057
24058cat >>confdefs.h <<_ACEOF
24059#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24060_ACEOF
24061
24062
24063
24064# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24065# The cast to long int works around a bug in the HP C Compiler
24066# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24067# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24068# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024070$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024071if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024072 $as_echo_n "(cached) " >&6
24073else
cristy8b350f62009-11-15 23:12:43 +000024074 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 +000024075
cristy3ed852e2009-09-05 21:47:34 +000024076else
cristy8b350f62009-11-15 23:12:43 +000024077 if test "$ac_cv_type_unsigned_long" = yes; then
24078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024080as_fn_error 77 "cannot compute sizeof (unsigned long)
24081See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024082 else
24083 ac_cv_sizeof_unsigned_long=0
24084 fi
24085fi
cristy8b350f62009-11-15 23:12:43 +000024086
cristy3ed852e2009-09-05 21:47:34 +000024087fi
cristy8b350f62009-11-15 23:12:43 +000024088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024089$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24090
24091
24092
24093cat >>confdefs.h <<_ACEOF
24094#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24095_ACEOF
24096
24097
24098
24099# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24100# 'signed long long' is not supported then the value defined is zero.
24101# The cast to long int works around a bug in the HP C Compiler
24102# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24103# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24104# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024106$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024107if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024108 $as_echo_n "(cached) " >&6
24109else
cristy8b350f62009-11-15 23:12:43 +000024110 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 +000024111
cristy3ed852e2009-09-05 21:47:34 +000024112else
cristy8b350f62009-11-15 23:12:43 +000024113 if test "$ac_cv_type_signed_long_long" = yes; then
24114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024116as_fn_error 77 "cannot compute sizeof (signed long long)
24117See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024118 else
24119 ac_cv_sizeof_signed_long_long=0
24120 fi
24121fi
cristy8b350f62009-11-15 23:12:43 +000024122
cristy3ed852e2009-09-05 21:47:34 +000024123fi
cristy8b350f62009-11-15 23:12:43 +000024124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024125$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24126
24127
24128
24129cat >>confdefs.h <<_ACEOF
24130#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24131_ACEOF
24132
24133
24134
24135# Obtain size of a 'unsigned long long' and define as
24136# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24137# supported then the value defined is zero.
24138# The cast to long int works around a bug in the HP C Compiler
24139# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24140# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24141# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024143$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024144if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024145 $as_echo_n "(cached) " >&6
24146else
cristy8b350f62009-11-15 23:12:43 +000024147 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 +000024148
cristy3ed852e2009-09-05 21:47:34 +000024149else
cristy8b350f62009-11-15 23:12:43 +000024150 if test "$ac_cv_type_unsigned_long_long" = yes; then
24151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024153as_fn_error 77 "cannot compute sizeof (unsigned long long)
24154See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024155 else
24156 ac_cv_sizeof_unsigned_long_long=0
24157 fi
24158fi
cristy8b350f62009-11-15 23:12:43 +000024159
cristy3ed852e2009-09-05 21:47:34 +000024160fi
cristy8b350f62009-11-15 23:12:43 +000024161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024162$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24163
24164
24165
24166cat >>confdefs.h <<_ACEOF
24167#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24168_ACEOF
24169
24170
24171
24172# Obtain size of off_t and define as SIZEOF_OFF_T
24173# The cast to long int works around a bug in the HP C Compiler
24174# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24175# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24176# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024178$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024179if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024180 $as_echo_n "(cached) " >&6
24181else
cristy8b350f62009-11-15 23:12:43 +000024182 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 +000024183
cristy3ed852e2009-09-05 21:47:34 +000024184else
cristy8b350f62009-11-15 23:12:43 +000024185 if test "$ac_cv_type_off_t" = yes; then
24186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024188as_fn_error 77 "cannot compute sizeof (off_t)
24189See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024190 else
24191 ac_cv_sizeof_off_t=0
24192 fi
24193fi
cristy8b350f62009-11-15 23:12:43 +000024194
cristy3ed852e2009-09-05 21:47:34 +000024195fi
cristy8b350f62009-11-15 23:12:43 +000024196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024197$as_echo "$ac_cv_sizeof_off_t" >&6; }
24198
24199
24200
24201cat >>confdefs.h <<_ACEOF
24202#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24203_ACEOF
24204
24205
24206
24207# Obtain size of size_t and define as SIZEOF_SIZE_T
24208# The cast to long int works around a bug in the HP C Compiler
24209# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24210# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24211# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024213$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024214if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024215 $as_echo_n "(cached) " >&6
24216else
cristy8b350f62009-11-15 23:12:43 +000024217 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 +000024218
cristy3ed852e2009-09-05 21:47:34 +000024219else
cristy8b350f62009-11-15 23:12:43 +000024220 if test "$ac_cv_type_size_t" = yes; then
24221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024223as_fn_error 77 "cannot compute sizeof (size_t)
24224See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024225 else
24226 ac_cv_sizeof_size_t=0
24227 fi
24228fi
cristy8b350f62009-11-15 23:12:43 +000024229
cristy3ed852e2009-09-05 21:47:34 +000024230fi
cristy8b350f62009-11-15 23:12:43 +000024231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024232$as_echo "$ac_cv_sizeof_size_t" >&6; }
24233
24234
24235
24236cat >>confdefs.h <<_ACEOF
24237#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24238_ACEOF
24239
24240
24241
cristy330e9352010-06-01 18:42:49 +000024242# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24243# The cast to long int works around a bug in the HP C Compiler
24244# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24245# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24246# This bug is HP SR number 8606223364.
24247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24248$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024249if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024250 $as_echo_n "(cached) " >&6
24251else
24252 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24253
24254else
24255 if test "$ac_cv_type_ssize_t" = yes; then
24256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024258as_fn_error 77 "cannot compute sizeof (ssize_t)
24259See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024260 else
24261 ac_cv_sizeof_ssize_t=0
24262 fi
24263fi
24264
24265fi
24266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24267$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24268
24269
24270
24271cat >>confdefs.h <<_ACEOF
24272#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24273_ACEOF
24274
24275
24276
cristy3ed852e2009-09-05 21:47:34 +000024277# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24278# The cast to long int works around a bug in the HP C Compiler
24279# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24280# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24281# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024283$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024284if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024285 $as_echo_n "(cached) " >&6
24286else
cristy8b350f62009-11-15 23:12:43 +000024287 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 +000024288
cristy3ed852e2009-09-05 21:47:34 +000024289else
cristy8b350f62009-11-15 23:12:43 +000024290 if test "$ac_cv_type_unsigned_intp" = yes; then
24291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024293as_fn_error 77 "cannot compute sizeof (unsigned int*)
24294See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024295 else
24296 ac_cv_sizeof_unsigned_intp=0
24297 fi
24298fi
cristy8b350f62009-11-15 23:12:43 +000024299
cristy3ed852e2009-09-05 21:47:34 +000024300fi
cristy8b350f62009-11-15 23:12:43 +000024301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024302$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24303
24304
24305
24306cat >>confdefs.h <<_ACEOF
24307#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24308_ACEOF
24309
24310
24311
24312#
24313# Compute sized types for current CPU and compiler options.
24314#
24315
cristy8b350f62009-11-15 23:12:43 +000024316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024317$as_echo_n "checking for signed 8-bit type... " >&6; }
24318INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024319{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24320$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024321
24322
cristy8b350f62009-11-15 23:12:43 +000024323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024324$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24325UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024326{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24327$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024328
24329
cristy8b350f62009-11-15 23:12:43 +000024330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024331$as_echo_n "checking for signed 16-bit type... " >&6; }
24332INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024333{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24334$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024335
24336
cristy8b350f62009-11-15 23:12:43 +000024337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024338$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24339UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024340{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24341$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024342
24343
cristy8b350f62009-11-15 23:12:43 +000024344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024345$as_echo_n "checking for signed 32-bit type... " >&6; }
24346INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024347INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024348if test $ac_cv_sizeof_signed_int -eq 4; then
24349 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024350 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024351elif test $ac_cv_sizeof_signed_long -eq 4; then
24352 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024353 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024354fi
cristy09b53e12011-10-14 12:47:22 +000024355{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24356$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024357
24358
cristy6d5e20f2011-04-25 13:48:54 +000024359
cristy8b350f62009-11-15 23:12:43 +000024360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024361$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24362UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024363UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024364if test $ac_cv_sizeof_unsigned_int -eq 4; then
24365 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024366 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024367elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24368 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024369 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024370fi
cristy09b53e12011-10-14 12:47:22 +000024371{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24372$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024373
24374
cristy6d5e20f2011-04-25 13:48:54 +000024375
cristy8b350f62009-11-15 23:12:43 +000024376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024377$as_echo_n "checking for signed 64-bit type... " >&6; }
24378INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024379INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024380if test $ac_cv_sizeof_signed_long -eq 8; then
24381 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024382 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024383elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24384 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024385 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024386fi
cristy3a99dcf2011-12-17 01:29:40 +000024387case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024388 mingw* )
24389 INT64_F='"I64"'
24390 ;;
24391esac
cristy09b53e12011-10-14 12:47:22 +000024392{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24393$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024394
24395
cristy6d5e20f2011-04-25 13:48:54 +000024396
cristy8b350f62009-11-15 23:12:43 +000024397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024398$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24399UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024400UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024401if test $ac_cv_sizeof_unsigned_long -eq 8; then
24402 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024403 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024404elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24405 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024406 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024407fi
cristy3a99dcf2011-12-17 01:29:40 +000024408case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024409 mingw* )
24410 UINT64_F='"I64"'
24411 ;;
24412esac
cristy09b53e12011-10-14 12:47:22 +000024413{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24414$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024415
24416
cristy6d5e20f2011-04-25 13:48:54 +000024417
cristy8b350f62009-11-15 23:12:43 +000024418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024419$as_echo_n "checking for unsigned maximum type... " >&6; }
24420UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024421UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024422if test "$UINT64_T" != 'none'; then
24423 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024424 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024425elif test "$UINT32_T" != 'none'; then
24426 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024427 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024428fi
cristy09b53e12011-10-14 12:47:22 +000024429{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24430$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024431
24432
cristy6d5e20f2011-04-25 13:48:54 +000024433
cristy8b350f62009-11-15 23:12:43 +000024434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024435$as_echo_n "checking for pointer difference type... " >&6; }
24436UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024437UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024438if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24439 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024440 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024441elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24442 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024443 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024444fi
cristy09b53e12011-10-14 12:47:22 +000024445{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24446$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024447
24448
cristy6d5e20f2011-04-25 13:48:54 +000024449
cristy8b350f62009-11-15 23:12:43 +000024450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024451$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024453/* end confdefs.h. */
24454
24455int
24456main ()
24457{
24458{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24459 ;
24460 return 0;
24461}
24462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024463if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024464 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24465$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024466else
cristy09b53e12011-10-14 12:47:22 +000024467 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24468$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024470$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024472/* end confdefs.h. */
24473
24474int
24475main ()
24476{
24477{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24478 ;
24479 return 0;
24480}
24481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024482if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024483 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24484$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024485
cristy8b350f62009-11-15 23:12:43 +000024486$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024487
24488else
cristy09b53e12011-10-14 12:47:22 +000024489 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24490$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024491
cristy8b350f62009-11-15 23:12:43 +000024492$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024493
24494fi
cristy3ed852e2009-09-05 21:47:34 +000024495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24496fi
cristy3ed852e2009-09-05 21:47:34 +000024497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24498
24499########
24500#
24501# Check for functions
24502#
24503########
cristy73bd4a52010-10-05 11:24:23 +000024504for ac_header in stdlib.h unistd.h
24505do :
24506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24507ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024508if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024509 cat >>confdefs.h <<_ACEOF
24510#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24511_ACEOF
24512
24513fi
24514
24515done
24516
24517for ac_func in getpagesize
24518do :
24519 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024520if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024521 cat >>confdefs.h <<_ACEOF
24522#define HAVE_GETPAGESIZE 1
24523_ACEOF
24524
24525fi
24526done
24527
24528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24529$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024530if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024531 $as_echo_n "(cached) " >&6
24532else
24533 if test "$cross_compiling" = yes; then :
24534 magick_cv_func_mmap_fileio=no
24535else
24536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24537/* end confdefs.h. */
24538$ac_includes_default
24539/* malloc might have been renamed as rpl_malloc. */
24540#undef malloc
24541
24542/*
24543 This test is derived from GNU Autoconf's similar macro.
24544 The purpose of this test is to verify that files may be memory
24545 mapped, and that memory mapping and file I/O are coherent.
24546
24547 The test creates a test file, memory maps the file, updates
24548 the file using the memory map, and then reads the file using
24549 file I/O to verify that the file contains the updates.
24550*/
24551
24552#include <fcntl.h>
24553#include <sys/mman.h>
24554
24555#if !STDC_HEADERS && !HAVE_STDLIB_H
24556char *malloc ();
24557#endif
24558
24559/* This mess was copied from the GNU getpagesize.h. */
24560#if !HAVE_GETPAGESIZE
24561/* Assume that all systems that can run configure have sys/param.h. */
24562# if !HAVE_SYS_PARAM_H
24563# define HAVE_SYS_PARAM_H 1
24564# endif
24565
24566# ifdef _SC_PAGESIZE
24567# define getpagesize() sysconf(_SC_PAGESIZE)
24568# else /* no _SC_PAGESIZE */
24569# if HAVE_SYS_PARAM_H
24570# include <sys/param.h>
24571# ifdef EXEC_PAGESIZE
24572# define getpagesize() EXEC_PAGESIZE
24573# else /* no EXEC_PAGESIZE */
24574# ifdef NBPG
24575# define getpagesize() NBPG * CLSIZE
24576# ifndef CLSIZE
24577# define CLSIZE 1
24578# endif /* no CLSIZE */
24579# else /* no NBPG */
24580# ifdef NBPC
24581# define getpagesize() NBPC
24582# else /* no NBPC */
24583# ifdef PAGESIZE
24584# define getpagesize() PAGESIZE
24585# endif /* PAGESIZE */
24586# endif /* no NBPC */
24587# endif /* no NBPG */
24588# endif /* no EXEC_PAGESIZE */
24589# else /* no HAVE_SYS_PARAM_H */
24590# define getpagesize() 8192 /* punt totally */
24591# endif /* no HAVE_SYS_PARAM_H */
24592# endif /* no _SC_PAGESIZE */
24593
24594#endif /* no HAVE_GETPAGESIZE */
24595
24596int
24597main ()
24598{
24599 char *data, *data2, *data3;
24600 int i, pagesize;
24601 int fd;
24602
24603 pagesize = getpagesize ();
24604
24605 /* First, make a file with some known garbage in it. */
24606 data = (char *) malloc (pagesize);
24607 if (!data)
24608 exit (1);
24609 for (i = 0; i < pagesize; ++i)
24610 *(data + i) = rand ();
24611 umask (0);
24612 fd = creat ("conftest.mmap", 0600);
24613 if (fd < 0)
24614 exit (1);
24615 if (write (fd, data, pagesize) != pagesize)
24616 exit (1);
24617 close (fd);
24618
24619 /* Mmap the file as read/write/shared and verify that we see the
24620 same garbage. */
24621 fd = open ("conftest.mmap", O_RDWR);
24622 if (fd < 0)
24623 exit (1);
24624 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24625 if (data2 == 0)
24626 exit (1);
24627 for (i = 0; i < pagesize; ++i)
24628 if (*(data + i) != *(data2 + i))
24629 exit (1);
24630
24631 /* Finally, make sure that changes to the mapped area
24632 percolate back to the file as seen by read(). */
24633 for (i = 0; i < pagesize; ++i)
24634 *(data2 + i) = *(data2 + i) + 1;
24635 data3 = (char *) malloc (pagesize);
24636 if (!data3)
24637 exit (1);
24638 if (read (fd, data3, pagesize) != pagesize)
24639 exit (1);
24640 for (i = 0; i < pagesize; ++i)
24641 if (*(data2 + i) != *(data3 + i))
24642 exit (1);
24643 close (fd);
24644 exit (0);
24645}
24646_ACEOF
24647if ac_fn_c_try_run "$LINENO"; then :
24648 magick_cv_func_mmap_fileio=yes
24649else
24650 magick_cv_func_mmap_fileio=no
24651fi
24652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24653 conftest.$ac_objext conftest.beam conftest.$ac_ext
24654fi
24655
24656fi
24657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24658$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24659if test $magick_cv_func_mmap_fileio = yes; then
24660
24661$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24662
24663fi
24664rm -f conftest.mmap
24665
cristy8b350f62009-11-15 23:12:43 +000024666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024667$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024668if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024669 $as_echo_n "(cached) " >&6
24670else
cristy8b350f62009-11-15 23:12:43 +000024671 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024672 ac_cv_func_closedir_void=yes
24673else
cristy8b350f62009-11-15 23:12:43 +000024674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024675/* end confdefs.h. */
24676$ac_includes_default
24677#include <$ac_header_dirent>
24678#ifndef __cplusplus
24679int closedir ();
24680#endif
24681
24682int
24683main ()
24684{
24685return closedir (opendir (".")) != 0;
24686 ;
24687 return 0;
24688}
24689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024690if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024691 ac_cv_func_closedir_void=no
24692else
cristy8b350f62009-11-15 23:12:43 +000024693 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024694fi
cristy8b350f62009-11-15 23:12:43 +000024695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24696 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024697fi
24698
cristy3ed852e2009-09-05 21:47:34 +000024699fi
cristy8b350f62009-11-15 23:12:43 +000024700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024701$as_echo "$ac_cv_func_closedir_void" >&6; }
24702if test $ac_cv_func_closedir_void = yes; then
24703
cristy8b350f62009-11-15 23:12:43 +000024704$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024705
24706fi
24707
cristycd4c5312009-11-22 01:19:08 +000024708
24709
24710
24711 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024712do :
24713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024714ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24715"
cristy98dddb52010-11-04 00:30:15 +000024716if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024717 cat >>confdefs.h <<_ACEOF
24718#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24719_ACEOF
24720
24721fi
24722
24723done
24724
cristycd4c5312009-11-22 01:19:08 +000024725
24726
24727
24728
24729
24730
24731
cristy3ed852e2009-09-05 21:47:34 +000024732for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024733do :
24734 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024735if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024736 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024737#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024738_ACEOF
24739
24740fi
24741done
24742
cristy8b350f62009-11-15 23:12:43 +000024743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024744$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024745if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024746 $as_echo_n "(cached) " >&6
24747else
cristy8b350f62009-11-15 23:12:43 +000024748 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024749 ac_cv_func_mmap_fixed_mapped=no
24750else
cristy8b350f62009-11-15 23:12:43 +000024751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024752/* end confdefs.h. */
24753$ac_includes_default
24754/* malloc might have been renamed as rpl_malloc. */
24755#undef malloc
24756
24757/* Thanks to Mike Haertel and Jim Avera for this test.
24758 Here is a matrix of mmap possibilities:
24759 mmap private not fixed
24760 mmap private fixed at somewhere currently unmapped
24761 mmap private fixed at somewhere already mapped
24762 mmap shared not fixed
24763 mmap shared fixed at somewhere currently unmapped
24764 mmap shared fixed at somewhere already mapped
24765 For private mappings, we should verify that changes cannot be read()
24766 back from the file, nor mmap's back from the file at a different
24767 address. (There have been systems where private was not correctly
24768 implemented like the infamous i386 svr4.0, and systems where the
24769 VM page cache was not coherent with the file system buffer cache
24770 like early versions of FreeBSD and possibly contemporary NetBSD.)
24771 For shared mappings, we should conversely verify that changes get
24772 propagated back to all the places they're supposed to be.
24773
24774 Grep wants private fixed already mapped.
24775 The main things grep needs to know about mmap are:
24776 * does it exist and is it safe to write into the mmap'd area
24777 * how to use it (BSD variants) */
24778
24779#include <fcntl.h>
24780#include <sys/mman.h>
24781
24782#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24783char *malloc ();
24784#endif
24785
24786/* This mess was copied from the GNU getpagesize.h. */
24787#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024788# ifdef _SC_PAGESIZE
24789# define getpagesize() sysconf(_SC_PAGESIZE)
24790# else /* no _SC_PAGESIZE */
24791# ifdef HAVE_SYS_PARAM_H
24792# include <sys/param.h>
24793# ifdef EXEC_PAGESIZE
24794# define getpagesize() EXEC_PAGESIZE
24795# else /* no EXEC_PAGESIZE */
24796# ifdef NBPG
24797# define getpagesize() NBPG * CLSIZE
24798# ifndef CLSIZE
24799# define CLSIZE 1
24800# endif /* no CLSIZE */
24801# else /* no NBPG */
24802# ifdef NBPC
24803# define getpagesize() NBPC
24804# else /* no NBPC */
24805# ifdef PAGESIZE
24806# define getpagesize() PAGESIZE
24807# endif /* PAGESIZE */
24808# endif /* no NBPC */
24809# endif /* no NBPG */
24810# endif /* no EXEC_PAGESIZE */
24811# else /* no HAVE_SYS_PARAM_H */
24812# define getpagesize() 8192 /* punt totally */
24813# endif /* no HAVE_SYS_PARAM_H */
24814# endif /* no _SC_PAGESIZE */
24815
24816#endif /* no HAVE_GETPAGESIZE */
24817
24818int
24819main ()
24820{
24821 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024822 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024823 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024824 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024825
24826 pagesize = getpagesize ();
24827
24828 /* First, make a file with some known garbage in it. */
24829 data = (char *) malloc (pagesize);
24830 if (!data)
24831 return 1;
24832 for (i = 0; i < pagesize; ++i)
24833 *(data + i) = rand ();
24834 umask (0);
24835 fd = creat ("conftest.mmap", 0600);
24836 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024837 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024838 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024839 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024840 close (fd);
24841
cristycd4c5312009-11-22 01:19:08 +000024842 /* Next, check that the tail of a page is zero-filled. File must have
24843 non-zero length, otherwise we risk SIGBUS for entire page. */
24844 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24845 if (fd2 < 0)
24846 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024847 cdata2 = "";
24848 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024849 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024850 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024851 if (data2 == MAP_FAILED)
24852 return 6;
24853 for (i = 0; i < pagesize; ++i)
24854 if (*(data2 + i))
24855 return 7;
24856 close (fd2);
24857 if (munmap (data2, pagesize))
24858 return 8;
24859
cristy3ed852e2009-09-05 21:47:34 +000024860 /* Next, try to mmap the file at a fixed address which already has
24861 something else allocated at it. If we can, also make sure that
24862 we see the same garbage. */
24863 fd = open ("conftest.mmap", O_RDWR);
24864 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024865 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024866 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24867 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024868 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024869 for (i = 0; i < pagesize; ++i)
24870 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024871 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024872
24873 /* Finally, make sure that changes to the mapped area do not
24874 percolate back to the file as seen by read(). (This is a bug on
24875 some variants of i386 svr4.0.) */
24876 for (i = 0; i < pagesize; ++i)
24877 *(data2 + i) = *(data2 + i) + 1;
24878 data3 = (char *) malloc (pagesize);
24879 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024880 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024881 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024882 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024883 for (i = 0; i < pagesize; ++i)
24884 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024885 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024886 close (fd);
24887 return 0;
24888}
24889_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024890if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024891 ac_cv_func_mmap_fixed_mapped=yes
24892else
cristy8b350f62009-11-15 23:12:43 +000024893 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024894fi
cristy8b350f62009-11-15 23:12:43 +000024895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24896 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024897fi
24898
cristy3ed852e2009-09-05 21:47:34 +000024899fi
cristy8b350f62009-11-15 23:12:43 +000024900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024901$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24902if test $ac_cv_func_mmap_fixed_mapped = yes; then
24903
cristy8b350f62009-11-15 23:12:43 +000024904$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024905
24906fi
cristycd4c5312009-11-22 01:19:08 +000024907rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024908
cristy3ed852e2009-09-05 21:47:34 +000024909for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024910do :
24911 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024912if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024913 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024914#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024915_ACEOF
24916
24917fi
24918
24919done
24920
cristy3ed852e2009-09-05 21:47:34 +000024921for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024922do :
24923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24924ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024925if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024926 cat >>confdefs.h <<_ACEOF
24927#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24928_ACEOF
24929
24930fi
24931done
24932
24933if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024935$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024936if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024937 $as_echo_n "(cached) " >&6
24938else
cristy8b350f62009-11-15 23:12:43 +000024939 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024940 ac_cv_func_fork_works=cross
24941else
cristy8b350f62009-11-15 23:12:43 +000024942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024943/* end confdefs.h. */
24944$ac_includes_default
24945int
24946main ()
24947{
24948
24949 /* By Ruediger Kuhlmann. */
24950 return fork () < 0;
24951
24952 ;
24953 return 0;
24954}
24955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024956if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024957 ac_cv_func_fork_works=yes
24958else
cristy8b350f62009-11-15 23:12:43 +000024959 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024960fi
cristy8b350f62009-11-15 23:12:43 +000024961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24962 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024963fi
24964
cristy3ed852e2009-09-05 21:47:34 +000024965fi
cristy8b350f62009-11-15 23:12:43 +000024966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024967$as_echo "$ac_cv_func_fork_works" >&6; }
24968
24969else
24970 ac_cv_func_fork_works=$ac_cv_func_fork
24971fi
24972if test "x$ac_cv_func_fork_works" = xcross; then
24973 case $host in
24974 *-*-amigaos* | *-*-msdosdjgpp*)
24975 # Override, as these systems have only a dummy fork() stub
24976 ac_cv_func_fork_works=no
24977 ;;
24978 *)
24979 ac_cv_func_fork_works=yes
24980 ;;
24981 esac
cristy8b350f62009-11-15 23:12:43 +000024982 { $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 +000024983$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24984fi
24985ac_cv_func_vfork_works=$ac_cv_func_vfork
24986if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024988$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024989if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024990 $as_echo_n "(cached) " >&6
24991else
cristy8b350f62009-11-15 23:12:43 +000024992 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024993 ac_cv_func_vfork_works=cross
24994else
cristy8b350f62009-11-15 23:12:43 +000024995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024996/* end confdefs.h. */
24997/* Thanks to Paul Eggert for this test. */
24998$ac_includes_default
24999#include <sys/wait.h>
25000#ifdef HAVE_VFORK_H
25001# include <vfork.h>
25002#endif
25003/* On some sparc systems, changes by the child to local and incoming
25004 argument registers are propagated back to the parent. The compiler
25005 is told about this with #include <vfork.h>, but some compilers
25006 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25007 static variable whose address is put into a register that is
25008 clobbered by the vfork. */
25009static void
25010#ifdef __cplusplus
25011sparc_address_test (int arg)
25012# else
25013sparc_address_test (arg) int arg;
25014#endif
25015{
25016 static pid_t child;
25017 if (!child) {
25018 child = vfork ();
25019 if (child < 0) {
25020 perror ("vfork");
25021 _exit(2);
25022 }
25023 if (!child) {
25024 arg = getpid();
25025 write(-1, "", 0);
25026 _exit (arg);
25027 }
25028 }
25029}
25030
25031int
25032main ()
25033{
25034 pid_t parent = getpid ();
25035 pid_t child;
25036
25037 sparc_address_test (0);
25038
25039 child = vfork ();
25040
25041 if (child == 0) {
25042 /* Here is another test for sparc vfork register problems. This
25043 test uses lots of local variables, at least as many local
25044 variables as main has allocated so far including compiler
25045 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25046 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25047 reuse the register of parent for one of the local variables,
25048 since it will think that parent can't possibly be used any more
25049 in this routine. Assigning to the local variable will thus
25050 munge parent in the parent process. */
25051 pid_t
25052 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25053 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25054 /* Convince the compiler that p..p7 are live; otherwise, it might
25055 use the same hardware register for all 8 local variables. */
25056 if (p != p1 || p != p2 || p != p3 || p != p4
25057 || p != p5 || p != p6 || p != p7)
25058 _exit(1);
25059
25060 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25061 from child file descriptors. If the child closes a descriptor
25062 before it execs or exits, this munges the parent's descriptor
25063 as well. Test for this by closing stdout in the child. */
25064 _exit(close(fileno(stdout)) != 0);
25065 } else {
25066 int status;
25067 struct stat st;
25068
25069 while (wait(&status) != child)
25070 ;
25071 return (
25072 /* Was there some problem with vforking? */
25073 child < 0
25074
25075 /* Did the child fail? (This shouldn't happen.) */
25076 || status
25077
25078 /* Did the vfork/compiler bug occur? */
25079 || parent != getpid()
25080
25081 /* Did the file descriptor bug occur? */
25082 || fstat(fileno(stdout), &st) != 0
25083 );
25084 }
25085}
25086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025087if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025088 ac_cv_func_vfork_works=yes
25089else
cristy8b350f62009-11-15 23:12:43 +000025090 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025091fi
cristy8b350f62009-11-15 23:12:43 +000025092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25093 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025094fi
25095
cristy3ed852e2009-09-05 21:47:34 +000025096fi
cristy8b350f62009-11-15 23:12:43 +000025097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025098$as_echo "$ac_cv_func_vfork_works" >&6; }
25099
25100fi;
25101if test "x$ac_cv_func_fork_works" = xcross; then
25102 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025103 { $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 +000025104$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25105fi
25106
25107if test "x$ac_cv_func_vfork_works" = xyes; then
25108
cristy8b350f62009-11-15 23:12:43 +000025109$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025110
25111else
25112
cristy8b350f62009-11-15 23:12:43 +000025113$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025114
25115fi
25116if test "x$ac_cv_func_fork_works" = xyes; then
25117
cristy8b350f62009-11-15 23:12:43 +000025118$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025119
25120fi
25121
cristy8b350f62009-11-15 23:12:43 +000025122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025123$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025124if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025125 $as_echo_n "(cached) " >&6
25126else
cristy8b350f62009-11-15 23:12:43 +000025127 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025128 ac_cv_func_memcmp_working=no
25129else
cristy8b350f62009-11-15 23:12:43 +000025130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025131/* end confdefs.h. */
25132$ac_includes_default
25133int
25134main ()
25135{
25136
25137 /* Some versions of memcmp are not 8-bit clean. */
25138 char c0 = '\100', c1 = '\200', c2 = '\201';
25139 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25140 return 1;
25141
25142 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25143 or more and with at least one buffer not starting on a 4-byte boundary.
25144 William Lewis provided this test program. */
25145 {
25146 char foo[21];
25147 char bar[21];
25148 int i;
25149 for (i = 0; i < 4; i++)
25150 {
25151 char *a = foo + i;
25152 char *b = bar + i;
25153 strcpy (a, "--------01111111");
25154 strcpy (b, "--------10000000");
25155 if (memcmp (a, b, 16) >= 0)
25156 return 1;
25157 }
25158 return 0;
25159 }
25160
25161 ;
25162 return 0;
25163}
25164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025165if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025166 ac_cv_func_memcmp_working=yes
25167else
cristy8b350f62009-11-15 23:12:43 +000025168 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025169fi
cristy8b350f62009-11-15 23:12:43 +000025170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25171 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025172fi
25173
cristy3ed852e2009-09-05 21:47:34 +000025174fi
cristy8b350f62009-11-15 23:12:43 +000025175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025176$as_echo "$ac_cv_func_memcmp_working" >&6; }
25177test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25178 *" memcmp.$ac_objext "* ) ;;
25179 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25180 ;;
25181esac
25182
25183
cristy3ed852e2009-09-05 21:47:34 +000025184for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025185do :
25186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25187ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025188if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025189 cat >>confdefs.h <<_ACEOF
25190#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25191_ACEOF
25192
25193fi
25194
25195done
25196
cristy8b350f62009-11-15 23:12:43 +000025197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025198$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025199if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025200 $as_echo_n "(cached) " >&6
25201else
25202 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25203 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25204 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025206/* end confdefs.h. */
25207$ac_includes_default
25208#ifdef HAVE_SYS_SELECT_H
25209# include <sys/select.h>
25210#endif
25211#ifdef HAVE_SYS_SOCKET_H
25212# include <sys/socket.h>
25213#endif
25214
25215int
25216main ()
25217{
25218extern int select ($ac_arg1,
25219 $ac_arg234, $ac_arg234, $ac_arg234,
25220 $ac_arg5);
25221 ;
25222 return 0;
25223}
25224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025225if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025226 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025227fi
cristy3ed852e2009-09-05 21:47:34 +000025228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25229 done
25230 done
25231done
25232# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025233: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025234
25235fi
cristy8b350f62009-11-15 23:12:43 +000025236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025237$as_echo "$ac_cv_func_select_args" >&6; }
25238ac_save_IFS=$IFS; IFS=','
25239set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25240IFS=$ac_save_IFS
25241shift
25242
25243cat >>confdefs.h <<_ACEOF
25244#define SELECT_TYPE_ARG1 $1
25245_ACEOF
25246
25247
25248cat >>confdefs.h <<_ACEOF
25249#define SELECT_TYPE_ARG234 ($2)
25250_ACEOF
25251
25252
25253cat >>confdefs.h <<_ACEOF
25254#define SELECT_TYPE_ARG5 ($3)
25255_ACEOF
25256
25257rm -f conftest*
25258
cristyda16f162011-02-19 23:52:17 +000025259if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025260 $as_echo_n "(cached) " >&6
25261else
25262 ac_cv_func_setvbuf_reversed=no
25263fi
25264
25265
cristy8b350f62009-11-15 23:12:43 +000025266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025267$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025268if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025269 $as_echo_n "(cached) " >&6
25270else
cristy8b350f62009-11-15 23:12:43 +000025271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025272/* end confdefs.h. */
25273#include <sys/types.h>
25274#include <signal.h>
25275
25276int
25277main ()
25278{
25279return *(signal (0, 0)) (0) == 1;
25280 ;
25281 return 0;
25282}
25283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025284if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025285 ac_cv_type_signal=int
25286else
cristy8b350f62009-11-15 23:12:43 +000025287 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025288fi
cristy3ed852e2009-09-05 21:47:34 +000025289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25290fi
cristy8b350f62009-11-15 23:12:43 +000025291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025292$as_echo "$ac_cv_type_signal" >&6; }
25293
25294cat >>confdefs.h <<_ACEOF
25295#define RETSIGTYPE $ac_cv_type_signal
25296_ACEOF
25297
25298
cristy8b350f62009-11-15 23:12:43 +000025299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025300$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025301if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025302 $as_echo_n "(cached) " >&6
25303else
cristy8b350f62009-11-15 23:12:43 +000025304 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025305 ac_cv_func_strtod=no
25306else
cristy8b350f62009-11-15 23:12:43 +000025307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025308/* end confdefs.h. */
25309
25310$ac_includes_default
25311#ifndef strtod
25312double strtod ();
25313#endif
25314int
25315main()
25316{
25317 {
25318 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25319 char *string = " +69";
25320 char *term;
25321 double value;
25322 value = strtod (string, &term);
25323 if (value != 69 || term != (string + 4))
25324 return 1;
25325 }
25326
25327 {
25328 /* Under Solaris 2.4, strtod returns the wrong value for the
25329 terminating character under some conditions. */
25330 char *string = "NaN";
25331 char *term;
25332 strtod (string, &term);
25333 if (term != string && *(term - 1) == 0)
25334 return 1;
25335 }
25336 return 0;
25337}
25338
25339_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025340if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025341 ac_cv_func_strtod=yes
25342else
cristy8b350f62009-11-15 23:12:43 +000025343 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025344fi
cristy8b350f62009-11-15 23:12:43 +000025345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25346 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025347fi
25348
cristy3ed852e2009-09-05 21:47:34 +000025349fi
cristy8b350f62009-11-15 23:12:43 +000025350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025351$as_echo "$ac_cv_func_strtod" >&6; }
25352if test $ac_cv_func_strtod = no; then
25353 case " $LIBOBJS " in
25354 *" strtod.$ac_objext "* ) ;;
25355 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25356 ;;
25357esac
25358
cristy8b350f62009-11-15 23:12:43 +000025359ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025360if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025361
cristy3ed852e2009-09-05 21:47:34 +000025362fi
25363
cristy3ed852e2009-09-05 21:47:34 +000025364if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025366$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025367if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025368 $as_echo_n "(cached) " >&6
25369else
25370 ac_check_lib_save_LIBS=$LIBS
25371LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025373/* end confdefs.h. */
25374
25375/* Override any GCC internal prototype to avoid an error.
25376 Use char because int might match the return type of a GCC
25377 builtin and then its argument prototype would still apply. */
25378#ifdef __cplusplus
25379extern "C"
25380#endif
25381char pow ();
25382int
25383main ()
25384{
25385return pow ();
25386 ;
25387 return 0;
25388}
25389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025390if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025391 ac_cv_lib_m_pow=yes
25392else
cristy8b350f62009-11-15 23:12:43 +000025393 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025394fi
cristy8b350f62009-11-15 23:12:43 +000025395rm -f core conftest.err conftest.$ac_objext \
25396 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025397LIBS=$ac_check_lib_save_LIBS
25398fi
cristy8b350f62009-11-15 23:12:43 +000025399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025400$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025401if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025402 POW_LIB=-lm
25403else
cristy8b350f62009-11-15 23:12:43 +000025404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025405$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25406fi
25407
25408fi
25409
25410fi
25411
cristy7d4a1d62011-10-13 15:54:12 +000025412ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25413if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25414 ac_have_decl=1
25415else
25416 ac_have_decl=0
25417fi
25418
25419cat >>confdefs.h <<_ACEOF
25420#define HAVE_DECL_STRERROR_R $ac_have_decl
25421_ACEOF
25422
25423for ac_func in strerror_r
25424do :
25425 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25426if test "x$ac_cv_func_strerror_r" = xyes; then :
25427 cat >>confdefs.h <<_ACEOF
25428#define HAVE_STRERROR_R 1
25429_ACEOF
25430
25431fi
25432done
25433
25434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25435$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25436if ${ac_cv_func_strerror_r_char_p+:} false; then :
25437 $as_echo_n "(cached) " >&6
25438else
25439
25440 ac_cv_func_strerror_r_char_p=no
25441 if test $ac_cv_have_decl_strerror_r = yes; then
25442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25443/* end confdefs.h. */
25444$ac_includes_default
25445int
25446main ()
25447{
25448
25449 char buf[100];
25450 char x = *strerror_r (0, buf, sizeof buf);
25451 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025452 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025453
25454 ;
25455 return 0;
25456}
25457_ACEOF
25458if ac_fn_c_try_compile "$LINENO"; then :
25459 ac_cv_func_strerror_r_char_p=yes
25460fi
25461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25462 else
25463 # strerror_r is not declared. Choose between
25464 # systems that have relatively inaccessible declarations for the
25465 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25466 # former has a strerror_r that returns char*, while the latter
25467 # has a strerror_r that returns `int'.
25468 # This test should segfault on the DEC system.
25469 if test "$cross_compiling" = yes; then :
25470 :
25471else
25472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25473/* end confdefs.h. */
25474$ac_includes_default
25475 extern char *strerror_r ();
25476int
25477main ()
25478{
25479char buf[100];
25480 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025481 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025482 ;
25483 return 0;
25484}
25485_ACEOF
25486if ac_fn_c_try_run "$LINENO"; then :
25487 ac_cv_func_strerror_r_char_p=yes
25488fi
25489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25490 conftest.$ac_objext conftest.beam conftest.$ac_ext
25491fi
25492
25493 fi
25494
25495fi
25496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25497$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25498if test $ac_cv_func_strerror_r_char_p = yes; then
25499
25500$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25501
25502fi
25503
cristy3ed852e2009-09-05 21:47:34 +000025504for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025505do :
25506 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025507if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025508 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025509#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025510_ACEOF
25511
cristy8b350f62009-11-15 23:12:43 +000025512ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025513if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025514
cristy8b350f62009-11-15 23:12:43 +000025515$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025516
25517fi
25518
25519fi
25520done
25521
25522
25523
cristy161b9262010-03-20 19:34:32 +000025524#
25525# Find math library
25526#
25527MATH_LIBS=''
25528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25529$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025530if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025531 $as_echo_n "(cached) " >&6
25532else
25533 ac_check_lib_save_LIBS=$LIBS
25534LIBS="-lm $LIBS"
25535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25536/* end confdefs.h. */
25537
25538/* Override any GCC internal prototype to avoid an error.
25539 Use char because int might match the return type of a GCC
25540 builtin and then its argument prototype would still apply. */
25541#ifdef __cplusplus
25542extern "C"
25543#endif
25544char sqrt ();
25545int
25546main ()
25547{
25548return sqrt ();
25549 ;
25550 return 0;
25551}
25552_ACEOF
25553if ac_fn_c_try_link "$LINENO"; then :
25554 ac_cv_lib_m_sqrt=yes
25555else
25556 ac_cv_lib_m_sqrt=no
25557fi
25558rm -f core conftest.err conftest.$ac_objext \
25559 conftest$ac_exeext conftest.$ac_ext
25560LIBS=$ac_check_lib_save_LIBS
25561fi
25562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25563$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025564if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025565 MATH_LIBS="-lm"
25566fi
25567
25568LIBS="$MATH_LIBS $LIBS"
25569
25570
cristy568c2d42012-07-27 01:41:20 +000025571for 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 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 +000025572do :
25573 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25574ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025575if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025576 cat >>confdefs.h <<_ACEOF
25577#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25578_ACEOF
25579
25580fi
25581done
25582
25583
cristye43a45e2009-09-28 14:49:00 +000025584#
25585# Check for clock_gettime().
25586#
cristy8b350f62009-11-15 23:12:43 +000025587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025588$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025589if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025590 $as_echo_n "(cached) " >&6
25591else
25592 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025594/* end confdefs.h. */
25595
25596/* Override any GCC internal prototype to avoid an error.
25597 Use char because int might match the return type of a GCC
25598 builtin and then its argument prototype would still apply. */
25599#ifdef __cplusplus
25600extern "C"
25601#endif
25602char clock_gettime ();
25603int
25604main ()
25605{
25606return clock_gettime ();
25607 ;
25608 return 0;
25609}
25610_ACEOF
25611for ac_lib in '' rt; do
25612 if test -z "$ac_lib"; then
25613 ac_res="none required"
25614 else
25615 ac_res=-l$ac_lib
25616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25617 fi
cristy8b350f62009-11-15 23:12:43 +000025618 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025619 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025620fi
cristy8b350f62009-11-15 23:12:43 +000025621rm -f core conftest.err conftest.$ac_objext \
25622 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025623 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025624 break
25625fi
25626done
cristyda16f162011-02-19 23:52:17 +000025627if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025628
cristye43a45e2009-09-28 14:49:00 +000025629else
25630 ac_cv_search_clock_gettime=no
25631fi
25632rm conftest.$ac_ext
25633LIBS=$ac_func_search_save_LIBS
25634fi
cristy8b350f62009-11-15 23:12:43 +000025635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025636$as_echo "$ac_cv_search_clock_gettime" >&6; }
25637ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025638if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25640
25641
cristy8b350f62009-11-15 23:12:43 +000025642$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025643
cristy8b350f62009-11-15 23:12:43 +000025644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025645$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025647/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025648
25649 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025650int
25651main ()
25652{
25653clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025654 ;
25655 return 0;
25656}
25657_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025658if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025659
cristy09b53e12011-10-14 12:47:22 +000025660 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25661$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025662
cristy8b350f62009-11-15 23:12:43 +000025663$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025664
25665
25666else
cristy09b53e12011-10-14 12:47:22 +000025667 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25668$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025669
25670fi
cristye43a45e2009-09-28 14:49:00 +000025671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25672
25673else
25674
cristy8b350f62009-11-15 23:12:43 +000025675 for ac_func in gettimeofday ftime
25676do :
25677 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25678ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025679if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025680 cat >>confdefs.h <<_ACEOF
25681#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25682_ACEOF
25683 break
25684fi
25685done
25686
25687
25688
25689fi
25690
25691
cristy3ed852e2009-09-05 21:47:34 +000025692########
25693#
25694# Check for function prototypes
25695#
25696########
25697
cristy8b350f62009-11-15 23:12:43 +000025698ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025699#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025700"
cristyda16f162011-02-19 23:52:17 +000025701if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025702 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025703else
cristy8b350f62009-11-15 23:12:43 +000025704 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025705fi
25706
cristy3ed852e2009-09-05 21:47:34 +000025707cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025708#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025710ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025711#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025712"
cristyda16f162011-02-19 23:52:17 +000025713if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025714 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025715else
cristy8b350f62009-11-15 23:12:43 +000025716 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025717fi
25718
cristy3ed852e2009-09-05 21:47:34 +000025719cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025720#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025721_ACEOF
25722
25723
cristy8b350f62009-11-15 23:12:43 +000025724ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025725#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025726"
cristyda16f162011-02-19 23:52:17 +000025727if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025728 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025729else
cristy8b350f62009-11-15 23:12:43 +000025730 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025731fi
25732
cristy3ed852e2009-09-05 21:47:34 +000025733cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025734#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025735_ACEOF
25736
25737
cristy8b350f62009-11-15 23:12:43 +000025738ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025739#include <stdio.h>
25740#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025741"
cristyda16f162011-02-19 23:52:17 +000025742if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025743 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025744else
cristy8b350f62009-11-15 23:12:43 +000025745 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025746fi
25747
cristy3ed852e2009-09-05 21:47:34 +000025748cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025749#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025750_ACEOF
25751
25752
cristy3ed852e2009-09-05 21:47:34 +000025753########
25754#
25755# C++ Support Tests (For Magick++)
25756#
25757########
25758have_magick_plus_plus='no'
25759if test "$with_magick_plus_plus" = 'yes'; then
25760 OLIBS="$LIBS"
25761 LIBS=''
25762 ac_ext=cpp
25763ac_cpp='$CXXCPP $CPPFLAGS'
25764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25767
25768
25769 # Full set of headers used...
25770 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25771 # functional iomanip iosfwd iostream iterator list string strstream utility
25772 ac_ext=cpp
25773ac_cpp='$CXXCPP $CPPFLAGS'
25774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25777
25778 ac_ext=cpp
25779ac_cpp='$CXXCPP $CPPFLAGS'
25780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25783if test -z "$CXX"; then
25784 if test -n "$CCC"; then
25785 CXX=$CCC
25786 else
25787 if test -n "$ac_tool_prefix"; then
25788 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25789 do
25790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025794if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025795 $as_echo_n "(cached) " >&6
25796else
25797 if test -n "$CXX"; then
25798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25799else
25800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25801for as_dir in $PATH
25802do
25803 IFS=$as_save_IFS
25804 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025809 break 2
25810 fi
25811done
cristy8b350f62009-11-15 23:12:43 +000025812 done
cristy3ed852e2009-09-05 21:47:34 +000025813IFS=$as_save_IFS
25814
25815fi
25816fi
25817CXX=$ac_cv_prog_CXX
25818if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025820$as_echo "$CXX" >&6; }
25821else
cristy8b350f62009-11-15 23:12:43 +000025822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025823$as_echo "no" >&6; }
25824fi
25825
25826
25827 test -n "$CXX" && break
25828 done
25829fi
25830if test -z "$CXX"; then
25831 ac_ct_CXX=$CXX
25832 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25833do
25834 # Extract the first word of "$ac_prog", so it can be a program name with args.
25835set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025837$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025838if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025839 $as_echo_n "(cached) " >&6
25840else
25841 if test -n "$ac_ct_CXX"; then
25842 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25843else
25844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25845for as_dir in $PATH
25846do
25847 IFS=$as_save_IFS
25848 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025851 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025853 break 2
25854 fi
25855done
cristy8b350f62009-11-15 23:12:43 +000025856 done
cristy3ed852e2009-09-05 21:47:34 +000025857IFS=$as_save_IFS
25858
25859fi
25860fi
25861ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25862if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025864$as_echo "$ac_ct_CXX" >&6; }
25865else
cristy8b350f62009-11-15 23:12:43 +000025866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025867$as_echo "no" >&6; }
25868fi
25869
25870
25871 test -n "$ac_ct_CXX" && break
25872done
25873
25874 if test "x$ac_ct_CXX" = x; then
25875 CXX="g++"
25876 else
25877 case $cross_compiling:$ac_tool_warned in
25878yes:)
cristy8b350f62009-11-15 23:12:43 +000025879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25881ac_tool_warned=yes ;;
25882esac
25883 CXX=$ac_ct_CXX
25884 fi
25885fi
25886
25887 fi
25888fi
25889# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025890$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025891set X $ac_compile
25892ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025893for ac_option in --version -v -V -qversion; do
25894 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025895case "(($ac_try" in
25896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25897 *) ac_try_echo=$ac_try;;
25898esac
cristy8b350f62009-11-15 23:12:43 +000025899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25900$as_echo "$ac_try_echo"; } >&5
25901 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025902 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025903 if test -s conftest.err; then
25904 sed '10a\
25905... rest of stderr output deleted ...
25906 10q' conftest.err >conftest.er1
25907 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025908 fi
cristycd4c5312009-11-22 01:19:08 +000025909 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25911 test $ac_status = 0; }
25912done
cristy3ed852e2009-09-05 21:47:34 +000025913
cristy8b350f62009-11-15 23:12:43 +000025914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025915$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025916if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025917 $as_echo_n "(cached) " >&6
25918else
cristy8b350f62009-11-15 23:12:43 +000025919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025920/* end confdefs.h. */
25921
25922int
25923main ()
25924{
25925#ifndef __GNUC__
25926 choke me
25927#endif
25928
25929 ;
25930 return 0;
25931}
25932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025933if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025934 ac_compiler_gnu=yes
25935else
cristy8b350f62009-11-15 23:12:43 +000025936 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025937fi
cristy3ed852e2009-09-05 21:47:34 +000025938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25939ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25940
25941fi
cristy8b350f62009-11-15 23:12:43 +000025942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025943$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25944if test $ac_compiler_gnu = yes; then
25945 GXX=yes
25946else
25947 GXX=
25948fi
25949ac_test_CXXFLAGS=${CXXFLAGS+set}
25950ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025952$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025953if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025954 $as_echo_n "(cached) " >&6
25955else
25956 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25957 ac_cxx_werror_flag=yes
25958 ac_cv_prog_cxx_g=no
25959 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025961/* end confdefs.h. */
25962
25963int
25964main ()
25965{
25966
25967 ;
25968 return 0;
25969}
25970_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025971if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025972 ac_cv_prog_cxx_g=yes
25973else
cristy8b350f62009-11-15 23:12:43 +000025974 CXXFLAGS=""
25975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025976/* end confdefs.h. */
25977
25978int
25979main ()
25980{
25981
25982 ;
25983 return 0;
25984}
25985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025986if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025987
cristy8b350f62009-11-15 23:12:43 +000025988else
25989 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025990 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025992/* end confdefs.h. */
25993
25994int
25995main ()
25996{
25997
25998 ;
25999 return 0;
26000}
26001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026002if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026003 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026004fi
cristy3ed852e2009-09-05 21:47:34 +000026005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26006fi
cristy3ed852e2009-09-05 21:47:34 +000026007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26008fi
cristy3ed852e2009-09-05 21:47:34 +000026009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26010 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26011fi
cristy8b350f62009-11-15 23:12:43 +000026012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026013$as_echo "$ac_cv_prog_cxx_g" >&6; }
26014if test "$ac_test_CXXFLAGS" = set; then
26015 CXXFLAGS=$ac_save_CXXFLAGS
26016elif test $ac_cv_prog_cxx_g = yes; then
26017 if test "$GXX" = yes; then
26018 CXXFLAGS="-g -O2"
26019 else
26020 CXXFLAGS="-g"
26021 fi
26022else
26023 if test "$GXX" = yes; then
26024 CXXFLAGS="-O2"
26025 else
26026 CXXFLAGS=
26027 fi
26028fi
26029ac_ext=cpp
26030ac_cpp='$CXXCPP $CPPFLAGS'
26031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26034
cristy73bd4a52010-10-05 11:24:23 +000026035depcc="$CXX" am_compiler_list=
26036
26037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26038$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026039if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026040 $as_echo_n "(cached) " >&6
26041else
26042 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26043 # We make a subdir and do the tests there. Otherwise we can end up
26044 # making bogus files that we don't know about and never remove. For
26045 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026046 # making a dummy file named 'D' -- because '-MD' means "put the output
26047 # in D".
cristy7247bba2012-02-05 16:37:27 +000026048 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026049 mkdir conftest.dir
26050 # Copy depcomp to subdir because otherwise we won't find it if we're
26051 # using a relative directory.
26052 cp "$am_depcomp" conftest.dir
26053 cd conftest.dir
26054 # We will build objects and dependencies in a subdirectory because
26055 # it helps to detect inapplicable dependency modes. For instance
26056 # both Tru64's cc and ICC support -MD to output dependencies as a
26057 # side effect of compilation, but ICC will put the dependencies in
26058 # the current directory while Tru64 will put them in the object
26059 # directory.
26060 mkdir sub
26061
26062 am_cv_CXX_dependencies_compiler_type=none
26063 if test "$am_compiler_list" = ""; then
26064 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26065 fi
26066 am__universal=false
26067 case " $depcc " in #(
26068 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26069 esac
26070
26071 for depmode in $am_compiler_list; do
26072 # Setup a source with many dependencies, because some compilers
26073 # like to wrap large dependency lists on column 80 (with \), and
26074 # we should not choose a depcomp mode which is confused by this.
26075 #
26076 # We need to recreate these files for each test, as the compiler may
26077 # overwrite some of them when testing with obscure command lines.
26078 # This happens at least with the AIX C compiler.
26079 : > sub/conftest.c
26080 for i in 1 2 3 4 5 6; do
26081 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026082 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26083 # Solaris 10 /bin/sh.
26084 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026085 done
26086 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26087
cristyc0890a62012-07-19 00:18:20 +000026088 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026089 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026090 # handle '-M -o', and we need to detect this. Also, some Intel
26091 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026092 am__obj=sub/conftest.${OBJEXT-o}
26093 am__minus_obj="-o $am__obj"
26094 case $depmode in
26095 gcc)
26096 # This depmode causes a compiler race in universal mode.
26097 test "$am__universal" = false || continue
26098 ;;
26099 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026100 # After this tag, mechanisms are not by side-effect, so they'll
26101 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026102 if test "x$enable_dependency_tracking" = xyes; then
26103 continue
26104 else
26105 break
26106 fi
26107 ;;
cristy7247bba2012-02-05 16:37:27 +000026108 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026109 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026110 # not run yet. These depmodes are late enough in the game, and
26111 # so weak that their functioning should not be impacted.
26112 am__obj=conftest.${OBJEXT-o}
26113 am__minus_obj=
26114 ;;
26115 none) break ;;
26116 esac
26117 if depmode=$depmode \
26118 source=sub/conftest.c object=$am__obj \
26119 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26120 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26121 >/dev/null 2>conftest.err &&
26122 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26123 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26124 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26125 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26126 # icc doesn't choke on unknown options, it will just issue warnings
26127 # or remarks (even with -Werror). So we grep stderr for any message
26128 # that says an option was ignored or not supported.
26129 # When given -MP, icc 7.0 and 7.1 complain thusly:
26130 # icc: Command line warning: ignoring option '-M'; no argument required
26131 # The diagnosis changed in icc 8.0:
26132 # icc: Command line remark: option '-MP' not supported
26133 if (grep 'ignoring option' conftest.err ||
26134 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26135 am_cv_CXX_dependencies_compiler_type=$depmode
26136 break
26137 fi
26138 fi
26139 done
26140
26141 cd ..
26142 rm -rf conftest.dir
26143else
26144 am_cv_CXX_dependencies_compiler_type=none
26145fi
26146
26147fi
26148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26149$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26150CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26151
26152 if
26153 test "x$enable_dependency_tracking" != xno \
26154 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26155 am__fastdepCXX_TRUE=
26156 am__fastdepCXX_FALSE='#'
26157else
26158 am__fastdepCXX_TRUE='#'
26159 am__fastdepCXX_FALSE=
26160fi
26161
26162
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26164$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026165if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026166 $as_echo_n "(cached) " >&6
26167else
26168
26169 ac_ext=cpp
26170ac_cpp='$CXXCPP $CPPFLAGS'
26171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26174
26175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26176/* end confdefs.h. */
26177
26178int f(int x){return 1;}
26179int f(char x){return 1;}
26180int f(bool x){return 1;}
26181
26182int
26183main ()
26184{
26185bool b = true; return f(b);
26186 ;
26187 return 0;
26188}
26189_ACEOF
26190if ac_fn_cxx_try_compile "$LINENO"; then :
26191 ax_cv_cxx_bool=yes
26192else
26193 ax_cv_cxx_bool=no
26194fi
26195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26196 ac_ext=cpp
26197ac_cpp='$CXXCPP $CPPFLAGS'
26198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26201
26202
26203fi
26204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26205$as_echo "$ax_cv_cxx_bool" >&6; }
26206if test "$ax_cv_cxx_bool" = yes; then
26207
26208$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26209
26210fi
26211
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26213$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026214if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026215 $as_echo_n "(cached) " >&6
26216else
26217
26218 ac_ext=cpp
26219ac_cpp='$CXXCPP $CPPFLAGS'
26220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26223
26224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26225/* end confdefs.h. */
26226namespace Outer { namespace Inner { int i = 0; }}
26227int
26228main ()
26229{
26230using namespace Outer::Inner; return i;
26231 ;
26232 return 0;
26233}
26234_ACEOF
26235if ac_fn_cxx_try_compile "$LINENO"; then :
26236 ax_cv_cxx_namespaces=yes
26237else
26238 ax_cv_cxx_namespaces=no
26239fi
26240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26241 ac_ext=cpp
26242ac_cpp='$CXXCPP $CPPFLAGS'
26243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26246
26247
26248fi
26249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26250$as_echo "$ax_cv_cxx_namespaces" >&6; }
26251if test "$ax_cv_cxx_namespaces" = yes; then
26252
26253$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26254
26255fi
26256
26257
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26259$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026260if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026261 $as_echo_n "(cached) " >&6
26262else
26263
26264 ac_ext=cpp
26265ac_cpp='$CXXCPP $CPPFLAGS'
26266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26269
26270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26271/* end confdefs.h. */
26272#include <iostream>
26273 std::istream& is = std::cin;
26274int
26275main ()
26276{
26277
26278 ;
26279 return 0;
26280}
26281_ACEOF
26282if ac_fn_cxx_try_compile "$LINENO"; then :
26283 ax_cv_cxx_have_std_namespace=yes
26284else
26285 ax_cv_cxx_have_std_namespace=no
26286fi
26287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26288 ac_ext=cpp
26289ac_cpp='$CXXCPP $CPPFLAGS'
26290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26293
26294
26295fi
26296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26297$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26298 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26299
26300$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26301
26302 fi
26303
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26305$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026306if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026307 $as_echo_n "(cached) " >&6
26308else
26309
26310
26311 ac_ext=cpp
26312ac_cpp='$CXXCPP $CPPFLAGS'
26313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26316
26317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26318/* end confdefs.h. */
26319#include <iostream>
26320#include <map>
26321#include <iomanip>
26322#include <cmath>
26323#ifdef HAVE_NAMESPACES
26324using namespace std;
26325#endif
26326int
26327main ()
26328{
26329return 0;
26330 ;
26331 return 0;
26332}
26333_ACEOF
26334if ac_fn_cxx_try_compile "$LINENO"; then :
26335 ac_cv_cxx_have_std_libs=yes
26336else
26337 ac_cv_cxx_have_std_libs=no
26338fi
26339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26340 ac_ext=cpp
26341ac_cpp='$CXXCPP $CPPFLAGS'
26342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26345
26346
26347fi
26348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26349$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26350if test "$ac_cv_cxx_have_std_libs" = yes; then
26351
26352$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26353
26354fi
26355
cristy3ed852e2009-09-05 21:47:34 +000026356
26357 OPENMP_CXXFLAGS=
26358 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026359if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026360 enableval=$enable_openmp;
26361fi
26362
26363 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26365$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026366if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026367 $as_echo_n "(cached) " >&6
26368else
cristy8b350f62009-11-15 23:12:43 +000026369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26370/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026371
26372#ifndef _OPENMP
26373 choke me
26374#endif
26375#include <omp.h>
26376int main () { return omp_get_num_threads (); }
26377
26378_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026379if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026380 ac_cv_prog_cxx_openmp='none needed'
26381else
cristy8b350f62009-11-15 23:12:43 +000026382 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026383 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26384 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026385 ac_save_CXXFLAGS=$CXXFLAGS
26386 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26388/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026389
26390#ifndef _OPENMP
26391 choke me
26392#endif
26393#include <omp.h>
26394int main () { return omp_get_num_threads (); }
26395
26396_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026397if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026398 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026399fi
cristy8b350f62009-11-15 23:12:43 +000026400rm -f core conftest.err conftest.$ac_objext \
26401 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026402 CXXFLAGS=$ac_save_CXXFLAGS
26403 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26404 break
26405 fi
26406 done
26407fi
cristy8b350f62009-11-15 23:12:43 +000026408rm -f core conftest.err conftest.$ac_objext \
26409 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026410fi
cristy8b350f62009-11-15 23:12:43 +000026411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026412$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26413 case $ac_cv_prog_cxx_openmp in #(
26414 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026415 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026416 *)
cristy8b350f62009-11-15 23:12:43 +000026417 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026418 esac
26419 fi
26420
26421
26422 ac_ext=c
26423ac_cpp='$CPP $CPPFLAGS'
26424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26426ac_compiler_gnu=$ac_cv_c_compiler_gnu
26427
26428
cristy8b350f62009-11-15 23:12:43 +000026429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026430$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26431 if \
cristy964cb7f2010-04-25 23:18:00 +000026432 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026433 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026434 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026435 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026436 have_magick_plus_plus='yes'
26437 else
26438 have_magick_plus_plus='no (failed tests)'
26439 fi
cristy09b53e12011-10-14 12:47:22 +000026440 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26441$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026442 LIBS="$OLIBS"
26443fi
cristy73bd4a52010-10-05 11:24:23 +000026444 if test "$have_magick_plus_plus" = 'yes'; then
26445 WITH_MAGICK_PLUS_PLUS_TRUE=
26446 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26447else
26448 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26449 WITH_MAGICK_PLUS_PLUS_FALSE=
26450fi
26451
cristy3ed852e2009-09-05 21:47:34 +000026452
26453# Only check for delegate libraries in subdirectories if requested.
26454if test "$enable_delegate_build" != 'no'; then
26455 # Check for delegate sub-directories and add -I & -L options as required.
26456 # This presumes that delegates are installed as detailed in the ImageMagick
26457 # README. If delegates are installed in a standard location where the
26458 # compiler will automatically find them then these options should not be
26459 # required.
26460
26461 #
26462 # Most delegates have includes in the same directory as the library, but not all...
26463 #
26464 # Includes
cristy2542fc62011-12-06 17:50:25 +000026465 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 +000026466 if test -d "$builddir/$dir"; then
26467 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26468 else
26469 if test -d "$srcdirfull/$dir"; then
26470 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26471 fi
26472 fi
26473 done
26474
26475 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026476 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 +000026477 if test -d "$builddir/$dir/.libs"; then
26478 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26479 else
26480 if test -d "$srcdirfull/$dir/.libs"; then
26481 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26482 fi
26483 fi
26484 if test -d "$builddir/$dir"; then
26485 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26486 else
26487 if test -d "$srcdirfull/$dir"; then
26488 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26489 fi
26490 fi
26491 done
26492fi
26493
26494# Assume that delegate headers reside under same directory as ImageMagick
26495# installation prefix.
26496MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26497
26498#
26499# Find the X11 RGB database
26500#
cristy8b350f62009-11-15 23:12:43 +000026501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026502$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026503if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026504 $as_echo_n "(cached) " >&6
26505else
26506 # Look for the header file in a standard set of common directories.
26507# Check X11 before X11Rn because it is often a symlink to the current release.
26508 for ac_dir in \
26509 /lib/usr/lib/X11 \
26510 /usr/X11/lib \
26511 /usr/X11R4/lib \
26512 /usr/X11R5/lib \
26513 /usr/X11R6/lib \
26514 /usr/X11R7/lib \
26515 /usr/X386/lib \
26516 /usr/XFree86/lib/X11 \
26517 /usr/athena/lib \
26518 /usr/lib \
26519 /usr/lib/X11 \
26520 /usr/lib/X11R4 \
26521 /usr/lib/X11R5 \
26522 /usr/lib/X11R6 \
26523 /usr/lib/X11R7 \
26524 /usr/local/X11/lib \
26525 /usr/local/X11R4/lib \
26526 /usr/local/X11R5/lib \
26527 /usr/local/X11R6/lib \
26528 /usr/local/lib \
26529 /usr/local/lib/X11 \
26530 /usr/local/lib/X11R4 \
26531 /usr/local/lib/X11R5 \
26532 /usr/local/lib/X11R6 \
26533 /usr/local/lib/X11R7 \
26534 /usr/local/x11r5/lib \
26535 /usr/lpp/Xamples/lib \
26536 /usr/openwin/lib \
26537 /usr/openwin/share/lib \
26538 /usr/unsupported/lib \
26539 /usr/x386/lib \
26540 ; do
26541 if test -f "$ac_dir/X11/rgb.txt"; then
26542 im_cv_x_configure="$ac_dir/X11/"
26543 break
26544 elif test -f "$ac_dir/rgb.txt"; then
26545 im_cv_x_configure="$ac_dir/"
26546 break
26547 fi
26548
26549 done
26550fi
cristy8b350f62009-11-15 23:12:43 +000026551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026552$as_echo "$im_cv_x_configure" >&6; }
26553X11_CONFIGURE_PATH="$im_cv_x_configure"
26554case "${build_os}" in
26555 mingw* )
26556 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26557 ;;
26558esac
26559
26560cat >>confdefs.h <<_ACEOF
26561#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26562_ACEOF
26563
26564
26565#
26566# Find OpenMP library
26567#
26568GOMP_LIBS=''
26569if test "$enable_openmp" != 'no'; then
26570 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026571 # Open64 (passes for GCC but uses different OpenMP implementation)
26572 if test "x$GOMP_LIBS" = x ; then
26573 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26575$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26576if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26577 $as_echo_n "(cached) " >&6
26578else
26579 ac_check_lib_save_LIBS=$LIBS
26580LIBS="-lopenmp $LIBS"
26581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26582/* end confdefs.h. */
26583
26584/* Override any GCC internal prototype to avoid an error.
26585 Use char because int might match the return type of a GCC
26586 builtin and then its argument prototype would still apply. */
26587#ifdef __cplusplus
26588extern "C"
26589#endif
26590char omp_get_num_procs ();
26591int
26592main ()
26593{
26594return omp_get_num_procs ();
26595 ;
26596 return 0;
26597}
26598_ACEOF
26599if ac_fn_c_try_link "$LINENO"; then :
26600 ac_cv_lib_openmp_omp_get_num_procs=yes
26601else
26602 ac_cv_lib_openmp_omp_get_num_procs=no
26603fi
26604rm -f core conftest.err conftest.$ac_objext \
26605 conftest$ac_exeext conftest.$ac_ext
26606LIBS=$ac_check_lib_save_LIBS
26607fi
26608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26609$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26610if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26611 GOMP_LIBS="-lopenmp"
26612fi
26613
26614 fi
26615 fi
26616 # GCC
26617 if test "x$GOMP_LIBS" = x ; then
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026619$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026620if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026621 $as_echo_n "(cached) " >&6
26622else
26623 ac_check_lib_save_LIBS=$LIBS
26624LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026626/* end confdefs.h. */
26627
26628/* Override any GCC internal prototype to avoid an error.
26629 Use char because int might match the return type of a GCC
26630 builtin and then its argument prototype would still apply. */
26631#ifdef __cplusplus
26632extern "C"
26633#endif
26634char GOMP_parallel_start ();
26635int
26636main ()
26637{
26638return GOMP_parallel_start ();
26639 ;
26640 return 0;
26641}
26642_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026643if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026644 ac_cv_lib_gomp_GOMP_parallel_start=yes
26645else
cristy8b350f62009-11-15 23:12:43 +000026646 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026647fi
cristy8b350f62009-11-15 23:12:43 +000026648rm -f core conftest.err conftest.$ac_objext \
26649 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026650LIBS=$ac_check_lib_save_LIBS
26651fi
cristy8b350f62009-11-15 23:12:43 +000026652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026653$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026654if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026655 GOMP_LIBS="-lgomp"
26656fi
cristy18307f12011-12-30 01:20:16 +000026657
26658 fi
cristy3ed852e2009-09-05 21:47:34 +000026659 else
cristy18307f12011-12-30 01:20:16 +000026660 # Sun CC
26661 if test "x$GOMP_LIBS" = x ; then
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026663$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026664if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026665 $as_echo_n "(cached) " >&6
26666else
26667 ac_check_lib_save_LIBS=$LIBS
26668LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026670/* end confdefs.h. */
26671
26672/* Override any GCC internal prototype to avoid an error.
26673 Use char because int might match the return type of a GCC
26674 builtin and then its argument prototype would still apply. */
26675#ifdef __cplusplus
26676extern "C"
26677#endif
26678char sunw_mp_register_warn ();
26679int
26680main ()
26681{
26682return sunw_mp_register_warn ();
26683 ;
26684 return 0;
26685}
26686_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026687if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026688 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26689else
cristy8b350f62009-11-15 23:12:43 +000026690 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026691fi
cristy8b350f62009-11-15 23:12:43 +000026692rm -f core conftest.err conftest.$ac_objext \
26693 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026694LIBS=$ac_check_lib_save_LIBS
26695fi
cristy8b350f62009-11-15 23:12:43 +000026696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026697$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026698if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026699 GOMP_LIBS="-lmtsk"
26700fi
cristy18307f12011-12-30 01:20:16 +000026701
26702 fi
26703 # AIX xlc
26704 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026706$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026707if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026708 $as_echo_n "(cached) " >&6
26709else
26710 ac_check_lib_save_LIBS=$LIBS
26711LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026713/* end confdefs.h. */
26714
26715/* Override any GCC internal prototype to avoid an error.
26716 Use char because int might match the return type of a GCC
26717 builtin and then its argument prototype would still apply. */
26718#ifdef __cplusplus
26719extern "C"
26720#endif
26721char _xlsmpFlush ();
26722int
26723main ()
26724{
26725return _xlsmpFlush ();
26726 ;
26727 return 0;
26728}
26729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026730if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026731 ac_cv_lib_xlsmp__xlsmpFlush=yes
26732else
cristy8b350f62009-11-15 23:12:43 +000026733 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026734fi
cristy8b350f62009-11-15 23:12:43 +000026735rm -f core conftest.err conftest.$ac_objext \
26736 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026737LIBS=$ac_check_lib_save_LIBS
26738fi
cristy8b350f62009-11-15 23:12:43 +000026739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026740$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026741if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026742 GOMP_LIBS="-lxlsmp"
26743fi
cristy18307f12011-12-30 01:20:16 +000026744
26745 fi
26746 # SGI IRIX 6.5 MIPSpro C/C++
26747 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026749$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026750if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026751 $as_echo_n "(cached) " >&6
26752else
26753 ac_check_lib_save_LIBS=$LIBS
26754LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026756/* end confdefs.h. */
26757
26758/* Override any GCC internal prototype to avoid an error.
26759 Use char because int might match the return type of a GCC
26760 builtin and then its argument prototype would still apply. */
26761#ifdef __cplusplus
26762extern "C"
26763#endif
26764char mp_destroy ();
26765int
26766main ()
26767{
26768return mp_destroy ();
26769 ;
26770 return 0;
26771}
26772_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026773if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026774 ac_cv_lib_mp_mp_destroy=yes
26775else
cristy8b350f62009-11-15 23:12:43 +000026776 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026777fi
cristy8b350f62009-11-15 23:12:43 +000026778rm -f core conftest.err conftest.$ac_objext \
26779 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026780LIBS=$ac_check_lib_save_LIBS
26781fi
cristy8b350f62009-11-15 23:12:43 +000026782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026783$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026784if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026785 GOMP_LIBS="-lmp"
26786fi
cristy18307f12011-12-30 01:20:16 +000026787
26788 fi
cristy3ed852e2009-09-05 21:47:34 +000026789 fi
26790 LIBS="$GOMP_LIBS $LIBS"
26791fi
26792
26793
26794#
26795# Find Posix threads library
26796#
26797THREAD_LIBS=''
26798if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26799
26800 if test "x$PTHREAD_LIBS" = "x"; then
26801 case "${host_cpu}-${host_os}" in
26802 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026803
26804
26805
26806ac_ext=c
26807ac_cpp='$CPP $CPPFLAGS'
26808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26810ac_compiler_gnu=$ac_cv_c_compiler_gnu
26811
26812magick_pthread_lib_ok=no
26813
26814LIB=-lc_r
26815save_LIBS="$LIBS"
26816LIBS="$LIBS $LIB"
26817
26818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26819$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26821/* end confdefs.h. */
26822#include <pthread.h>
26823int
26824main ()
26825{
26826 pthread_t th;
26827 pthread_join(th, 0);
26828 pthread_attr_init(0);
26829 pthread_cleanup_push(0, 0);
26830 pthread_create(0,0,0,0);
26831 pthread_cleanup_pop(0);
26832 ;
26833 return 0;
26834}
26835_ACEOF
26836if ac_fn_c_try_link "$LINENO"; then :
26837 magick_pthread_lib_ok=yes
26838fi
26839rm -f core conftest.err conftest.$ac_objext \
26840 conftest$ac_exeext conftest.$ac_ext
26841
26842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26843$as_echo "${magick_pthread_lib_ok}" >&6; }
26844if test "$magick_pthread_lib_ok" = yes
26845then
26846 PTHREAD_LIBS=-lc_r
26847 :
26848else
26849
26850 :
26851fi
26852
26853LIBS="$save_LIBS"
26854
26855ac_ext=c
26856ac_cpp='$CPP $CPPFLAGS'
26857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26859ac_compiler_gnu=$ac_cv_c_compiler_gnu
26860
26861 ;;
cristy3ed852e2009-09-05 21:47:34 +000026862 esac
26863 fi
26864
26865 for lib in pthread pthreads; do
26866 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026867
26868
26869
26870ac_ext=c
26871ac_cpp='$CPP $CPPFLAGS'
26872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26874ac_compiler_gnu=$ac_cv_c_compiler_gnu
26875
26876magick_pthread_lib_ok=no
26877
26878LIB=-l$lib
26879save_LIBS="$LIBS"
26880LIBS="$LIBS $LIB"
26881
26882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26883$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26885/* end confdefs.h. */
26886#include <pthread.h>
26887int
26888main ()
26889{
26890 pthread_t th;
26891 pthread_join(th, 0);
26892 pthread_attr_init(0);
26893 pthread_cleanup_push(0, 0);
26894 pthread_create(0,0,0,0);
26895 pthread_cleanup_pop(0);
26896 ;
26897 return 0;
26898}
26899_ACEOF
26900if ac_fn_c_try_link "$LINENO"; then :
26901 magick_pthread_lib_ok=yes
26902fi
26903rm -f core conftest.err conftest.$ac_objext \
26904 conftest$ac_exeext conftest.$ac_ext
26905
26906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26907$as_echo "${magick_pthread_lib_ok}" >&6; }
26908if test "$magick_pthread_lib_ok" = yes
26909then
26910 PTHREAD_LIBS=-l$lib
26911 :
26912else
26913
26914 :
26915fi
26916
26917LIBS="$save_LIBS"
26918
26919ac_ext=c
26920ac_cpp='$CPP $CPPFLAGS'
26921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26923ac_compiler_gnu=$ac_cv_c_compiler_gnu
26924
26925
cristy3ed852e2009-09-05 21:47:34 +000026926 fi
26927 done
26928
26929 THREAD_LIBS="$PTHREAD_LIBS"
26930 LIBS="$LIBS $THREAD_LIBS"
26931fi
26932
26933
26934#
26935# Check for umem.
26936#
26937have_umem='no'
26938UMEM_LIBS=''
26939if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026941$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026942 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26943$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026944 failed=0
26945 passed=0
cristy8b350f62009-11-15 23:12:43 +000026946 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026947if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026948 passed=`expr $passed + 1`
26949else
26950 failed=`expr $failed + 1`
26951fi
26952
26953
cristy8b350f62009-11-15 23:12:43 +000026954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026955$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026956if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026957 $as_echo_n "(cached) " >&6
26958else
26959 ac_check_lib_save_LIBS=$LIBS
26960LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026962/* end confdefs.h. */
26963
26964/* Override any GCC internal prototype to avoid an error.
26965 Use char because int might match the return type of a GCC
26966 builtin and then its argument prototype would still apply. */
26967#ifdef __cplusplus
26968extern "C"
26969#endif
26970char umem_alloc ();
26971int
26972main ()
26973{
26974return umem_alloc ();
26975 ;
26976 return 0;
26977}
26978_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026979if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026980 ac_cv_lib_umem_umem_alloc=yes
26981else
cristy8b350f62009-11-15 23:12:43 +000026982 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026983fi
cristy8b350f62009-11-15 23:12:43 +000026984rm -f core conftest.err conftest.$ac_objext \
26985 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026986LIBS=$ac_check_lib_save_LIBS
26987fi
cristy8b350f62009-11-15 23:12:43 +000026988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026989$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026990if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026991 passed=`expr $passed + 1`
26992else
26993 failed=`expr $failed + 1`
26994fi
26995
cristy8b350f62009-11-15 23:12:43 +000026996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026997$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026998if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026999 $as_echo_n "(cached) " >&6
27000else
27001 ac_check_lib_save_LIBS=$LIBS
27002LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027004/* end confdefs.h. */
27005
27006/* Override any GCC internal prototype to avoid an error.
27007 Use char because int might match the return type of a GCC
27008 builtin and then its argument prototype would still apply. */
27009#ifdef __cplusplus
27010extern "C"
27011#endif
27012char umem_free ();
27013int
27014main ()
27015{
27016return umem_free ();
27017 ;
27018 return 0;
27019}
27020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027021if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027022 ac_cv_lib_umem_umem_free=yes
27023else
cristy8b350f62009-11-15 23:12:43 +000027024 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027025fi
cristy8b350f62009-11-15 23:12:43 +000027026rm -f core conftest.err conftest.$ac_objext \
27027 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027028LIBS=$ac_check_lib_save_LIBS
27029fi
cristy8b350f62009-11-15 23:12:43 +000027030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027031$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027032if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027033 passed=`expr $passed + 1`
27034else
27035 failed=`expr $failed + 1`
27036fi
27037
cristy8b350f62009-11-15 23:12:43 +000027038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027039$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27040 if test $passed -gt 0; then
27041 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027042 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27043$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027044 have_umem='no (failed tests)'
27045 else
27046 UMEM_LIBS='-lumem'
27047 LIBS="$UMEM_LIBS $LIBS"
27048
cristy8b350f62009-11-15 23:12:43 +000027049$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027050
cristy09b53e12011-10-14 12:47:22 +000027051 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27052$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027053 have_umem='yes'
27054 fi
27055 else
cristy09b53e12011-10-14 12:47:22 +000027056 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27057$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027058 fi
27059fi
cristy73bd4a52010-10-05 11:24:23 +000027060 if test "$have_umem" = 'yes'; then
27061 HasUMEM_TRUE=
27062 HasUMEM_FALSE='#'
27063else
27064 HasUMEM_TRUE='#'
27065 HasUMEM_FALSE=
27066fi
27067
cristy3ed852e2009-09-05 21:47:34 +000027068
27069
27070#
27071# Add support for ccmalloc memory debugging library if requested
27072#
27073have_ccmalloc='no'
27074CCMALLOC_LIBS=''
27075if test "$enable_ccmalloc" = 'yes'; then
27076 # Extract the first word of "ccmalloc", so it can be a program name with args.
27077set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027079$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027080if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027081 $as_echo_n "(cached) " >&6
27082else
27083 case $CCMALLOCDelegate in
27084 [\\/]* | ?:[\\/]*)
27085 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27086 ;;
27087 *)
27088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27089for as_dir in $PATH
27090do
27091 IFS=$as_save_IFS
27092 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027093 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027095 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027097 break 2
27098 fi
27099done
cristy8b350f62009-11-15 23:12:43 +000027100 done
cristy3ed852e2009-09-05 21:47:34 +000027101IFS=$as_save_IFS
27102
27103 ;;
27104esac
27105fi
27106CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27107if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027109$as_echo "$CCMALLOCDelegate" >&6; }
27110else
cristy8b350f62009-11-15 23:12:43 +000027111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027112$as_echo "no" >&6; }
27113fi
27114
27115
27116 if test -n "$CCMALLOCDelegate"; then
27117 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27118 OLIBS="$LIBS"
27119 # Assume that gcc is used with ccmalloc.
27120 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027122$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027123if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027124 $as_echo_n "(cached) " >&6
27125else
27126 ac_check_lib_save_LIBS=$LIBS
27127LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027129/* end confdefs.h. */
27130
27131/* Override any GCC internal prototype to avoid an error.
27132 Use char because int might match the return type of a GCC
27133 builtin and then its argument prototype would still apply. */
27134#ifdef __cplusplus
27135extern "C"
27136#endif
27137char ccmalloc_malloc ();
27138int
27139main ()
27140{
27141return ccmalloc_malloc ();
27142 ;
27143 return 0;
27144}
27145_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027146if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027147 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27148else
cristy8b350f62009-11-15 23:12:43 +000027149 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027150fi
cristy8b350f62009-11-15 23:12:43 +000027151rm -f core conftest.err conftest.$ac_objext \
27152 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027153LIBS=$ac_check_lib_save_LIBS
27154fi
cristy8b350f62009-11-15 23:12:43 +000027155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027156$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027157if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027158 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27159fi
27160
27161 if test -n "$CCMALLOC_LIBS"; then
27162 LIBS="$OLIBS"
27163 LIBS="$LIBS $CCMALLOC_LIBS"
27164 have_ccmalloc='yes'
27165 else
27166 LIBS="$OLIBS"
27167 fi
27168 fi
27169fi
27170
27171#
27172# Add support for efence memory debugging library if requested
27173#
27174if test "$enable_efence" = 'yes'; then
27175 EFENCE_LIBS='-lefence'
27176 LIBS="$EFENCE_LIBS $LIBS"
27177fi
27178
cristy3ed852e2009-09-05 21:47:34 +000027179
27180#
27181# Check for BZLIB
27182#
27183
27184
27185# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027186if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027187 withval=$with_bzlib; with_bzlib=$withval
27188else
27189 with_bzlib='yes'
27190fi
27191
27192
27193if test "$with_bzlib" != 'yes'; then
27194 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27195fi
27196
27197have_bzlib='no'
27198if test "$with_bzlib" != 'no'; then
27199 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027200 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27201$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027203$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027204 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27205$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027206 failed=0
27207 passed=0
27208 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027209 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027210if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027211 passed=`expr $passed + 1`
27212else
27213 failed=`expr $failed + 1`
27214fi
27215
27216
cristy8b350f62009-11-15 23:12:43 +000027217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027218$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027219if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027220 $as_echo_n "(cached) " >&6
27221else
27222 ac_check_lib_save_LIBS=$LIBS
27223LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027225/* end confdefs.h. */
27226
27227/* Override any GCC internal prototype to avoid an error.
27228 Use char because int might match the return type of a GCC
27229 builtin and then its argument prototype would still apply. */
27230#ifdef __cplusplus
27231extern "C"
27232#endif
27233char BZ2_bzDecompress ();
27234int
27235main ()
27236{
27237return BZ2_bzDecompress ();
27238 ;
27239 return 0;
27240}
27241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027242if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027243 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27244else
cristy8b350f62009-11-15 23:12:43 +000027245 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027246fi
cristy8b350f62009-11-15 23:12:43 +000027247rm -f core conftest.err conftest.$ac_objext \
27248 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027249LIBS=$ac_check_lib_save_LIBS
27250fi
cristy8b350f62009-11-15 23:12:43 +000027251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027252$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027253if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027254 found_libbz=`expr $found_libbz + 1`
27255fi
27256
27257 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027259$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027260if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027261 $as_echo_n "(cached) " >&6
27262else
27263 ac_check_lib_save_LIBS=$LIBS
27264LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027266/* end confdefs.h. */
27267
27268/* Override any GCC internal prototype to avoid an error.
27269 Use char because int might match the return type of a GCC
27270 builtin and then its argument prototype would still apply. */
27271#ifdef __cplusplus
27272extern "C"
27273#endif
27274char _imp__BZ2_decompress ();
27275int
27276main ()
27277{
27278return _imp__BZ2_decompress ();
27279 ;
27280 return 0;
27281}
27282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027283if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027284 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27285else
cristy8b350f62009-11-15 23:12:43 +000027286 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027287fi
cristy8b350f62009-11-15 23:12:43 +000027288rm -f core conftest.err conftest.$ac_objext \
27289 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027290LIBS=$ac_check_lib_save_LIBS
27291fi
cristy8b350f62009-11-15 23:12:43 +000027292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027293$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027294if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027295 found_libbz=`expr $found_libbz + 1`
27296fi
27297
27298 fi
27299 if test $found_libbz -gt 0; then
27300 passed=`expr $passed + 1`
27301 else
27302 failed=`expr $failed + 1`
27303 fi
cristy8b350f62009-11-15 23:12:43 +000027304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027305$as_echo_n "checking if BZLIB package is complete... " >&6; }
27306 if test $passed -gt 0; then
27307 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027308 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27309$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027310 have_bzlib='no (failed tests)'
27311 else
27312 BZLIB_LIBS='-lbz2'
27313 LIBS="$BZLIB_LIBS $LIBS"
27314
cristy8b350f62009-11-15 23:12:43 +000027315$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027316
cristy09b53e12011-10-14 12:47:22 +000027317 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27318$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027319 have_bzlib='yes'
27320 fi
27321 else
cristy09b53e12011-10-14 12:47:22 +000027322 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27323$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027324 fi
27325fi
cristy73bd4a52010-10-05 11:24:23 +000027326 if test "$have_bzlib" = 'yes'; then
27327 BZLIB_DELEGATE_TRUE=
27328 BZLIB_DELEGATE_FALSE='#'
27329else
27330 BZLIB_DELEGATE_TRUE='#'
27331 BZLIB_DELEGATE_FALSE=
27332fi
27333
cristy3ed852e2009-09-05 21:47:34 +000027334
27335
27336#
27337# Find the X11 include and library directories.
27338#
27339IPC_LIBS=''
27340X11_LIBS=''
27341XEXT_LIBS=''
27342XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027344$as_echo_n "checking for X... " >&6; }
27345
27346
27347# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027348if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027349 withval=$with_x;
27350fi
27351
27352# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27353if test "x$with_x" = xno; then
27354 # The user explicitly disabled X.
27355 have_x=disabled
27356else
27357 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027358 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027359 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027360 $as_echo_n "(cached) " >&6
27361else
27362 # One or both of the vars are not set, and there is no cached value.
27363ac_x_includes=no ac_x_libraries=no
27364rm -f -r conftest.dir
27365if mkdir conftest.dir; then
27366 cd conftest.dir
27367 cat >Imakefile <<'_ACEOF'
27368incroot:
27369 @echo incroot='${INCROOT}'
27370usrlibdir:
27371 @echo usrlibdir='${USRLIBDIR}'
27372libdir:
27373 @echo libdir='${LIBDIR}'
27374_ACEOF
27375 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027376 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027377 for ac_var in incroot usrlibdir libdir; do
27378 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27379 done
27380 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27381 for ac_extension in a so sl dylib la dll; do
27382 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27383 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27384 ac_im_usrlibdir=$ac_im_libdir; break
27385 fi
27386 done
27387 # Screen out bogus values from the imake configuration. They are
27388 # bogus both because they are the default anyway, and because
27389 # using them would break gcc on systems where it needs fixed includes.
27390 case $ac_im_incroot in
27391 /usr/include) ac_x_includes= ;;
27392 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27393 esac
27394 case $ac_im_usrlibdir in
27395 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27396 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27397 esac
27398 fi
27399 cd ..
27400 rm -f -r conftest.dir
27401fi
27402
27403# Standard set of common directories for X headers.
27404# Check X11 before X11Rn because it is often a symlink to the current release.
27405ac_x_header_dirs='
27406/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027407/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027408/usr/X11R6/include
27409/usr/X11R5/include
27410/usr/X11R4/include
27411
27412/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027413/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027414/usr/include/X11R6
27415/usr/include/X11R5
27416/usr/include/X11R4
27417
27418/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027419/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027420/usr/local/X11R6/include
27421/usr/local/X11R5/include
27422/usr/local/X11R4/include
27423
27424/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027425/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027426/usr/local/include/X11R6
27427/usr/local/include/X11R5
27428/usr/local/include/X11R4
27429
27430/usr/X386/include
27431/usr/x386/include
27432/usr/XFree86/include/X11
27433
27434/usr/include
27435/usr/local/include
27436/usr/unsupported/include
27437/usr/athena/include
27438/usr/local/x11r5/include
27439/usr/lpp/Xamples/include
27440
27441/usr/openwin/include
27442/usr/openwin/share/include'
27443
27444if test "$ac_x_includes" = no; then
27445 # Guess where to find include files, by looking for Xlib.h.
27446 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027448/* end confdefs.h. */
27449#include <X11/Xlib.h>
27450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027451if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027452 # We can compile using X headers with no special include directory.
27453ac_x_includes=
27454else
cristyc7083c12009-10-14 03:16:55 +000027455 for ac_dir in $ac_x_header_dirs; do
27456 if test -r "$ac_dir/X11/Xlib.h"; then
27457 ac_x_includes=$ac_dir
27458 break
27459 fi
27460done
27461fi
cristyda16f162011-02-19 23:52:17 +000027462rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027463fi # $ac_x_includes = no
27464
27465if test "$ac_x_libraries" = no; then
27466 # Check for the libraries.
27467 # See if we find them without any special options.
27468 # Don't add to $LIBS permanently.
27469 ac_save_LIBS=$LIBS
27470 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027472/* end confdefs.h. */
27473#include <X11/Xlib.h>
27474int
27475main ()
27476{
27477XrmInitialize ()
27478 ;
27479 return 0;
27480}
27481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027482if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027483 LIBS=$ac_save_LIBS
27484# We can link X programs with no special library path.
27485ac_x_libraries=
27486else
cristy8b350f62009-11-15 23:12:43 +000027487 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027488for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27489do
27490 # Don't even attempt the hair of trying to link an X program!
27491 for ac_extension in a so sl dylib la dll; do
27492 if test -r "$ac_dir/libX11.$ac_extension"; then
27493 ac_x_libraries=$ac_dir
27494 break 2
27495 fi
27496 done
27497done
27498fi
cristy8b350f62009-11-15 23:12:43 +000027499rm -f core conftest.err conftest.$ac_objext \
27500 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027501fi # $ac_x_libraries = no
27502
27503case $ac_x_includes,$ac_x_libraries in #(
27504 no,* | *,no | *\'*)
27505 # Didn't find X, or a directory has "'" in its name.
27506 ac_cv_have_x="have_x=no";; #(
27507 *)
27508 # Record where we found X for the cache.
27509 ac_cv_have_x="have_x=yes\
27510 ac_x_includes='$ac_x_includes'\
27511 ac_x_libraries='$ac_x_libraries'"
27512esac
27513fi
27514;; #(
27515 *) have_x=yes;;
27516 esac
27517 eval "$ac_cv_have_x"
27518fi # $with_x != no
27519
27520if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027522$as_echo "$have_x" >&6; }
27523 no_x=yes
27524else
27525 # If each of the values was on the command line, it overrides each guess.
27526 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27527 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27528 # Update the cache value to reflect the command line values.
27529 ac_cv_have_x="have_x=yes\
27530 ac_x_includes='$x_includes'\
27531 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027533$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27534fi
27535
cristy3ed852e2009-09-05 21:47:34 +000027536if test "$no_x" = yes; then
27537 # Not all programs may use this symbol, but it does not hurt to define it.
27538
cristy8b350f62009-11-15 23:12:43 +000027539$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027540
27541 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27542else
27543 if test -n "$x_includes"; then
27544 X_CFLAGS="$X_CFLAGS -I$x_includes"
27545 fi
27546
27547 # It would also be nice to do this for all -L options, not just this one.
27548 if test -n "$x_libraries"; then
27549 X_LIBS="$X_LIBS -L$x_libraries"
27550 # For Solaris; some versions of Sun CC require a space after -R and
27551 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027553$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27554 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27555 ac_xsave_c_werror_flag=$ac_c_werror_flag
27556 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027558/* end confdefs.h. */
27559
27560int
27561main ()
27562{
27563
27564 ;
27565 return 0;
27566}
27567_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027568if ac_fn_c_try_link "$LINENO"; then :
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027570$as_echo "no" >&6; }
27571 X_LIBS="$X_LIBS -R$x_libraries"
27572else
cristy8b350f62009-11-15 23:12:43 +000027573 LIBS="$ac_xsave_LIBS -R $x_libraries"
27574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027575/* end confdefs.h. */
27576
27577int
27578main ()
27579{
27580
27581 ;
27582 return 0;
27583}
27584_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027585if ac_fn_c_try_link "$LINENO"; then :
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027587$as_echo "yes" >&6; }
27588 X_LIBS="$X_LIBS -R $x_libraries"
27589else
cristy8b350f62009-11-15 23:12:43 +000027590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027591$as_echo "neither works" >&6; }
27592fi
cristy8b350f62009-11-15 23:12:43 +000027593rm -f core conftest.err conftest.$ac_objext \
27594 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027595fi
cristy8b350f62009-11-15 23:12:43 +000027596rm -f core conftest.err conftest.$ac_objext \
27597 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027598 ac_c_werror_flag=$ac_xsave_c_werror_flag
27599 LIBS=$ac_xsave_LIBS
27600 fi
27601
27602 # Check for system-dependent libraries X programs must link with.
27603 # Do this before checking for the system-independent R6 libraries
27604 # (-lICE), since we may need -lsocket or whatever for X linking.
27605
27606 if test "$ISC" = yes; then
27607 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27608 else
27609 # Martyn Johnson says this is needed for Ultrix, if the X
27610 # libraries were built with DECnet support. And Karl Berry says
27611 # the Alpha needs dnet_stub (dnet does not exist).
27612 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027614/* end confdefs.h. */
27615
27616/* Override any GCC internal prototype to avoid an error.
27617 Use char because int might match the return type of a GCC
27618 builtin and then its argument prototype would still apply. */
27619#ifdef __cplusplus
27620extern "C"
27621#endif
27622char XOpenDisplay ();
27623int
27624main ()
27625{
27626return XOpenDisplay ();
27627 ;
27628 return 0;
27629}
27630_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027631if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027632
cristy8b350f62009-11-15 23:12:43 +000027633else
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027635$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027636if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027637 $as_echo_n "(cached) " >&6
27638else
27639 ac_check_lib_save_LIBS=$LIBS
27640LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027642/* end confdefs.h. */
27643
27644/* Override any GCC internal prototype to avoid an error.
27645 Use char because int might match the return type of a GCC
27646 builtin and then its argument prototype would still apply. */
27647#ifdef __cplusplus
27648extern "C"
27649#endif
27650char dnet_ntoa ();
27651int
27652main ()
27653{
27654return dnet_ntoa ();
27655 ;
27656 return 0;
27657}
27658_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027659if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027660 ac_cv_lib_dnet_dnet_ntoa=yes
27661else
cristy8b350f62009-11-15 23:12:43 +000027662 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027663fi
cristy8b350f62009-11-15 23:12:43 +000027664rm -f core conftest.err conftest.$ac_objext \
27665 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027666LIBS=$ac_check_lib_save_LIBS
27667fi
cristy8b350f62009-11-15 23:12:43 +000027668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027669$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027670if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027671 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27672fi
27673
27674 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027676$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027677if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027678 $as_echo_n "(cached) " >&6
27679else
27680 ac_check_lib_save_LIBS=$LIBS
27681LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027683/* end confdefs.h. */
27684
27685/* Override any GCC internal prototype to avoid an error.
27686 Use char because int might match the return type of a GCC
27687 builtin and then its argument prototype would still apply. */
27688#ifdef __cplusplus
27689extern "C"
27690#endif
27691char dnet_ntoa ();
27692int
27693main ()
27694{
27695return dnet_ntoa ();
27696 ;
27697 return 0;
27698}
27699_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027700if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027701 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27702else
cristy8b350f62009-11-15 23:12:43 +000027703 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027704fi
cristy8b350f62009-11-15 23:12:43 +000027705rm -f core conftest.err conftest.$ac_objext \
27706 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027707LIBS=$ac_check_lib_save_LIBS
27708fi
cristy8b350f62009-11-15 23:12:43 +000027709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027710$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027711if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027712 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27713fi
27714
27715 fi
27716fi
cristy8b350f62009-11-15 23:12:43 +000027717rm -f core conftest.err conftest.$ac_objext \
27718 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027719 LIBS="$ac_xsave_LIBS"
27720
27721 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27722 # to get the SysV transport functions.
27723 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27724 # needs -lnsl.
27725 # The nsl library prevents programs from opening the X display
27726 # on Irix 5.2, according to T.E. Dickey.
27727 # The functions gethostbyname, getservbyname, and inet_addr are
27728 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027729 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027730if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027731
cristy3ed852e2009-09-05 21:47:34 +000027732fi
27733
cristy3ed852e2009-09-05 21:47:34 +000027734 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027736$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027737if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027738 $as_echo_n "(cached) " >&6
27739else
27740 ac_check_lib_save_LIBS=$LIBS
27741LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027743/* end confdefs.h. */
27744
27745/* Override any GCC internal prototype to avoid an error.
27746 Use char because int might match the return type of a GCC
27747 builtin and then its argument prototype would still apply. */
27748#ifdef __cplusplus
27749extern "C"
27750#endif
27751char gethostbyname ();
27752int
27753main ()
27754{
27755return gethostbyname ();
27756 ;
27757 return 0;
27758}
27759_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027760if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027761 ac_cv_lib_nsl_gethostbyname=yes
27762else
cristy8b350f62009-11-15 23:12:43 +000027763 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027764fi
cristy8b350f62009-11-15 23:12:43 +000027765rm -f core conftest.err conftest.$ac_objext \
27766 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027767LIBS=$ac_check_lib_save_LIBS
27768fi
cristy8b350f62009-11-15 23:12:43 +000027769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027770$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027771if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027772 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27773fi
27774
27775 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027777$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027778if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027779 $as_echo_n "(cached) " >&6
27780else
27781 ac_check_lib_save_LIBS=$LIBS
27782LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027784/* end confdefs.h. */
27785
27786/* Override any GCC internal prototype to avoid an error.
27787 Use char because int might match the return type of a GCC
27788 builtin and then its argument prototype would still apply. */
27789#ifdef __cplusplus
27790extern "C"
27791#endif
27792char gethostbyname ();
27793int
27794main ()
27795{
27796return gethostbyname ();
27797 ;
27798 return 0;
27799}
27800_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027801if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027802 ac_cv_lib_bsd_gethostbyname=yes
27803else
cristy8b350f62009-11-15 23:12:43 +000027804 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027805fi
cristy8b350f62009-11-15 23:12:43 +000027806rm -f core conftest.err conftest.$ac_objext \
27807 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027808LIBS=$ac_check_lib_save_LIBS
27809fi
cristy8b350f62009-11-15 23:12:43 +000027810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027811$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027812if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027813 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27814fi
27815
27816 fi
27817 fi
27818
27819 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27820 # socket/setsockopt and other routines are undefined under SCO ODT
27821 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27822 # on later versions), says Simon Leinen: it contains gethostby*
27823 # variants that don't use the name server (or something). -lsocket
27824 # must be given before -lnsl if both are needed. We assume that
27825 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027826 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027827if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027828
cristy3ed852e2009-09-05 21:47:34 +000027829fi
27830
cristy3ed852e2009-09-05 21:47:34 +000027831 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027833$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027834if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027835 $as_echo_n "(cached) " >&6
27836else
27837 ac_check_lib_save_LIBS=$LIBS
27838LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027840/* end confdefs.h. */
27841
27842/* Override any GCC internal prototype to avoid an error.
27843 Use char because int might match the return type of a GCC
27844 builtin and then its argument prototype would still apply. */
27845#ifdef __cplusplus
27846extern "C"
27847#endif
27848char connect ();
27849int
27850main ()
27851{
27852return connect ();
27853 ;
27854 return 0;
27855}
27856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027857if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027858 ac_cv_lib_socket_connect=yes
27859else
cristy8b350f62009-11-15 23:12:43 +000027860 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027861fi
cristy8b350f62009-11-15 23:12:43 +000027862rm -f core conftest.err conftest.$ac_objext \
27863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027864LIBS=$ac_check_lib_save_LIBS
27865fi
cristy8b350f62009-11-15 23:12:43 +000027866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027867$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027868if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027869 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27870fi
27871
27872 fi
27873
27874 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027875 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027876if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027877
cristy3ed852e2009-09-05 21:47:34 +000027878fi
27879
cristy3ed852e2009-09-05 21:47:34 +000027880 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027882$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027883if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027884 $as_echo_n "(cached) " >&6
27885else
27886 ac_check_lib_save_LIBS=$LIBS
27887LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027889/* end confdefs.h. */
27890
27891/* Override any GCC internal prototype to avoid an error.
27892 Use char because int might match the return type of a GCC
27893 builtin and then its argument prototype would still apply. */
27894#ifdef __cplusplus
27895extern "C"
27896#endif
27897char remove ();
27898int
27899main ()
27900{
27901return remove ();
27902 ;
27903 return 0;
27904}
27905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027906if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027907 ac_cv_lib_posix_remove=yes
27908else
cristy8b350f62009-11-15 23:12:43 +000027909 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027910fi
cristy8b350f62009-11-15 23:12:43 +000027911rm -f core conftest.err conftest.$ac_objext \
27912 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027913LIBS=$ac_check_lib_save_LIBS
27914fi
cristy8b350f62009-11-15 23:12:43 +000027915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027916$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027917if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27919fi
27920
27921 fi
27922
27923 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027924 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027925if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027926
cristy3ed852e2009-09-05 21:47:34 +000027927fi
27928
cristy3ed852e2009-09-05 21:47:34 +000027929 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027931$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027932if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027933 $as_echo_n "(cached) " >&6
27934else
27935 ac_check_lib_save_LIBS=$LIBS
27936LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027938/* end confdefs.h. */
27939
27940/* Override any GCC internal prototype to avoid an error.
27941 Use char because int might match the return type of a GCC
27942 builtin and then its argument prototype would still apply. */
27943#ifdef __cplusplus
27944extern "C"
27945#endif
27946char shmat ();
27947int
27948main ()
27949{
27950return shmat ();
27951 ;
27952 return 0;
27953}
27954_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027955if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027956 ac_cv_lib_ipc_shmat=yes
27957else
cristy8b350f62009-11-15 23:12:43 +000027958 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027959fi
cristy8b350f62009-11-15 23:12:43 +000027960rm -f core conftest.err conftest.$ac_objext \
27961 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027962LIBS=$ac_check_lib_save_LIBS
27963fi
cristy8b350f62009-11-15 23:12:43 +000027964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027965$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027966if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027967 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27968fi
27969
27970 fi
27971 fi
27972
27973 # Check for libraries that X11R6 Xt/Xaw programs need.
27974 ac_save_LDFLAGS=$LDFLAGS
27975 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27976 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27977 # check for ICE first), but we must link in the order -lSM -lICE or
27978 # we get undefined symbols. So assume we have SM if we have ICE.
27979 # These have to be linked with before -lX11, unlike the other
27980 # libraries we check for below, so use a different variable.
27981 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027983$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027984if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027985 $as_echo_n "(cached) " >&6
27986else
27987 ac_check_lib_save_LIBS=$LIBS
27988LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027990/* end confdefs.h. */
27991
27992/* Override any GCC internal prototype to avoid an error.
27993 Use char because int might match the return type of a GCC
27994 builtin and then its argument prototype would still apply. */
27995#ifdef __cplusplus
27996extern "C"
27997#endif
27998char IceConnectionNumber ();
27999int
28000main ()
28001{
28002return IceConnectionNumber ();
28003 ;
28004 return 0;
28005}
28006_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028007if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028008 ac_cv_lib_ICE_IceConnectionNumber=yes
28009else
cristy8b350f62009-11-15 23:12:43 +000028010 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028011fi
cristy8b350f62009-11-15 23:12:43 +000028012rm -f core conftest.err conftest.$ac_objext \
28013 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028014LIBS=$ac_check_lib_save_LIBS
28015fi
cristy8b350f62009-11-15 23:12:43 +000028016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028017$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028018if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028019 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28020fi
28021
28022 LDFLAGS=$ac_save_LDFLAGS
28023
28024fi
28025
28026if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000028027 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28028$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028030$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028031 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28032$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028033 LDFLAGS="$LDFLAGS $X_LIBS"
28034 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28035 LIBS="$X11_LIBS $LIBS"
28036 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28037
28038
cristy8b350f62009-11-15 23:12:43 +000028039$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028040
28041 #
28042 # Check for X11 shared memory extension
28043 #
28044 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028045 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028046if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028047 have_shmctl='yes'
28048fi
28049
28050 if test "$have_shmctl" != 'yes'; then
28051 PERSIST_LIBS=$LIBS
28052 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028054/* end confdefs.h. */
28055
28056/* Override any GCC internal prototype to avoid an error.
28057 Use char because int might match the return type of a GCC
28058 builtin and then its argument prototype would still apply. */
28059#ifdef __cplusplus
28060extern "C"
28061#endif
28062char shmctl ();
28063int
28064main ()
28065{
28066return shmctl ();
28067 ;
28068 return 0;
28069}
28070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028071if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028072 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028073fi
cristy8b350f62009-11-15 23:12:43 +000028074rm -f core conftest.err conftest.$ac_objext \
28075 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028076 LIBS=$PERSIST_LIBS
28077 fi
28078
28079 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028081$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028082if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028083 $as_echo_n "(cached) " >&6
28084else
28085 ac_check_lib_save_LIBS=$LIBS
28086LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028088/* end confdefs.h. */
28089
28090/* Override any GCC internal prototype to avoid an error.
28091 Use char because int might match the return type of a GCC
28092 builtin and then its argument prototype would still apply. */
28093#ifdef __cplusplus
28094extern "C"
28095#endif
28096char XShmAttach ();
28097int
28098main ()
28099{
28100return XShmAttach ();
28101 ;
28102 return 0;
28103}
28104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028105if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028106 ac_cv_lib_Xext_XShmAttach=yes
28107else
cristy8b350f62009-11-15 23:12:43 +000028108 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028109fi
cristy8b350f62009-11-15 23:12:43 +000028110rm -f core conftest.err conftest.$ac_objext \
28111 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028112LIBS=$ac_check_lib_save_LIBS
28113fi
cristy8b350f62009-11-15 23:12:43 +000028114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028115$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028116if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028117 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028118$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028119
28120fi
28121
28122 fi
28123
28124 #
28125 # Check for X11 shape extension
28126 #
cristy8b350f62009-11-15 23:12:43 +000028127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028128$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028129if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028130 $as_echo_n "(cached) " >&6
28131else
28132 ac_check_lib_save_LIBS=$LIBS
28133LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028135/* end confdefs.h. */
28136
28137/* Override any GCC internal prototype to avoid an error.
28138 Use char because int might match the return type of a GCC
28139 builtin and then its argument prototype would still apply. */
28140#ifdef __cplusplus
28141extern "C"
28142#endif
28143char XShapeCombineMask ();
28144int
28145main ()
28146{
28147return XShapeCombineMask ();
28148 ;
28149 return 0;
28150}
28151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028152if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028153 ac_cv_lib_Xext_XShapeCombineMask=yes
28154else
cristy8b350f62009-11-15 23:12:43 +000028155 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028156fi
cristy8b350f62009-11-15 23:12:43 +000028157rm -f core conftest.err conftest.$ac_objext \
28158 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028159LIBS=$ac_check_lib_save_LIBS
28160fi
cristy8b350f62009-11-15 23:12:43 +000028161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028162$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028163if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028164 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028165$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028166
28167fi
28168
cristy8b350f62009-11-15 23:12:43 +000028169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028170$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028171if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028172 $as_echo_n "(cached) " >&6
28173else
28174 ac_check_lib_save_LIBS=$LIBS
28175LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028177/* end confdefs.h. */
28178
28179/* Override any GCC internal prototype to avoid an error.
28180 Use char because int might match the return type of a GCC
28181 builtin and then its argument prototype would still apply. */
28182#ifdef __cplusplus
28183extern "C"
28184#endif
28185char XtSetEventDispatcher ();
28186int
28187main ()
28188{
28189return XtSetEventDispatcher ();
28190 ;
28191 return 0;
28192}
28193_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028194if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028195 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28196else
cristy8b350f62009-11-15 23:12:43 +000028197 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028198fi
cristy8b350f62009-11-15 23:12:43 +000028199rm -f core conftest.err conftest.$ac_objext \
28200 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028201LIBS=$ac_check_lib_save_LIBS
28202fi
cristy8b350f62009-11-15 23:12:43 +000028203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028204$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028205if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028206 XT_LIBS='-lXt'
28207fi
28208
28209 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28210fi
28211if test "$no_x" != 'yes'; then
28212 have_x='yes'
28213else
28214 have_x='no'
28215fi
cristy73bd4a52010-10-05 11:24:23 +000028216 if test "$have_x" = 'yes'; then
28217 X11_DELEGATE_TRUE=
28218 X11_DELEGATE_FALSE='#'
28219else
28220 X11_DELEGATE_TRUE='#'
28221 X11_DELEGATE_FALSE=
28222fi
28223
cristy3ed852e2009-09-05 21:47:34 +000028224
28225
28226
28227
28228#
28229# Check for ZLIB
28230#
28231
28232# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028233if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028234 withval=$with_zlib; with_zlib=$withval
28235else
28236 with_zlib='yes'
28237fi
28238
28239
28240if test "$with_zlib" != 'yes'; then
28241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28242fi
28243
28244have_zlib='no'
28245ZLIB_LIBS=''
28246if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028247 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28248$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028250$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028251 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28252$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028253 ZLIB_LIBS=''
28254 failed=0
28255 passed=0
cristy8b350f62009-11-15 23:12:43 +000028256 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028257if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028258 passed=`expr $passed + 1`
28259else
28260 failed=`expr $failed + 1`
28261fi
28262
28263
cristy8b350f62009-11-15 23:12:43 +000028264 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028265if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028266 passed=`expr $passed + 1`
28267else
28268 failed=`expr $failed + 1`
28269fi
28270
28271
cristy8b350f62009-11-15 23:12:43 +000028272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028273$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028274if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028275 $as_echo_n "(cached) " >&6
28276else
28277 ac_check_lib_save_LIBS=$LIBS
28278LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028280/* end confdefs.h. */
28281
28282/* Override any GCC internal prototype to avoid an error.
28283 Use char because int might match the return type of a GCC
28284 builtin and then its argument prototype would still apply. */
28285#ifdef __cplusplus
28286extern "C"
28287#endif
28288char compress ();
28289int
28290main ()
28291{
28292return compress ();
28293 ;
28294 return 0;
28295}
28296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028297if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028298 ac_cv_lib_z_compress=yes
28299else
cristy8b350f62009-11-15 23:12:43 +000028300 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028301fi
cristy8b350f62009-11-15 23:12:43 +000028302rm -f core conftest.err conftest.$ac_objext \
28303 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028304LIBS=$ac_check_lib_save_LIBS
28305fi
cristy8b350f62009-11-15 23:12:43 +000028306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028307$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028308if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028309 passed=`expr $passed + 1`
28310else
28311 failed=`expr $failed + 1`
28312fi
28313
cristy8b350f62009-11-15 23:12:43 +000028314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028315$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028316if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028317 $as_echo_n "(cached) " >&6
28318else
28319 ac_check_lib_save_LIBS=$LIBS
28320LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028322/* end confdefs.h. */
28323
28324/* Override any GCC internal prototype to avoid an error.
28325 Use char because int might match the return type of a GCC
28326 builtin and then its argument prototype would still apply. */
28327#ifdef __cplusplus
28328extern "C"
28329#endif
28330char uncompress ();
28331int
28332main ()
28333{
28334return uncompress ();
28335 ;
28336 return 0;
28337}
28338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028340 ac_cv_lib_z_uncompress=yes
28341else
cristy8b350f62009-11-15 23:12:43 +000028342 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028343fi
cristy8b350f62009-11-15 23:12:43 +000028344rm -f core conftest.err conftest.$ac_objext \
28345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028346LIBS=$ac_check_lib_save_LIBS
28347fi
cristy8b350f62009-11-15 23:12:43 +000028348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028349$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028350if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028351 passed=`expr $passed + 1`
28352else
28353 failed=`expr $failed + 1`
28354fi
28355
cristy8b350f62009-11-15 23:12:43 +000028356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028357$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028358if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028359 $as_echo_n "(cached) " >&6
28360else
28361 ac_check_lib_save_LIBS=$LIBS
28362LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028364/* end confdefs.h. */
28365
28366/* Override any GCC internal prototype to avoid an error.
28367 Use char because int might match the return type of a GCC
28368 builtin and then its argument prototype would still apply. */
28369#ifdef __cplusplus
28370extern "C"
28371#endif
28372char deflate ();
28373int
28374main ()
28375{
28376return deflate ();
28377 ;
28378 return 0;
28379}
28380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028381if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028382 ac_cv_lib_z_deflate=yes
28383else
cristy8b350f62009-11-15 23:12:43 +000028384 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028385fi
cristy8b350f62009-11-15 23:12:43 +000028386rm -f core conftest.err conftest.$ac_objext \
28387 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028388LIBS=$ac_check_lib_save_LIBS
28389fi
cristy8b350f62009-11-15 23:12:43 +000028390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028391$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028392if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028393 passed=`expr $passed + 1`
28394else
28395 failed=`expr $failed + 1`
28396fi
28397
cristy8b350f62009-11-15 23:12:43 +000028398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028399$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028400if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028401 $as_echo_n "(cached) " >&6
28402else
28403 ac_check_lib_save_LIBS=$LIBS
28404LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028406/* end confdefs.h. */
28407
28408/* Override any GCC internal prototype to avoid an error.
28409 Use char because int might match the return type of a GCC
28410 builtin and then its argument prototype would still apply. */
28411#ifdef __cplusplus
28412extern "C"
28413#endif
28414char inflate ();
28415int
28416main ()
28417{
28418return inflate ();
28419 ;
28420 return 0;
28421}
28422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028423if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028424 ac_cv_lib_z_inflate=yes
28425else
cristy8b350f62009-11-15 23:12:43 +000028426 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028427fi
cristy8b350f62009-11-15 23:12:43 +000028428rm -f core conftest.err conftest.$ac_objext \
28429 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028430LIBS=$ac_check_lib_save_LIBS
28431fi
cristy8b350f62009-11-15 23:12:43 +000028432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028433$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028434if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028435 passed=`expr $passed + 1`
28436else
28437 failed=`expr $failed + 1`
28438fi
28439
cristy8b350f62009-11-15 23:12:43 +000028440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028441$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028442if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028443 $as_echo_n "(cached) " >&6
28444else
28445 ac_check_lib_save_LIBS=$LIBS
28446LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028448/* end confdefs.h. */
28449
28450/* Override any GCC internal prototype to avoid an error.
28451 Use char because int might match the return type of a GCC
28452 builtin and then its argument prototype would still apply. */
28453#ifdef __cplusplus
28454extern "C"
28455#endif
28456char gzseek ();
28457int
28458main ()
28459{
28460return gzseek ();
28461 ;
28462 return 0;
28463}
28464_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028465if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028466 ac_cv_lib_z_gzseek=yes
28467else
cristy8b350f62009-11-15 23:12:43 +000028468 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028469fi
cristy8b350f62009-11-15 23:12:43 +000028470rm -f core conftest.err conftest.$ac_objext \
28471 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028472LIBS=$ac_check_lib_save_LIBS
28473fi
cristy8b350f62009-11-15 23:12:43 +000028474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028475$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028476if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028477 passed=`expr $passed + 1`
28478else
28479 failed=`expr $failed + 1`
28480fi
28481
cristy8b350f62009-11-15 23:12:43 +000028482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028483$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028484if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028485 $as_echo_n "(cached) " >&6
28486else
28487 ac_check_lib_save_LIBS=$LIBS
28488LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028490/* end confdefs.h. */
28491
28492/* Override any GCC internal prototype to avoid an error.
28493 Use char because int might match the return type of a GCC
28494 builtin and then its argument prototype would still apply. */
28495#ifdef __cplusplus
28496extern "C"
28497#endif
28498char gztell ();
28499int
28500main ()
28501{
28502return gztell ();
28503 ;
28504 return 0;
28505}
28506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028507if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028508 ac_cv_lib_z_gztell=yes
28509else
cristy8b350f62009-11-15 23:12:43 +000028510 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028511fi
cristy8b350f62009-11-15 23:12:43 +000028512rm -f core conftest.err conftest.$ac_objext \
28513 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028514LIBS=$ac_check_lib_save_LIBS
28515fi
cristy8b350f62009-11-15 23:12:43 +000028516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028517$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028518if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028519 passed=`expr $passed + 1`
28520else
28521 failed=`expr $failed + 1`
28522fi
28523
cristy8b350f62009-11-15 23:12:43 +000028524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028525$as_echo_n "checking if ZLIB package is complete... " >&6; }
28526 if test $passed -gt 0; then
28527 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028528 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28529$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028530 have_zlib='no (failed tests)'
28531 else
28532 ZLIB_LIBS='-lz'
28533 LIBS="$ZLIB_LIBS $LIBS"
28534
cristy8b350f62009-11-15 23:12:43 +000028535$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028536
cristy09b53e12011-10-14 12:47:22 +000028537 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28538$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028539 have_zlib='yes'
28540 fi
28541 else
cristy09b53e12011-10-14 12:47:22 +000028542 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28543$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028544 fi
28545fi
cristy73bd4a52010-10-05 11:24:23 +000028546 if test "$have_zlib" = 'yes'; then
28547 ZLIB_DELEGATE_TRUE=
28548 ZLIB_DELEGATE_FALSE='#'
28549else
28550 ZLIB_DELEGATE_TRUE='#'
28551 ZLIB_DELEGATE_FALSE=
28552fi
28553
cristy3ed852e2009-09-05 21:47:34 +000028554
28555
28556#
28557# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28558#
28559LIB_DL=''
28560if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028562$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028563if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028564 $as_echo_n "(cached) " >&6
28565else
28566 ac_check_lib_save_LIBS=$LIBS
28567LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028569/* end confdefs.h. */
28570
28571/* Override any GCC internal prototype to avoid an error.
28572 Use char because int might match the return type of a GCC
28573 builtin and then its argument prototype would still apply. */
28574#ifdef __cplusplus
28575extern "C"
28576#endif
28577char dlopen ();
28578int
28579main ()
28580{
28581return dlopen ();
28582 ;
28583 return 0;
28584}
28585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028586if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028587 ac_cv_lib_dl_dlopen=yes
28588else
cristy8b350f62009-11-15 23:12:43 +000028589 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028590fi
cristy8b350f62009-11-15 23:12:43 +000028591rm -f core conftest.err conftest.$ac_objext \
28592 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028593LIBS=$ac_check_lib_save_LIBS
28594fi
cristy8b350f62009-11-15 23:12:43 +000028595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028596$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028597if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028598 LIB_DL='-ldl'
28599fi
28600
28601 LIBS="$LIB_DL $LIBS"
28602fi
28603
28604
28605
28606#
28607# Check for Autotrace delegate library.
28608#
28609
28610# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028611if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028612 withval=$with_autotrace; with_autotrace=$withval
28613else
28614 with_autotrace='no'
28615fi
28616
28617
28618if test "$with_autotrace" != 'yes'; then
28619 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28620fi
28621
28622have_autotrace='no'
28623AUTOTRACE_CFLAGS=""
28624AUTOTRACE_LIBS=""
28625AUTOTRACE_PKG=""
28626if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028627 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28628$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028629
28630pkg_failed=no
28631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28632$as_echo_n "checking for AUTOTRACE... " >&6; }
28633
28634if test -n "$AUTOTRACE_CFLAGS"; then
28635 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28636 elif test -n "$PKG_CONFIG"; then
28637 if test -n "$PKG_CONFIG" && \
28638 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28639 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28640 ac_status=$?
28641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28642 test $ac_status = 0; }; then
28643 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28644else
28645 pkg_failed=yes
28646fi
28647 else
28648 pkg_failed=untried
28649fi
28650if test -n "$AUTOTRACE_LIBS"; then
28651 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28652 elif test -n "$PKG_CONFIG"; then
28653 if test -n "$PKG_CONFIG" && \
28654 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28655 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28656 ac_status=$?
28657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28658 test $ac_status = 0; }; then
28659 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28660else
28661 pkg_failed=yes
28662fi
28663 else
28664 pkg_failed=untried
28665fi
28666
28667
28668
28669if test $pkg_failed = yes; then
28670
28671if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28672 _pkg_short_errors_supported=yes
28673else
28674 _pkg_short_errors_supported=no
28675fi
28676 if test $_pkg_short_errors_supported = yes; then
28677 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28678 else
28679 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28680 fi
28681 # Put the nasty error message in config.log where it belongs
28682 echo "$AUTOTRACE_PKG_ERRORS" >&5
28683
28684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28685$as_echo "no" >&6; }
28686 have_autotrace=no
28687elif test $pkg_failed = untried; then
28688 have_autotrace=no
28689else
28690 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28691 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28693$as_echo "yes" >&6; }
28694 have_autotrace=yes
28695fi
cristy09b53e12011-10-14 12:47:22 +000028696 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28697$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028698fi
28699
28700if test "$have_autotrace" = 'yes'; then
28701 failed=0
28702
cristy8b350f62009-11-15 23:12:43 +000028703$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028704
28705 if test "$with_modules" = 'no'; then
28706 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28707 fi
28708fi
28709
cristy73bd4a52010-10-05 11:24:23 +000028710 if test "$have_autotrace" = 'yes'; then
28711 AUTOTRACE_DELEGATE_TRUE=
28712 AUTOTRACE_DELEGATE_FALSE='#'
28713else
28714 AUTOTRACE_DELEGATE_TRUE='#'
28715 AUTOTRACE_DELEGATE_FALSE=
28716fi
28717
cristy3ed852e2009-09-05 21:47:34 +000028718
28719
28720
28721
28722#
28723# Check for Display Postscript delegate library.
28724#
28725
28726# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028727if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028728 withval=$with_dps; with_dps=$withval
28729else
28730 with_dps='yes'
28731fi
28732
28733
28734if test "$with_dps" != 'yes'; then
28735 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28736fi
28737
28738have_dps='no'
28739DPS_LIBS=''
28740if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028741 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28742$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028744$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028745 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28746$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028747 failed=0
28748 passed=0
28749 PERSIST_CPPFLAGS="$CPPFLAGS"
28750 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028751 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 +000028752if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028753 passed=`expr $passed + 1`
28754else
28755 failed=`expr $failed + 1`
28756fi
28757
28758
28759 # DPS issues:
28760 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28761 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28762 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28763 # ImageMagick itself doesn't use -lXt.
28764 have_libdps='no'
28765 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028767$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028768if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028769 $as_echo_n "(cached) " >&6
28770else
28771 ac_check_lib_save_LIBS=$LIBS
28772LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028774/* end confdefs.h. */
28775
28776/* Override any GCC internal prototype to avoid an error.
28777 Use char because int might match the return type of a GCC
28778 builtin and then its argument prototype would still apply. */
28779#ifdef __cplusplus
28780extern "C"
28781#endif
28782char DPSInitialize ();
28783int
28784main ()
28785{
28786return DPSInitialize ();
28787 ;
28788 return 0;
28789}
28790_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028791if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028792 ac_cv_lib_dps_DPSInitialize=yes
28793else
cristy8b350f62009-11-15 23:12:43 +000028794 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028795fi
cristy8b350f62009-11-15 23:12:43 +000028796rm -f core conftest.err conftest.$ac_objext \
28797 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028798LIBS=$ac_check_lib_save_LIBS
28799fi
cristy8b350f62009-11-15 23:12:43 +000028800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028801$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028802if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028803 have_libdps='yes'
28804else
28805 have_libdps='no'
28806fi
28807
28808 if test "$have_libdps" != 'yes'; then
28809 # Unset cache variable so we can try again.
28810 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028812$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028813if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028814 $as_echo_n "(cached) " >&6
28815else
28816 ac_check_lib_save_LIBS=$LIBS
28817LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028819/* end confdefs.h. */
28820
28821/* Override any GCC internal prototype to avoid an error.
28822 Use char because int might match the return type of a GCC
28823 builtin and then its argument prototype would still apply. */
28824#ifdef __cplusplus
28825extern "C"
28826#endif
28827char DPSInitialize ();
28828int
28829main ()
28830{
28831return DPSInitialize ();
28832 ;
28833 return 0;
28834}
28835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028836if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028837 ac_cv_lib_dps_DPSInitialize=yes
28838else
cristy8b350f62009-11-15 23:12:43 +000028839 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028840fi
cristy8b350f62009-11-15 23:12:43 +000028841rm -f core conftest.err conftest.$ac_objext \
28842 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028843LIBS=$ac_check_lib_save_LIBS
28844fi
cristy8b350f62009-11-15 23:12:43 +000028845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028846$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028847if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028848 have_libdps='yes'
28849else
28850 have_libdps='no'
28851fi
28852
28853 if test "$have_libdps" = 'yes'; then
28854 LIBDPS_XT='-lXt'
28855 fi
28856 fi
28857 if test "$have_libdps" = 'yes'; then
28858 passed=`expr $passed + 1`
28859 else
28860 failed=`expr $failed + 1`
28861 fi
cristy8b350f62009-11-15 23:12:43 +000028862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028863$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028864if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028865 $as_echo_n "(cached) " >&6
28866else
28867 ac_check_lib_save_LIBS=$LIBS
28868LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028870/* end confdefs.h. */
28871
28872/* Override any GCC internal prototype to avoid an error.
28873 Use char because int might match the return type of a GCC
28874 builtin and then its argument prototype would still apply. */
28875#ifdef __cplusplus
28876extern "C"
28877#endif
28878char XDPSPixelsPerPoint ();
28879int
28880main ()
28881{
28882return XDPSPixelsPerPoint ();
28883 ;
28884 return 0;
28885}
28886_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028887if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028888 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28889else
cristy8b350f62009-11-15 23:12:43 +000028890 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028891fi
cristy8b350f62009-11-15 23:12:43 +000028892rm -f core conftest.err conftest.$ac_objext \
28893 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028894LIBS=$ac_check_lib_save_LIBS
28895fi
cristy8b350f62009-11-15 23:12:43 +000028896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028897$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028898if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028899 passed=`expr $passed + 1`
28900else
28901 failed=`expr $failed + 1`
28902fi
28903
cristy8b350f62009-11-15 23:12:43 +000028904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028905$as_echo_n "checking if DPS package is complete... " >&6; }
28906 if test $passed -gt 0; then
28907 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028908 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28909$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028910 have_dps='no (failed tests)'
28911 CPPFLAGS="$PERSIST_CPPFLAGS"
28912 else
28913 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28914 LIBS="$DPS_LIBS $LIBS"
28915
cristy8b350f62009-11-15 23:12:43 +000028916$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028917
cristy09b53e12011-10-14 12:47:22 +000028918 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28919$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028920 have_dps='yes'
28921 fi
28922 else
cristy09b53e12011-10-14 12:47:22 +000028923 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28924$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028925 CPPFLAGS=$PERSIST_CPPFLAGS
28926 fi
28927fi
cristy73bd4a52010-10-05 11:24:23 +000028928 if test "$have_dps" = 'yes'; then
28929 DPS_DELEGATE_TRUE=
28930 DPS_DELEGATE_FALSE='#'
28931else
28932 DPS_DELEGATE_TRUE='#'
28933 DPS_DELEGATE_FALSE=
28934fi
28935
cristy3ed852e2009-09-05 21:47:34 +000028936
28937
28938
28939#
28940# Check for DJVU delegate library.
28941#
28942
28943# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028944if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028945 withval=$with_djvu; with_djvu=$withval
28946else
28947 with_djvu='yes'
28948fi
28949
28950
28951if test "$with_djvu" != 'yes'; then
28952 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28953fi
28954
28955have_djvu='no'
28956DJVU_LIBS=''
28957if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028958 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28959$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028961$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028962 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28963$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028964 failed=0
28965 passed=0
cristy8b350f62009-11-15 23:12:43 +000028966 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 +000028967if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028968 passed=`expr $passed + 1`
28969else
28970 failed=`expr $failed + 1`
28971fi
28972
28973
cristy8b350f62009-11-15 23:12:43 +000028974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028975$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028976if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028977 $as_echo_n "(cached) " >&6
28978else
28979 ac_check_lib_save_LIBS=$LIBS
28980LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028982/* end confdefs.h. */
28983
28984/* Override any GCC internal prototype to avoid an error.
28985 Use char because int might match the return type of a GCC
28986 builtin and then its argument prototype would still apply. */
28987#ifdef __cplusplus
28988extern "C"
28989#endif
28990char ddjvu_context_create ();
28991int
28992main ()
28993{
28994return ddjvu_context_create ();
28995 ;
28996 return 0;
28997}
28998_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028999if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029000 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29001else
cristy8b350f62009-11-15 23:12:43 +000029002 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000029003fi
cristy8b350f62009-11-15 23:12:43 +000029004rm -f core conftest.err conftest.$ac_objext \
29005 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029006LIBS=$ac_check_lib_save_LIBS
29007fi
cristy8b350f62009-11-15 23:12:43 +000029008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000029009$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000029010if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029011 passed=`expr $passed + 1`
29012else
29013 failed=`expr $failed + 1`
29014fi
29015
cristy8b350f62009-11-15 23:12:43 +000029016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029017$as_echo_n "checking if DJVU package is complete... " >&6; }
29018 if test $passed -gt 0; then
29019 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029020 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29021$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029022 have_djvu='no (failed tests)'
29023 else
29024 DJVU_LIBS='-ldjvulibre'
29025 LIBS="$DJVU_LIBS $LIBS"
29026
cristy8b350f62009-11-15 23:12:43 +000029027$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029028
cristy09b53e12011-10-14 12:47:22 +000029029 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29030$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029031 have_djvu='yes'
29032 fi
29033 else
cristy09b53e12011-10-14 12:47:22 +000029034 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29035$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029036 fi
29037fi
cristy73bd4a52010-10-05 11:24:23 +000029038 if test "$have_djvu" = 'yes'; then
29039 DJVU_DELEGATE_TRUE=
29040 DJVU_DELEGATE_FALSE='#'
29041else
29042 DJVU_DELEGATE_TRUE='#'
29043 DJVU_DELEGATE_FALSE=
29044fi
29045
cristy3ed852e2009-09-05 21:47:34 +000029046
29047
29048
29049#
cristy430a7312010-01-21 20:44:04 +000029050# Set DejaVu font directory.
29051#
29052
29053# Check whether --with-dejavu-font-dir was given.
29054if test "${with_dejavu_font_dir+set}" = set; then :
29055 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29056else
29057 with_dejavu_font_dir='default'
29058fi
29059
29060
29061if test "$with_dejavu_font_dir" != 'default'; then
29062 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29063fi
29064
29065
29066#
cristy3ed852e2009-09-05 21:47:34 +000029067# Check for FFTW delegate library.
29068#
29069
29070# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029071if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029072 withval=$with_fftw; with_fftw=$withval
29073else
29074 with_fftw='yes'
29075fi
29076
29077
29078if test "$with_fftw" != 'yes'; then
29079 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29080fi
29081
cristy81beccd2011-10-03 18:17:24 +000029082have_fftw='no'
29083FFTW_LIBS=''
29084if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029085 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29086$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29088$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029089 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29090$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029091 failed=0
29092 passed=0
29093 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29094if test "x$ac_cv_header_fftw3_h" = xyes; then :
29095 passed=`expr $passed + 1`
29096else
29097 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029098fi
29099
cristy81beccd2011-10-03 18:17:24 +000029100
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29102$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29103if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29104 $as_echo_n "(cached) " >&6
29105else
29106 ac_check_lib_save_LIBS=$LIBS
29107LIBS="-lfftw3 $LIBS"
29108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29109/* end confdefs.h. */
29110
29111/* Override any GCC internal prototype to avoid an error.
29112 Use char because int might match the return type of a GCC
29113 builtin and then its argument prototype would still apply. */
29114#ifdef __cplusplus
29115extern "C"
29116#endif
29117char fftw_execute ();
29118int
29119main ()
29120{
29121return fftw_execute ();
29122 ;
29123 return 0;
29124}
29125_ACEOF
29126if ac_fn_c_try_link "$LINENO"; then :
29127 ac_cv_lib_fftw3_fftw_execute=yes
29128else
29129 ac_cv_lib_fftw3_fftw_execute=no
29130fi
29131rm -f core conftest.err conftest.$ac_objext \
29132 conftest$ac_exeext conftest.$ac_ext
29133LIBS=$ac_check_lib_save_LIBS
29134fi
29135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29136$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29137if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29138 passed=`expr $passed + 1`
29139else
29140 failed=`expr $failed + 1`
29141fi
29142
29143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29144$as_echo_n "checking if FFTW package is complete... " >&6; }
29145 if test $passed -gt 0; then
29146 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029147 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29148$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029149 have_fftw='no (failed tests)'
29150 else
29151 FFTW_LIBS='-lfftw3'
29152 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029153
cristy8b350f62009-11-15 23:12:43 +000029154$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029155
cristy09b53e12011-10-14 12:47:22 +000029156 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29157$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029158 have_fftw='yes'
29159 fi
29160 else
cristy09b53e12011-10-14 12:47:22 +000029161 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29162$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029163 fi
29164fi
cristy73bd4a52010-10-05 11:24:23 +000029165 if test "$have_fftw" = 'yes'; then
29166 FFTW_DELEGATE_TRUE=
29167 FFTW_DELEGATE_FALSE='#'
29168else
29169 FFTW_DELEGATE_TRUE='#'
29170 FFTW_DELEGATE_FALSE=
29171fi
29172
cristy3ed852e2009-09-05 21:47:34 +000029173
29174
29175
29176#
29177# Check for FlashPIX delegate library.
29178#
29179
29180# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029181if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029182 withval=$with_fpx; with_fpx=$withval
29183else
29184 with_fpx='yes'
29185fi
29186
29187
29188if test "$with_fpx" != 'yes'; then
29189 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29190fi
29191
29192have_fpx='no'
29193FPX_LIBS=''
29194if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029195 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29196$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029198$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029199 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29200$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029201 failed=0
29202 passed=0
29203 ac_ext=cpp
29204ac_cpp='$CXXCPP $CPPFLAGS'
29205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29208
29209
cristy8b350f62009-11-15 23:12:43 +000029210ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029211if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029212 passed=`expr $passed + 1`
29213else
29214 failed=`expr $failed + 1`
29215fi
29216
29217
cristy8b350f62009-11-15 23:12:43 +000029218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029219$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029220if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029221 $as_echo_n "(cached) " >&6
29222else
29223 ac_check_lib_save_LIBS=$LIBS
29224LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029226/* end confdefs.h. */
29227
29228/* Override any GCC internal prototype to avoid an error.
29229 Use char because int might match the return type of a GCC
29230 builtin and then its argument prototype would still apply. */
29231#ifdef __cplusplus
29232extern "C"
29233#endif
29234char FPX_OpenImageByFilename ();
29235int
29236main ()
29237{
29238return FPX_OpenImageByFilename ();
29239 ;
29240 return 0;
29241}
29242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029243if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029244 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29245else
cristy8b350f62009-11-15 23:12:43 +000029246 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029247fi
cristy8b350f62009-11-15 23:12:43 +000029248rm -f core conftest.err conftest.$ac_objext \
29249 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029250LIBS=$ac_check_lib_save_LIBS
29251fi
cristy8b350f62009-11-15 23:12:43 +000029252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029253$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029254if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029255 passed=`expr $passed + 1`
29256else
29257 failed=`expr $failed + 1`
29258fi
29259
29260 ac_ext=c
29261ac_cpp='$CPP $CPPFLAGS'
29262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29264ac_compiler_gnu=$ac_cv_c_compiler_gnu
29265
cristy8b350f62009-11-15 23:12:43 +000029266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029267$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29268 if test $passed -gt 0; then
29269 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029270 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29271$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029272 have_fpx='no (failed tests)'
29273 else
29274 FPX_LIBS='-lfpx'
29275
cristy8b350f62009-11-15 23:12:43 +000029276$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029277
cristy09b53e12011-10-14 12:47:22 +000029278 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29279$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029280 have_fpx='yes'
29281 PERLMAINCC="$CXX"
29282 fi
29283 else
cristy09b53e12011-10-14 12:47:22 +000029284 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29285$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029286 fi
29287fi
cristy73bd4a52010-10-05 11:24:23 +000029288 if test "$have_fpx" = 'yes'; then
29289 FPX_DELEGATE_TRUE=
29290 FPX_DELEGATE_FALSE='#'
29291else
29292 FPX_DELEGATE_TRUE='#'
29293 FPX_DELEGATE_FALSE=
29294fi
29295
cristy3ed852e2009-09-05 21:47:34 +000029296
29297
29298
29299#
29300# Check for fontconfig delegate library.
29301#
29302
29303# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029304if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029305 withval=$with_fontconfig; with_fontconfig=$withval
29306else
cristyfc3d0222012-02-07 15:05:57 +000029307 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029308fi
29309
29310
29311if test "$with_fontconfig" != 'yes'; then
29312 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29313fi
29314
29315have_fontconfig='no'
29316FONTCONFIG_CFLAGS=""
29317FONTCONFIG_LIBS=""
29318FONTCONFIG_PKG=""
29319if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029320 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29321$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029322
29323pkg_failed=no
29324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29325$as_echo_n "checking for FONTCONFIG... " >&6; }
29326
29327if test -n "$FONTCONFIG_CFLAGS"; then
29328 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29329 elif test -n "$PKG_CONFIG"; then
29330 if test -n "$PKG_CONFIG" && \
29331 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29332 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29333 ac_status=$?
29334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29335 test $ac_status = 0; }; then
29336 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29337else
29338 pkg_failed=yes
29339fi
29340 else
29341 pkg_failed=untried
29342fi
29343if test -n "$FONTCONFIG_LIBS"; then
29344 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29345 elif test -n "$PKG_CONFIG"; then
29346 if test -n "$PKG_CONFIG" && \
29347 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29348 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29349 ac_status=$?
29350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29351 test $ac_status = 0; }; then
29352 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29353else
29354 pkg_failed=yes
29355fi
29356 else
29357 pkg_failed=untried
29358fi
29359
29360
29361
29362if test $pkg_failed = yes; then
29363
29364if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29365 _pkg_short_errors_supported=yes
29366else
29367 _pkg_short_errors_supported=no
29368fi
29369 if test $_pkg_short_errors_supported = yes; then
29370 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29371 else
29372 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29373 fi
29374 # Put the nasty error message in config.log where it belongs
29375 echo "$FONTCONFIG_PKG_ERRORS" >&5
29376
29377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29378$as_echo "no" >&6; }
29379 have_fontconfig=no
29380elif test $pkg_failed = untried; then
29381 have_fontconfig=no
29382else
29383 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29384 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29386$as_echo "yes" >&6; }
29387 have_fontconfig=yes
29388fi
cristy09b53e12011-10-14 12:47:22 +000029389 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29390$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029391fi
29392
29393if test "$have_fontconfig" = 'yes'; then
29394
cristy8b350f62009-11-15 23:12:43 +000029395$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029396
cristyd09bcf92010-03-25 03:04:45 +000029397 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029398 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029399 fi
cristy3ed852e2009-09-05 21:47:34 +000029400fi
29401
cristy73bd4a52010-10-05 11:24:23 +000029402 if test "$have_fontconfig" = 'yes'; then
29403 FONTCONFIG_DELEGATE_TRUE=
29404 FONTCONFIG_DELEGATE_FALSE='#'
29405else
29406 FONTCONFIG_DELEGATE_TRUE='#'
29407 FONTCONFIG_DELEGATE_FALSE=
29408fi
29409
cristy3ed852e2009-09-05 21:47:34 +000029410
29411
29412
29413
29414#
cristy81beccd2011-10-03 18:17:24 +000029415# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029416#
29417
29418# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029419if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029420 withval=$with_freetype; with_freetype=$withval
29421else
29422 with_freetype='yes'
29423fi
29424
29425
cristy81beccd2011-10-03 18:17:24 +000029426
cristy3ed852e2009-09-05 21:47:34 +000029427if test "$with_freetype" != 'yes'; then
29428 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29429fi
29430
cristy81beccd2011-10-03 18:17:24 +000029431have_freetype='no'
29432FREETYPE_LIBS=''
29433if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029434 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29435$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29437$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029438 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29439$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029440 failed=0
29441 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029442 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029443 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029444 freetype_config=''
29445 # Allow the user to specify the location of freetype.
29446 if test "$with_freetype" != 'yes'; then
29447 if test -x "${with_freetype}/bin/freetype-config"; then
29448 freetype_config="${with_freetype}/bin/freetype-config"
29449 elif test -x "${with_freetype}"; then
29450 freetype_config=${with_freetype}
29451 fi
29452 fi
29453 if test -z "$freetype_config"; then
29454 # Extract the first word of "freetype-config", so it can be a program name with args.
29455set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29457$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029458if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029459 $as_echo_n "(cached) " >&6
29460else
cristy98ca0f52011-10-08 23:19:10 +000029461 case $freetype_config in
29462 [\\/]* | ?:[\\/]*)
29463 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29464 ;;
29465 *)
29466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029467for as_dir in $PATH
29468do
29469 IFS=$as_save_IFS
29470 test -z "$as_dir" && as_dir=.
29471 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029473 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29475 break 2
29476 fi
29477done
29478 done
29479IFS=$as_save_IFS
29480
cristy98ca0f52011-10-08 23:19:10 +000029481 ;;
29482esac
cristy81beccd2011-10-03 18:17:24 +000029483fi
cristy98ca0f52011-10-08 23:19:10 +000029484freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029485if test -n "$freetype_config"; then
29486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29487$as_echo "$freetype_config" >&6; }
29488else
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29490$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029491fi
29492
cristy98ca0f52011-10-08 23:19:10 +000029493 fi
29494 if test -n "$freetype_config"; then
29495 freetype_prefix=`${freetype_config} --prefix`
29496 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29497 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29498 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029499 fi
29500
29501 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029503$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29504if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29505 $as_echo_n "(cached) " >&6
29506else
29507 ac_check_lib_save_LIBS=$LIBS
29508LIBS="-lfreetype $LIBS"
29509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29510/* end confdefs.h. */
29511
29512/* Override any GCC internal prototype to avoid an error.
29513 Use char because int might match the return type of a GCC
29514 builtin and then its argument prototype would still apply. */
29515#ifdef __cplusplus
29516extern "C"
29517#endif
29518char FT_Init_FreeType ();
29519int
29520main ()
29521{
29522return FT_Init_FreeType ();
29523 ;
29524 return 0;
29525}
29526_ACEOF
29527if ac_fn_c_try_link "$LINENO"; then :
29528 ac_cv_lib_freetype_FT_Init_FreeType=yes
29529else
29530 ac_cv_lib_freetype_FT_Init_FreeType=no
29531fi
29532rm -f core conftest.err conftest.$ac_objext \
29533 conftest$ac_exeext conftest.$ac_ext
29534LIBS=$ac_check_lib_save_LIBS
29535fi
29536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29537$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29538if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29539 FREETYPE_LIBS='-lfreetype'
29540fi
29541
cristy98ca0f52011-10-08 23:19:10 +000029542 if test "$FREETYPE_LIBS" != ''; then
29543 passed=`expr $passed + 1`
29544 else
29545 failed=`expr $failed + 1`
29546 LDFLAGS="$PERSIST_LDFLAGS"
29547 fi
cristy81beccd2011-10-03 18:17:24 +000029548 fi
29549
29550 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29551if test "x$ac_cv_header_ft2build_h" = xyes; then :
29552 FT2BUILD_H='#include <ft2build.h>'
29553else
29554 ft2build=''
29555fi
29556
29557
29558 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29559"
29560if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29561 have_freetype_h='yes'
29562else
29563 have_freetype_h='no'
29564fi
29565
29566
cristy98ca0f52011-10-08 23:19:10 +000029567 if test "$have_freetype_h" = 'yes'; then
29568 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029569 else
cristy98ca0f52011-10-08 23:19:10 +000029570 failed=`expr $failed + 1`
29571 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029572 fi
29573
29574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29575$as_echo_n "checking if FreeType package is complete... " >&6; }
29576 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029577 if test $failed -gt 0; then
29578 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029579 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29580$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029581 have_freetype='no (failed tests)'
29582 else
29583 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029584
cristy8b350f62009-11-15 23:12:43 +000029585$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029586
cristy98ca0f52011-10-08 23:19:10 +000029587 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029588
29589$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29590
cristy81beccd2011-10-03 18:17:24 +000029591 fi
cristy09b53e12011-10-14 12:47:22 +000029592 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29593$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029594 have_freetype='yes'
29595 fi
cristy81beccd2011-10-03 18:17:24 +000029596 else
cristy09b53e12011-10-14 12:47:22 +000029597 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29598$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029599 fi
29600fi
cristy73bd4a52010-10-05 11:24:23 +000029601 if test "$have_freetype" = 'yes'; then
29602 FREETYPE_DELEGATE_TRUE=
29603 FREETYPE_DELEGATE_FALSE='#'
29604else
29605 FREETYPE_DELEGATE_TRUE='#'
29606 FREETYPE_DELEGATE_FALSE=
29607fi
29608
cristy3ed852e2009-09-05 21:47:34 +000029609
29610
29611
cristy3ed852e2009-09-05 21:47:34 +000029612#
29613# Check for Ghostscript library or framework.
29614#
29615# Test for iapi.h & test for gsapi_new_instance in -lgs
29616# or -framework Ghostscript
29617
29618
29619# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029620if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029621 withval=$with_gslib; with_gslib=$withval
29622else
29623 with_gslib='no'
29624fi
29625
29626
cristyb7931f12009-09-25 10:22:21 +000029627gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029628if test "$with_gslib" != 'yes'; then
29629 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29630fi
29631
29632have_gslib='no'
29633GS_LIBS=''
29634if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029635 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29636$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029638$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029639 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29640$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029641 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029642 failed=0
29643 passed=0
cristy8b350f62009-11-15 23:12:43 +000029644 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 +000029645if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029646 passed=`expr $passed + 1`
29647else
29648 failed=`expr $failed + 1`
29649fi
29650
29651
cristy8b350f62009-11-15 23:12:43 +000029652 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 +000029653if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029654 passed=`expr $passed + 1`
29655else
29656 failed=`expr $failed + 1`
29657fi
29658
29659
cristy73bd4a52010-10-05 11:24:23 +000029660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29661$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029662if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029663 $as_echo_n "(cached) " >&6
29664else
29665 ac_check_framework_save_LIBS=$LIBS
29666LIBS="-framework Ghostscript $LIBS"
29667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29668/* end confdefs.h. */
29669
29670/* Override any GCC internal prototype to avoid an error.
29671 Use char because int might match the return type of a GCC
29672 builtin and then its argument prototype would still apply. */
29673#ifdef __cplusplus
29674extern "C"
29675#endif
29676char gsapi_new_instance ();
29677int
29678main ()
29679{
29680return gsapi_new_instance ();
29681 ;
29682 return 0;
29683}
29684_ACEOF
29685if ac_fn_c_try_link "$LINENO"; then :
29686 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29687else
29688 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29689fi
29690rm -f core conftest.err conftest.$ac_objext \
29691 conftest$ac_exeext conftest.$ac_ext
29692LIBS=$ac_check_framework_save_LIBS
29693fi
29694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29695$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29696if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29697 framework=`expr $framework + 1`
29698else
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029700$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029701if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029702 $as_echo_n "(cached) " >&6
29703else
29704 ac_check_lib_save_LIBS=$LIBS
29705LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029707/* end confdefs.h. */
29708
29709/* Override any GCC internal prototype to avoid an error.
29710 Use char because int might match the return type of a GCC
29711 builtin and then its argument prototype would still apply. */
29712#ifdef __cplusplus
29713extern "C"
29714#endif
29715char gsapi_new_instance ();
29716int
29717main ()
29718{
29719return gsapi_new_instance ();
29720 ;
29721 return 0;
29722}
29723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029724if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029725 ac_cv_lib_gs_gsapi_new_instance=yes
29726else
cristy8b350f62009-11-15 23:12:43 +000029727 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029728fi
cristy8b350f62009-11-15 23:12:43 +000029729rm -f core conftest.err conftest.$ac_objext \
29730 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029731LIBS=$ac_check_lib_save_LIBS
29732fi
cristy8b350f62009-11-15 23:12:43 +000029733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029734$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029735if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029736 passed=`expr $passed + 1`
29737else
29738 failed=`expr $failed + 1`
29739fi
cristy73bd4a52010-10-05 11:24:23 +000029740
29741fi
cristy8b350f62009-11-15 23:12:43 +000029742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029743$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29744 if test $passed -gt 0; then
29745 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029746 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29747$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029748 have_gslib='no (failed tests)'
29749 else
29750 if test $framework -gt 0; then
29751 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029752 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029753 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29754$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029755 else
cristy09b53e12011-10-14 12:47:22 +000029756 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29757$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029758 GS_LIBS='-lgs'
29759 fi
29760 LIBS="$GS_LIBS $LIBS"
29761
cristy8b350f62009-11-15 23:12:43 +000029762$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029763
29764 have_gslib='yes'
29765 fi
29766 else
cristy09b53e12011-10-14 12:47:22 +000029767 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29768$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029769 fi
29770fi
cristy73bd4a52010-10-05 11:24:23 +000029771 if test "$have_gslib" = 'yes'; then
29772 GS_DELEGATE_TRUE=
29773 GS_DELEGATE_FALSE='#'
29774else
29775 GS_DELEGATE_TRUE='#'
29776 GS_DELEGATE_FALSE=
29777fi
29778
cristy3ed852e2009-09-05 21:47:34 +000029779
29780
29781# Set default font search path
29782
29783# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029784if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029785 withval=$with_fontpath; with_fontpath=$withval
29786else
29787 with_fontpath=''
29788fi
29789
29790
29791if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29792 with_fontpath=''
29793else
29794
29795cat >>confdefs.h <<_ACEOF
29796#define MAGICK_FONT_PATH "$with_fontpath"
29797_ACEOF
29798
29799fi
29800if test "$with_fontpath=" != ''; then
29801 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29802fi
29803
29804# Set Ghostscript font directory
29805
29806# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029807if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029808 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29809else
29810 with_gs_font_dir='default'
29811fi
29812
29813
29814if test "$with_gs_font_dir" != 'default'; then
29815 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29816fi
29817
29818
29819#
29820# Check for GVC delegate library.
29821#
29822
29823# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029824if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029825 withval=$with_gvc; with_gvc=$withval
29826else
cristy1b70dc82012-07-01 23:15:05 +000029827 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029828fi
29829
29830
29831if test "$with_gvc" != 'yes'; then
29832 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29833fi
29834
29835GVC_PKG=""
29836if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029837 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29838$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029839
29840pkg_failed=no
29841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29842$as_echo_n "checking for GVC... " >&6; }
29843
29844if test -n "$GVC_CFLAGS"; then
29845 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29846 elif test -n "$PKG_CONFIG"; then
29847 if test -n "$PKG_CONFIG" && \
29848 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29849 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29850 ac_status=$?
29851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29852 test $ac_status = 0; }; then
29853 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29854else
29855 pkg_failed=yes
29856fi
29857 else
29858 pkg_failed=untried
29859fi
29860if test -n "$GVC_LIBS"; then
29861 pkg_cv_GVC_LIBS="$GVC_LIBS"
29862 elif test -n "$PKG_CONFIG"; then
29863 if test -n "$PKG_CONFIG" && \
29864 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29865 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29866 ac_status=$?
29867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29868 test $ac_status = 0; }; then
29869 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29870else
29871 pkg_failed=yes
29872fi
29873 else
29874 pkg_failed=untried
29875fi
29876
29877
29878
29879if test $pkg_failed = yes; then
29880
29881if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29882 _pkg_short_errors_supported=yes
29883else
29884 _pkg_short_errors_supported=no
29885fi
29886 if test $_pkg_short_errors_supported = yes; then
29887 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29888 else
29889 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29890 fi
29891 # Put the nasty error message in config.log where it belongs
29892 echo "$GVC_PKG_ERRORS" >&5
29893
29894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29895$as_echo "no" >&6; }
29896 have_gvc=no
29897elif test $pkg_failed = untried; then
29898 have_gvc=no
29899else
29900 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29901 GVC_LIBS=$pkg_cv_GVC_LIBS
29902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29903$as_echo "yes" >&6; }
29904 have_gvc=yes
29905fi
cristy09b53e12011-10-14 12:47:22 +000029906 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29907$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029908fi
29909
29910if test "$have_gvc" = 'yes'; then
29911
cristy8b350f62009-11-15 23:12:43 +000029912$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029913
29914 if test "$with_modules" = 'no'; then
29915 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29916 fi
29917fi
29918
cristy73bd4a52010-10-05 11:24:23 +000029919 if test "$have_gvc" = 'yes'; then
29920 GVC_DELEGATE_TRUE=
29921 GVC_DELEGATE_FALSE='#'
29922else
29923 GVC_DELEGATE_TRUE='#'
29924 GVC_DELEGATE_FALSE=
29925fi
29926
cristy3ed852e2009-09-05 21:47:34 +000029927
29928
29929
29930
29931#
29932# Check for JBIG delegate library.
29933#
29934
29935
29936# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029937if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029938 withval=$with_jbig; with_jbig=$withval
29939else
29940 with_jbig='yes'
29941fi
29942
29943
29944have_jbig='no'
29945JBIG_LIBS=''
29946if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029947 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29948$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029950$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029951 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29952$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029953 failed=0
29954 passed=0
cristy8b350f62009-11-15 23:12:43 +000029955 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029956if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029957 passed=`expr $passed + 1`
29958else
29959 failed=`expr $failed + 1`
29960fi
29961
29962
cristy8b350f62009-11-15 23:12:43 +000029963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029964$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029965if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029966 $as_echo_n "(cached) " >&6
29967else
29968 ac_check_lib_save_LIBS=$LIBS
29969LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029971/* end confdefs.h. */
29972
29973/* Override any GCC internal prototype to avoid an error.
29974 Use char because int might match the return type of a GCC
29975 builtin and then its argument prototype would still apply. */
29976#ifdef __cplusplus
29977extern "C"
29978#endif
29979char jbg_dec_init ();
29980int
29981main ()
29982{
29983return jbg_dec_init ();
29984 ;
29985 return 0;
29986}
29987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029988if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029989 ac_cv_lib_jbig_jbg_dec_init=yes
29990else
cristy8b350f62009-11-15 23:12:43 +000029991 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029992fi
cristy8b350f62009-11-15 23:12:43 +000029993rm -f core conftest.err conftest.$ac_objext \
29994 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029995LIBS=$ac_check_lib_save_LIBS
29996fi
cristy8b350f62009-11-15 23:12:43 +000029997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029998$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029999if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030000 passed=`expr $passed + 1`
30001else
30002 failed=`expr $failed + 1`
30003fi
30004
cristy8b350f62009-11-15 23:12:43 +000030005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030006$as_echo_n "checking if JBIG package is complete... " >&6; }
30007 if test $passed -gt 0; then
30008 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030009 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30010$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030011 have_jbig='no (failed tests)'
30012 else
30013 JBIG_LIBS='-ljbig'
30014 LIBS="$JBIG_LIBS $LIBS"
30015
cristy8b350f62009-11-15 23:12:43 +000030016$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030017
cristy09b53e12011-10-14 12:47:22 +000030018 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30019$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030020 have_jbig='yes'
30021 fi
30022 else
cristy09b53e12011-10-14 12:47:22 +000030023 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30024$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030025 fi
30026fi
cristy73bd4a52010-10-05 11:24:23 +000030027 if test "$have_jbig" = 'yes'; then
30028 JBIG_DELEGATE_TRUE=
30029 JBIG_DELEGATE_FALSE='#'
30030else
30031 JBIG_DELEGATE_TRUE='#'
30032 JBIG_DELEGATE_FALSE=
30033fi
30034
cristy3ed852e2009-09-05 21:47:34 +000030035
30036
30037
30038#
30039# Check for JPEG delegate library.
30040#
30041
30042# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030043if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030044 withval=$with_jpeg; with_jpeg=$withval
30045else
30046 with_jpeg='yes'
30047fi
30048
30049
30050if test "$with_jpeg" != 'yes'; then
30051 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30052fi
30053
30054have_jpeg='no'
30055JPEG_LIBS=''
30056if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030057 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30058$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030060$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030061 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30062$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030063 failed=0
30064 passed=0
cristy8b350f62009-11-15 23:12:43 +000030065 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030066if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030067 passed=`expr $passed + 1`
30068else
30069 failed=`expr $failed + 1`
30070fi
30071
30072
cristy8b350f62009-11-15 23:12:43 +000030073 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030074if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030075 passed=`expr $passed + 1`
30076else
30077 failed=`expr $failed + 1`
30078fi
30079
30080
cristy8b350f62009-11-15 23:12:43 +000030081 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030082if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030083 passed=`expr $passed + 1`
30084else
30085 failed=`expr $failed + 1`
30086fi
30087
30088
cristy8b350f62009-11-15 23:12:43 +000030089 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030090if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030091 passed=`expr $passed + 1`
30092else
30093 failed=`expr $failed + 1`
30094fi
30095
30096
cristy8b350f62009-11-15 23:12:43 +000030097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030098$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030099if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030100 $as_echo_n "(cached) " >&6
30101else
30102 ac_check_lib_save_LIBS=$LIBS
30103LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030105/* end confdefs.h. */
30106
30107/* Override any GCC internal prototype to avoid an error.
30108 Use char because int might match the return type of a GCC
30109 builtin and then its argument prototype would still apply. */
30110#ifdef __cplusplus
30111extern "C"
30112#endif
30113char jpeg_read_header ();
30114int
30115main ()
30116{
30117return jpeg_read_header ();
30118 ;
30119 return 0;
30120}
30121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030122if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030123 ac_cv_lib_jpeg_jpeg_read_header=yes
30124else
cristy8b350f62009-11-15 23:12:43 +000030125 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030126fi
cristy8b350f62009-11-15 23:12:43 +000030127rm -f core conftest.err conftest.$ac_objext \
30128 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030129LIBS=$ac_check_lib_save_LIBS
30130fi
cristy8b350f62009-11-15 23:12:43 +000030131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030132$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030133if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030134 passed=`expr $passed + 1`
30135else
30136 failed=`expr $failed + 1`
30137fi
30138
30139
30140# Test for compatible JPEG library
30141if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030143$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030144if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030145 $as_echo_n "(cached) " >&6
30146else
cristy8b350f62009-11-15 23:12:43 +000030147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030148/* end confdefs.h. */
30149#include <stdio.h>
30150#include <stdlib.h>
30151#include <jpeglib.h>
30152
30153int
30154main ()
30155{
30156
30157#if JPEG_LIB_VERSION < 62
30158#error IJG JPEG library must be version 6b or newer!
30159#endif
30160return 0;
30161
30162 ;
30163 return 0;
30164}
30165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030166if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030167 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30168else
cristy8b350f62009-11-15 23:12:43 +000030169 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030170fi
cristy3ed852e2009-09-05 21:47:34 +000030171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30172fi
cristy8b350f62009-11-15 23:12:43 +000030173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030174$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30175fi
cristy8b350f62009-11-15 23:12:43 +000030176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030177$as_echo_n "checking if JPEG package is complete... " >&6; }
30178 if test $passed -gt 0; then
30179 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030180 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30181$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030182 have_jpeg='no (failed tests)'
30183 else
30184 JPEG_LIBS='-ljpeg'
30185 LIBS="$JPEG_LIBS $LIBS"
30186
cristy8b350f62009-11-15 23:12:43 +000030187$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030188
cristy09b53e12011-10-14 12:47:22 +000030189 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30190$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030191 have_jpeg='yes'
30192 fi
30193 else
cristy09b53e12011-10-14 12:47:22 +000030194 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30195$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030196 fi
30197fi
cristy73bd4a52010-10-05 11:24:23 +000030198 if test "$have_jpeg" = 'yes'; then
30199 JPEG_DELEGATE_TRUE=
30200 JPEG_DELEGATE_FALSE='#'
30201else
30202 JPEG_DELEGATE_TRUE='#'
30203 JPEG_DELEGATE_FALSE=
30204fi
30205
cristy3ed852e2009-09-05 21:47:34 +000030206
30207
30208
30209#
30210# Check for JPEG Version 2 delegate library.
30211#
30212
30213# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030214if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030215 withval=$with_jp2; with_jp2=$withval
30216else
30217 with_jp2='yes'
30218fi
30219
30220
30221if test "$with_jp2" != 'yes'; then
30222 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30223fi
30224
30225have_jp2='no'
30226JP2_LIBS=''
30227if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030228 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30229$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030231$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030232 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30233$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030234 failed=0
30235 passed=0
cristy8b350f62009-11-15 23:12:43 +000030236 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 +000030237if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030238 passed=`expr $passed + 1`
30239else
30240 failed=`expr $failed + 1`
30241fi
30242
30243
cristy8b350f62009-11-15 23:12:43 +000030244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030245$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030246if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030247 $as_echo_n "(cached) " >&6
30248else
30249 ac_check_lib_save_LIBS=$LIBS
30250LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030252/* end confdefs.h. */
30253
30254/* Override any GCC internal prototype to avoid an error.
30255 Use char because int might match the return type of a GCC
30256 builtin and then its argument prototype would still apply. */
30257#ifdef __cplusplus
30258extern "C"
30259#endif
30260char jas_stream_fopen ();
30261int
30262main ()
30263{
30264return jas_stream_fopen ();
30265 ;
30266 return 0;
30267}
30268_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030269if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030270 ac_cv_lib_jasper_jas_stream_fopen=yes
30271else
cristy8b350f62009-11-15 23:12:43 +000030272 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030273fi
cristy8b350f62009-11-15 23:12:43 +000030274rm -f core conftest.err conftest.$ac_objext \
30275 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030276LIBS=$ac_check_lib_save_LIBS
30277fi
cristy8b350f62009-11-15 23:12:43 +000030278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030279$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030280if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030281 passed=`expr $passed + 1`
30282else
30283 failed=`expr $failed + 1`
30284fi
30285
cristy8b350f62009-11-15 23:12:43 +000030286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030287$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30288 if test $passed -gt 0; then
30289 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030290 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30291$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030292 have_jp2='no (failed tests)'
30293 else
30294 JP2_LIBS='-ljasper'
30295 LIBS="$JP2_LIBS $LIBS"
30296
cristy8b350f62009-11-15 23:12:43 +000030297$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030298
cristy09b53e12011-10-14 12:47:22 +000030299 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30300$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030301 have_jp2='yes'
30302 fi
30303 else
cristy09b53e12011-10-14 12:47:22 +000030304 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30305$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030306 fi
30307fi
cristy73bd4a52010-10-05 11:24:23 +000030308 if test "$have_jp2" = 'yes'; then
30309 JP2_DELEGATE_TRUE=
30310 JP2_DELEGATE_FALSE='#'
30311else
30312 JP2_DELEGATE_TRUE='#'
30313 JP2_DELEGATE_FALSE=
30314fi
30315
cristy3ed852e2009-09-05 21:47:34 +000030316
30317
30318
30319#
30320# Check for LCMS delegate library.
30321#
cristy71203402010-06-18 13:12:03 +000030322# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030323
30324# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030325if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030326 withval=$with_lcms; with_lcms=$withval
30327else
30328 with_lcms='yes'
30329fi
30330
cristy71203402010-06-18 13:12:03 +000030331if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030332 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30333fi
30334
cristy71203402010-06-18 13:12:03 +000030335# Disable LCMS2.
30336
30337# Check whether --with-lcms2 was given.
30338if test "${with_lcms2+set}" = set; then :
30339 withval=$with_lcms2; with_lcms2=$withval
30340else
30341 with_lcms2='yes'
30342fi
30343
30344if test "$with_lcms2" != 'yes' ; then
30345 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30346fi
30347
30348have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030349LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030350if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030351 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30352$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30354$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030355 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30356$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030357 failed=0
30358 passed=0
30359 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030360
30361 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030362 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030363if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030364 have_lcms_header='yes'
30365fi
30366
30367
30368 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030369
30370$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30371
cristy71203402010-06-18 13:12:03 +000030372 passed=`expr $passed + 1`
30373 fi
30374
30375 # Check for <lcms2/lcms2.h)
30376 if test "$have_lcms_header" != 'yes'; then
30377 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 +000030378if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030379 have_lcms_header='yes'
30380fi
30381
30382
cristy71203402010-06-18 13:12:03 +000030383 if test "$have_lcms_header" = 'yes'; then
30384 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030385
cristy71203402010-06-18 13:12:03 +000030386$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030387
cristy71203402010-06-18 13:12:03 +000030388 fi
cristyd09bcf92010-03-25 03:04:45 +000030389 fi
cristy71203402010-06-18 13:12:03 +000030390
30391 # Failed to find lcms header?
30392 if test "$have_lcms_header" != 'yes'; then
30393 failed=`expr $failed + 1`
30394 fi
30395
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30397$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030398if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030399 $as_echo_n "(cached) " >&6
30400else
30401 ac_check_lib_save_LIBS=$LIBS
30402LIBS="-llcms2 $LIBS"
30403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30404/* end confdefs.h. */
30405
30406/* Override any GCC internal prototype to avoid an error.
30407 Use char because int might match the return type of a GCC
30408 builtin and then its argument prototype would still apply. */
30409#ifdef __cplusplus
30410extern "C"
30411#endif
cristy71203402010-06-18 13:12:03 +000030412char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030413int
30414main ()
30415{
cristy71203402010-06-18 13:12:03 +000030416return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030417 ;
30418 return 0;
30419}
30420_ACEOF
30421if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030422 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030423else
cristy71203402010-06-18 13:12:03 +000030424 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030425fi
30426rm -f core conftest.err conftest.$ac_objext \
30427 conftest$ac_exeext conftest.$ac_ext
30428LIBS=$ac_check_lib_save_LIBS
30429fi
cristy71203402010-06-18 13:12:03 +000030430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30431$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030432if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030433 passed=`expr $passed + 1`
30434else
30435 failed=`expr $failed + 1`
30436fi
30437
cristy71203402010-06-18 13:12:03 +000030438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30439$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030440 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030441 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030442 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30443$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030444 have_lcms2='no (failed tests)'
30445 else
30446 LCMS_LIBS='-llcms2'
30447 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030448 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30449$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030450 have_lcms2='yes'
30451 fi
cristyd09bcf92010-03-25 03:04:45 +000030452 else
cristy09b53e12011-10-14 12:47:22 +000030453 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30454$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030455 fi
30456fi
30457
cristy71203402010-06-18 13:12:03 +000030458#
30459# Check for LCMS v1 (1.11 or later)
30460#
30461if test $have_lcms2 = 'yes'; then
30462 with_lcms='no'
30463fi
30464
30465have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030466if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030467 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30468$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30470$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030471 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30472$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030473 failed=0
30474 passed=0
30475 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030476
30477 # Check for <lcms.h>
30478 if test "$have_lcms_header" != 'yes'; then
30479 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030480if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030481 have_lcms_header='yes'
30482fi
30483
30484
cristy71203402010-06-18 13:12:03 +000030485 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030486 passed=`expr $passed + 1`
30487
cristy8b350f62009-11-15 23:12:43 +000030488$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030489
cristy71203402010-06-18 13:12:03 +000030490 fi
30491 fi
30492
30493 # Check for <lcms/lcms.h>
30494 if test "$have_lcms_header" != 'yes'; then
30495 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 +000030496if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030497 have_lcms_header='yes'
30498fi
30499
30500
cristy71203402010-06-18 13:12:03 +000030501 if test "$have_lcms_header" = 'yes'; then
30502 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030503
cristy8b350f62009-11-15 23:12:43 +000030504$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030505
cristy71203402010-06-18 13:12:03 +000030506 fi
cristy3ed852e2009-09-05 21:47:34 +000030507 fi
cristy71203402010-06-18 13:12:03 +000030508
30509 # Failed to find lcms header?
30510 if test "$have_lcms_header" != 'yes'; then
30511 failed=`expr $failed + 1`
30512 fi
30513
30514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30515$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030516if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030517 $as_echo_n "(cached) " >&6
30518else
30519 ac_check_lib_save_LIBS=$LIBS
30520LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030522/* end confdefs.h. */
30523
30524/* Override any GCC internal prototype to avoid an error.
30525 Use char because int might match the return type of a GCC
30526 builtin and then its argument prototype would still apply. */
30527#ifdef __cplusplus
30528extern "C"
30529#endif
cristy71203402010-06-18 13:12:03 +000030530char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030531int
30532main ()
30533{
cristy71203402010-06-18 13:12:03 +000030534return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030535 ;
30536 return 0;
30537}
30538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030539if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030540 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030541else
cristy71203402010-06-18 13:12:03 +000030542 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030543fi
cristy8b350f62009-11-15 23:12:43 +000030544rm -f core conftest.err conftest.$ac_objext \
30545 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030546LIBS=$ac_check_lib_save_LIBS
30547fi
cristy71203402010-06-18 13:12:03 +000030548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30549$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030550if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030551 passed=`expr $passed + 1`
30552else
30553 failed=`expr $failed + 1`
30554fi
30555
cristy8b350f62009-11-15 23:12:43 +000030556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030557$as_echo_n "checking if LCMS package is complete... " >&6; }
30558 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030559 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030560 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30561$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030562 have_lcms='no (failed tests)'
30563 else
30564 LCMS_LIBS='-llcms'
30565 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030566 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30567$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030568 have_lcms='yes'
30569 fi
cristy3ed852e2009-09-05 21:47:34 +000030570 else
cristy09b53e12011-10-14 12:47:22 +000030571 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30572$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030573 fi
30574fi
cristy71203402010-06-18 13:12:03 +000030575
cristy73bd4a52010-10-05 11:24:23 +000030576 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30577 LCMS_DELEGATE_TRUE=
30578 LCMS_DELEGATE_FALSE='#'
30579else
30580 LCMS_DELEGATE_TRUE='#'
30581 LCMS_DELEGATE_FALSE=
30582fi
30583
cristy71203402010-06-18 13:12:03 +000030584if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30585
30586$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30587
30588fi
30589
cristy3ed852e2009-09-05 21:47:34 +000030590
30591
30592
30593#
30594# Check for the LQR (Liquid Rescale) delegate library.
30595#
30596
30597# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030598if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030599 withval=$with_lqr; with_lqr=$withval
30600else
30601 with_lqr='yes'
30602fi
30603
30604
30605if test "$with_lqr" != 'yes'; then
30606 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30607fi
30608
30609have_lqr='no'
30610LQR_CFLAGS=""
30611LQR_LIBS=""
30612LQR_PKG=""
30613if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030614 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30615$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030616
30617pkg_failed=no
30618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30619$as_echo_n "checking for LQR... " >&6; }
30620
30621if test -n "$LQR_CFLAGS"; then
30622 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30623 elif test -n "$PKG_CONFIG"; then
30624 if test -n "$PKG_CONFIG" && \
30625 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30626 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30627 ac_status=$?
30628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30629 test $ac_status = 0; }; then
30630 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30631else
30632 pkg_failed=yes
30633fi
30634 else
30635 pkg_failed=untried
30636fi
30637if test -n "$LQR_LIBS"; then
30638 pkg_cv_LQR_LIBS="$LQR_LIBS"
30639 elif test -n "$PKG_CONFIG"; then
30640 if test -n "$PKG_CONFIG" && \
30641 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30642 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30643 ac_status=$?
30644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30645 test $ac_status = 0; }; then
30646 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30647else
30648 pkg_failed=yes
30649fi
30650 else
30651 pkg_failed=untried
30652fi
30653
30654
30655
30656if test $pkg_failed = yes; then
30657
30658if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30659 _pkg_short_errors_supported=yes
30660else
30661 _pkg_short_errors_supported=no
30662fi
30663 if test $_pkg_short_errors_supported = yes; then
30664 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30665 else
30666 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30667 fi
30668 # Put the nasty error message in config.log where it belongs
30669 echo "$LQR_PKG_ERRORS" >&5
30670
30671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30672$as_echo "no" >&6; }
30673 have_lqr=no
30674elif test $pkg_failed = untried; then
30675 have_lqr=no
30676else
30677 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30678 LQR_LIBS=$pkg_cv_LQR_LIBS
30679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30680$as_echo "yes" >&6; }
30681 have_lqr=yes
30682fi
cristy09b53e12011-10-14 12:47:22 +000030683 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30684$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030685fi
30686
30687if test "$have_lqr" = 'yes'; then
30688
cristy8b350f62009-11-15 23:12:43 +000030689$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030690
30691 CFLAGS="$LQR_CFLAGS $CFLAGS"
30692fi
30693
cristy73bd4a52010-10-05 11:24:23 +000030694 if test "$have_lqr" = 'yes'; then
30695 LQR_DELEGATE_TRUE=
30696 LQR_DELEGATE_FALSE='#'
30697else
30698 LQR_DELEGATE_TRUE='#'
30699 LQR_DELEGATE_FALSE=
30700fi
30701
cristy3ed852e2009-09-05 21:47:34 +000030702
30703
30704
30705
cristy81beccd2011-10-03 18:17:24 +000030706# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030707
30708# Check whether --with-lzma was given.
30709if test "${with_lzma+set}" = set; then :
30710 withval=$with_lzma; with_lzma=$withval
30711else
30712 with_lzma='yes'
30713fi
30714
cristy81beccd2011-10-03 18:17:24 +000030715if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030716 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30717fi
30718
cristyb94e5002011-11-14 13:20:10 +000030719LZMA_PKG=""
30720if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030721 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30722$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030723
30724pkg_failed=no
30725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030726$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030727
30728if test -n "$LZMA_CFLAGS"; then
30729 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30730 elif test -n "$PKG_CONFIG"; then
30731 if test -n "$PKG_CONFIG" && \
30732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30733 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30734 ac_status=$?
30735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30736 test $ac_status = 0; }; then
30737 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30738else
30739 pkg_failed=yes
30740fi
30741 else
30742 pkg_failed=untried
30743fi
30744if test -n "$LZMA_LIBS"; then
30745 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30746 elif test -n "$PKG_CONFIG"; then
30747 if test -n "$PKG_CONFIG" && \
30748 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30749 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30750 ac_status=$?
30751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30752 test $ac_status = 0; }; then
30753 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30754else
30755 pkg_failed=yes
30756fi
30757 else
30758 pkg_failed=untried
30759fi
30760
30761
30762
30763if test $pkg_failed = yes; then
30764
30765if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30766 _pkg_short_errors_supported=yes
30767else
30768 _pkg_short_errors_supported=no
30769fi
30770 if test $_pkg_short_errors_supported = yes; then
30771 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30772 else
30773 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30774 fi
30775 # Put the nasty error message in config.log where it belongs
30776 echo "$LZMA_PKG_ERRORS" >&5
30777
30778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30779$as_echo "no" >&6; }
30780 have_lzma=no
30781elif test $pkg_failed = untried; then
30782 have_lzma=no
30783else
30784 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30785 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30787$as_echo "yes" >&6; }
30788 have_lzma=yes
30789fi
30790 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030791$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030792fi
30793
cristyb94e5002011-11-14 13:20:10 +000030794if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030795
30796$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30797
cristyb94e5002011-11-14 13:20:10 +000030798 if test "$with_modules" = 'no'; then
30799 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030800 fi
cristyfbb0ef02010-12-19 02:32:11 +000030801fi
cristyb94e5002011-11-14 13:20:10 +000030802
cristyfbb0ef02010-12-19 02:32:11 +000030803 if test "$have_lzma" = 'yes'; then
30804 LZMA_DELEGATE_TRUE=
30805 LZMA_DELEGATE_FALSE='#'
30806else
30807 LZMA_DELEGATE_TRUE='#'
30808 LZMA_DELEGATE_FALSE=
30809fi
30810
30811
30812
30813
cristyb94e5002011-11-14 13:20:10 +000030814
cristy3ed852e2009-09-05 21:47:34 +000030815#
30816# Check for the OpenEXR delegate library.
30817#
30818
30819# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030820if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030821 withval=$with_openexr; with_openexr=$withval
30822else
30823 with_openexr='yes'
30824fi
30825
30826
30827if test "$with_openexr" != 'yes'; then
30828 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30829fi
30830
30831have_openexr='no'
30832OPENEXR_CFLAGS=""
30833OPENEXR_LIBS=""
30834OPENEXR_PKG=""
30835if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030836 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30837$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030838
30839pkg_failed=no
30840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30841$as_echo_n "checking for OPENEXR... " >&6; }
30842
30843if test -n "$OPENEXR_CFLAGS"; then
30844 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30845 elif test -n "$PKG_CONFIG"; then
30846 if test -n "$PKG_CONFIG" && \
30847 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30848 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30849 ac_status=$?
30850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30851 test $ac_status = 0; }; then
30852 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30853else
30854 pkg_failed=yes
30855fi
30856 else
30857 pkg_failed=untried
30858fi
30859if test -n "$OPENEXR_LIBS"; then
30860 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30861 elif test -n "$PKG_CONFIG"; then
30862 if test -n "$PKG_CONFIG" && \
30863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30864 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30865 ac_status=$?
30866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30867 test $ac_status = 0; }; then
30868 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30869else
30870 pkg_failed=yes
30871fi
30872 else
30873 pkg_failed=untried
30874fi
30875
30876
30877
30878if test $pkg_failed = yes; then
30879
30880if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30881 _pkg_short_errors_supported=yes
30882else
30883 _pkg_short_errors_supported=no
30884fi
30885 if test $_pkg_short_errors_supported = yes; then
30886 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30887 else
30888 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30889 fi
30890 # Put the nasty error message in config.log where it belongs
30891 echo "$OPENEXR_PKG_ERRORS" >&5
30892
30893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30894$as_echo "no" >&6; }
30895 have_openexr=no
30896elif test $pkg_failed = untried; then
30897 have_openexr=no
30898else
30899 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30900 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30902$as_echo "yes" >&6; }
30903 have_openexr=yes
30904fi
cristy09b53e12011-10-14 12:47:22 +000030905 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30906$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030907fi
30908
30909if test "$have_openexr" = 'yes'; then
30910
cristy8b350f62009-11-15 23:12:43 +000030911$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030912
30913 if test "$with_modules" = 'no'; then
30914 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30915 fi
30916fi
30917
cristy73bd4a52010-10-05 11:24:23 +000030918 if test "$have_openexr" = 'yes'; then
30919 OPENEXR_DELEGATE_TRUE=
30920 OPENEXR_DELEGATE_FALSE='#'
30921else
30922 OPENEXR_DELEGATE_TRUE='#'
30923 OPENEXR_DELEGATE_FALSE=
30924fi
30925
cristy3ed852e2009-09-05 21:47:34 +000030926
30927
30928
30929
30930#
cristy41cbe8a2011-10-27 01:35:18 +000030931# Check for PANGO delegate library.
30932#
30933
30934# Check whether --with-pango was given.
30935if test "${with_pango+set}" = set; then :
30936 withval=$with_pango; with_pango=$withval
30937else
cristyfc3d0222012-02-07 15:05:57 +000030938 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030939fi
30940
30941
30942if test "$with_pango" != 'yes'; then
30943 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30944fi
30945
30946have_pango='no'
cristya054b762012-03-26 23:16:00 +000030947have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030948PANGO_CFLAGS=""
30949PANGO_LIBS=""
30950PANGO_PKG=""
30951if test "x$with_pango" = "xyes"; then
30952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30953$as_echo "-------------------------------------------------------------" >&6; }
30954
30955pkg_failed=no
30956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30957$as_echo_n "checking for PANGO... " >&6; }
30958
30959if test -n "$PANGO_CFLAGS"; then
30960 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30961 elif test -n "$PKG_CONFIG"; then
30962 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030963 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30964 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030965 ac_status=$?
30966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30967 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030968 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030969else
30970 pkg_failed=yes
30971fi
30972 else
30973 pkg_failed=untried
30974fi
30975if test -n "$PANGO_LIBS"; then
30976 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30977 elif test -n "$PKG_CONFIG"; then
30978 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030979 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30980 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030981 ac_status=$?
30982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30983 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030984 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030985else
30986 pkg_failed=yes
30987fi
30988 else
30989 pkg_failed=untried
30990fi
30991
30992
30993
30994if test $pkg_failed = yes; then
30995
30996if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30997 _pkg_short_errors_supported=yes
30998else
30999 _pkg_short_errors_supported=no
31000fi
31001 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031002 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031003 else
cristya054b762012-03-26 23:16:00 +000031004 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031005 fi
31006 # Put the nasty error message in config.log where it belongs
31007 echo "$PANGO_PKG_ERRORS" >&5
31008
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31010$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031011 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031012elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031013 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031014else
31015 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31016 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31018$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031019 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031020fi
31021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31022$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031023
31024pkg_failed=no
31025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31026$as_echo_n "checking for PANGO... " >&6; }
31027
31028if test -n "$PANGO_CFLAGS"; then
31029 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31030 elif test -n "$PKG_CONFIG"; then
31031 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031032 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31033 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031034 ac_status=$?
31035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31036 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031037 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031038else
31039 pkg_failed=yes
31040fi
31041 else
31042 pkg_failed=untried
31043fi
31044if test -n "$PANGO_LIBS"; then
31045 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31046 elif test -n "$PKG_CONFIG"; then
31047 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031048 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31049 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031050 ac_status=$?
31051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31052 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031053 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031054else
31055 pkg_failed=yes
31056fi
31057 else
31058 pkg_failed=untried
31059fi
31060
31061
31062
31063if test $pkg_failed = yes; then
31064
31065if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31066 _pkg_short_errors_supported=yes
31067else
31068 _pkg_short_errors_supported=no
31069fi
31070 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031071 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031072 else
cristy2542fc62011-12-06 17:50:25 +000031073 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031074 fi
31075 # Put the nasty error message in config.log where it belongs
31076 echo "$PANGO_PKG_ERRORS" >&5
31077
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31079$as_echo "no" >&6; }
31080 have_pango=no
31081elif test $pkg_failed = untried; then
31082 have_pango=no
31083else
31084 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31085 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31087$as_echo "yes" >&6; }
31088 have_pango=yes
31089fi
31090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31091$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031092fi
31093
31094if test "$have_pango" = 'yes'; then
31095
31096$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31097
31098 if test "$with_modules" = 'no'; then
31099 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31100 fi
31101fi
31102
cristya054b762012-03-26 23:16:00 +000031103if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031104
cristya054b762012-03-26 23:16:00 +000031105$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031106
31107 if test "$with_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031108 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031109 fi
31110fi
31111
31112 if test "$have_pango" = 'yes'; then
31113 PANGO_DELEGATE_TRUE=
31114 PANGO_DELEGATE_FALSE='#'
31115else
31116 PANGO_DELEGATE_TRUE='#'
31117 PANGO_DELEGATE_FALSE=
31118fi
31119
cristya054b762012-03-26 23:16:00 +000031120 if test "$have_pangocairo" = 'yes'; then
31121 PANGOCAIRO_DELEGATE_TRUE=
31122 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031123else
cristya054b762012-03-26 23:16:00 +000031124 PANGOCAIRO_DELEGATE_TRUE='#'
31125 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031126fi
31127
31128
31129
31130
31131
31132#
cristy3ed852e2009-09-05 21:47:34 +000031133# Check for PNG delegate library.
31134#
31135
31136# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031137if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031138 withval=$with_png; with_png=$withval
31139else
31140 with_png='yes'
31141fi
31142
31143
31144if test "$with_png" != 'yes'; then
31145 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31146fi
31147
cristy81beccd2011-10-03 18:17:24 +000031148have_png='no'
31149PNG_LIBS=''
31150
31151if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031152 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31153$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31155$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031156 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31157$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031158 failed=0
31159 passed=0
31160 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31161if test "x$ac_cv_header_png_h" = xyes; then :
31162 passed=`expr $passed + 1`
31163else
31164 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031165fi
31166
cristy81beccd2011-10-03 18:17:24 +000031167
31168
31169 if test $passed -gt 0; then
31170 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031171 if test "$have_png" = 'no' ; then
31172 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031173 pnglib='png'
31174 else
31175 pnglib="png1${var}"
31176 fi
31177
31178# Test for compatible LIBPNG library
31179 failed=0
31180 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031181 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031182 if test "${pnglib}" != 'png' ; then
31183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31184$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31186/* end confdefs.h. */
31187#include <stdio.h>
31188#include <stdlib.h>
31189#include <png.h>
31190
31191int
31192main ()
31193{
31194
31195#if PNG_LIBPNG_VER_MINOR != ${var}
31196#error LIBPNG library must be version 1${var}!
31197Kaboom, Kaboom
31198#endif
31199return 0;
31200
31201 ;
31202 return 0;
31203}
31204_ACEOF
31205if ac_fn_c_try_compile "$LINENO"; then :
31206 ac_cv_libpng_ok='yes'
31207else
31208 ac_cv_libpng_ok='no'
31209fi
31210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31211 if test "$ac_cv_libpng_ok" = 'yes' ; then
31212 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031213 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31214$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031215 else
31216 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031217 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31218$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031219 fi
31220 else
31221 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031222 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31223$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031224 fi
31225 fi
31226
31227 if test $passed -gt 0 -a $failed -le 0; then
31228 if test "1${var}" = '15' ; then
31229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31230$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31231if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31232 $as_echo_n "(cached) " >&6
31233else
31234 ac_check_lib_save_LIBS=$LIBS
31235LIBS="-lpng15 $LIBS"
31236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31237/* end confdefs.h. */
31238
31239/* Override any GCC internal prototype to avoid an error.
31240 Use char because int might match the return type of a GCC
31241 builtin and then its argument prototype would still apply. */
31242#ifdef __cplusplus
31243extern "C"
31244#endif
31245char png_get_io_ptr ();
31246int
31247main ()
31248{
31249return png_get_io_ptr ();
31250 ;
31251 return 0;
31252}
31253_ACEOF
31254if ac_fn_c_try_link "$LINENO"; then :
31255 ac_cv_lib_png15_png_get_io_ptr=yes
31256else
31257 ac_cv_lib_png15_png_get_io_ptr=no
31258fi
31259rm -f core conftest.err conftest.$ac_objext \
31260 conftest$ac_exeext conftest.$ac_ext
31261LIBS=$ac_check_lib_save_LIBS
31262fi
31263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31264$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31265if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31266 passed=`expr $passed + 1`
31267else
31268 failed=`expr $failed + 1`
31269fi
31270
31271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31272$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31273if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31274 $as_echo_n "(cached) " >&6
31275else
31276 ac_check_lib_save_LIBS=$LIBS
31277LIBS="-lpng15 $LIBS"
31278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31279/* end confdefs.h. */
31280
31281/* Override any GCC internal prototype to avoid an error.
31282 Use char because int might match the return type of a GCC
31283 builtin and then its argument prototype would still apply. */
31284#ifdef __cplusplus
31285extern "C"
31286#endif
31287char png_longjmp ();
31288int
31289main ()
31290{
31291return png_longjmp ();
31292 ;
31293 return 0;
31294}
31295_ACEOF
31296if ac_fn_c_try_link "$LINENO"; then :
31297 ac_cv_lib_png15_png_longjmp=yes
31298else
31299 ac_cv_lib_png15_png_longjmp=no
31300fi
31301rm -f core conftest.err conftest.$ac_objext \
31302 conftest$ac_exeext conftest.$ac_ext
31303LIBS=$ac_check_lib_save_LIBS
31304fi
31305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31306$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31307if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31308 passed=`expr $passed + 1`
31309else
31310 failed=`expr $failed + 1`
31311fi
31312
31313 fi
31314 if test "1${var}" = '14' ; then
31315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31316$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31317if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31318 $as_echo_n "(cached) " >&6
31319else
31320 ac_check_lib_save_LIBS=$LIBS
31321LIBS="-lpng14 $LIBS"
31322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31323/* end confdefs.h. */
31324
31325/* Override any GCC internal prototype to avoid an error.
31326 Use char because int might match the return type of a GCC
31327 builtin and then its argument prototype would still apply. */
31328#ifdef __cplusplus
31329extern "C"
31330#endif
31331char png_get_io_ptr ();
31332int
31333main ()
31334{
31335return png_get_io_ptr ();
31336 ;
31337 return 0;
31338}
31339_ACEOF
31340if ac_fn_c_try_link "$LINENO"; then :
31341 ac_cv_lib_png14_png_get_io_ptr=yes
31342else
31343 ac_cv_lib_png14_png_get_io_ptr=no
31344fi
31345rm -f core conftest.err conftest.$ac_objext \
31346 conftest$ac_exeext conftest.$ac_ext
31347LIBS=$ac_check_lib_save_LIBS
31348fi
31349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31350$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31351if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31352 passed=`expr $passed + 1`
31353else
31354 failed=`expr $failed + 1`
31355fi
31356
31357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31358$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31359if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31360 $as_echo_n "(cached) " >&6
31361else
31362 ac_check_lib_save_LIBS=$LIBS
31363LIBS="-lpng14 $LIBS"
31364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31365/* end confdefs.h. */
31366
31367/* Override any GCC internal prototype to avoid an error.
31368 Use char because int might match the return type of a GCC
31369 builtin and then its argument prototype would still apply. */
31370#ifdef __cplusplus
31371extern "C"
31372#endif
31373char png_get_io_state ();
31374int
31375main ()
31376{
31377return png_get_io_state ();
31378 ;
31379 return 0;
31380}
31381_ACEOF
31382if ac_fn_c_try_link "$LINENO"; then :
31383 ac_cv_lib_png14_png_get_io_state=yes
31384else
31385 ac_cv_lib_png14_png_get_io_state=no
31386fi
31387rm -f core conftest.err conftest.$ac_objext \
31388 conftest$ac_exeext conftest.$ac_ext
31389LIBS=$ac_check_lib_save_LIBS
31390fi
31391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31392$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31393if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31394 passed=`expr $passed + 1`
31395else
31396 failed=`expr $failed + 1`
31397fi
31398
31399 fi
31400 if test "1${var}" = '12' ; then
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31402$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31403if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31404 $as_echo_n "(cached) " >&6
31405else
31406 ac_check_lib_save_LIBS=$LIBS
31407LIBS="-lpng12 $LIBS"
31408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31409/* end confdefs.h. */
31410
31411/* Override any GCC internal prototype to avoid an error.
31412 Use char because int might match the return type of a GCC
31413 builtin and then its argument prototype would still apply. */
31414#ifdef __cplusplus
31415extern "C"
31416#endif
31417char png_get_io_ptr ();
31418int
31419main ()
31420{
31421return png_get_io_ptr ();
31422 ;
31423 return 0;
31424}
31425_ACEOF
31426if ac_fn_c_try_link "$LINENO"; then :
31427 ac_cv_lib_png12_png_get_io_ptr=yes
31428else
31429 ac_cv_lib_png12_png_get_io_ptr=no
31430fi
31431rm -f core conftest.err conftest.$ac_objext \
31432 conftest$ac_exeext conftest.$ac_ext
31433LIBS=$ac_check_lib_save_LIBS
31434fi
31435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31436$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31437if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31438 passed=`expr $passed + 1`
31439else
31440 failed=`expr $failed + 1`
31441fi
31442
31443 fi
31444 if test "1${var}" = '1' ; then
31445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31446$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31447if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31448 $as_echo_n "(cached) " >&6
31449else
31450 ac_check_lib_save_LIBS=$LIBS
31451LIBS="-lpng $LIBS"
31452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31453/* end confdefs.h. */
31454
31455/* Override any GCC internal prototype to avoid an error.
31456 Use char because int might match the return type of a GCC
31457 builtin and then its argument prototype would still apply. */
31458#ifdef __cplusplus
31459extern "C"
31460#endif
31461char png_get_io_ptr ();
31462int
31463main ()
31464{
31465return png_get_io_ptr ();
31466 ;
31467 return 0;
31468}
31469_ACEOF
31470if ac_fn_c_try_link "$LINENO"; then :
31471 ac_cv_lib_png_png_get_io_ptr=yes
31472else
31473 ac_cv_lib_png_png_get_io_ptr=no
31474fi
31475rm -f core conftest.err conftest.$ac_objext \
31476 conftest$ac_exeext conftest.$ac_ext
31477LIBS=$ac_check_lib_save_LIBS
31478fi
31479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31480$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31481if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31482 passed=`expr $passed + 1`
31483else
31484 failed=`expr $failed + 1`
31485fi
31486
31487 fi
31488 if test $passed -gt 0 -a $failed -le 0 ; then
31489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31490$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31491 if test $passed -gt 0 ; then
31492 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031493 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31494$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031495 have_png='no (failed tests)'
31496 else
31497 PNG_LIBS="-l${pnglib}"
31498 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031499
cristy8b350f62009-11-15 23:12:43 +000031500$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031501
cristy09b53e12011-10-14 12:47:22 +000031502 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31503$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031504 have_png='yes'
31505 fi
31506 fi
31507 fi
31508 fi
31509 fi
31510 done
31511 fi
cristy3ed852e2009-09-05 21:47:34 +000031512fi
cristy64877302011-08-23 19:10:31 +000031513
cristy73bd4a52010-10-05 11:24:23 +000031514 if test "$have_png" = 'yes'; then
31515 PNG_DELEGATE_TRUE=
31516 PNG_DELEGATE_FALSE='#'
31517else
31518 PNG_DELEGATE_TRUE='#'
31519 PNG_DELEGATE_FALSE=
31520fi
31521
cristy3ed852e2009-09-05 21:47:34 +000031522
cristy50d3f5c2011-09-10 20:09:06 +000031523
cristy3ed852e2009-09-05 21:47:34 +000031524
31525
31526#
31527# Check for RSVG delegate library.
31528#
31529
31530# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031531if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031532 withval=$with_rsvg; with_rsvg=$withval
31533else
cristyfc3d0222012-02-07 15:05:57 +000031534 with_rsvg='yes'
cristy3ed852e2009-09-05 21:47:34 +000031535fi
31536
31537
31538if test "$with_rsvg" != 'yes'; then
31539 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31540fi
31541
31542have_rsvg='no'
31543have_cairo='no'
31544RSVG_CFLAGS=""
31545RSVG_LIBS=""
31546RSVG_PKG=""
31547if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031548 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31549$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031550
31551pkg_failed=no
31552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31553$as_echo_n "checking for RSVG... " >&6; }
31554
31555if test -n "$RSVG_CFLAGS"; then
31556 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31557 elif test -n "$PKG_CONFIG"; then
31558 if test -n "$PKG_CONFIG" && \
31559 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31560 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31561 ac_status=$?
31562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31563 test $ac_status = 0; }; then
31564 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31565else
31566 pkg_failed=yes
31567fi
31568 else
31569 pkg_failed=untried
31570fi
31571if test -n "$RSVG_LIBS"; then
31572 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31573 elif test -n "$PKG_CONFIG"; then
31574 if test -n "$PKG_CONFIG" && \
31575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31576 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31577 ac_status=$?
31578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31579 test $ac_status = 0; }; then
31580 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31581else
31582 pkg_failed=yes
31583fi
31584 else
31585 pkg_failed=untried
31586fi
31587
31588
31589
31590if test $pkg_failed = yes; then
31591
31592if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31593 _pkg_short_errors_supported=yes
31594else
31595 _pkg_short_errors_supported=no
31596fi
31597 if test $_pkg_short_errors_supported = yes; then
31598 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31599 else
31600 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31601 fi
31602 # Put the nasty error message in config.log where it belongs
31603 echo "$RSVG_PKG_ERRORS" >&5
31604
31605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31606$as_echo "no" >&6; }
31607 have_rsvg=no
31608elif test $pkg_failed = untried; then
31609 have_rsvg=no
31610else
31611 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31612 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31614$as_echo "yes" >&6; }
31615 have_rsvg=yes
31616fi
cristy09b53e12011-10-14 12:47:22 +000031617 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31618$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031619
31620pkg_failed=no
31621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31622$as_echo_n "checking for CAIRO_SVG... " >&6; }
31623
31624if test -n "$CAIRO_SVG_CFLAGS"; then
31625 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31626 elif test -n "$PKG_CONFIG"; then
31627 if test -n "$PKG_CONFIG" && \
31628 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31629 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31630 ac_status=$?
31631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31632 test $ac_status = 0; }; then
31633 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31634else
31635 pkg_failed=yes
31636fi
31637 else
31638 pkg_failed=untried
31639fi
31640if test -n "$CAIRO_SVG_LIBS"; then
31641 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31642 elif test -n "$PKG_CONFIG"; then
31643 if test -n "$PKG_CONFIG" && \
31644 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31645 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31646 ac_status=$?
31647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31648 test $ac_status = 0; }; then
31649 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31650else
31651 pkg_failed=yes
31652fi
31653 else
31654 pkg_failed=untried
31655fi
31656
31657
31658
31659if test $pkg_failed = yes; then
31660
31661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31662 _pkg_short_errors_supported=yes
31663else
31664 _pkg_short_errors_supported=no
31665fi
31666 if test $_pkg_short_errors_supported = yes; then
31667 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31668 else
31669 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31670 fi
31671 # Put the nasty error message in config.log where it belongs
31672 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31673
31674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31675$as_echo "no" >&6; }
31676 have_cairo=no
31677elif test $pkg_failed = untried; then
31678 have_cairo=no
31679else
31680 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31681 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31683$as_echo "yes" >&6; }
31684 have_cairo=yes
31685fi
cristy09b53e12011-10-14 12:47:22 +000031686 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31687$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031688fi
31689
31690if test "$have_rsvg" = 'yes'; then
31691
cristy8b350f62009-11-15 23:12:43 +000031692$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031693
31694 if test "$with_modules" = 'no'; then
31695 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31696 fi
31697fi
31698
31699if test "$have_cairo" = 'yes'; then
31700
cristy8b350f62009-11-15 23:12:43 +000031701$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031702
31703 if test "$with_modules" = 'no'; then
31704 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31705 fi
31706fi
31707
cristy73bd4a52010-10-05 11:24:23 +000031708 if test "$have_rsvg" = 'yes'; then
31709 RSVG_DELEGATE_TRUE=
31710 RSVG_DELEGATE_FALSE='#'
31711else
31712 RSVG_DELEGATE_TRUE='#'
31713 RSVG_DELEGATE_FALSE=
31714fi
31715
31716 if test "$have_cairo" = 'yes'; then
31717 CAIRO_DELEGATE_TRUE=
31718 CAIRO_DELEGATE_FALSE='#'
31719else
31720 CAIRO_DELEGATE_TRUE='#'
31721 CAIRO_DELEGATE_FALSE=
31722fi
31723
cristy3ed852e2009-09-05 21:47:34 +000031724
31725
31726
31727
31728#
31729# Check for TIFF delegate library.
31730#
31731
31732# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031733if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031734 withval=$with_tiff; with_tiff=$withval
31735else
31736 with_tiff='yes'
31737fi
31738
31739
31740if test "$with_tiff" != 'yes'; then
31741 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31742fi
31743
31744have_tiff='no'
31745TIFF_LIBS=''
31746if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031747 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31748$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031750$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031751 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31752$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031753 failed=0
31754 passed=0
cristy8b350f62009-11-15 23:12:43 +000031755 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031756if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031757 passed=`expr $passed + 1`
31758else
31759 failed=`expr $failed + 1`
31760fi
31761
31762
cristy8b350f62009-11-15 23:12:43 +000031763 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031764if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031765 passed=`expr $passed + 1`
31766else
31767 failed=`expr $failed + 1`
31768fi
31769
31770
cristy8b350f62009-11-15 23:12:43 +000031771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031772$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031773if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031774 $as_echo_n "(cached) " >&6
31775else
31776 ac_check_lib_save_LIBS=$LIBS
31777LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031779/* end confdefs.h. */
31780
31781/* Override any GCC internal prototype to avoid an error.
31782 Use char because int might match the return type of a GCC
31783 builtin and then its argument prototype would still apply. */
31784#ifdef __cplusplus
31785extern "C"
31786#endif
31787char TIFFOpen ();
31788int
31789main ()
31790{
31791return TIFFOpen ();
31792 ;
31793 return 0;
31794}
31795_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031796if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031797 ac_cv_lib_tiff_TIFFOpen=yes
31798else
cristy8b350f62009-11-15 23:12:43 +000031799 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031800fi
cristy8b350f62009-11-15 23:12:43 +000031801rm -f core conftest.err conftest.$ac_objext \
31802 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031803LIBS=$ac_check_lib_save_LIBS
31804fi
cristy8b350f62009-11-15 23:12:43 +000031805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031806$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031807if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031808 passed=`expr $passed + 1`
31809else
31810 failed=`expr $failed + 1`
31811fi
31812
cristy8b350f62009-11-15 23:12:43 +000031813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031814$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031815if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031816 $as_echo_n "(cached) " >&6
31817else
31818 ac_check_lib_save_LIBS=$LIBS
31819LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031821/* end confdefs.h. */
31822
31823/* Override any GCC internal prototype to avoid an error.
31824 Use char because int might match the return type of a GCC
31825 builtin and then its argument prototype would still apply. */
31826#ifdef __cplusplus
31827extern "C"
31828#endif
31829char TIFFClientOpen ();
31830int
31831main ()
31832{
31833return TIFFClientOpen ();
31834 ;
31835 return 0;
31836}
31837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031838if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031839 ac_cv_lib_tiff_TIFFClientOpen=yes
31840else
cristy8b350f62009-11-15 23:12:43 +000031841 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031842fi
cristy8b350f62009-11-15 23:12:43 +000031843rm -f core conftest.err conftest.$ac_objext \
31844 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031845LIBS=$ac_check_lib_save_LIBS
31846fi
cristy8b350f62009-11-15 23:12:43 +000031847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031848$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031849if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031850 passed=`expr $passed + 1`
31851else
31852 failed=`expr $failed + 1`
31853fi
31854
cristy8b350f62009-11-15 23:12:43 +000031855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031856$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031857if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031858 $as_echo_n "(cached) " >&6
31859else
31860 ac_check_lib_save_LIBS=$LIBS
31861LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031863/* end confdefs.h. */
31864
31865/* Override any GCC internal prototype to avoid an error.
31866 Use char because int might match the return type of a GCC
31867 builtin and then its argument prototype would still apply. */
31868#ifdef __cplusplus
31869extern "C"
31870#endif
31871char TIFFIsByteSwapped ();
31872int
31873main ()
31874{
31875return TIFFIsByteSwapped ();
31876 ;
31877 return 0;
31878}
31879_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031880if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031881 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31882else
cristy8b350f62009-11-15 23:12:43 +000031883 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031884fi
cristy8b350f62009-11-15 23:12:43 +000031885rm -f core conftest.err conftest.$ac_objext \
31886 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031887LIBS=$ac_check_lib_save_LIBS
31888fi
cristy8b350f62009-11-15 23:12:43 +000031889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031890$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031891if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031892 passed=`expr $passed + 1`
31893else
31894 failed=`expr $failed + 1`
31895fi
31896
cristy8b350f62009-11-15 23:12:43 +000031897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031898$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031899if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031900 $as_echo_n "(cached) " >&6
31901else
31902 ac_check_lib_save_LIBS=$LIBS
31903LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031905/* end confdefs.h. */
31906
31907/* Override any GCC internal prototype to avoid an error.
31908 Use char because int might match the return type of a GCC
31909 builtin and then its argument prototype would still apply. */
31910#ifdef __cplusplus
31911extern "C"
31912#endif
31913char TIFFReadRGBATile ();
31914int
31915main ()
31916{
31917return TIFFReadRGBATile ();
31918 ;
31919 return 0;
31920}
31921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031922if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031923 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31924else
cristy8b350f62009-11-15 23:12:43 +000031925 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031926fi
cristy8b350f62009-11-15 23:12:43 +000031927rm -f core conftest.err conftest.$ac_objext \
31928 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031929LIBS=$ac_check_lib_save_LIBS
31930fi
cristy8b350f62009-11-15 23:12:43 +000031931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031932$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031933if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031934 passed=`expr $passed + 1`
31935else
31936 failed=`expr $failed + 1`
31937fi
31938
cristy8b350f62009-11-15 23:12:43 +000031939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031940$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031941if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031942 $as_echo_n "(cached) " >&6
31943else
31944 ac_check_lib_save_LIBS=$LIBS
31945LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031947/* end confdefs.h. */
31948
31949/* Override any GCC internal prototype to avoid an error.
31950 Use char because int might match the return type of a GCC
31951 builtin and then its argument prototype would still apply. */
31952#ifdef __cplusplus
31953extern "C"
31954#endif
31955char TIFFReadRGBAStrip ();
31956int
31957main ()
31958{
31959return TIFFReadRGBAStrip ();
31960 ;
31961 return 0;
31962}
31963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031964if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031965 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31966else
cristy8b350f62009-11-15 23:12:43 +000031967 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031968fi
cristy8b350f62009-11-15 23:12:43 +000031969rm -f core conftest.err conftest.$ac_objext \
31970 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031971LIBS=$ac_check_lib_save_LIBS
31972fi
cristy8b350f62009-11-15 23:12:43 +000031973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031974$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031975if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031976 passed=`expr $passed + 1`
31977else
31978 failed=`expr $failed + 1`
31979fi
31980
cristy8b350f62009-11-15 23:12:43 +000031981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031982$as_echo_n "checking if TIFF package is complete... " >&6; }
31983 if test $passed -gt 0; then
31984 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031985 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31986$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031987 have_tiff='no (failed tests)'
31988 else
31989 TIFF_LIBS='-ltiff'
31990 LIBS="$TIFF_LIBS $LIBS"
31991
cristy8b350f62009-11-15 23:12:43 +000031992$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031993
cristy09b53e12011-10-14 12:47:22 +000031994 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31995$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031996 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031997 for ac_header in tiffconf.h
31998do :
31999 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032000if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032001 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032002#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032003_ACEOF
32004
32005fi
32006
32007done
32008
cristy8b350f62009-11-15 23:12:43 +000032009 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032010 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32011 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32012 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032013do :
32014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32015ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032016if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032017 cat >>confdefs.h <<_ACEOF
32018#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32019_ACEOF
32020
32021fi
32022done
32023
32024 fi
32025 else
cristy09b53e12011-10-14 12:47:22 +000032026 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32027$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032028 fi
32029fi
cristy73bd4a52010-10-05 11:24:23 +000032030 if test "$have_tiff" = 'yes'; then
32031 TIFF_DELEGATE_TRUE=
32032 TIFF_DELEGATE_FALSE='#'
32033else
32034 TIFF_DELEGATE_TRUE='#'
32035 TIFF_DELEGATE_FALSE=
32036fi
32037
cristy3ed852e2009-09-05 21:47:34 +000032038
32039
32040
32041#
cristyb1860752011-03-14 00:27:46 +000032042# Check for WEBP delegate library.
32043#
32044
32045# Check whether --with-webp was given.
32046if test "${with_webp+set}" = set; then :
32047 withval=$with_webp; with_webp=$withval
32048else
32049 with_webp='yes'
32050fi
32051
32052
32053if test "$with_webp" != 'yes'; then
32054 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32055fi
32056
32057have_webp='no'
32058WEBP_LIBS=''
32059if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032060 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32061$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32063$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032064 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32065$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032066 failed=0
32067 passed=0
32068 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32069if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32070 passed=`expr $passed + 1`
32071else
32072 failed=`expr $failed + 1`
32073fi
32074
32075
32076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32077$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32078if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32079 $as_echo_n "(cached) " >&6
32080else
32081 ac_check_lib_save_LIBS=$LIBS
32082LIBS="-lwebp $LIBS"
32083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32084/* end confdefs.h. */
32085
32086/* Override any GCC internal prototype to avoid an error.
32087 Use char because int might match the return type of a GCC
32088 builtin and then its argument prototype would still apply. */
32089#ifdef __cplusplus
32090extern "C"
32091#endif
32092char WebPDecodeRGB ();
32093int
32094main ()
32095{
32096return WebPDecodeRGB ();
32097 ;
32098 return 0;
32099}
32100_ACEOF
32101if ac_fn_c_try_link "$LINENO"; then :
32102 ac_cv_lib_webp_WebPDecodeRGB=yes
32103else
32104 ac_cv_lib_webp_WebPDecodeRGB=no
32105fi
32106rm -f core conftest.err conftest.$ac_objext \
32107 conftest$ac_exeext conftest.$ac_ext
32108LIBS=$ac_check_lib_save_LIBS
32109fi
32110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32111$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32112if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32113 passed=`expr $passed + 1`
32114else
32115 failed=`expr $failed + 1`
32116fi
32117
32118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32119$as_echo_n "checking if WEBP package is complete... " >&6; }
32120 if test $passed -gt 0; then
32121 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032122 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32123$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032124 have_webp='no (failed tests)'
32125 else
32126 WEBP_LIBS='-lwebp'
32127 LIBS="$WEBP_LIBS $LIBS"
32128
32129$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32130
cristy09b53e12011-10-14 12:47:22 +000032131 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32132$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032133 have_webp='yes'
32134 fi
32135 else
cristy09b53e12011-10-14 12:47:22 +000032136 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32137$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032138 fi
32139fi
32140 if test "$have_webp" = 'yes'; then
32141 WEBP_DELEGATE_TRUE=
32142 WEBP_DELEGATE_FALSE='#'
32143else
32144 WEBP_DELEGATE_TRUE='#'
32145 WEBP_DELEGATE_FALSE=
32146fi
32147
32148
32149
32150
32151#
cristy3ed852e2009-09-05 21:47:34 +000032152# Set Windows font directory.
32153#
32154
32155# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032156if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032157 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32158else
32159 with_windows_font_dir=''
32160fi
32161
32162if test "$with_windows_font_dir" != '' ; then
32163 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32164fi
32165
32166
32167#
32168# Check for WMF delegate library.
32169#
32170
32171# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032172if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032173 withval=$with_wmf; with_wmf=$withval
32174else
cristyfc3d0222012-02-07 15:05:57 +000032175 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032176fi
32177
32178
32179if test "$with_wmf" != 'yes'; then
32180 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32181fi
32182
32183have_wmf='no'
32184WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032185WMF_LIBS_DEPS=''
32186OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032187if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32189$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032191$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32193$as_echo "" >&6; }
32194 have_libwmf='no'
32195 have_libwmflite='no'
32196 have_libwmf_ipa_h='no'
32197
32198 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32199"
32200if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32201 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032202fi
32203
32204
cristy03f7cf92011-12-15 01:40:41 +000032205 if test "$have_libwmf_ipa_h" = 'yes'; then
32206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32207$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32208if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032209 $as_echo_n "(cached) " >&6
32210else
32211 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032212LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032214/* end confdefs.h. */
32215
32216/* Override any GCC internal prototype to avoid an error.
32217 Use char because int might match the return type of a GCC
32218 builtin and then its argument prototype would still apply. */
32219#ifdef __cplusplus
32220extern "C"
32221#endif
cristy03f7cf92011-12-15 01:40:41 +000032222char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032223int
32224main ()
32225{
cristy03f7cf92011-12-15 01:40:41 +000032226return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032227 ;
32228 return 0;
32229}
32230_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032231if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032232 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032233else
cristy03f7cf92011-12-15 01:40:41 +000032234 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032235fi
cristy8b350f62009-11-15 23:12:43 +000032236rm -f core conftest.err conftest.$ac_objext \
32237 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032238LIBS=$ac_check_lib_save_LIBS
32239fi
cristy03f7cf92011-12-15 01:40:41 +000032240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32241$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32242if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32243 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032244fi
32245
cristy03f7cf92011-12-15 01:40:41 +000032246 if test "$have_libwmflite" = 'yes'; then
32247
32248$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32249
32250 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032251 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032252 have_wmf='yes'
32253 else
32254 WMF_LIBS_DEPS=''
32255 WMF_CONFIG_LIBS=`libwmf-config --libs`
32256 for lib in xml2 expat freetype jpeg png z; do
32257 testlib="-l${lib}"
32258 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32259 done
32260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32261$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32262if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32263 $as_echo_n "(cached) " >&6
32264else
32265 ac_check_lib_save_LIBS=$LIBS
32266LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32268/* end confdefs.h. */
32269
32270/* Override any GCC internal prototype to avoid an error.
32271 Use char because int might match the return type of a GCC
32272 builtin and then its argument prototype would still apply. */
32273#ifdef __cplusplus
32274extern "C"
32275#endif
32276char wmf_api_create ();
32277int
32278main ()
32279{
32280return wmf_api_create ();
32281 ;
32282 return 0;
32283}
32284_ACEOF
32285if ac_fn_c_try_link "$LINENO"; then :
32286 ac_cv_lib_wmf_wmf_api_create=yes
32287else
32288 ac_cv_lib_wmf_wmf_api_create=no
32289fi
32290rm -f core conftest.err conftest.$ac_objext \
32291 conftest$ac_exeext conftest.$ac_ext
32292LIBS=$ac_check_lib_save_LIBS
32293fi
32294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32295$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32296if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32297 have_libwmf='yes'
32298fi
32299
32300 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032301
cristy8b350f62009-11-15 23:12:43 +000032302$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032303
cristy03f7cf92011-12-15 01:40:41 +000032304 WMF_LIBS='-lwmf'
32305 LIBS="$WMF_LIBS $LIBS"
32306 have_wmf='yes'
32307 else
32308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32309$as_echo "no -- some components failed test" >&6; }
32310 have_wmf='no (failed tests)'
32311 have_wmflite='no (failed tests)'
32312 LIBS="$OLIBS"
32313 WMF_LIBS=''
32314 fi
glennrp33e524b2011-08-24 17:41:57 +000032315 fi
cristy03f7cf92011-12-15 01:40:41 +000032316 fi
32317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32318$as_echo_n "checking if WMF package is complete... " >&6; }
32319 if test "$have_wmf" = 'yes'; then
32320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32321$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032322 else
cristy03f7cf92011-12-15 01:40:41 +000032323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32324$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032325 fi
cristy3ed852e2009-09-05 21:47:34 +000032326fi
cristy73bd4a52010-10-05 11:24:23 +000032327 if test "$have_wmf" = 'yes'; then
32328 WMF_DELEGATE_TRUE=
32329 WMF_DELEGATE_FALSE='#'
32330else
32331 WMF_DELEGATE_TRUE='#'
32332 WMF_DELEGATE_FALSE=
32333fi
32334
cristy3ed852e2009-09-05 21:47:34 +000032335
32336
32337
cristy81beccd2011-10-03 18:17:24 +000032338
32339
cristy3ed852e2009-09-05 21:47:34 +000032340#
32341# Check for XML delegate library.
32342#
32343
32344# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032345if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032346 withval=$with_xml; with_xml=$withval
32347else
cristyfc3d0222012-02-07 15:05:57 +000032348 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032349fi
32350
32351
cristy81beccd2011-10-03 18:17:24 +000032352if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032353 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32354fi
32355
cristy81beccd2011-10-03 18:17:24 +000032356have_xml='no'
32357XML_LIBS=''
32358if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032359 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32360$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32362$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032363 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32364$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032365 PERSIST_LDFLAGS=$LDFLAGS
32366 PERSIST_CPPFLAGS=$CPPFLAGS
32367 xml2_config=''
32368 # Extract the first word of "xml2-config", so it can be a program name with args.
32369set dummy xml2-config; ac_word=$2
32370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32371$as_echo_n "checking for $ac_word... " >&6; }
32372if ${ac_cv_path_xml2_config+:} false; then :
32373 $as_echo_n "(cached) " >&6
32374else
32375 case $xml2_config in
32376 [\\/]* | ?:[\\/]*)
32377 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32378 ;;
32379 *)
32380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32381for as_dir in $PATH
32382do
32383 IFS=$as_save_IFS
32384 test -z "$as_dir" && as_dir=.
32385 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032387 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32389 break 2
32390 fi
32391done
32392 done
32393IFS=$as_save_IFS
32394
32395 ;;
32396esac
32397fi
32398xml2_config=$ac_cv_path_xml2_config
32399if test -n "$xml2_config"; then
32400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32401$as_echo "$xml2_config" >&6; }
32402else
32403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32404$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032405fi
32406
cristy81beccd2011-10-03 18:17:24 +000032407 if test -n "$xml2_config"; then
32408 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32409 # the shared library installed under /usr/lib, whereas the package
32410 # installs itself under $prefix/libxml and $prefix/lib.
32411 xml2_prefix=`xml2-config --prefix`
32412 if test -d "${xml2_prefix}/include/libxml2"; then
32413 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32414 fi
32415 if test "${xml2_prefix}" != '/usr'; then
32416 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32417 fi
32418 fi
32419 failed=0
32420 passed=0
32421 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32422if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32423 passed=`expr $passed + 1`
32424else
32425 failed=`expr $failed + 1`
32426fi
32427
32428
32429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32430$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32431if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32432 $as_echo_n "(cached) " >&6
32433else
32434 ac_check_lib_save_LIBS=$LIBS
32435LIBS="-lxml2 $LIBS"
32436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32437/* end confdefs.h. */
32438
32439/* Override any GCC internal prototype to avoid an error.
32440 Use char because int might match the return type of a GCC
32441 builtin and then its argument prototype would still apply. */
32442#ifdef __cplusplus
32443extern "C"
32444#endif
32445char xmlSAXVersion ();
32446int
32447main ()
32448{
32449return xmlSAXVersion ();
32450 ;
32451 return 0;
32452}
32453_ACEOF
32454if ac_fn_c_try_link "$LINENO"; then :
32455 ac_cv_lib_xml2_xmlSAXVersion=yes
32456else
32457 ac_cv_lib_xml2_xmlSAXVersion=no
32458fi
32459rm -f core conftest.err conftest.$ac_objext \
32460 conftest$ac_exeext conftest.$ac_ext
32461LIBS=$ac_check_lib_save_LIBS
32462fi
32463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32464$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32465if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32466 passed=`expr $passed + 1`
32467else
32468 failed=`expr $failed + 1`
32469fi
32470
32471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32472$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32473if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32474 $as_echo_n "(cached) " >&6
32475else
32476 ac_check_lib_save_LIBS=$LIBS
32477LIBS="-lxml2 $LIBS"
32478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32479/* end confdefs.h. */
32480
32481/* Override any GCC internal prototype to avoid an error.
32482 Use char because int might match the return type of a GCC
32483 builtin and then its argument prototype would still apply. */
32484#ifdef __cplusplus
32485extern "C"
32486#endif
32487char xmlParseChunk ();
32488int
32489main ()
32490{
32491return xmlParseChunk ();
32492 ;
32493 return 0;
32494}
32495_ACEOF
32496if ac_fn_c_try_link "$LINENO"; then :
32497 ac_cv_lib_xml2_xmlParseChunk=yes
32498else
32499 ac_cv_lib_xml2_xmlParseChunk=no
32500fi
32501rm -f core conftest.err conftest.$ac_objext \
32502 conftest$ac_exeext conftest.$ac_ext
32503LIBS=$ac_check_lib_save_LIBS
32504fi
32505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32506$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32507if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32508 passed=`expr $passed + 1`
32509else
32510 failed=`expr $failed + 1`
32511fi
32512
32513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32514$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32515if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32516 $as_echo_n "(cached) " >&6
32517else
32518 ac_check_lib_save_LIBS=$LIBS
32519LIBS="-lxml2 $LIBS"
32520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32521/* end confdefs.h. */
32522
32523/* Override any GCC internal prototype to avoid an error.
32524 Use char because int might match the return type of a GCC
32525 builtin and then its argument prototype would still apply. */
32526#ifdef __cplusplus
32527extern "C"
32528#endif
32529char xmlCreatePushParserCtxt ();
32530int
32531main ()
32532{
32533return xmlCreatePushParserCtxt ();
32534 ;
32535 return 0;
32536}
32537_ACEOF
32538if ac_fn_c_try_link "$LINENO"; then :
32539 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32540else
32541 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32542fi
32543rm -f core conftest.err conftest.$ac_objext \
32544 conftest$ac_exeext conftest.$ac_ext
32545LIBS=$ac_check_lib_save_LIBS
32546fi
32547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32548$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32549if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32550 passed=`expr $passed + 1`
32551else
32552 failed=`expr $failed + 1`
32553fi
32554
32555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32556$as_echo_n "checking if XML package is complete... " >&6; }
32557 if test $passed -gt 0; then
32558 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032559 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32560$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032561 have_xml='no (failed tests)'
32562 LDFLAGS="$PERSIST_LDFLAGS"
32563 CPPFLAGS="$PERSIST_CPPFLAGS"
32564 else
32565 XML_LIBS='-lxml2'
32566 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032567
cristy8b350f62009-11-15 23:12:43 +000032568$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032569
cristy09b53e12011-10-14 12:47:22 +000032570 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32571$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032572 have_xml='yes'
32573 fi
32574 else
cristy09b53e12011-10-14 12:47:22 +000032575 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32576$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032577 fi
32578fi
cristy73bd4a52010-10-05 11:24:23 +000032579 if test "$have_xml" = 'yes'; then
32580 XML_DELEGATE_TRUE=
32581 XML_DELEGATE_FALSE='#'
32582else
32583 XML_DELEGATE_TRUE='#'
32584 XML_DELEGATE_FALSE=
32585fi
32586
cristy3ed852e2009-09-05 21:47:34 +000032587
32588
32589
32590# Substitute compiler name to build/link PerlMagick
32591#
32592
32593
32594#
32595# Configure install Paths
32596#
cristy7def36a2011-10-28 19:04:41 +000032597
cristy2a11bef2011-10-28 18:33:11 +000032598# Path to ImageMagick header files
32599INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032600INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32601DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032602case "${build_os}" in
32603 mingw* )
32604 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32605 ;;
32606esac
32607
32608cat >>confdefs.h <<_ACEOF
32609#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32610_ACEOF
32611
32612
cristy3ed852e2009-09-05 21:47:34 +000032613
32614# Subdirectory under lib to place ImageMagick lib files
32615LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32616
32617cat >>confdefs.h <<_ACEOF
32618#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32619_ACEOF
32620
32621
32622# Path to ImageMagick bin directory
32623EXECUTABLE_PATH="${BIN_DIR}"
32624DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32625case "${build_os}" in
32626 mingw* )
32627 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32628 ;;
32629esac
32630
32631cat >>confdefs.h <<_ACEOF
32632#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32633_ACEOF
32634
32635
32636
32637# Path to ImageMagick lib
32638LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32639DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32640case "${build_os}" in
32641 mingw* )
32642 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32643 ;;
32644esac
32645
32646cat >>confdefs.h <<_ACEOF
32647#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32648_ACEOF
32649
32650
32651
cristy3ed852e2009-09-05 21:47:34 +000032652#
32653# Subdirectory under lib to place ImageMagick coder module files
32654CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32655
32656cat >>confdefs.h <<_ACEOF
32657#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32658_ACEOF
32659
32660CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32661DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32662case "${build_os}" in
32663 mingw* )
32664 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32665 ;;
32666esac
32667
32668cat >>confdefs.h <<_ACEOF
32669#define CODER_PATH "$DEFINE_CODER_PATH"
32670_ACEOF
32671
32672
32673
32674#
32675# Subdirectory under lib to place ImageMagick filter module files
32676FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32677
32678cat >>confdefs.h <<_ACEOF
32679#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32680_ACEOF
32681
32682FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32683DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32684case "${build_os}" in
32685 mingw* )
32686 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32687 ;;
32688esac
32689
32690cat >>confdefs.h <<_ACEOF
32691#define FILTER_PATH "$DEFINE_FILTER_PATH"
32692_ACEOF
32693
32694
32695
32696#
32697# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032698DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032699DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32700DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032701case "${build_os}" in
32702 mingw* )
32703 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32704 ;;
32705esac
32706
32707cat >>confdefs.h <<_ACEOF
32708#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32709_ACEOF
32710
32711
32712
cristy2a11bef2011-10-28 18:33:11 +000032713# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032714CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032715
32716cat >>confdefs.h <<_ACEOF
32717#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32718_ACEOF
32719
cristy7def36a2011-10-28 19:04:41 +000032720CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032721DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32722case "${build_os}" in
32723 mingw* )
32724 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32725 ;;
32726esac
32727
32728cat >>confdefs.h <<_ACEOF
32729#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32730_ACEOF
32731
32732
32733
cristy2a11bef2011-10-28 18:33:11 +000032734# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032735SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032736
32737cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032738#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032739_ACEOF
32740
cristy670aa3c2011-11-03 00:54:00 +000032741SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032742DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032743case "${build_os}" in
32744 mingw* )
cristy4f820712011-04-01 12:35:43 +000032745 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032746 ;;
32747esac
32748
32749cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032750#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032751_ACEOF
32752
32753
32754
cristy408ebcd2011-11-14 01:36:57 +000032755# Subdirectory to place architecture-dependent configuration files
32756SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032757
32758cat >>confdefs.h <<_ACEOF
32759#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32760_ACEOF
32761
cristy408ebcd2011-11-14 01:36:57 +000032762SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32763DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032764case "${build_os}" in
32765 mingw* )
32766 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32767 ;;
32768esac
32769
32770cat >>confdefs.h <<_ACEOF
32771#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32772_ACEOF
32773
32774
32775
cristy3ed852e2009-09-05 21:47:34 +000032776#
32777# program_transform_name is formed for use in a Makefile, so create a
32778# modified version for use in a shell script.
32779configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32780
32781# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032782{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32783$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032785$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032786{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32787$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032788AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032789BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032790BZIPDelegateDefault='bzip2'
32791BrowseDelegateDefault='xdg-open'
32792CGMDecodeDelegateDefault='ralcgm'
32793CatDelegateDefault='cat'
32794DNGDecodeDelegateDefault='ufraw-batch'
32795GVCDecodeDelegateDefault='dot'
32796DVIDecodeDelegateDefault='dvips'
32797EchoDelegateDefault='echo'
32798EditorDelegateDefault='xterm'
32799FIGDecodeDelegateDefault='fig2dev'
32800ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32801DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32802MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32803GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032804HPGLDecodeDelegateDefault='hp2xx'
32805HTMLDecodeDelegateDefault='html2ps'
32806ILBMDecodeDelegateDefault='ilbmtoppm'
32807ILBMEncodeDelegateDefault='ppmtoilbm'
32808LPDelegateDefault='lp'
32809LPRDelegateDefault='lpr'
32810LZWDecodeDelegateDefault='uncompress'
32811LZWEncodeDelegateDefault='compress'
32812LaunchDelegateDefault='gimp'
32813MANDelegateDefault='groff'
32814MPEGDecodeDelegateDefault='ffmpeg'
32815MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032816MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032817MVDelegateDefault='mv'
32818PCLDelegateDefault='pcl6'
32819PGPDecodeDelegateDefault='pgpv'
32820POVDelegateDefault='povray'
32821if test "$native_win32_build" = 'yes'; then
32822 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032823elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032824 PSDelegateDefault='gsc'
32825else
32826 PSDelegateDefault='gs'
32827fi
32828RLEEncodeDelegateDefault='rawtorle'
32829RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032830RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032831SCANDecodeDelegateDefault='scanimage'
32832TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032833UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032834WMFDecodeDelegateDefault='wmf2eps'
32835WWWDecodeDelegateDefault='curl'
32836XPSDelegateDefault='gxps'
32837ZipDelegateDefault='gzip'
32838
32839# Search for delegates
32840# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32841set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032843$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032844if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032845 $as_echo_n "(cached) " >&6
32846else
32847 case $AutotraceDecodeDelegate in
32848 [\\/]* | ?:[\\/]*)
32849 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32850 ;;
32851 *)
32852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32853for as_dir in $PATH
32854do
32855 IFS=$as_save_IFS
32856 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032857 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032859 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032861 break 2
32862 fi
32863done
cristy8b350f62009-11-15 23:12:43 +000032864 done
cristy3ed852e2009-09-05 21:47:34 +000032865IFS=$as_save_IFS
32866
32867 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32868 ;;
32869esac
32870fi
32871AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32872if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032874$as_echo "$AutotraceDecodeDelegate" >&6; }
32875else
cristy8b350f62009-11-15 23:12:43 +000032876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032877$as_echo "no" >&6; }
32878fi
32879
32880
cristy3ed852e2009-09-05 21:47:34 +000032881# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32882set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032884$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032885if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032886 $as_echo_n "(cached) " >&6
32887else
32888 case $BlenderDecodeDelegate in
32889 [\\/]* | ?:[\\/]*)
32890 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32891 ;;
32892 *)
32893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32894for as_dir in $PATH
32895do
32896 IFS=$as_save_IFS
32897 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032898 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032900 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032902 break 2
32903 fi
32904done
cristy8b350f62009-11-15 23:12:43 +000032905 done
cristy3ed852e2009-09-05 21:47:34 +000032906IFS=$as_save_IFS
32907
32908 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32909 ;;
32910esac
32911fi
32912BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32913if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032915$as_echo "$BlenderDecodeDelegate" >&6; }
32916else
cristy8b350f62009-11-15 23:12:43 +000032917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032918$as_echo "no" >&6; }
32919fi
32920
32921
32922# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32923set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032926if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032927 $as_echo_n "(cached) " >&6
32928else
32929 case $BZIPDelegate in
32930 [\\/]* | ?:[\\/]*)
32931 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32932 ;;
32933 *)
32934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32935for as_dir in $PATH
32936do
32937 IFS=$as_save_IFS
32938 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032939 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032941 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032943 break 2
32944 fi
32945done
cristy8b350f62009-11-15 23:12:43 +000032946 done
cristy3ed852e2009-09-05 21:47:34 +000032947IFS=$as_save_IFS
32948
32949 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32950 ;;
32951esac
32952fi
32953BZIPDelegate=$ac_cv_path_BZIPDelegate
32954if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032956$as_echo "$BZIPDelegate" >&6; }
32957else
cristy8b350f62009-11-15 23:12:43 +000032958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032959$as_echo "no" >&6; }
32960fi
32961
32962
32963# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32964set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032966$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032967if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032968 $as_echo_n "(cached) " >&6
32969else
32970 case $BrowseDelegate in
32971 [\\/]* | ?:[\\/]*)
32972 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32973 ;;
32974 *)
32975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32976for as_dir in $PATH
32977do
32978 IFS=$as_save_IFS
32979 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032982 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032984 break 2
32985 fi
32986done
cristy8b350f62009-11-15 23:12:43 +000032987 done
cristy3ed852e2009-09-05 21:47:34 +000032988IFS=$as_save_IFS
32989
32990 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32991 ;;
32992esac
32993fi
32994BrowseDelegate=$ac_cv_path_BrowseDelegate
32995if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032997$as_echo "$BrowseDelegate" >&6; }
32998else
cristy8b350f62009-11-15 23:12:43 +000032999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033000$as_echo "no" >&6; }
33001fi
33002
33003
33004# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
33005set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033007$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033008if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033009 $as_echo_n "(cached) " >&6
33010else
33011 case $CGMDecodeDelegate in
33012 [\\/]* | ?:[\\/]*)
33013 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
33014 ;;
33015 *)
33016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33017for as_dir in $PATH
33018do
33019 IFS=$as_save_IFS
33020 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033023 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033025 break 2
33026 fi
33027done
cristy8b350f62009-11-15 23:12:43 +000033028 done
cristy3ed852e2009-09-05 21:47:34 +000033029IFS=$as_save_IFS
33030
33031 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33032 ;;
33033esac
33034fi
33035CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33036if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033038$as_echo "$CGMDecodeDelegate" >&6; }
33039else
cristy8b350f62009-11-15 23:12:43 +000033040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033041$as_echo "no" >&6; }
33042fi
33043
33044
33045# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33046set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033048$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033049if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033050 $as_echo_n "(cached) " >&6
33051else
33052 case $CatDelegate in
33053 [\\/]* | ?:[\\/]*)
33054 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33055 ;;
33056 *)
33057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33058for as_dir in $PATH
33059do
33060 IFS=$as_save_IFS
33061 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033064 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033066 break 2
33067 fi
33068done
cristy8b350f62009-11-15 23:12:43 +000033069 done
cristy3ed852e2009-09-05 21:47:34 +000033070IFS=$as_save_IFS
33071
33072 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33073 ;;
33074esac
33075fi
33076CatDelegate=$ac_cv_path_CatDelegate
33077if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033079$as_echo "$CatDelegate" >&6; }
33080else
cristy8b350f62009-11-15 23:12:43 +000033081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033082$as_echo "no" >&6; }
33083fi
33084
33085
33086# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33087set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033089$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033090if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033091 $as_echo_n "(cached) " >&6
33092else
33093 case $DNGDecodeDelegate in
33094 [\\/]* | ?:[\\/]*)
33095 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33096 ;;
33097 *)
33098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33099for as_dir in $PATH
33100do
33101 IFS=$as_save_IFS
33102 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033103 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033105 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033107 break 2
33108 fi
33109done
cristy8b350f62009-11-15 23:12:43 +000033110 done
cristy3ed852e2009-09-05 21:47:34 +000033111IFS=$as_save_IFS
33112
33113 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33114 ;;
33115esac
33116fi
33117DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33118if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033120$as_echo "$DNGDecodeDelegate" >&6; }
33121else
cristy8b350f62009-11-15 23:12:43 +000033122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033123$as_echo "no" >&6; }
33124fi
33125
33126
33127# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33128set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033130$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033131if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033132 $as_echo_n "(cached) " >&6
33133else
33134 case $GVCDecodeDelegate in
33135 [\\/]* | ?:[\\/]*)
33136 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33137 ;;
33138 *)
33139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33140for as_dir in $PATH
33141do
33142 IFS=$as_save_IFS
33143 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033144 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033146 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033148 break 2
33149 fi
33150done
cristy8b350f62009-11-15 23:12:43 +000033151 done
cristy3ed852e2009-09-05 21:47:34 +000033152IFS=$as_save_IFS
33153
33154 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33155 ;;
33156esac
33157fi
33158GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33159if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033161$as_echo "$GVCDecodeDelegate" >&6; }
33162else
cristy8b350f62009-11-15 23:12:43 +000033163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033164$as_echo "no" >&6; }
33165fi
33166
33167
33168# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33169set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033171$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033172if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033173 $as_echo_n "(cached) " >&6
33174else
33175 case $DVIDecodeDelegate in
33176 [\\/]* | ?:[\\/]*)
33177 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33178 ;;
33179 *)
33180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33181for as_dir in $PATH
33182do
33183 IFS=$as_save_IFS
33184 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033187 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033189 break 2
33190 fi
33191done
cristy8b350f62009-11-15 23:12:43 +000033192 done
cristy3ed852e2009-09-05 21:47:34 +000033193IFS=$as_save_IFS
33194
33195 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33196 ;;
33197esac
33198fi
33199DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33200if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033202$as_echo "$DVIDecodeDelegate" >&6; }
33203else
cristy8b350f62009-11-15 23:12:43 +000033204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033205$as_echo "no" >&6; }
33206fi
33207
33208
33209# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33210set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033213if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033214 $as_echo_n "(cached) " >&6
33215else
33216 case $EchoDelegate in
33217 [\\/]* | ?:[\\/]*)
33218 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33219 ;;
33220 *)
33221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33222for as_dir in $PATH
33223do
33224 IFS=$as_save_IFS
33225 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033228 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033230 break 2
33231 fi
33232done
cristy8b350f62009-11-15 23:12:43 +000033233 done
cristy3ed852e2009-09-05 21:47:34 +000033234IFS=$as_save_IFS
33235
33236 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33237 ;;
33238esac
33239fi
33240EchoDelegate=$ac_cv_path_EchoDelegate
33241if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033243$as_echo "$EchoDelegate" >&6; }
33244else
cristy8b350f62009-11-15 23:12:43 +000033245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033246$as_echo "no" >&6; }
33247fi
33248
33249
33250# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33251set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033253$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033254if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033255 $as_echo_n "(cached) " >&6
33256else
33257 case $EditorDelegate in
33258 [\\/]* | ?:[\\/]*)
33259 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33260 ;;
33261 *)
33262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33263for as_dir in $PATH
33264do
33265 IFS=$as_save_IFS
33266 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033267 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033269 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033271 break 2
33272 fi
33273done
cristy8b350f62009-11-15 23:12:43 +000033274 done
cristy3ed852e2009-09-05 21:47:34 +000033275IFS=$as_save_IFS
33276
33277 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33278 ;;
33279esac
33280fi
33281EditorDelegate=$ac_cv_path_EditorDelegate
33282if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033284$as_echo "$EditorDelegate" >&6; }
33285else
cristy8b350f62009-11-15 23:12:43 +000033286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033287$as_echo "no" >&6; }
33288fi
33289
33290
33291# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33292set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033294$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033295if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033296 $as_echo_n "(cached) " >&6
33297else
33298 case $FIGDecodeDelegate in
33299 [\\/]* | ?:[\\/]*)
33300 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33301 ;;
33302 *)
33303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33304for as_dir in $PATH
33305do
33306 IFS=$as_save_IFS
33307 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033308 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033310 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033312 break 2
33313 fi
33314done
cristy8b350f62009-11-15 23:12:43 +000033315 done
cristy3ed852e2009-09-05 21:47:34 +000033316IFS=$as_save_IFS
33317
33318 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33319 ;;
33320esac
33321fi
33322FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33323if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033325$as_echo "$FIGDecodeDelegate" >&6; }
33326else
cristy8b350f62009-11-15 23:12:43 +000033327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033328$as_echo "no" >&6; }
33329fi
33330
33331
33332# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33333set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033335$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033336if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033337 $as_echo_n "(cached) " >&6
33338else
33339 case $ConvertDelegate in
33340 [\\/]* | ?:[\\/]*)
33341 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33342 ;;
33343 *)
33344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33345for as_dir in $PATH
33346do
33347 IFS=$as_save_IFS
33348 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033349 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033351 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033353 break 2
33354 fi
33355done
cristy8b350f62009-11-15 23:12:43 +000033356 done
cristy3ed852e2009-09-05 21:47:34 +000033357IFS=$as_save_IFS
33358
33359 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33360 ;;
33361esac
33362fi
33363ConvertDelegate=$ac_cv_path_ConvertDelegate
33364if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033366$as_echo "$ConvertDelegate" >&6; }
33367else
cristy8b350f62009-11-15 23:12:43 +000033368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033369$as_echo "no" >&6; }
33370fi
33371
33372
33373# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33374set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033376$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033377if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033378 $as_echo_n "(cached) " >&6
33379else
33380 case $DisplayDelegate in
33381 [\\/]* | ?:[\\/]*)
33382 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33383 ;;
33384 *)
33385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33386for as_dir in $PATH
33387do
33388 IFS=$as_save_IFS
33389 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033392 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033394 break 2
33395 fi
33396done
cristy8b350f62009-11-15 23:12:43 +000033397 done
cristy3ed852e2009-09-05 21:47:34 +000033398IFS=$as_save_IFS
33399
33400 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33401 ;;
33402esac
33403fi
33404DisplayDelegate=$ac_cv_path_DisplayDelegate
33405if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033407$as_echo "$DisplayDelegate" >&6; }
33408else
cristy8b350f62009-11-15 23:12:43 +000033409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033410$as_echo "no" >&6; }
33411fi
33412
33413
33414# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33415set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033417$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033418if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033419 $as_echo_n "(cached) " >&6
33420else
33421 case $MogrifyDelegate in
33422 [\\/]* | ?:[\\/]*)
33423 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33424 ;;
33425 *)
33426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33427for as_dir in $PATH
33428do
33429 IFS=$as_save_IFS
33430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033433 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033435 break 2
33436 fi
33437done
cristy8b350f62009-11-15 23:12:43 +000033438 done
cristy3ed852e2009-09-05 21:47:34 +000033439IFS=$as_save_IFS
33440
33441 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33442 ;;
33443esac
33444fi
33445MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33446if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033448$as_echo "$MogrifyDelegate" >&6; }
33449else
cristy8b350f62009-11-15 23:12:43 +000033450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033451$as_echo "no" >&6; }
33452fi
33453
33454
33455# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33456set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033458$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033459if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033460 $as_echo_n "(cached) " >&6
33461else
33462 case $GnuplotDecodeDelegate in
33463 [\\/]* | ?:[\\/]*)
33464 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33465 ;;
33466 *)
33467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33468for as_dir in $PATH
33469do
33470 IFS=$as_save_IFS
33471 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033472 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033474 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033476 break 2
33477 fi
33478done
cristy8b350f62009-11-15 23:12:43 +000033479 done
cristy3ed852e2009-09-05 21:47:34 +000033480IFS=$as_save_IFS
33481
33482 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33483 ;;
33484esac
33485fi
33486GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33487if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033489$as_echo "$GnuplotDecodeDelegate" >&6; }
33490else
cristy8b350f62009-11-15 23:12:43 +000033491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033492$as_echo "no" >&6; }
33493fi
33494
33495
cristy3ed852e2009-09-05 21:47:34 +000033496# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33497set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033500if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033501 $as_echo_n "(cached) " >&6
33502else
33503 case $HPGLDecodeDelegate in
33504 [\\/]* | ?:[\\/]*)
33505 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33506 ;;
33507 *)
33508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33509for as_dir in $PATH
33510do
33511 IFS=$as_save_IFS
33512 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033513 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033515 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033517 break 2
33518 fi
33519done
cristy8b350f62009-11-15 23:12:43 +000033520 done
cristy3ed852e2009-09-05 21:47:34 +000033521IFS=$as_save_IFS
33522
33523 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33524 ;;
33525esac
33526fi
33527HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33528if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033530$as_echo "$HPGLDecodeDelegate" >&6; }
33531else
cristy8b350f62009-11-15 23:12:43 +000033532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033533$as_echo "no" >&6; }
33534fi
33535
33536
33537# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33538set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033540$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033541if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033542 $as_echo_n "(cached) " >&6
33543else
33544 case $HTMLDecodeDelegate in
33545 [\\/]* | ?:[\\/]*)
33546 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33547 ;;
33548 *)
33549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33550for as_dir in $PATH
33551do
33552 IFS=$as_save_IFS
33553 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033554 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033556 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033558 break 2
33559 fi
33560done
cristy8b350f62009-11-15 23:12:43 +000033561 done
cristy3ed852e2009-09-05 21:47:34 +000033562IFS=$as_save_IFS
33563
33564 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33565 ;;
33566esac
33567fi
33568HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33569if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033571$as_echo "$HTMLDecodeDelegate" >&6; }
33572else
cristy8b350f62009-11-15 23:12:43 +000033573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033574$as_echo "no" >&6; }
33575fi
33576
33577
33578# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33579set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033581$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033582if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033583 $as_echo_n "(cached) " >&6
33584else
33585 case $ILBMDecodeDelegate in
33586 [\\/]* | ?:[\\/]*)
33587 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33588 ;;
33589 *)
33590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33591for as_dir in $PATH
33592do
33593 IFS=$as_save_IFS
33594 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033595 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033597 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033599 break 2
33600 fi
33601done
cristy8b350f62009-11-15 23:12:43 +000033602 done
cristy3ed852e2009-09-05 21:47:34 +000033603IFS=$as_save_IFS
33604
33605 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33606 ;;
33607esac
33608fi
33609ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33610if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033612$as_echo "$ILBMDecodeDelegate" >&6; }
33613else
cristy8b350f62009-11-15 23:12:43 +000033614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033615$as_echo "no" >&6; }
33616fi
33617
33618
33619# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33620set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033623if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033624 $as_echo_n "(cached) " >&6
33625else
33626 case $ILBMEncodeDelegate in
33627 [\\/]* | ?:[\\/]*)
33628 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33629 ;;
33630 *)
33631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33632for as_dir in $PATH
33633do
33634 IFS=$as_save_IFS
33635 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033636 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033638 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033640 break 2
33641 fi
33642done
cristy8b350f62009-11-15 23:12:43 +000033643 done
cristy3ed852e2009-09-05 21:47:34 +000033644IFS=$as_save_IFS
33645
33646 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33647 ;;
33648esac
33649fi
33650ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33651if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033653$as_echo "$ILBMEncodeDelegate" >&6; }
33654else
cristy8b350f62009-11-15 23:12:43 +000033655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033656$as_echo "no" >&6; }
33657fi
33658
33659
33660# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33661set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033663$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033664if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033665 $as_echo_n "(cached) " >&6
33666else
33667 case $LPDelegate in
33668 [\\/]* | ?:[\\/]*)
33669 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33670 ;;
33671 *)
33672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33673for as_dir in $PATH
33674do
33675 IFS=$as_save_IFS
33676 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033677 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033679 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033681 break 2
33682 fi
33683done
cristy8b350f62009-11-15 23:12:43 +000033684 done
cristy3ed852e2009-09-05 21:47:34 +000033685IFS=$as_save_IFS
33686
33687 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33688 ;;
33689esac
33690fi
33691LPDelegate=$ac_cv_path_LPDelegate
33692if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033694$as_echo "$LPDelegate" >&6; }
33695else
cristy8b350f62009-11-15 23:12:43 +000033696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033697$as_echo "no" >&6; }
33698fi
33699
33700
33701# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33702set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033704$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033705if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033706 $as_echo_n "(cached) " >&6
33707else
33708 case $LPRDelegate in
33709 [\\/]* | ?:[\\/]*)
33710 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33711 ;;
33712 *)
33713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33714for as_dir in $PATH
33715do
33716 IFS=$as_save_IFS
33717 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033718 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033720 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033722 break 2
33723 fi
33724done
cristy8b350f62009-11-15 23:12:43 +000033725 done
cristy3ed852e2009-09-05 21:47:34 +000033726IFS=$as_save_IFS
33727
33728 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33729 ;;
33730esac
33731fi
33732LPRDelegate=$ac_cv_path_LPRDelegate
33733if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033735$as_echo "$LPRDelegate" >&6; }
33736else
cristy8b350f62009-11-15 23:12:43 +000033737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033738$as_echo "no" >&6; }
33739fi
33740
33741
33742# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33743set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033745$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033746if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033747 $as_echo_n "(cached) " >&6
33748else
33749 case $LZWDecodeDelegate in
33750 [\\/]* | ?:[\\/]*)
33751 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33752 ;;
33753 *)
33754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33755for as_dir in $PATH
33756do
33757 IFS=$as_save_IFS
33758 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033759 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033761 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033763 break 2
33764 fi
33765done
cristy8b350f62009-11-15 23:12:43 +000033766 done
cristy3ed852e2009-09-05 21:47:34 +000033767IFS=$as_save_IFS
33768
33769 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33770 ;;
33771esac
33772fi
33773LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33774if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033776$as_echo "$LZWDecodeDelegate" >&6; }
33777else
cristy8b350f62009-11-15 23:12:43 +000033778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033779$as_echo "no" >&6; }
33780fi
33781
33782
33783# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33784set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033786$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033787if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033788 $as_echo_n "(cached) " >&6
33789else
33790 case $LZWEncodeDelegate in
33791 [\\/]* | ?:[\\/]*)
33792 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33793 ;;
33794 *)
33795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33796for as_dir in $PATH
33797do
33798 IFS=$as_save_IFS
33799 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033800 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033802 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033804 break 2
33805 fi
33806done
cristy8b350f62009-11-15 23:12:43 +000033807 done
cristy3ed852e2009-09-05 21:47:34 +000033808IFS=$as_save_IFS
33809
33810 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33811 ;;
33812esac
33813fi
33814LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33815if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033817$as_echo "$LZWEncodeDelegate" >&6; }
33818else
cristy8b350f62009-11-15 23:12:43 +000033819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033820$as_echo "no" >&6; }
33821fi
33822
33823
33824# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33825set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033827$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033828if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033829 $as_echo_n "(cached) " >&6
33830else
33831 case $LaunchDelegate in
33832 [\\/]* | ?:[\\/]*)
33833 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33834 ;;
33835 *)
33836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33837for as_dir in $PATH
33838do
33839 IFS=$as_save_IFS
33840 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033843 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033845 break 2
33846 fi
33847done
cristy8b350f62009-11-15 23:12:43 +000033848 done
cristy3ed852e2009-09-05 21:47:34 +000033849IFS=$as_save_IFS
33850
33851 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33852 ;;
33853esac
33854fi
33855LaunchDelegate=$ac_cv_path_LaunchDelegate
33856if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033858$as_echo "$LaunchDelegate" >&6; }
33859else
cristy8b350f62009-11-15 23:12:43 +000033860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033861$as_echo "no" >&6; }
33862fi
33863
33864
33865# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33866set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033868$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033869if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033870 $as_echo_n "(cached) " >&6
33871else
33872 case $MANDelegate in
33873 [\\/]* | ?:[\\/]*)
33874 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33875 ;;
33876 *)
33877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33878for as_dir in $PATH
33879do
33880 IFS=$as_save_IFS
33881 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033882 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033884 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033886 break 2
33887 fi
33888done
cristy8b350f62009-11-15 23:12:43 +000033889 done
cristy3ed852e2009-09-05 21:47:34 +000033890IFS=$as_save_IFS
33891
33892 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33893 ;;
33894esac
33895fi
33896MANDelegate=$ac_cv_path_MANDelegate
33897if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033899$as_echo "$MANDelegate" >&6; }
33900else
cristy8b350f62009-11-15 23:12:43 +000033901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033902$as_echo "no" >&6; }
33903fi
33904
33905
33906# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33907set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033910if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033911 $as_echo_n "(cached) " >&6
33912else
33913 case $MPEGDecodeDelegate in
33914 [\\/]* | ?:[\\/]*)
33915 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33916 ;;
33917 *)
33918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33919for as_dir in $PATH
33920do
33921 IFS=$as_save_IFS
33922 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033925 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033927 break 2
33928 fi
33929done
cristy8b350f62009-11-15 23:12:43 +000033930 done
cristy3ed852e2009-09-05 21:47:34 +000033931IFS=$as_save_IFS
33932
33933 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33934 ;;
33935esac
33936fi
33937MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33938if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033940$as_echo "$MPEGDecodeDelegate" >&6; }
33941else
cristy8b350f62009-11-15 23:12:43 +000033942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033943$as_echo "no" >&6; }
33944fi
33945
33946
33947# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33948set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033951if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033952 $as_echo_n "(cached) " >&6
33953else
33954 case $MPEGEncodeDelegate in
33955 [\\/]* | ?:[\\/]*)
33956 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33957 ;;
33958 *)
33959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33960for as_dir in $PATH
33961do
33962 IFS=$as_save_IFS
33963 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033964 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033966 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033968 break 2
33969 fi
33970done
cristy8b350f62009-11-15 23:12:43 +000033971 done
cristy3ed852e2009-09-05 21:47:34 +000033972IFS=$as_save_IFS
33973
33974 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33975 ;;
33976esac
33977fi
33978MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33979if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033981$as_echo "$MPEGEncodeDelegate" >&6; }
33982else
cristy8b350f62009-11-15 23:12:43 +000033983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033984$as_echo "no" >&6; }
33985fi
33986
33987
cristy935c86e2010-06-05 23:50:07 +000033988# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33989set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33991$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033992if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033993 $as_echo_n "(cached) " >&6
33994else
33995 case $MrSIDDecodeDelegate in
33996 [\\/]* | ?:[\\/]*)
33997 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33998 ;;
33999 *)
34000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34001for as_dir in $PATH
34002do
34003 IFS=$as_save_IFS
34004 test -z "$as_dir" && as_dir=.
34005 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034007 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34009 break 2
34010 fi
34011done
34012 done
34013IFS=$as_save_IFS
34014
34015 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34016 ;;
34017esac
34018fi
34019MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34020if test -n "$MrSIDDecodeDelegate"; then
34021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34022$as_echo "$MrSIDDecodeDelegate" >&6; }
34023else
34024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34025$as_echo "no" >&6; }
34026fi
34027
34028
cristy3ed852e2009-09-05 21:47:34 +000034029# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34030set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034032$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034033if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034034 $as_echo_n "(cached) " >&6
34035else
34036 case $MVDelegate in
34037 [\\/]* | ?:[\\/]*)
34038 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34039 ;;
34040 *)
34041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34042for as_dir in $PATH
34043do
34044 IFS=$as_save_IFS
34045 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034048 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034050 break 2
34051 fi
34052done
cristy8b350f62009-11-15 23:12:43 +000034053 done
cristy3ed852e2009-09-05 21:47:34 +000034054IFS=$as_save_IFS
34055
34056 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34057 ;;
34058esac
34059fi
34060MVDelegate=$ac_cv_path_MVDelegate
34061if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034063$as_echo "$MVDelegate" >&6; }
34064else
cristy8b350f62009-11-15 23:12:43 +000034065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034066$as_echo "no" >&6; }
34067fi
34068
34069
34070# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34071set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034073$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034074if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034075 $as_echo_n "(cached) " >&6
34076else
34077 case $PCLDelegate in
34078 [\\/]* | ?:[\\/]*)
34079 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34080 ;;
34081 *)
34082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34083for as_dir in $PATH
34084do
34085 IFS=$as_save_IFS
34086 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034089 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034091 break 2
34092 fi
34093done
cristy8b350f62009-11-15 23:12:43 +000034094 done
cristy3ed852e2009-09-05 21:47:34 +000034095IFS=$as_save_IFS
34096
34097 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34098 ;;
34099esac
34100fi
34101PCLDelegate=$ac_cv_path_PCLDelegate
34102if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034104$as_echo "$PCLDelegate" >&6; }
34105else
cristy8b350f62009-11-15 23:12:43 +000034106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034107$as_echo "no" >&6; }
34108fi
34109
34110
34111# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34112set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034114$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034115if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034116 $as_echo_n "(cached) " >&6
34117else
34118 case $PGPDecodeDelegate in
34119 [\\/]* | ?:[\\/]*)
34120 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34121 ;;
34122 *)
34123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34124for as_dir in $PATH
34125do
34126 IFS=$as_save_IFS
34127 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034128 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034130 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034132 break 2
34133 fi
34134done
cristy8b350f62009-11-15 23:12:43 +000034135 done
cristy3ed852e2009-09-05 21:47:34 +000034136IFS=$as_save_IFS
34137
34138 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34139 ;;
34140esac
34141fi
34142PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34143if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034145$as_echo "$PGPDecodeDelegate" >&6; }
34146else
cristy8b350f62009-11-15 23:12:43 +000034147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034148$as_echo "no" >&6; }
34149fi
34150
34151
34152# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34153set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034155$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034156if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034157 $as_echo_n "(cached) " >&6
34158else
34159 case $POVDelegate in
34160 [\\/]* | ?:[\\/]*)
34161 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34162 ;;
34163 *)
34164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34165for as_dir in $PATH
34166do
34167 IFS=$as_save_IFS
34168 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034169 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034171 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034173 break 2
34174 fi
34175done
cristy8b350f62009-11-15 23:12:43 +000034176 done
cristy3ed852e2009-09-05 21:47:34 +000034177IFS=$as_save_IFS
34178
34179 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34180 ;;
34181esac
34182fi
34183POVDelegate=$ac_cv_path_POVDelegate
34184if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034186$as_echo "$POVDelegate" >&6; }
34187else
cristy8b350f62009-11-15 23:12:43 +000034188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034189$as_echo "no" >&6; }
34190fi
34191
34192
34193for ac_prog in gsx gsc "$PSDelegateDefault"
34194do
34195 # Extract the first word of "$ac_prog", so it can be a program name with args.
34196set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034198$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034199if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034200 $as_echo_n "(cached) " >&6
34201else
34202 case $PSDelegate in
34203 [\\/]* | ?:[\\/]*)
34204 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34205 ;;
34206 *)
34207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34208for as_dir in $PATH
34209do
34210 IFS=$as_save_IFS
34211 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034212 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034214 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034216 break 2
34217 fi
34218done
cristy8b350f62009-11-15 23:12:43 +000034219 done
cristy3ed852e2009-09-05 21:47:34 +000034220IFS=$as_save_IFS
34221
34222 ;;
34223esac
34224fi
34225PSDelegate=$ac_cv_path_PSDelegate
34226if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034228$as_echo "$PSDelegate" >&6; }
34229else
cristy8b350f62009-11-15 23:12:43 +000034230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034231$as_echo "no" >&6; }
34232fi
34233
34234
34235 test -n "$PSDelegate" && break
34236done
34237test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34238
34239# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34240set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034242$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034243if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034244 $as_echo_n "(cached) " >&6
34245else
34246 case $RLEEncodeDelegate in
34247 [\\/]* | ?:[\\/]*)
34248 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34249 ;;
34250 *)
34251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34252for as_dir in $PATH
34253do
34254 IFS=$as_save_IFS
34255 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034256 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034258 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034260 break 2
34261 fi
34262done
cristy8b350f62009-11-15 23:12:43 +000034263 done
cristy3ed852e2009-09-05 21:47:34 +000034264IFS=$as_save_IFS
34265
34266 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34267 ;;
34268esac
34269fi
34270RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34271if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034273$as_echo "$RLEEncodeDelegate" >&6; }
34274else
cristy8b350f62009-11-15 23:12:43 +000034275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034276$as_echo "no" >&6; }
34277fi
34278
34279
34280# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34281set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034283$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034284if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034285 $as_echo_n "(cached) " >&6
34286else
34287 case $RMDelegate in
34288 [\\/]* | ?:[\\/]*)
34289 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34290 ;;
34291 *)
34292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34293for as_dir in $PATH
34294do
34295 IFS=$as_save_IFS
34296 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034297 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034299 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034301 break 2
34302 fi
34303done
cristy8b350f62009-11-15 23:12:43 +000034304 done
cristy3ed852e2009-09-05 21:47:34 +000034305IFS=$as_save_IFS
34306
34307 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34308 ;;
34309esac
34310fi
34311RMDelegate=$ac_cv_path_RMDelegate
34312if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034314$as_echo "$RMDelegate" >&6; }
34315else
cristy8b350f62009-11-15 23:12:43 +000034316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034317$as_echo "no" >&6; }
34318fi
34319
34320
cristy4689cf02010-02-17 21:15:45 +000034321# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34322set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34324$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034325if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034326 $as_echo_n "(cached) " >&6
34327else
34328 case $RSVGDecodeDelegate in
34329 [\\/]* | ?:[\\/]*)
34330 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34331 ;;
34332 *)
34333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34334for as_dir in $PATH
34335do
34336 IFS=$as_save_IFS
34337 test -z "$as_dir" && as_dir=.
34338 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034340 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34342 break 2
34343 fi
34344done
34345 done
34346IFS=$as_save_IFS
34347
34348 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34349 ;;
34350esac
34351fi
34352RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34353if test -n "$RSVGDecodeDelegate"; then
34354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34355$as_echo "$RSVGDecodeDelegate" >&6; }
34356else
34357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34358$as_echo "no" >&6; }
34359fi
34360
34361
cristy3ed852e2009-09-05 21:47:34 +000034362# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34363set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034365$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034366if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034367 $as_echo_n "(cached) " >&6
34368else
34369 case $SCANDecodeDelegate in
34370 [\\/]* | ?:[\\/]*)
34371 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34372 ;;
34373 *)
34374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34375for as_dir in $PATH
34376do
34377 IFS=$as_save_IFS
34378 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034379 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034381 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034383 break 2
34384 fi
34385done
cristy8b350f62009-11-15 23:12:43 +000034386 done
cristy3ed852e2009-09-05 21:47:34 +000034387IFS=$as_save_IFS
34388
34389 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34390 ;;
34391esac
34392fi
34393SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34394if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034396$as_echo "$SCANDecodeDelegate" >&6; }
34397else
cristy8b350f62009-11-15 23:12:43 +000034398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034399$as_echo "no" >&6; }
34400fi
34401
34402
34403# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34404set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034406$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034407if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034408 $as_echo_n "(cached) " >&6
34409else
34410 case $TXTDelegate in
34411 [\\/]* | ?:[\\/]*)
34412 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34413 ;;
34414 *)
34415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34416for as_dir in $PATH
34417do
34418 IFS=$as_save_IFS
34419 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034420 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034422 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034424 break 2
34425 fi
34426done
cristy8b350f62009-11-15 23:12:43 +000034427 done
cristy3ed852e2009-09-05 21:47:34 +000034428IFS=$as_save_IFS
34429
34430 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34431 ;;
34432esac
34433fi
34434TXTDelegate=$ac_cv_path_TXTDelegate
34435if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034437$as_echo "$TXTDelegate" >&6; }
34438else
cristy8b350f62009-11-15 23:12:43 +000034439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034440$as_echo "no" >&6; }
34441fi
34442
34443
cristy5ac9ac82010-07-29 13:24:24 +000034444# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34445set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34447$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034448if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034449 $as_echo_n "(cached) " >&6
34450else
34451 case $UniconvertorDelegate in
34452 [\\/]* | ?:[\\/]*)
34453 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34454 ;;
34455 *)
34456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34457for as_dir in $PATH
34458do
34459 IFS=$as_save_IFS
34460 test -z "$as_dir" && as_dir=.
34461 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034463 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34465 break 2
34466 fi
34467done
34468 done
34469IFS=$as_save_IFS
34470
34471 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34472 ;;
34473esac
34474fi
34475UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34476if test -n "$UniconvertorDelegate"; then
34477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34478$as_echo "$UniconvertorDelegate" >&6; }
34479else
34480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34481$as_echo "no" >&6; }
34482fi
34483
34484
cristy3ed852e2009-09-05 21:47:34 +000034485# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34486set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034488$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034489if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034490 $as_echo_n "(cached) " >&6
34491else
34492 case $WMFDecodeDelegate in
34493 [\\/]* | ?:[\\/]*)
34494 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34495 ;;
34496 *)
34497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34498for as_dir in $PATH
34499do
34500 IFS=$as_save_IFS
34501 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034502 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034504 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034506 break 2
34507 fi
34508done
cristy8b350f62009-11-15 23:12:43 +000034509 done
cristy3ed852e2009-09-05 21:47:34 +000034510IFS=$as_save_IFS
34511
34512 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34513 ;;
34514esac
34515fi
34516WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34517if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034519$as_echo "$WMFDecodeDelegate" >&6; }
34520else
cristy8b350f62009-11-15 23:12:43 +000034521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034522$as_echo "no" >&6; }
34523fi
34524
34525
34526# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34527set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034529$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034530if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034531 $as_echo_n "(cached) " >&6
34532else
34533 case $WWWDecodeDelegate in
34534 [\\/]* | ?:[\\/]*)
34535 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34536 ;;
34537 *)
34538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34539for as_dir in $PATH
34540do
34541 IFS=$as_save_IFS
34542 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034545 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034547 break 2
34548 fi
34549done
cristy8b350f62009-11-15 23:12:43 +000034550 done
cristy3ed852e2009-09-05 21:47:34 +000034551IFS=$as_save_IFS
34552
34553 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34554 ;;
34555esac
34556fi
34557WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34558if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034560$as_echo "$WWWDecodeDelegate" >&6; }
34561else
cristy8b350f62009-11-15 23:12:43 +000034562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034563$as_echo "no" >&6; }
34564fi
34565
34566
34567# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34568set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034570$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034571if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034572 $as_echo_n "(cached) " >&6
34573else
34574 case $XPSDelegate in
34575 [\\/]* | ?:[\\/]*)
34576 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34577 ;;
34578 *)
34579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34580for as_dir in $PATH
34581do
34582 IFS=$as_save_IFS
34583 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034584 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034586 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034588 break 2
34589 fi
34590done
cristy8b350f62009-11-15 23:12:43 +000034591 done
cristy3ed852e2009-09-05 21:47:34 +000034592IFS=$as_save_IFS
34593
34594 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34595 ;;
34596esac
34597fi
34598XPSDelegate=$ac_cv_path_XPSDelegate
34599if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034601$as_echo "$XPSDelegate" >&6; }
34602else
cristy8b350f62009-11-15 23:12:43 +000034603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034604$as_echo "no" >&6; }
34605fi
34606
34607
34608# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34609set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034611$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034612if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034613 $as_echo_n "(cached) " >&6
34614else
34615 case $ZipDelegate in
34616 [\\/]* | ?:[\\/]*)
34617 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34618 ;;
34619 *)
34620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34621for as_dir in $PATH
34622do
34623 IFS=$as_save_IFS
34624 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034625 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034627 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034629 break 2
34630 fi
34631done
cristy8b350f62009-11-15 23:12:43 +000034632 done
cristy3ed852e2009-09-05 21:47:34 +000034633IFS=$as_save_IFS
34634
34635 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34636 ;;
34637esac
34638fi
34639ZipDelegate=$ac_cv_path_ZipDelegate
34640if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034642$as_echo "$ZipDelegate" >&6; }
34643else
cristy8b350f62009-11-15 23:12:43 +000034644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034645$as_echo "no" >&6; }
34646fi
34647
34648
34649
34650# Prefer lpr to lp; lp needs options tacked on.
34651if test "$LPRDelegate" != no; then
34652 PrintDelegate="$LPRDelegate"
34653else
34654 PrintDelegate="$LPDelegate -c -s"
34655fi
34656
34657
34658# Installed ImageMagick utiltity paths
34659ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34660DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34661MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34662
34663# Set delegate booleans
34664have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34665have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34666have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34667have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34668have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034669have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034670have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34671have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034672have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34673have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34674
34675#
34676# Test for font directories
34677#
34678type_include_files=''
34679
cristy430a7312010-01-21 20:44:04 +000034680# Dejavu fonts.
34681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34682$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34683dejavu_font_dir=''
34684if test "${with_dejavu_font_dir}" != 'default'; then
34685 dejavu_font_dir="${with_dejavu_font_dir}/"
34686else
34687 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34688 if test -f "${font_dir}DejaVuSerif.ttf"; then
34689 dejavu_font_dir="${font_dir}"
34690 break 1
34691 fi
34692 done
34693fi
34694if test "${dejavu_font_dir}x" != 'x'; then
34695 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034696 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34697$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034698else
cristy09b53e12011-10-14 12:47:22 +000034699 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34700$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034701fi
34702
34703
cristy3ed852e2009-09-05 21:47:34 +000034704# Windows
34705windows_font_dir=''
34706if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34707 windows_font_dir="${with_windows_font_dir}/"
34708fi
cristy430a7312010-01-21 20:44:04 +000034709if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034710 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34711 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34712 fi
34713 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34714 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34715 fi
34716 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34717 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34718 fi
34719fi
cristy430a7312010-01-21 20:44:04 +000034720if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034721 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34722fi
34723
34724
34725# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034727$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34728ghostscript_font_dir=''
34729if test "${with_gs_font_dir}" != 'default'; then
34730 ghostscript_font_dir="${with_gs_font_dir}/"
34731else
34732 if test "${native_win32_build}" = 'yes'; then
34733 # Native Windows Build
34734 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34735 if test -f "${font_dir}a010013l.pfb"; then
34736 ghostscript_font_dir="$font_dir"
34737 break 1
34738 fi
34739 done
34740 if test "${PSDelegate}" != 'gswin32c'; then
34741 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34742 fi
34743 else
34744 # Linux / Mac OS X / Unix Build
34745 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
34746 if test -f "${font_dir}a010013l.pfb"; then
34747 ghostscript_font_dir="${font_dir}"
34748 break 1
34749 fi
34750 done
34751 if test "${ghostscript_font_dir}x" = 'x'; then
34752 if test "$PSDelegate" != 'gs'; then
34753 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34754 fi
34755 fi
34756 fi
34757fi
34758if test "${ghostscript_font_dir}x" != 'x'; then
34759 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034760 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34761$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034762else
cristy09b53e12011-10-14 12:47:22 +000034763 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34764$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034765fi
34766
34767case "${build_os}" in
34768 mingw* )
34769 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34770 ;;
34771esac
34772
34773
34774
34775#
34776# Handle case where user doesn't want frozen paths
34777#
34778if test "$with_frozenpaths" != 'yes'; then
34779 # Re-set delegate definitions to default (no paths)
34780 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034781 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34782 BZIPDelegate="$BZIPDelegateDefault"
34783 BrowseDelegate="$BrowseDelegateDefault"
34784 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34785 CatDelegate="$CatDelegateDefault"
34786 ConvertDelegate="$ConvertDelegateDefault"
34787 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34788 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34789 EchoDelegate="$EchoDelegateDefault"
34790 EditorDelegate="$EditorDelegateDefault"
34791 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34792 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34793 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34794 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34795 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34796 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34797 LPDelegate="$LPDelegateDefault"
34798 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34799 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34800 LaunchDelegate="$LaunchDelegateDefault"
34801 MANDelegate="$MANDelegateDefault"
34802 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34803 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034804 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034805 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34806 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034807 PCLDelegate="$PCLDelegateDefault"
34808 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34809 POVDelegate="$POVDelegateDefault"
34810 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034811 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34812 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034813 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034814 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34815 ShowImageDelegate="$ShowImageDelegateDefault"
34816 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034817 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034818 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34819 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34820 XPSDelegate="$XPSDelegateDefault"
34821 ZipDelegate="$ZipDelegateDefault"
34822fi
34823
34824# Delegate substitutions
34825
34826
34827
34828
34829
34830
34831
34832
34833
34834
34835
34836
34837
34838
34839
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867#
34868# RPM support.
34869#
34870RPM=''
34871for ac_prog in gnutar gtar tar
34872do
34873 # Extract the first word of "$ac_prog", so it can be a program name with args.
34874set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034877if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034878 $as_echo_n "(cached) " >&6
34879else
34880 if test -n "$TAR"; then
34881 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34882else
34883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34884for as_dir in $PATH
34885do
34886 IFS=$as_save_IFS
34887 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034888 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034890 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034892 break 2
34893 fi
34894done
cristy8b350f62009-11-15 23:12:43 +000034895 done
cristy3ed852e2009-09-05 21:47:34 +000034896IFS=$as_save_IFS
34897
34898fi
34899fi
34900TAR=$ac_cv_prog_TAR
34901if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034903$as_echo "$TAR" >&6; }
34904else
cristy8b350f62009-11-15 23:12:43 +000034905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034906$as_echo "no" >&6; }
34907fi
34908
34909
34910 test -n "$TAR" && break
34911done
34912
34913for ac_prog in perl
34914do
34915 # Extract the first word of "$ac_prog", so it can be a program name with args.
34916set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034918$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034919if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034920 $as_echo_n "(cached) " >&6
34921else
34922 if test -n "$PERL"; then
34923 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34924else
34925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34926for as_dir in $PATH
34927do
34928 IFS=$as_save_IFS
34929 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034930 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034932 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034934 break 2
34935 fi
34936done
cristy8b350f62009-11-15 23:12:43 +000034937 done
cristy3ed852e2009-09-05 21:47:34 +000034938IFS=$as_save_IFS
34939
34940fi
34941fi
34942PERL=$ac_cv_prog_PERL
34943if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034945$as_echo "$PERL" >&6; }
34946else
cristy8b350f62009-11-15 23:12:43 +000034947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034948$as_echo "no" >&6; }
34949fi
34950
34951
34952 test -n "$PERL" && break
34953done
34954
34955for ac_prog in rpmbuild rpm
34956do
34957 # Extract the first word of "$ac_prog", so it can be a program name with args.
34958set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034960$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034961if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034962 $as_echo_n "(cached) " >&6
34963else
34964 if test -n "$RPM"; then
34965 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34966else
34967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34968for as_dir in $PATH
34969do
34970 IFS=$as_save_IFS
34971 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034974 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034976 break 2
34977 fi
34978done
cristy8b350f62009-11-15 23:12:43 +000034979 done
cristy3ed852e2009-09-05 21:47:34 +000034980IFS=$as_save_IFS
34981
34982fi
34983fi
34984RPM=$ac_cv_prog_RPM
34985if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034987$as_echo "$RPM" >&6; }
34988else
cristy8b350f62009-11-15 23:12:43 +000034989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034990$as_echo "no" >&6; }
34991fi
34992
34993
34994 test -n "$RPM" && break
34995done
34996
34997
cristy73bd4a52010-10-05 11:24:23 +000034998ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34999
35000
35001AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35002
35003
35004AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35005
35006
35007AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35008
35009
35010 if test "x$RPM" != "x" ; then
35011 RPM_DELEGATE_TRUE=
35012 RPM_DELEGATE_FALSE='#'
35013else
35014 RPM_DELEGATE_TRUE='#'
35015 RPM_DELEGATE_FALSE=
35016fi
35017
cristy3ed852e2009-09-05 21:47:34 +000035018
35019#
35020# 7ZIP support (http://p7zip.sourceforge.net/)
35021#
35022P7ZIP=''
35023for ac_prog in 7za
35024do
35025 # Extract the first word of "$ac_prog", so it can be a program name with args.
35026set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035028$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035029if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035030 $as_echo_n "(cached) " >&6
35031else
35032 if test -n "$P7ZIP"; then
35033 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35034else
35035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35036for as_dir in $PATH
35037do
35038 IFS=$as_save_IFS
35039 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035040 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035042 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035044 break 2
35045 fi
35046done
cristy8b350f62009-11-15 23:12:43 +000035047 done
cristy3ed852e2009-09-05 21:47:34 +000035048IFS=$as_save_IFS
35049
35050fi
35051fi
35052P7ZIP=$ac_cv_prog_P7ZIP
35053if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035055$as_echo "$P7ZIP" >&6; }
35056else
cristy8b350f62009-11-15 23:12:43 +000035057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035058$as_echo "no" >&6; }
35059fi
35060
35061
35062 test -n "$P7ZIP" && break
35063done
35064
35065
cristy73bd4a52010-10-05 11:24:23 +000035066 if test "x$P7ZIP" != "x" ; then
35067 P7ZIP_DELEGATE_TRUE=
35068 P7ZIP_DELEGATE_FALSE='#'
35069else
35070 P7ZIP_DELEGATE_TRUE='#'
35071 P7ZIP_DELEGATE_FALSE=
35072fi
35073
cristy3ed852e2009-09-05 21:47:34 +000035074
35075#
35076# ZIP support (http://www.info-zip.org/Zip.html)
35077#
35078ZIP=''
35079for ac_prog in zip
35080do
35081 # Extract the first word of "$ac_prog", so it can be a program name with args.
35082set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035084$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035085if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035086 $as_echo_n "(cached) " >&6
35087else
35088 if test -n "$ZIP"; then
35089 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35090else
35091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35092for as_dir in $PATH
35093do
35094 IFS=$as_save_IFS
35095 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035096 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035098 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035100 break 2
35101 fi
35102done
cristy8b350f62009-11-15 23:12:43 +000035103 done
cristy3ed852e2009-09-05 21:47:34 +000035104IFS=$as_save_IFS
35105
35106fi
35107fi
35108ZIP=$ac_cv_prog_ZIP
35109if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035111$as_echo "$ZIP" >&6; }
35112else
cristy8b350f62009-11-15 23:12:43 +000035113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035114$as_echo "no" >&6; }
35115fi
35116
35117
35118 test -n "$ZIP" && break
35119done
35120
35121
cristy73bd4a52010-10-05 11:24:23 +000035122 if test "x$ZIP" != "x" ; then
35123 ZIP_DELEGATE_TRUE=
35124 ZIP_DELEGATE_FALSE='#'
35125else
35126 ZIP_DELEGATE_TRUE='#'
35127 ZIP_DELEGATE_FALSE=
35128fi
35129
cristy3ed852e2009-09-05 21:47:34 +000035130
35131#
35132# GhostPCL related configuration.
35133#
35134PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035135PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035136PCLMonoDevice=pbmraw
35137if test -z "$PCLVersion"; then
35138 PCLVersion='unknown'
35139fi
35140if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035141 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35142$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035144$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035145 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35146$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035147 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035149$as_echo_n "checking for pcl color device... " >&6; }
35150 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35151 :
35152 else
35153 PCLColorDevice=ppmraw
35154 fi
cristy09b53e12011-10-14 12:47:22 +000035155 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35156$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035157
35158 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035160$as_echo_n "checking for pcl CMYK device... " >&6; }
35161 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35162 :
35163 else
35164 PCLCMYKDevice=$PCLColorDevice
35165 fi
cristy09b53e12011-10-14 12:47:22 +000035166 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35167$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035168
35169 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035171$as_echo_n "checking for pcl mono device... " >&6; }
35172 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35173 :
35174 else
35175 PCLMonoDevice=$PCLColorDevice
35176 fi
cristy09b53e12011-10-14 12:47:22 +000035177 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35178$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035179fi
35180
35181
35182
35183
35184
35185
35186#
35187# GhostXPS related configuration.
35188#
35189XPSColorDevice=ppmraw
35190XPSCMYKDevice=bmpsep8
35191XPSMonoDevice=pbmraw
35192if test -z "$XPSVersion"; then
35193 XPSVersion='unknown'
35194fi
35195if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035196 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35197$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035199$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035200 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35201$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035202 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035204$as_echo_n "checking for xps color device... " >&6; }
35205 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35206 :
35207 else
35208 XPSColorDevice=ppmraw
35209 fi
cristy09b53e12011-10-14 12:47:22 +000035210 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35211$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035212
35213 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035215$as_echo_n "checking for xps CMYK device... " >&6; }
35216 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35217 :
35218 else
35219 XPSCMYKDevice=$XPSColorDevice
35220 fi
cristy09b53e12011-10-14 12:47:22 +000035221 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35222$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035223
35224 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035226$as_echo_n "checking for xps mono device... " >&6; }
35227 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35228 :
35229 else
35230 XPSMonoDevice=$XPSColorDevice
35231 fi
cristy09b53e12011-10-14 12:47:22 +000035232 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35233$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035234fi
35235
35236
35237
35238
35239
35240
35241#
35242# Ghostscript related configuration.
35243#
cristya97426c2011-02-04 01:41:27 +000035244GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035245GSColorDevice=pnmraw
35246GSCMYKDevice=pam
35247GSMonoDevice=pbmraw
35248GSPDFDevice=pdfwrite
35249GSPSDevice=pswrite
35250GSEPSDevice=epswrite
35251GSVersion='unknown'
35252if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035253 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35254$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035256$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035257 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35258$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035260$as_echo_n "checking for Ghostscript version... " >&6; }
35261 if GSVersion=`$PSDelegate --version`; then
35262 :
35263 else
35264 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35265 fi
cristy09b53e12011-10-14 12:47:22 +000035266 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35267$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035268
35269 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035271$as_echo_n "checking for gs alpha device... " >&6; }
35272 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35273 :
35274 else
35275 GSAlphaDevice=pnmraw
35276 fi
cristy09b53e12011-10-14 12:47:22 +000035277 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35278$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035279
35280 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035282$as_echo_n "checking for gs color device... " >&6; }
35283 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35284 :
35285 else
35286 GSColorDevice=pnmraw
35287 fi
cristy09b53e12011-10-14 12:47:22 +000035288 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35289$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035290
35291 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035293$as_echo_n "checking for gs CMYK device... " >&6; }
35294 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35295 :
35296 else
35297 GSCMYKDevice=bmpsep8
35298 fi
cristy09b53e12011-10-14 12:47:22 +000035299 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35300$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035301
35302 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035304$as_echo_n "checking for gs mono device... " >&6; }
35305 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35306 :
35307 else
35308 GSMonoDevice=$GSColorDevice
35309 fi
cristy09b53e12011-10-14 12:47:22 +000035310 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35311$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035312
35313 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035315$as_echo_n "checking for gs PDF writing device... " >&6; }
35316 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35317 :
35318 else
35319 GSPDFDevice=nodevice
35320 fi
cristy09b53e12011-10-14 12:47:22 +000035321 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35322$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035323
35324 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035326$as_echo_n "checking for gs PS writing device... " >&6; }
35327 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35328 :
35329 else
35330 GSPSDevice=nodevice
35331 fi
cristy09b53e12011-10-14 12:47:22 +000035332 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35333$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035334
35335 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035337$as_echo_n "checking for gs EPS writing device... " >&6; }
35338 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35339 :
35340 else
35341 GSEPSDevice=nodevice
35342 fi
cristy09b53e12011-10-14 12:47:22 +000035343 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35344$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035345fi
35346
35347
35348
35349
35350
35351
35352
35353
35354
35355
35356#
35357# PerlMagick-related configuration
35358#
35359
35360# Look for PERL if PerlMagick requested
35361# If name/path of desired PERL interpreter is specified, look for that one first
35362have_perl='no'
35363if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035364 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35365$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035367$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035368 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35369$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035370 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035372$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035373if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035374 $as_echo_n "(cached) " >&6
35375else
35376 ac_cv_path_PERL="$with_perl"
35377fi
cristy8b350f62009-11-15 23:12:43 +000035378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035379$as_echo "$ac_cv_path_PERL" >&6; };
35380 PERL=$ac_cv_path_PERL
35381 have_perl="$ac_cv_path_PERL"
35382 else
35383 for ac_prog in perl perl5
35384do
35385 # Extract the first word of "$ac_prog", so it can be a program name with args.
35386set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035388$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035389if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035390 $as_echo_n "(cached) " >&6
35391else
35392 case $PERL in
35393 [\\/]* | ?:[\\/]*)
35394 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35395 ;;
35396 *)
35397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35398for as_dir in $PATH
35399do
35400 IFS=$as_save_IFS
35401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035404 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035406 break 2
35407 fi
35408done
cristy8b350f62009-11-15 23:12:43 +000035409 done
cristy3ed852e2009-09-05 21:47:34 +000035410IFS=$as_save_IFS
35411
35412 ;;
35413esac
35414fi
35415PERL=$ac_cv_path_PERL
35416if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035418$as_echo "$PERL" >&6; }
35419else
cristy8b350f62009-11-15 23:12:43 +000035420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035421$as_echo "no" >&6; }
35422fi
35423
35424
35425 test -n "$PERL" && break
35426done
35427 if test "$ac_cv_path_PERL"; then
35428 have_perl="$ac_cv_path_PERL"
35429 fi
35430 fi
35431fi
35432
cristy949301e2010-01-06 01:38:40 +000035433if test "$with_perl" != 'yes' ; then
35434 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35435fi
35436
35437PERL_SUPPORTS_DESTDIR='no'
35438
cristy3ed852e2009-09-05 21:47:34 +000035439with_perl_static='no'
35440with_perl_dynamic='no'
35441if test "$have_perl" != 'no'; then
35442 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35443 with_perl_static='yes'
35444 fi
35445 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35446 with_perl_dynamic='yes'
35447 fi
35448 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035449
35450
35451
35452
35453 if test -n "$PERL"; then :
35454
35455 ax_perl_version="5.8.1"
35456
35457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35458$as_echo_n "checking for perl version... " >&6; }
35459
35460 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35461
35462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35463$as_echo "$perl_version" >&6; }
35464
35465 PERL_VERSION=$perl_version
35466
35467
35468
35469
35470
35471 # Used to indicate true or false condition
35472 ax_compare_version=false
35473
35474 # Convert the two version strings to be compared into a format that
35475 # allows a simple string comparison. The end result is that a version
35476 # string of the form 1.12.5-r617 will be converted to the form
35477 # 0001001200050617. In other words, each number is zero padded to four
35478 # digits, and non digits are removed.
35479
35480 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35481 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35482 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35483 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35484 -e 's/[^0-9]//g'`
35485
35486
35487 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35488 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35489 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35490 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35491 -e 's/[^0-9]//g'`
35492
35493
35494 ax_compare_version=`echo "x$ax_compare_version_A
35495x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35496
35497
35498
35499 if test "$ax_compare_version" = "true" ; then
35500
35501 :
35502 PERL_SUPPORTS_DESTDIR='yes'
35503
35504 else
35505 :
35506 PERL_SUPPORTS_DESTDIR='no'
35507
35508 fi
35509
35510
35511else
35512
35513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35514$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35515 PERL_SUPPORTS_DESTDIR='no'
35516
cristy3ed852e2009-09-05 21:47:34 +000035517fi
cristy73bd4a52010-10-05 11:24:23 +000035518
35519fi
35520 if test "$have_perl" != 'no'; then
35521 WITH_PERL_TRUE=
35522 WITH_PERL_FALSE='#'
35523else
35524 WITH_PERL_TRUE='#'
35525 WITH_PERL_FALSE=
35526fi
35527
35528 if test $with_perl_static = 'yes'; then
35529 WITH_PERL_STATIC_TRUE=
35530 WITH_PERL_STATIC_FALSE='#'
35531else
35532 WITH_PERL_STATIC_TRUE='#'
35533 WITH_PERL_STATIC_FALSE=
35534fi
35535
35536 if test $with_perl_dynamic = 'yes'; then
35537 WITH_PERL_DYNAMIC_TRUE=
35538 WITH_PERL_DYNAMIC_FALSE='#'
35539else
35540 WITH_PERL_DYNAMIC_TRUE='#'
35541 WITH_PERL_DYNAMIC_FALSE=
35542fi
35543
cristy3ed852e2009-09-05 21:47:34 +000035544
35545
35546# Determine path to pick up MagickCore library from for use with building PerlMagick
35547MAGICKCORE_PATH="${LIB_DIR}"
35548if test $with_perl_static = 'yes'; then
35549 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35550 libtool_objdir=$objdir
35551
35552 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035553 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035554fi
35555
35556
35557# Create a simple string containing format names for all delegate libraries
35558DELEGATES=''
35559if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35560if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35561if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35562if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35563if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35564if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35565if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35566if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35567if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35568if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35569if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35570if test "$have_jpeg" = 'yes'; then
35571 DELEGATES="$DELEGATES jpeg";
35572 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35573fi
35574if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035575if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035576if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35577if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035578if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035579if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35580if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035581if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035582if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35583if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35584if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35585if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35586if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35587if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35588if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35589
35590
35591
35592#
35593# Handle special compiler flags
35594#
35595
35596# Add '-p' if prof source profiling support enabled
35597if test "$enable_prof" = 'yes'; then
35598 CFLAGS="-p $CFLAGS"
35599 CXXFLAGS="-p $CXXFLAGS"
35600 LDFLAGS="-p $LDFLAGS"
35601fi
35602
35603# Add '-pg' if gprof source profiling support enabled
35604if test "$enable_gprof" = 'yes'; then
35605 CFLAGS="-pg $CFLAGS"
35606 CXXFLAGS="-pg $CXXFLAGS"
35607 LDFLAGS="-pg $LDFLAGS"
35608fi
35609
35610# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35611# This is a gcc-specific feature
35612if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035614$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035615if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035616 $as_echo_n "(cached) " >&6
35617else
35618 ac_check_lib_save_LIBS=$LIBS
35619LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035621/* end confdefs.h. */
35622
35623/* Override any GCC internal prototype to avoid an error.
35624 Use char because int might match the return type of a GCC
35625 builtin and then its argument prototype would still apply. */
35626#ifdef __cplusplus
35627extern "C"
35628#endif
35629char _gcov_init ();
35630int
35631main ()
35632{
35633return _gcov_init ();
35634 ;
35635 return 0;
35636}
35637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035639 ac_cv_lib_gcov__gcov_init=yes
35640else
cristy8b350f62009-11-15 23:12:43 +000035641 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035642fi
cristy8b350f62009-11-15 23:12:43 +000035643rm -f core conftest.err conftest.$ac_objext \
35644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035645LIBS=$ac_check_lib_save_LIBS
35646fi
cristy8b350f62009-11-15 23:12:43 +000035647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035648$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035649if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035650 cat >>confdefs.h <<_ACEOF
35651#define HAVE_LIBGCOV 1
35652_ACEOF
35653
35654 LIBS="-lgcov $LIBS"
35655
35656fi
35657
cristy8b350f62009-11-15 23:12:43 +000035658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035659$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035660if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035661 $as_echo_n "(cached) " >&6
35662else
35663 ac_check_lib_save_LIBS=$LIBS
35664LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035666/* end confdefs.h. */
35667
35668/* Override any GCC internal prototype to avoid an error.
35669 Use char because int might match the return type of a GCC
35670 builtin and then its argument prototype would still apply. */
35671#ifdef __cplusplus
35672extern "C"
35673#endif
35674char __gcov_init ();
35675int
35676main ()
35677{
35678return __gcov_init ();
35679 ;
35680 return 0;
35681}
35682_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035683if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035684 ac_cv_lib_gcov___gcov_init=yes
35685else
cristy8b350f62009-11-15 23:12:43 +000035686 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035687fi
cristy8b350f62009-11-15 23:12:43 +000035688rm -f core conftest.err conftest.$ac_objext \
35689 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035690LIBS=$ac_check_lib_save_LIBS
35691fi
cristy8b350f62009-11-15 23:12:43 +000035692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035693$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035694if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035695 cat >>confdefs.h <<_ACEOF
35696#define HAVE_LIBGCOV 1
35697_ACEOF
35698
35699 LIBS="-lgcov $LIBS"
35700
35701fi
35702
35703 case "$target_os" in
35704 darwin*)
35705 OSX_GCOV_LDFLAG="-Wl,-single_module"
35706 ;;
35707 *)
35708 OSX_GCOV_LDFLAG=""
35709 ;;
35710 esac
35711
35712 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35713 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35714 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35715fi
35716
35717#
35718# Build library dependency list for libMagickCore
35719#
35720
35721MAGICK_LIBLTDL='' # Libltdl for build
35722MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35723MAGICK_LTDLDEPS='' # extra libltdl dependencies
35724if test "$with_ltdl" != 'no'
35725then
35726 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35727 MAGICK_API_LIBLTDL='-lltdl'
35728 fi
35729 MAGICK_LIBLTDL=${LIBLTDL}
35730 MAGICK_LTDLDEPS=${LTDLDEPS}
35731fi
35732
35733
35734
35735if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035736 MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035737else
cristy41cbe8a2011-10-27 01:35:18 +000035738 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 $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035739fi
35740
35741
35742#
35743# Remove extraneous spaces from output variables (asthetic)
35744#
35745X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35746X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35747X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35748X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35749
35750CC=`echo $CC | sed -e 's/ */ /g'`
35751CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35752CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35753CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35754DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35755DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35756LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35757TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35758MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35759#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35760
35761# Pass only user-provided LIBS as "global" libraries
35762LIBS=$USER_LIBS
35763
35764#AC_SUBST(CPPFLAGS)
35765
35766#AC_SUBST(LDFLAGS)
35767#AC_SUBST(X_PRE_LIBS)
35768#AC_SUBST(X_LIBS)
35769#AC_SUBST(X_EXTRA_LIBS)
35770
35771MAGICK_CFLAGS=$CFLAGS
35772MAGICK_CXXFLAGS="$CXXFLAGS"
35773MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35774MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35775MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35776MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35777
35778
35779
35780
35781
35782
35783
35784
cristyfd9dcd42010-08-08 18:07:02 +000035785
cristy3ed852e2009-09-05 21:47:34 +000035786# Set configured scripts to executable.
35787ac_config_commands="$ac_config_commands default"
35788
cristy2bd4b6e2012-07-22 15:29:11 +000035789ac_config_commands="$ac_config_commands magick.sh.in"
35790
cristy3ed852e2009-09-05 21:47:34 +000035791ac_config_commands="$ac_config_commands MagickCore-config.in"
35792
cristy3ed852e2009-09-05 21:47:34 +000035793ac_config_commands="$ac_config_commands MagickWand-config.in"
35794
cristy3ed852e2009-09-05 21:47:34 +000035795ac_config_commands="$ac_config_commands Magick++-config.in"
35796
35797ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35798
35799
cristy09b53e12011-10-14 12:47:22 +000035800{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35801$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35802{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35803$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035804cat >confcache <<\_ACEOF
35805# This file is a shell script that caches the results of configure
35806# tests run on this system so they can be shared between configure
35807# scripts and configure runs, see configure's option --config-cache.
35808# It is not useful on other systems. If it contains results you don't
35809# want to keep, you may remove or edit it.
35810#
35811# config.status only pays attention to the cache file if you give it
35812# the --recheck option to rerun configure.
35813#
35814# `ac_cv_env_foo' variables (set or unset) will be overridden when
35815# loading this file, other *unset* `ac_cv_foo' will be assigned the
35816# following values.
35817
35818_ACEOF
35819
35820# The following way of writing the cache mishandles newlines in values,
35821# but we know of no workaround that is simple, portable, and efficient.
35822# So, we kill variables containing newlines.
35823# Ultrix sh set writes to stderr and can't be redirected directly,
35824# and sets the high bit in the cache file unless we assign to the vars.
35825(
35826 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35827 eval ac_val=\$$ac_var
35828 case $ac_val in #(
35829 *${as_nl}*)
35830 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035831 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035832$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35833 esac
35834 case $ac_var in #(
35835 _ | IFS | as_nl) ;; #(
35836 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035837 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035838 esac ;;
35839 esac
35840 done
35841
35842 (set) 2>&1 |
35843 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35844 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035845 # `set' does not quote correctly, so add quotes: double-quote
35846 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035847 sed -n \
35848 "s/'/'\\\\''/g;
35849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35850 ;; #(
35851 *)
35852 # `set' quotes correctly as required by POSIX, so do not add quotes.
35853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35854 ;;
35855 esac |
35856 sort
35857) |
35858 sed '
35859 /^ac_cv_env_/b end
35860 t clear
35861 :clear
35862 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35863 t end
35864 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35865 :end' >>confcache
35866if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35867 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035868 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035869 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035870$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035871 if test ! -f "$cache_file" || test -h "$cache_file"; then
35872 cat confcache >"$cache_file"
35873 else
35874 case $cache_file in #(
35875 */* | ?:*)
35876 mv -f confcache "$cache_file"$$ &&
35877 mv -f "$cache_file"$$ "$cache_file" ;; #(
35878 *)
35879 mv -f confcache "$cache_file" ;;
35880 esac
35881 fi
35882 fi
cristy3ed852e2009-09-05 21:47:34 +000035883 else
cristy8b350f62009-11-15 23:12:43 +000035884 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035885$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35886 fi
35887fi
35888rm -f confcache
35889
35890test "x$prefix" = xNONE && prefix=$ac_default_prefix
35891# Let make expand exec_prefix.
35892test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35893
35894DEFS=-DHAVE_CONFIG_H
35895
35896ac_libobjs=
35897ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035898U=
cristy3ed852e2009-09-05 21:47:34 +000035899for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35900 # 1. Remove the extension, and $U if already installed.
35901 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35902 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35903 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35904 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035905 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35906 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035907done
35908LIBOBJS=$ac_libobjs
35909
35910LTLIBOBJS=$ac_ltlibobjs
35911
35912
cristyc0890a62012-07-19 00:18:20 +000035913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35914$as_echo_n "checking that generated files are newer than configure... " >&6; }
35915 if test -n "$am_sleep_pid"; then
35916 # Hide warnings about reused PIDs.
35917 wait $am_sleep_pid 2>/dev/null
35918 fi
35919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35920$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035921 if test -n "$EXEEXT"; then
35922 am__EXEEXT_TRUE=
35923 am__EXEEXT_FALSE='#'
35924else
35925 am__EXEEXT_TRUE='#'
35926 am__EXEEXT_FALSE=
35927fi
cristy3ed852e2009-09-05 21:47:34 +000035928
cristy73bd4a52010-10-05 11:24:23 +000035929if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035930 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035931Usually this means the macro was only invoked conditionally." "$LINENO" 5
35932fi
35933if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035934 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035935Usually this means the macro was only invoked conditionally." "$LINENO" 5
35936fi
35937if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035938 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035939Usually this means the macro was only invoked conditionally." "$LINENO" 5
35940fi
35941if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035942 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035943Usually this means the macro was only invoked conditionally." "$LINENO" 5
35944fi
35945if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035946 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035947Usually this means the macro was only invoked conditionally." "$LINENO" 5
35948fi
35949if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035950 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035951Usually this means the macro was only invoked conditionally." "$LINENO" 5
35952fi
35953if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035954 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035955Usually this means the macro was only invoked conditionally." "$LINENO" 5
35956fi
35957if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035958 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035959Usually this means the macro was only invoked conditionally." "$LINENO" 5
35960fi
cristy73bd4a52010-10-05 11:24:23 +000035961if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035962 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035963Usually this means the macro was only invoked conditionally." "$LINENO" 5
35964fi
35965if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035966 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035967Usually this means the macro was only invoked conditionally." "$LINENO" 5
35968fi
35969LT_CONFIG_H=config/config.h
35970
35971 _ltdl_libobjs=
35972 _ltdl_ltlibobjs=
35973 if test -n "$_LT_LIBOBJS"; then
35974 # Remove the extension.
35975 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35976 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35977 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35978 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35979 done
35980 fi
35981 ltdl_LIBOBJS=$_ltdl_libobjs
35982
35983 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35984
35985
35986if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035987 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035988Usually this means the macro was only invoked conditionally." "$LINENO" 5
35989fi
35990if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035991 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035992Usually this means the macro was only invoked conditionally." "$LINENO" 5
35993fi
35994if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035995 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035996Usually this means the macro was only invoked conditionally." "$LINENO" 5
35997fi
35998if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035999 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036000Usually this means the macro was only invoked conditionally." "$LINENO" 5
36001fi
cristy71d8c202012-03-20 17:05:01 +000036002if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36003 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36004Usually this means the macro was only invoked conditionally." "$LINENO" 5
36005fi
cristy73bd4a52010-10-05 11:24:23 +000036006
36007if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036008 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036009Usually this means the macro was only invoked conditionally." "$LINENO" 5
36010fi
36011if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036012 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036013Usually this means the macro was only invoked conditionally." "$LINENO" 5
36014fi
36015if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036016 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036017Usually this means the macro was only invoked conditionally." "$LINENO" 5
36018fi
36019if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036020 as_fn_error $? "conditional \"BZLIB_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 "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036024 as_fn_error $? "conditional \"X11_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 "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036028 as_fn_error $? "conditional \"ZLIB_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 "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036032 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036033Usually this means the macro was only invoked conditionally." "$LINENO" 5
36034fi
36035if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036036 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036037Usually this means the macro was only invoked conditionally." "$LINENO" 5
36038fi
36039if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036040 as_fn_error $? "conditional \"DJVU_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 "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036044 as_fn_error $? "conditional \"FFTW_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 "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036048 as_fn_error $? "conditional \"FPX_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 "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036052 as_fn_error $? "conditional \"FONTCONFIG_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 "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036056 as_fn_error $? "conditional \"FREETYPE_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 "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036060 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036061Usually this means the macro was only invoked conditionally." "$LINENO" 5
36062fi
36063if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036064 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036065Usually this means the macro was only invoked conditionally." "$LINENO" 5
36066fi
36067if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036068 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036069Usually this means the macro was only invoked conditionally." "$LINENO" 5
36070fi
36071if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036072 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036073Usually this means the macro was only invoked conditionally." "$LINENO" 5
36074fi
36075if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036076 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036077Usually this means the macro was only invoked conditionally." "$LINENO" 5
36078fi
36079if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036080 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036081Usually this means the macro was only invoked conditionally." "$LINENO" 5
36082fi
36083if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036084 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036085Usually this means the macro was only invoked conditionally." "$LINENO" 5
36086fi
cristyfbb0ef02010-12-19 02:32:11 +000036087if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36088 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36089Usually this means the macro was only invoked conditionally." "$LINENO" 5
36090fi
cristy73bd4a52010-10-05 11:24:23 +000036091if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036092 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036093Usually this means the macro was only invoked conditionally." "$LINENO" 5
36094fi
cristy41cbe8a2011-10-27 01:35:18 +000036095if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36096 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36097Usually this means the macro was only invoked conditionally." "$LINENO" 5
36098fi
cristya054b762012-03-26 23:16:00 +000036099if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36100 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036101Usually this means the macro was only invoked conditionally." "$LINENO" 5
36102fi
cristy73bd4a52010-10-05 11:24:23 +000036103if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036104 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036105Usually this means the macro was only invoked conditionally." "$LINENO" 5
36106fi
36107if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036108 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036109Usually this means the macro was only invoked conditionally." "$LINENO" 5
36110fi
36111if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036112 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036113Usually this means the macro was only invoked conditionally." "$LINENO" 5
36114fi
36115if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036116 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036117Usually this means the macro was only invoked conditionally." "$LINENO" 5
36118fi
cristyb1860752011-03-14 00:27:46 +000036119if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36120 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36121Usually this means the macro was only invoked conditionally." "$LINENO" 5
36122fi
cristy73bd4a52010-10-05 11:24:23 +000036123if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036124 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036125Usually this means the macro was only invoked conditionally." "$LINENO" 5
36126fi
36127if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036128 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036129Usually this means the macro was only invoked conditionally." "$LINENO" 5
36130fi
36131if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036132 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036133Usually this means the macro was only invoked conditionally." "$LINENO" 5
36134fi
36135if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036136 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036137Usually this means the macro was only invoked conditionally." "$LINENO" 5
36138fi
36139if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036140 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036141Usually this means the macro was only invoked conditionally." "$LINENO" 5
36142fi
36143if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036144 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036145Usually this means the macro was only invoked conditionally." "$LINENO" 5
36146fi
36147if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036148 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036149Usually this means the macro was only invoked conditionally." "$LINENO" 5
36150fi
36151if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036152 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036153Usually this means the macro was only invoked conditionally." "$LINENO" 5
36154fi
cristy3ed852e2009-09-05 21:47:34 +000036155
cristyda16f162011-02-19 23:52:17 +000036156: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036157ac_write_fail=0
36158ac_clean_files_save=$ac_clean_files
36159ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036160{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036161$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036162as_write_fail=0
36163cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036164#! $SHELL
36165# Generated by $as_me.
36166# Run this file to recreate the current configuration.
36167# Compiler output produced by configure, useful for debugging
36168# configure, is in config.log if it exists.
36169
36170debug=false
36171ac_cs_recheck=false
36172ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036173
cristy8b350f62009-11-15 23:12:43 +000036174SHELL=\${CONFIG_SHELL-$SHELL}
36175export SHELL
36176_ASEOF
36177cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36178## -------------------- ##
36179## M4sh Initialization. ##
36180## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036181
36182# Be more Bourne compatible
36183DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036184if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036185 emulate sh
36186 NULLCMD=:
36187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36188 # is contrary to our usage. Disable this feature.
36189 alias -g '${1+"$@"}'='"$@"'
36190 setopt NO_GLOB_SUBST
36191else
cristy8b350f62009-11-15 23:12:43 +000036192 case `(set -o) 2>/dev/null` in #(
36193 *posix*) :
36194 set -o posix ;; #(
36195 *) :
36196 ;;
cristy3ed852e2009-09-05 21:47:34 +000036197esac
cristy3ed852e2009-09-05 21:47:34 +000036198fi
36199
36200
cristy3ed852e2009-09-05 21:47:34 +000036201as_nl='
36202'
36203export as_nl
36204# Printing a long string crashes Solaris 7 /usr/bin/printf.
36205as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36206as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36207as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036208# Prefer a ksh shell builtin over an external printf program on Solaris,
36209# but without wasting forks for bash or zsh.
36210if test -z "$BASH_VERSION$ZSH_VERSION" \
36211 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36212 as_echo='print -r --'
36213 as_echo_n='print -rn --'
36214elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036215 as_echo='printf %s\n'
36216 as_echo_n='printf %s'
36217else
36218 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36219 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36220 as_echo_n='/usr/ucb/echo -n'
36221 else
36222 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36223 as_echo_n_body='eval
36224 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036225 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036226 *"$as_nl"*)
36227 expr "X$arg" : "X\\(.*\\)$as_nl";
36228 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36229 esac;
36230 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36231 '
36232 export as_echo_n_body
36233 as_echo_n='sh -c $as_echo_n_body as_echo'
36234 fi
36235 export as_echo_body
36236 as_echo='sh -c $as_echo_body as_echo'
36237fi
36238
36239# The user is always right.
36240if test "${PATH_SEPARATOR+set}" != set; then
36241 PATH_SEPARATOR=:
36242 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36243 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36244 PATH_SEPARATOR=';'
36245 }
36246fi
36247
cristy3ed852e2009-09-05 21:47:34 +000036248
36249# IFS
36250# We need space, tab and new line, in precisely that order. Quoting is
36251# there to prevent editors from complaining about space-tab.
36252# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36253# splitting by setting IFS to empty value.)
36254IFS=" "" $as_nl"
36255
36256# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036257as_myself=
cristy8b350f62009-11-15 23:12:43 +000036258case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036259 *[\\/]* ) as_myself=$0 ;;
36260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36261for as_dir in $PATH
36262do
36263 IFS=$as_save_IFS
36264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36266 done
cristy3ed852e2009-09-05 21:47:34 +000036267IFS=$as_save_IFS
36268
36269 ;;
36270esac
36271# We did not find ourselves, most probably we were run as `sh COMMAND'
36272# in which case we are not to be found in the path.
36273if test "x$as_myself" = x; then
36274 as_myself=$0
36275fi
36276if test ! -f "$as_myself"; then
36277 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036278 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036279fi
36280
cristy8b350f62009-11-15 23:12:43 +000036281# Unset variables that we do not need and which cause bugs (e.g. in
36282# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36283# suppresses any "Segmentation fault" message there. '((' could
36284# trigger a bug in pdksh 5.2.14.
36285for as_var in BASH_ENV ENV MAIL MAILPATH
36286do eval test x\${$as_var+set} = xset \
36287 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036288done
36289PS1='$ '
36290PS2='> '
36291PS4='+ '
36292
36293# NLS nuisances.
36294LC_ALL=C
36295export LC_ALL
36296LANGUAGE=C
36297export LANGUAGE
36298
cristy8b350f62009-11-15 23:12:43 +000036299# CDPATH.
36300(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36301
36302
cristy98dddb52010-11-04 00:30:15 +000036303# as_fn_error STATUS ERROR [LINENO LOG_FD]
36304# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036305# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36306# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036307# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036308as_fn_error ()
36309{
cristy98dddb52010-11-04 00:30:15 +000036310 as_status=$1; test $as_status -eq 0 && as_status=1
36311 if test "$4"; then
36312 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36313 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036314 fi
cristy98dddb52010-11-04 00:30:15 +000036315 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036316 as_fn_exit $as_status
36317} # as_fn_error
36318
36319
36320# as_fn_set_status STATUS
36321# -----------------------
36322# Set $? to STATUS, without forking.
36323as_fn_set_status ()
36324{
36325 return $1
36326} # as_fn_set_status
36327
36328# as_fn_exit STATUS
36329# -----------------
36330# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36331as_fn_exit ()
36332{
36333 set +e
36334 as_fn_set_status $1
36335 exit $1
36336} # as_fn_exit
36337
36338# as_fn_unset VAR
36339# ---------------
36340# Portably unset VAR.
36341as_fn_unset ()
36342{
36343 { eval $1=; unset $1;}
36344}
36345as_unset=as_fn_unset
36346# as_fn_append VAR VALUE
36347# ----------------------
36348# Append the text in VALUE to the end of the definition contained in VAR. Take
36349# advantage of any shell optimizations that allow amortized linear growth over
36350# repeated appends, instead of the typical quadratic growth present in naive
36351# implementations.
36352if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36353 eval 'as_fn_append ()
36354 {
36355 eval $1+=\$2
36356 }'
36357else
36358 as_fn_append ()
36359 {
36360 eval $1=\$$1\$2
36361 }
36362fi # as_fn_append
36363
36364# as_fn_arith ARG...
36365# ------------------
36366# Perform arithmetic evaluation on the ARGs, and store the result in the
36367# global $as_val. Take advantage of shells that can avoid forks. The arguments
36368# must be portable across $(()) and expr.
36369if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36370 eval 'as_fn_arith ()
36371 {
36372 as_val=$(( $* ))
36373 }'
36374else
36375 as_fn_arith ()
36376 {
36377 as_val=`expr "$@" || test $? -eq 1`
36378 }
36379fi # as_fn_arith
36380
36381
cristy3ed852e2009-09-05 21:47:34 +000036382if expr a : '\(a\)' >/dev/null 2>&1 &&
36383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36384 as_expr=expr
36385else
36386 as_expr=false
36387fi
36388
36389if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36390 as_basename=basename
36391else
36392 as_basename=false
36393fi
36394
cristy8b350f62009-11-15 23:12:43 +000036395if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36396 as_dirname=dirname
36397else
36398 as_dirname=false
36399fi
cristy3ed852e2009-09-05 21:47:34 +000036400
cristy3ed852e2009-09-05 21:47:34 +000036401as_me=`$as_basename -- "$0" ||
36402$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36403 X"$0" : 'X\(//\)$' \| \
36404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36405$as_echo X/"$0" |
36406 sed '/^.*\/\([^/][^/]*\)\/*$/{
36407 s//\1/
36408 q
36409 }
36410 /^X\/\(\/\/\)$/{
36411 s//\1/
36412 q
36413 }
36414 /^X\/\(\/\).*/{
36415 s//\1/
36416 q
36417 }
36418 s/.*/./; q'`
36419
cristy8b350f62009-11-15 23:12:43 +000036420# Avoid depending upon Character Ranges.
36421as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36422as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36423as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36424as_cr_digits='0123456789'
36425as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036426
36427ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036428case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036429-n*)
cristy8b350f62009-11-15 23:12:43 +000036430 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036431 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036432 xy) ECHO_C='\c';;
36433 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36434 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036435 esac;;
36436*)
36437 ECHO_N='-n';;
36438esac
cristy3ed852e2009-09-05 21:47:34 +000036439
36440rm -f conf$$ conf$$.exe conf$$.file
36441if test -d conf$$.dir; then
36442 rm -f conf$$.dir/conf$$.file
36443else
36444 rm -f conf$$.dir
36445 mkdir conf$$.dir 2>/dev/null
36446fi
36447if (echo >conf$$.file) 2>/dev/null; then
36448 if ln -s conf$$.file conf$$ 2>/dev/null; then
36449 as_ln_s='ln -s'
36450 # ... but there are two gotchas:
36451 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36452 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036453 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036454 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036455 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036456 elif ln conf$$.file conf$$ 2>/dev/null; then
36457 as_ln_s=ln
36458 else
cristy14fefe52012-05-21 00:59:18 +000036459 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036460 fi
36461else
cristy14fefe52012-05-21 00:59:18 +000036462 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036463fi
36464rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36465rmdir conf$$.dir 2>/dev/null
36466
cristy8b350f62009-11-15 23:12:43 +000036467
36468# as_fn_mkdir_p
36469# -------------
36470# Create "$as_dir" as a directory, including parents if necessary.
36471as_fn_mkdir_p ()
36472{
36473
36474 case $as_dir in #(
36475 -*) as_dir=./$as_dir;;
36476 esac
36477 test -d "$as_dir" || eval $as_mkdir_p || {
36478 as_dirs=
36479 while :; do
36480 case $as_dir in #(
36481 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36482 *) as_qdir=$as_dir;;
36483 esac
36484 as_dirs="'$as_qdir' $as_dirs"
36485 as_dir=`$as_dirname -- "$as_dir" ||
36486$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36487 X"$as_dir" : 'X\(//\)[^/]' \| \
36488 X"$as_dir" : 'X\(//\)$' \| \
36489 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36490$as_echo X"$as_dir" |
36491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36492 s//\1/
36493 q
36494 }
36495 /^X\(\/\/\)[^/].*/{
36496 s//\1/
36497 q
36498 }
36499 /^X\(\/\/\)$/{
36500 s//\1/
36501 q
36502 }
36503 /^X\(\/\).*/{
36504 s//\1/
36505 q
36506 }
36507 s/.*/./; q'`
36508 test -d "$as_dir" && break
36509 done
36510 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036511 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036512
36513
36514} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036515if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036516 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036517else
36518 test -d ./-p && rmdir ./-p
36519 as_mkdir_p=false
36520fi
36521
cristy14fefe52012-05-21 00:59:18 +000036522
36523# as_fn_executable_p FILE
36524# -----------------------
36525# Test if FILE is an executable regular file.
36526as_fn_executable_p ()
36527{
36528 test -f "$1" && test -x "$1"
36529} # as_fn_executable_p
36530as_test_x='test -x'
36531as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036532
36533# Sed expression to map a string onto a valid CPP name.
36534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36535
36536# Sed expression to map a string onto a valid variable name.
36537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36538
36539
36540exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036541## ----------------------------------- ##
36542## Main body of $CONFIG_STATUS script. ##
36543## ----------------------------------- ##
36544_ASEOF
36545test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036546
cristy8b350f62009-11-15 23:12:43 +000036547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36548# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036549# report actual input values of CONFIG_FILES etc. instead of their
36550# values after options handling.
36551ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036552This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036553generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036554
36555 CONFIG_FILES = $CONFIG_FILES
36556 CONFIG_HEADERS = $CONFIG_HEADERS
36557 CONFIG_LINKS = $CONFIG_LINKS
36558 CONFIG_COMMANDS = $CONFIG_COMMANDS
36559 $ $0 $@
36560
36561on `(hostname || uname -n) 2>/dev/null | sed 1q`
36562"
36563
36564_ACEOF
36565
36566case $ac_config_files in *"
36567"*) set x $ac_config_files; shift; ac_config_files=$*;;
36568esac
36569
36570case $ac_config_headers in *"
36571"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36572esac
36573
36574
36575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36576# Files that config.status was made for.
36577config_files="$ac_config_files"
36578config_headers="$ac_config_headers"
36579config_commands="$ac_config_commands"
36580
36581_ACEOF
36582
36583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36584ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036585\`$as_me' instantiates files and other configuration actions
36586from templates according to the current configuration. Unless the files
36587and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036588
cristy8b350f62009-11-15 23:12:43 +000036589Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036590
36591 -h, --help print this help, then exit
36592 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036593 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036594 -q, --quiet, --silent
36595 do not print progress messages
36596 -d, --debug don't remove temporary files
36597 --recheck update $as_me by reconfiguring in the same conditions
36598 --file=FILE[:TEMPLATE]
36599 instantiate the configuration file FILE
36600 --header=FILE[:TEMPLATE]
36601 instantiate the configuration header FILE
36602
36603Configuration files:
36604$config_files
36605
36606Configuration headers:
36607$config_headers
36608
36609Configuration commands:
36610$config_commands
36611
cristy8b350f62009-11-15 23:12:43 +000036612Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036613
36614_ACEOF
36615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036616ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036617ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036618ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036619configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036620 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036621
cristy14fefe52012-05-21 00:59:18 +000036622Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036623This config.status script is free software; the Free Software Foundation
36624gives unlimited permission to copy, distribute and modify it."
36625
36626ac_pwd='$ac_pwd'
36627srcdir='$srcdir'
36628INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036629MKDIR_P='$MKDIR_P'
36630AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036631test -n "\$AWK" || AWK=awk
36632_ACEOF
36633
36634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36635# The default lists apply if the user does not specify any file.
36636ac_need_defaults=:
36637while test $# != 0
36638do
36639 case $1 in
cristyda16f162011-02-19 23:52:17 +000036640 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036641 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36642 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36643 ac_shift=:
36644 ;;
cristyda16f162011-02-19 23:52:17 +000036645 --*=)
36646 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36647 ac_optarg=
36648 ac_shift=:
36649 ;;
cristy3ed852e2009-09-05 21:47:34 +000036650 *)
36651 ac_option=$1
36652 ac_optarg=$2
36653 ac_shift=shift
36654 ;;
36655 esac
36656
36657 case $ac_option in
36658 # Handling of the options.
36659 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36660 ac_cs_recheck=: ;;
36661 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36662 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036663 --config | --confi | --conf | --con | --co | --c )
36664 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036665 --debug | --debu | --deb | --de | --d | -d )
36666 debug=: ;;
36667 --file | --fil | --fi | --f )
36668 $ac_shift
36669 case $ac_optarg in
36670 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036671 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036672 esac
cristy8b350f62009-11-15 23:12:43 +000036673 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036674 ac_need_defaults=false;;
36675 --header | --heade | --head | --hea )
36676 $ac_shift
36677 case $ac_optarg in
36678 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36679 esac
cristy8b350f62009-11-15 23:12:43 +000036680 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036681 ac_need_defaults=false;;
36682 --he | --h)
36683 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036684 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036685Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036686 --help | --hel | -h )
36687 $as_echo "$ac_cs_usage"; exit ;;
36688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36689 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36690 ac_cs_silent=: ;;
36691
36692 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036693 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036694Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036695
cristy8b350f62009-11-15 23:12:43 +000036696 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036697 ac_need_defaults=false ;;
36698
36699 esac
36700 shift
36701done
36702
36703ac_configure_extra_args=
36704
36705if $ac_cs_silent; then
36706 exec 6>/dev/null
36707 ac_configure_extra_args="$ac_configure_extra_args --silent"
36708fi
36709
36710_ACEOF
36711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36712if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036713 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036714 shift
36715 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36716 CONFIG_SHELL='$SHELL'
36717 export CONFIG_SHELL
36718 exec "\$@"
36719fi
36720
36721_ACEOF
36722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36723exec 5>>config.log
36724{
36725 echo
36726 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36727## Running $as_me. ##
36728_ASBOX
36729 $as_echo "$ac_log"
36730} >&5
36731
36732_ACEOF
36733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036734#
36735# INIT-COMMANDS
36736#
36737PACKAGE="$PACKAGE"
36738AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36739
36740
36741# The HP-UX ksh and POSIX shell print the target directory to stdout
36742# if CDPATH is set.
36743(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36744
36745sed_quote_subst='$sed_quote_subst'
36746double_quote_subst='$double_quote_subst'
36747delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036748SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36749Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36750GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36751EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36752FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36753SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36754ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36755LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36756macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36757macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36758AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36759DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36760OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36761enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36762enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36763pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36764enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036765PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036766host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36767host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36768host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36769build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36770build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36771build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36772NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36773LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36774max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36775ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36776exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36777lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36778lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36779lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036780lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36781lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036782reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36783reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36784deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36785file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036786file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36787want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36788sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036789AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36790AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036791archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036792STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36793RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36794old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36795old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36796old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36797lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36798CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36799CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36800compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36801GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36802lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36803lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36804lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36805lt_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 +000036806nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36807lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036808objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36809MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36810lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036811lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036812lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036813lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36814lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36815need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036816MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036817DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36818NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36819LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36820OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36821OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36822libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36823shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36824extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36825archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36826enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36827export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36828whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36829compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36830old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36831old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36832archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36833archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36834module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36835module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36836with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36837allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36838no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36839hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036840hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36841hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36842hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36843hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36844hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36845hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36846inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36847link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036848always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36849export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36850exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36851include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36852prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036853postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036854file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36855variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36856need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36857need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36858version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36859runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36860shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36861shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36862libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36863library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36864soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36865install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36866postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36867postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36868finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36869finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36870hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36871sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36872sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36873hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36874enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36875enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36876enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36877old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36878striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36879compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36880predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36881postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36882predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36883postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36884compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36885LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36886reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36887reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36888old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36889compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36890GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36891lt_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 +000036892lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036893lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036894lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36895lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36896archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36897enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36898export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36899whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36900compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36901old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36902old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36903archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36904archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36905module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36906module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36907with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36908allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36909no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36910hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036911hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36912hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36913hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36914hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36915hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36916hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36917inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36918link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036919always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36920export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36921exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36922include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36923prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036924postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036925file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36926hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36927compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36928predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36929postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36930predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36931postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36932compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036933
36934LTCC='$LTCC'
36935LTCFLAGS='$LTCFLAGS'
36936compiler='$compiler_DEFAULT'
36937
cristy0c60a692010-11-04 01:09:47 +000036938# A function that is used when there is no print builtin or printf.
36939func_fallback_echo ()
36940{
36941 eval 'cat <<_LTECHO_EOF
36942\$1
36943_LTECHO_EOF'
36944}
36945
cristy73bd4a52010-10-05 11:24:23 +000036946# Quote evaled strings.
36947for var in SED \
36948GREP \
36949EGREP \
36950FGREP \
cristy0c60a692010-11-04 01:09:47 +000036951SHELL \
36952ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036953LD \
cristy0c60a692010-11-04 01:09:47 +000036954AS \
36955DLLTOOL \
36956OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036957PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036958NM \
36959LN_S \
36960lt_SP2NL \
36961lt_NL2SP \
36962reload_flag \
36963deplibs_check_method \
36964file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036965file_magic_glob \
36966want_nocaseglob \
36967sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036968AR \
36969AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036970archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036971STRIP \
36972RANLIB \
36973CC \
36974CFLAGS \
36975compiler \
36976lt_cv_sys_global_symbol_pipe \
36977lt_cv_sys_global_symbol_to_cdecl \
36978lt_cv_sys_global_symbol_to_c_name_address \
36979lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036980nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036981lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036982lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036983lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036984lt_prog_compiler_static \
36985lt_cv_prog_compiler_c_o \
36986need_locks \
cristyda16f162011-02-19 23:52:17 +000036987MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036988DSYMUTIL \
36989NMEDIT \
36990LIPO \
36991OTOOL \
36992OTOOL64 \
36993shrext_cmds \
36994export_dynamic_flag_spec \
36995whole_archive_flag_spec \
36996compiler_needs_object \
36997with_gnu_ld \
36998allow_undefined_flag \
36999no_undefined_flag \
37000hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037001hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037002exclude_expsyms \
37003include_expsyms \
37004file_list_spec \
37005variables_saved_for_relink \
37006libname_spec \
37007library_names_spec \
37008soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037009install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037010finish_eval \
37011old_striplib \
37012striplib \
37013compiler_lib_search_dirs \
37014predep_objects \
37015postdep_objects \
37016predeps \
37017postdeps \
37018compiler_lib_search_path \
37019LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037020reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037021compiler_CXX \
37022lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037023lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037024lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037025lt_prog_compiler_static_CXX \
37026lt_cv_prog_compiler_c_o_CXX \
37027export_dynamic_flag_spec_CXX \
37028whole_archive_flag_spec_CXX \
37029compiler_needs_object_CXX \
37030with_gnu_ld_CXX \
37031allow_undefined_flag_CXX \
37032no_undefined_flag_CXX \
37033hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037034hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037035exclude_expsyms_CXX \
37036include_expsyms_CXX \
37037file_list_spec_CXX \
37038compiler_lib_search_dirs_CXX \
37039predep_objects_CXX \
37040postdep_objects_CXX \
37041predeps_CXX \
37042postdeps_CXX \
37043compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037044 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037045 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037046 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037047 ;;
37048 *)
37049 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37050 ;;
37051 esac
37052done
37053
37054# Double-quote double-evaled strings.
37055for var in reload_cmds \
37056old_postinstall_cmds \
37057old_postuninstall_cmds \
37058old_archive_cmds \
37059extract_expsyms_cmds \
37060old_archive_from_new_cmds \
37061old_archive_from_expsyms_cmds \
37062archive_cmds \
37063archive_expsym_cmds \
37064module_cmds \
37065module_expsym_cmds \
37066export_symbols_cmds \
37067prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037068postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037069postinstall_cmds \
37070postuninstall_cmds \
37071finish_cmds \
37072sys_lib_search_path_spec \
37073sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037074reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037075old_archive_cmds_CXX \
37076old_archive_from_new_cmds_CXX \
37077old_archive_from_expsyms_cmds_CXX \
37078archive_cmds_CXX \
37079archive_expsym_cmds_CXX \
37080module_cmds_CXX \
37081module_expsym_cmds_CXX \
37082export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037083prelink_cmds_CXX \
37084postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037085 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037086 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037087 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037088 ;;
37089 *)
37090 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37091 ;;
37092 esac
37093done
37094
cristy73bd4a52010-10-05 11:24:23 +000037095ac_aux_dir='$ac_aux_dir'
37096xsi_shell='$xsi_shell'
37097lt_shell_append='$lt_shell_append'
37098
37099# See if we are running on zsh, and set the options which allow our
37100# commands through without removal of \ escapes INIT.
37101if test -n "\${ZSH_VERSION+set}" ; then
37102 setopt NO_GLOB_SUBST
37103fi
37104
37105
37106 PACKAGE='$PACKAGE'
37107 VERSION='$VERSION'
37108 TIMESTAMP='$TIMESTAMP'
37109 RM='$RM'
37110 ofile='$ofile'
37111
37112
37113
37114
37115
37116
cristy3ed852e2009-09-05 21:47:34 +000037117_ACEOF
37118
37119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37120
37121# Handling of arguments.
37122for ac_config_target in $ac_config_targets
37123do
37124 case $ac_config_target in
37125 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037126 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037127 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37128 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37129 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37130 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37131 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037132 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037133 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37134 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37135 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37136 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37137 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037138 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037139 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37140 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037141 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37142 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37143 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037144 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37145 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37146 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37147 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37148 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37149 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37150 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37151 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37152 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37153 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37154 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37155 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37156 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37157 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37158 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37159 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37160 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037161 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37162 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037163 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37164 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037165 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037166 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037167 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037168 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037169 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37170 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37171
cristy98dddb52010-11-04 00:30:15 +000037172 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037173 esac
37174done
37175
37176
37177# If the user did not use the arguments to specify the items to instantiate,
37178# then the envvar interface is used. Set only those that are not.
37179# We use the long form for the default assignment because of an extremely
37180# bizarre bug on SunOS 4.1.3.
37181if $ac_need_defaults; then
37182 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37183 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37184 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37185fi
37186
37187# Have a temporary directory for convenience. Make it in the build tree
37188# simply because there is no reason against having it here, and in addition,
37189# creating and moving files from /tmp can sometimes cause problems.
37190# Hook for its removal unless debugging.
37191# Note that there is a small window in which the directory will not be cleaned:
37192# after its creation but before its name has been assigned to `$tmp'.
37193$debug ||
37194{
cristyda16f162011-02-19 23:52:17 +000037195 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037196 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037197 : "${ac_tmp:=$tmp}"
37198 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037199' 0
cristy8b350f62009-11-15 23:12:43 +000037200 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037201}
37202# Create a (secure) tmp directory for tmp files.
37203
37204{
37205 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037206 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037207} ||
37208{
37209 tmp=./conf$$-$RANDOM
37210 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037211} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037212ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037213
37214# Set up the scripts for CONFIG_FILES section.
37215# No need to generate them if there are no CONFIG_FILES.
37216# This happens for instance with `./config.status config.h'.
37217if test -n "$CONFIG_FILES"; then
37218
37219
cristy8b350f62009-11-15 23:12:43 +000037220ac_cr=`echo X | tr X '\015'`
37221# On cygwin, bash can eat \r inside `` if the user requested igncr.
37222# But we know of no other shell where ac_cr would be empty at this
37223# point, so we can use a bashism as a fallback.
37224if test "x$ac_cr" = x; then
37225 eval ac_cr=\$\'\\r\'
37226fi
cristy3ed852e2009-09-05 21:47:34 +000037227ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37228if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037229 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037230else
37231 ac_cs_awk_cr=$ac_cr
37232fi
37233
cristyda16f162011-02-19 23:52:17 +000037234echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037235_ACEOF
37236
37237
37238{
37239 echo "cat >conf$$subs.awk <<_ACEOF" &&
37240 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37241 echo "_ACEOF"
37242} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37244ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037245ac_delim='%!_!# '
37246for ac_last_try in false false false false false :; do
37247 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037248 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037249
37250 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37251 if test $ac_delim_n = $ac_delim_num; then
37252 break
37253 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037254 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037255 else
37256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37257 fi
37258done
37259rm -f conf$$subs.sh
37260
37261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037262cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037263_ACEOF
37264sed -n '
37265h
37266s/^/S["/; s/!.*/"]=/
37267p
37268g
37269s/^[^!]*!//
37270:repl
37271t repl
37272s/'"$ac_delim"'$//
37273t delim
37274:nl
37275h
cristycd4c5312009-11-22 01:19:08 +000037276s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037277t more1
37278s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37279p
37280n
37281b repl
37282:more1
37283s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37284p
37285g
37286s/.\{148\}//
37287t nl
37288:delim
37289h
cristycd4c5312009-11-22 01:19:08 +000037290s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037291t more2
37292s/["\\]/\\&/g; s/^/"/; s/$/"/
37293p
37294b
37295:more2
37296s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37297p
37298g
37299s/.\{148\}//
37300t delim
37301' <conf$$subs.awk | sed '
37302/^[^""]/{
37303 N
37304 s/\n//
37305}
37306' >>$CONFIG_STATUS || ac_write_fail=1
37307rm -f conf$$subs.awk
37308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37309_ACAWK
cristyda16f162011-02-19 23:52:17 +000037310cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037311 for (key in S) S_is_set[key] = 1
37312 FS = ""
37313
37314}
37315{
37316 line = $ 0
37317 nfields = split(line, field, "@")
37318 substed = 0
37319 len = length(field[1])
37320 for (i = 2; i < nfields; i++) {
37321 key = field[i]
37322 keylen = length(key)
37323 if (S_is_set[key]) {
37324 value = S[key]
37325 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37326 len += length(value) + length(field[++i])
37327 substed = 1
37328 } else
37329 len += 1 + keylen
37330 }
37331
37332 print line
37333}
37334
37335_ACAWK
37336_ACEOF
37337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37338if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37339 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37340else
37341 cat
cristyda16f162011-02-19 23:52:17 +000037342fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037343 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037344_ACEOF
37345
cristy98dddb52010-11-04 00:30:15 +000037346# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37347# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037348# trailing colons and then remove the whole line if VPATH becomes empty
37349# (actually we leave an empty line to preserve line numbers).
37350if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037351 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37352h
37353s///
37354s/^/:/
37355s/[ ]*$/:/
37356s/:\$(srcdir):/:/g
37357s/:\${srcdir}:/:/g
37358s/:@srcdir@:/:/g
37359s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037360s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037361x
37362s/\(=[ ]*\).*/\1/
37363G
37364s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037365s/^[^=]*=[ ]*$//
37366}'
37367fi
37368
37369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37370fi # test -n "$CONFIG_FILES"
37371
37372# Set up the scripts for CONFIG_HEADERS section.
37373# No need to generate them if there are no CONFIG_HEADERS.
37374# This happens for instance with `./config.status Makefile'.
37375if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037376cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037377BEGIN {
37378_ACEOF
37379
37380# Transform confdefs.h into an awk script `defines.awk', embedded as
37381# here-document in config.status, that substitutes the proper values into
37382# config.h.in to produce config.h.
37383
37384# Create a delimiter string that does not exist in confdefs.h, to ease
37385# handling of long lines.
37386ac_delim='%!_!# '
37387for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037388 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37389 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037390 break
37391 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037392 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037393 else
37394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37395 fi
37396done
37397
37398# For the awk script, D is an array of macro values keyed by name,
37399# likewise P contains macro parameters if any. Preserve backslash
37400# newline sequences.
37401
37402ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37403sed -n '
37404s/.\{148\}/&'"$ac_delim"'/g
37405t rset
37406:rset
37407s/^[ ]*#[ ]*define[ ][ ]*/ /
37408t def
37409d
37410:def
37411s/\\$//
37412t bsnl
37413s/["\\]/\\&/g
37414s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37415D["\1"]=" \3"/p
37416s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37417d
37418:bsnl
37419s/["\\]/\\&/g
37420s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37421D["\1"]=" \3\\\\\\n"\\/p
37422t cont
37423s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37424t cont
37425d
37426:cont
37427n
37428s/.\{148\}/&'"$ac_delim"'/g
37429t clear
37430:clear
37431s/\\$//
37432t bsnlc
37433s/["\\]/\\&/g; s/^/"/; s/$/"/p
37434d
37435:bsnlc
37436s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37437b cont
37438' <confdefs.h | sed '
37439s/'"$ac_delim"'/"\\\
37440"/g' >>$CONFIG_STATUS || ac_write_fail=1
37441
37442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37443 for (key in D) D_is_set[key] = 1
37444 FS = ""
37445}
37446/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37447 line = \$ 0
37448 split(line, arg, " ")
37449 if (arg[1] == "#") {
37450 defundef = arg[2]
37451 mac1 = arg[3]
37452 } else {
37453 defundef = substr(arg[1], 2)
37454 mac1 = arg[2]
37455 }
37456 split(mac1, mac2, "(") #)
37457 macro = mac2[1]
37458 prefix = substr(line, 1, index(line, defundef) - 1)
37459 if (D_is_set[macro]) {
37460 # Preserve the white space surrounding the "#".
37461 print prefix "define", macro P[macro] D[macro]
37462 next
37463 } else {
37464 # Replace #undef with comments. This is necessary, for example,
37465 # in the case of _POSIX_SOURCE, which is predefined and required
37466 # on some systems where configure will not decide to define it.
37467 if (defundef == "undef") {
37468 print "/*", prefix defundef, macro, "*/"
37469 next
37470 }
37471 }
37472}
37473{ print }
37474_ACAWK
37475_ACEOF
37476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037477 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037478fi # test -n "$CONFIG_HEADERS"
37479
37480
37481eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37482shift
37483for ac_tag
37484do
37485 case $ac_tag in
37486 :[FHLC]) ac_mode=$ac_tag; continue;;
37487 esac
37488 case $ac_mode$ac_tag in
37489 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037490 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037491 :[FH]-) ac_tag=-:-;;
37492 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37493 esac
37494 ac_save_IFS=$IFS
37495 IFS=:
37496 set x $ac_tag
37497 IFS=$ac_save_IFS
37498 shift
37499 ac_file=$1
37500 shift
37501
37502 case $ac_mode in
37503 :L) ac_source=$1;;
37504 :[FH])
37505 ac_file_inputs=
37506 for ac_f
37507 do
37508 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037509 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037510 *) # Look for the file first in the build tree, then in the source tree
37511 # (if the path is not absolute). The absolute path cannot be DOS-style,
37512 # because $ac_f cannot contain `:'.
37513 test -f "$ac_f" ||
37514 case $ac_f in
37515 [\\/$]*) false;;
37516 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37517 esac ||
cristy98dddb52010-11-04 00:30:15 +000037518 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037519 esac
37520 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037521 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037522 done
37523
37524 # Let's still pretend it is `configure' which instantiates (i.e., don't
37525 # use $as_me), people would be surprised to read:
37526 # /* config.h. Generated by config.status. */
37527 configure_input='Generated from '`
37528 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37529 `' by configure.'
37530 if test x"$ac_file" != x-; then
37531 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037533$as_echo "$as_me: creating $ac_file" >&6;}
37534 fi
37535 # Neutralize special characters interpreted by sed in replacement strings.
37536 case $configure_input in #(
37537 *\&* | *\|* | *\\* )
37538 ac_sed_conf_input=`$as_echo "$configure_input" |
37539 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37540 *) ac_sed_conf_input=$configure_input;;
37541 esac
37542
37543 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037544 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037546 esac
37547 ;;
37548 esac
37549
37550 ac_dir=`$as_dirname -- "$ac_file" ||
37551$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37552 X"$ac_file" : 'X\(//\)[^/]' \| \
37553 X"$ac_file" : 'X\(//\)$' \| \
37554 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37555$as_echo X"$ac_file" |
37556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37557 s//\1/
37558 q
37559 }
37560 /^X\(\/\/\)[^/].*/{
37561 s//\1/
37562 q
37563 }
37564 /^X\(\/\/\)$/{
37565 s//\1/
37566 q
37567 }
37568 /^X\(\/\).*/{
37569 s//\1/
37570 q
37571 }
37572 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037573 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037574 ac_builddir=.
37575
37576case "$ac_dir" in
37577.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37578*)
37579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37580 # A ".." for each directory in $ac_dir_suffix.
37581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37582 case $ac_top_builddir_sub in
37583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37585 esac ;;
37586esac
37587ac_abs_top_builddir=$ac_pwd
37588ac_abs_builddir=$ac_pwd$ac_dir_suffix
37589# for backward compatibility:
37590ac_top_builddir=$ac_top_build_prefix
37591
37592case $srcdir in
37593 .) # We are building in place.
37594 ac_srcdir=.
37595 ac_top_srcdir=$ac_top_builddir_sub
37596 ac_abs_top_srcdir=$ac_pwd ;;
37597 [\\/]* | ?:[\\/]* ) # Absolute name.
37598 ac_srcdir=$srcdir$ac_dir_suffix;
37599 ac_top_srcdir=$srcdir
37600 ac_abs_top_srcdir=$srcdir ;;
37601 *) # Relative name.
37602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37603 ac_top_srcdir=$ac_top_build_prefix$srcdir
37604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37605esac
37606ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37607
37608
37609 case $ac_mode in
37610 :F)
37611 #
37612 # CONFIG_FILE
37613 #
37614
37615 case $INSTALL in
37616 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37617 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37618 esac
cristy73bd4a52010-10-05 11:24:23 +000037619 ac_MKDIR_P=$MKDIR_P
37620 case $MKDIR_P in
37621 [\\/$]* | ?:[\\/]* ) ;;
37622 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37623 esac
cristy3ed852e2009-09-05 21:47:34 +000037624_ACEOF
37625
37626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37627# If the template does not know about datarootdir, expand it.
37628# FIXME: This hack should be removed a few years after 2.60.
37629ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037630ac_sed_dataroot='
37631/datarootdir/ {
37632 p
37633 q
37634}
37635/@datadir@/p
37636/@docdir@/p
37637/@infodir@/p
37638/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037639/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037640case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37641*datarootdir*) ac_datarootdir_seen=yes;;
37642*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037644$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37645_ACEOF
37646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37647 ac_datarootdir_hack='
37648 s&@datadir@&$datadir&g
37649 s&@docdir@&$docdir&g
37650 s&@infodir@&$infodir&g
37651 s&@localedir@&$localedir&g
37652 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037653 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037654esac
37655_ACEOF
37656
37657# Neutralize VPATH when `$srcdir' = `.'.
37658# Shell code in configure.ac might set extrasub.
37659# FIXME: do we really want to maintain this feature?
37660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37661ac_sed_extra="$ac_vpsub
37662$extrasub
37663_ACEOF
37664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37665:t
37666/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37667s|@configure_input@|$ac_sed_conf_input|;t t
37668s&@top_builddir@&$ac_top_builddir_sub&;t t
37669s&@top_build_prefix@&$ac_top_build_prefix&;t t
37670s&@srcdir@&$ac_srcdir&;t t
37671s&@abs_srcdir@&$ac_abs_srcdir&;t t
37672s&@top_srcdir@&$ac_top_srcdir&;t t
37673s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37674s&@builddir@&$ac_builddir&;t t
37675s&@abs_builddir@&$ac_abs_builddir&;t t
37676s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37677s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037678s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037679$ac_datarootdir_hack
37680"
cristyda16f162011-02-19 23:52:17 +000037681eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37682 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037683
37684test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037685 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37686 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37687 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037689which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037690$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037691which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037692
cristyda16f162011-02-19 23:52:17 +000037693 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037694 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037695 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37696 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037697 esac \
cristy98dddb52010-11-04 00:30:15 +000037698 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037699 ;;
37700 :H)
37701 #
37702 # CONFIG_HEADER
37703 #
37704 if test x"$ac_file" != x-; then
37705 {
37706 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037707 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37708 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037710 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037711 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037712$as_echo "$as_me: $ac_file is unchanged" >&6;}
37713 else
37714 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037715 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037716 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037717 fi
37718 else
37719 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037720 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037721 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037722 fi
cristy73bd4a52010-10-05 11:24:23 +000037723# Compute "$ac_file"'s index in $config_headers.
37724_am_arg="$ac_file"
37725_am_stamp_count=1
37726for _am_header in $config_headers :; do
37727 case $_am_header in
37728 $_am_arg | $_am_arg:* )
37729 break ;;
37730 * )
37731 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37732 esac
37733done
37734echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37735$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37736 X"$_am_arg" : 'X\(//\)[^/]' \| \
37737 X"$_am_arg" : 'X\(//\)$' \| \
37738 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37739$as_echo X"$_am_arg" |
37740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37741 s//\1/
37742 q
37743 }
37744 /^X\(\/\/\)[^/].*/{
37745 s//\1/
37746 q
37747 }
37748 /^X\(\/\/\)$/{
37749 s//\1/
37750 q
37751 }
37752 /^X\(\/\).*/{
37753 s//\1/
37754 q
37755 }
37756 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037757 ;;
37758
cristy8b350f62009-11-15 23:12:43 +000037759 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037760$as_echo "$as_me: executing $ac_file commands" >&6;}
37761 ;;
37762 esac
37763
37764
37765 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037766 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037767ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37768ac_prefix_conf_PKG=`echo MagickCore`
37769ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37770ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37771ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37772if test ".$ac_prefix_conf_INP" = "."; then
37773 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37774 case "$ac_file" in
37775 *.h) ac_prefix_conf_INP=$ac_file ;;
37776 *)
37777 esac
37778 test ".$ac_prefix_conf_INP" != "." && break
37779 done
37780fi
37781if test ".$ac_prefix_conf_INP" = "."; then
37782 case "$ac_prefix_conf_OUT" in
37783 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37784 ;;
37785 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37786 ;;
37787 *) ac_prefix_conf_INP=config.h
37788 ;;
37789 esac
37790fi
37791if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037792 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037793else
37794 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37795 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37796 fi fi
37797 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37798$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37799 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037800 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37801 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37802 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37803 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37804 $as_echo "#endif/" >> conftest.prefix
37805 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37806 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37807 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037808 # now executing _script on _DEF input to create _OUT output file
37809 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37810 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37811 echo ' ' >>$tmp/pconfig.h
37812 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37813
37814 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37815 echo ' ' >>$tmp/pconfig.h
37816 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37817 echo "#endif" >>$tmp/pconfig.h
37818 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37819 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37820$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37821 else
37822 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37823$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37824 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37825 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37826 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37827$as_echo X"$ac_prefix_conf_OUT" |
37828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37829 s//\1/
37830 q
37831 }
37832 /^X\(\/\/\)[^/].*/{
37833 s//\1/
37834 q
37835 }
37836 /^X\(\/\/\)$/{
37837 s//\1/
37838 q
37839 }
37840 /^X\(\/\).*/{
37841 s//\1/
37842 q
37843 }
37844 s/.*/./; q'`
37845 as_dir="$ac_dir"; as_fn_mkdir_p
37846 rm -f "$ac_prefix_conf_OUT"
37847 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37848 fi
37849 cp conftest.prefix _configs.sed
37850 else
cristy98dddb52010-11-04 00:30:15 +000037851 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 +000037852 fi
37853 rm -f conftest.*
37854fi
37855 ;;
37856 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37857 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37858 # are listed without --file. Let's play safe and only enable the eval
37859 # if we detect the quoting.
37860 case $CONFIG_FILES in
37861 *\'*) eval set x "$CONFIG_FILES" ;;
37862 *) set x $CONFIG_FILES ;;
37863 esac
37864 shift
37865 for mf
37866 do
37867 # Strip MF so we end up with the name of the file.
37868 mf=`echo "$mf" | sed -e 's/:.*$//'`
37869 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037870 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037871 # some people rename them; so instead we look at the file content.
37872 # Grep'ing the first line is not enough: some people post-process
37873 # each Makefile.in and add a new line on top of each file to say so.
37874 # Grep'ing the whole file is not good either: AIX grep has a line
37875 # limit of 2048, but all sed's we know have understand at least 4000.
37876 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37877 dirpart=`$as_dirname -- "$mf" ||
37878$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37879 X"$mf" : 'X\(//\)[^/]' \| \
37880 X"$mf" : 'X\(//\)$' \| \
37881 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37882$as_echo X"$mf" |
37883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37884 s//\1/
37885 q
37886 }
37887 /^X\(\/\/\)[^/].*/{
37888 s//\1/
37889 q
37890 }
37891 /^X\(\/\/\)$/{
37892 s//\1/
37893 q
37894 }
37895 /^X\(\/\).*/{
37896 s//\1/
37897 q
37898 }
37899 s/.*/./; q'`
37900 else
37901 continue
37902 fi
37903 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037904 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037905 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37906 test -z "$DEPDIR" && continue
37907 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37908 test -z "am__include" && continue
37909 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037910 # Find all dependency output files, they are included files with
37911 # $(DEPDIR) in their names. We invoke sed twice because it is the
37912 # simplest approach to changing $(DEPDIR) to its actual value in the
37913 # expansion.
37914 for file in `sed -n "
37915 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037916 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037917 # Make sure the directory exists.
37918 test -f "$dirpart/$file" && continue
37919 fdir=`$as_dirname -- "$file" ||
37920$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37921 X"$file" : 'X\(//\)[^/]' \| \
37922 X"$file" : 'X\(//\)$' \| \
37923 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37924$as_echo X"$file" |
37925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37926 s//\1/
37927 q
37928 }
37929 /^X\(\/\/\)[^/].*/{
37930 s//\1/
37931 q
37932 }
37933 /^X\(\/\/\)$/{
37934 s//\1/
37935 q
37936 }
37937 /^X\(\/\).*/{
37938 s//\1/
37939 q
37940 }
37941 s/.*/./; q'`
37942 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37943 # echo "creating $dirpart/$file"
37944 echo '# dummy' > "$dirpart/$file"
37945 done
37946 done
37947}
37948 ;;
37949 "libtool":C)
37950
37951 # See if we are running on zsh, and set the options which allow our
37952 # commands through without removal of \ escapes.
37953 if test -n "${ZSH_VERSION+set}" ; then
37954 setopt NO_GLOB_SUBST
37955 fi
37956
37957 cfgfile="${ofile}T"
37958 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37959 $RM "$cfgfile"
37960
37961 cat <<_LT_EOF >> "$cfgfile"
37962#! $SHELL
37963
37964# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37965# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37966# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37967# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37968#
37969# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037970# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37971# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037972# Written by Gordon Matzigkeit, 1996
37973#
37974# This file is part of GNU Libtool.
37975#
37976# GNU Libtool is free software; you can redistribute it and/or
37977# modify it under the terms of the GNU General Public License as
37978# published by the Free Software Foundation; either version 2 of
37979# the License, or (at your option) any later version.
37980#
37981# As a special exception to the GNU General Public License,
37982# if you distribute this file as part of a program or library that
37983# is built using GNU Libtool, you may include this file under the
37984# same distribution terms that you use for the rest of that program.
37985#
37986# GNU Libtool is distributed in the hope that it will be useful,
37987# but WITHOUT ANY WARRANTY; without even the implied warranty of
37988# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37989# GNU General Public License for more details.
37990#
37991# You should have received a copy of the GNU General Public License
37992# along with GNU Libtool; see the file COPYING. If not, a copy
37993# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37994# obtained by writing to the Free Software Foundation, Inc.,
37995# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37996
37997
37998# The names of the tagged configurations supported by this script.
37999available_tags="CXX "
38000
38001# ### BEGIN LIBTOOL CONFIG
38002
38003# A sed program that does not truncate output.
38004SED=$lt_SED
38005
38006# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38007Xsed="\$SED -e 1s/^X//"
38008
38009# A grep program that handles long lines.
38010GREP=$lt_GREP
38011
38012# An ERE matcher.
38013EGREP=$lt_EGREP
38014
38015# A literal string matcher.
38016FGREP=$lt_FGREP
38017
cristy0c60a692010-11-04 01:09:47 +000038018# Shell to use when invoking shell scripts.
38019SHELL=$lt_SHELL
38020
38021# An echo program that protects backslashes.
38022ECHO=$lt_ECHO
38023
cristy73bd4a52010-10-05 11:24:23 +000038024# Which release of libtool.m4 was used?
38025macro_version=$macro_version
38026macro_revision=$macro_revision
38027
38028# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038029AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038030
38031# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038032DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038033
38034# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038035OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038036
38037# Whether or not to build shared libraries.
38038build_libtool_libs=$enable_shared
38039
38040# Whether or not to build static libraries.
38041build_old_libs=$enable_static
38042
38043# What type of objects to build.
38044pic_mode=$pic_mode
38045
38046# Whether or not to optimize for fast installation.
38047fast_install=$enable_fast_install
38048
cristy99bd5232011-12-07 14:38:20 +000038049# The PATH separator for the build system.
38050PATH_SEPARATOR=$lt_PATH_SEPARATOR
38051
cristy73bd4a52010-10-05 11:24:23 +000038052# The host system.
38053host_alias=$host_alias
38054host=$host
38055host_os=$host_os
38056
38057# The build system.
38058build_alias=$build_alias
38059build=$build
38060build_os=$build_os
38061
38062# A BSD- or MS-compatible name lister.
38063NM=$lt_NM
38064
38065# Whether we need soft or hard links.
38066LN_S=$lt_LN_S
38067
38068# What is the maximum length of a command?
38069max_cmd_len=$max_cmd_len
38070
38071# Object file suffix (normally "o").
38072objext=$ac_objext
38073
38074# Executable file suffix (normally "").
38075exeext=$exeext
38076
38077# whether the shell understands "unset".
38078lt_unset=$lt_unset
38079
38080# turn spaces into newlines.
38081SP2NL=$lt_lt_SP2NL
38082
38083# turn newlines into spaces.
38084NL2SP=$lt_lt_NL2SP
38085
cristyda16f162011-02-19 23:52:17 +000038086# convert \$build file names to \$host format.
38087to_host_file_cmd=$lt_cv_to_host_file_cmd
38088
38089# convert \$build files to toolchain format.
38090to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38091
cristy73bd4a52010-10-05 11:24:23 +000038092# Method to check whether dependent libraries are shared objects.
38093deplibs_check_method=$lt_deplibs_check_method
38094
cristyda16f162011-02-19 23:52:17 +000038095# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038096file_magic_cmd=$lt_file_magic_cmd
38097
cristyda16f162011-02-19 23:52:17 +000038098# How to find potential files when deplibs_check_method = "file_magic".
38099file_magic_glob=$lt_file_magic_glob
38100
38101# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38102want_nocaseglob=$lt_want_nocaseglob
38103
38104# Command to associate shared and link libraries.
38105sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38106
cristy73bd4a52010-10-05 11:24:23 +000038107# The archiver.
38108AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038109
38110# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038111AR_FLAGS=$lt_AR_FLAGS
38112
cristyda16f162011-02-19 23:52:17 +000038113# How to feed a file listing to the archiver.
38114archiver_list_spec=$lt_archiver_list_spec
38115
cristy73bd4a52010-10-05 11:24:23 +000038116# A symbol stripping program.
38117STRIP=$lt_STRIP
38118
38119# Commands used to install an old-style archive.
38120RANLIB=$lt_RANLIB
38121old_postinstall_cmds=$lt_old_postinstall_cmds
38122old_postuninstall_cmds=$lt_old_postuninstall_cmds
38123
cristy0c60a692010-11-04 01:09:47 +000038124# Whether to use a lock for old archive extraction.
38125lock_old_archive_extraction=$lock_old_archive_extraction
38126
cristy73bd4a52010-10-05 11:24:23 +000038127# A C compiler.
38128LTCC=$lt_CC
38129
38130# LTCC compiler flags.
38131LTCFLAGS=$lt_CFLAGS
38132
38133# Take the output of nm and produce a listing of raw symbols and C names.
38134global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38135
38136# Transform the output of nm in a proper C declaration.
38137global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38138
38139# Transform the output of nm in a C name address pair.
38140global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38141
38142# Transform the output of nm in a C name address pair when lib prefix is needed.
38143global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38144
cristyda16f162011-02-19 23:52:17 +000038145# Specify filename containing input files for \$NM.
38146nm_file_list_spec=$lt_nm_file_list_spec
38147
38148# The root where to search for dependent libraries,and in which our libraries should be installed.
38149lt_sysroot=$lt_sysroot
38150
cristy73bd4a52010-10-05 11:24:23 +000038151# The name of the directory that contains temporary libtool files.
38152objdir=$objdir
38153
cristy73bd4a52010-10-05 11:24:23 +000038154# Used to examine libraries when file_magic_cmd begins with "file".
38155MAGIC_CMD=$MAGIC_CMD
38156
38157# Must we lock files when doing compilation?
38158need_locks=$lt_need_locks
38159
cristyda16f162011-02-19 23:52:17 +000038160# Manifest tool.
38161MANIFEST_TOOL=$lt_MANIFEST_TOOL
38162
cristy73bd4a52010-10-05 11:24:23 +000038163# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38164DSYMUTIL=$lt_DSYMUTIL
38165
38166# Tool to change global to local symbols on Mac OS X.
38167NMEDIT=$lt_NMEDIT
38168
38169# Tool to manipulate fat objects and archives on Mac OS X.
38170LIPO=$lt_LIPO
38171
38172# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38173OTOOL=$lt_OTOOL
38174
38175# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38176OTOOL64=$lt_OTOOL64
38177
38178# Old archive suffix (normally "a").
38179libext=$libext
38180
38181# Shared library suffix (normally ".so").
38182shrext_cmds=$lt_shrext_cmds
38183
38184# The commands to extract the exported symbol list from a shared archive.
38185extract_expsyms_cmds=$lt_extract_expsyms_cmds
38186
38187# Variables whose values should be saved in libtool wrapper scripts and
38188# restored at link time.
38189variables_saved_for_relink=$lt_variables_saved_for_relink
38190
38191# Do we need the "lib" prefix for modules?
38192need_lib_prefix=$need_lib_prefix
38193
38194# Do we need a version for libraries?
38195need_version=$need_version
38196
38197# Library versioning type.
38198version_type=$version_type
38199
38200# Shared library runtime path variable.
38201runpath_var=$runpath_var
38202
38203# Shared library path variable.
38204shlibpath_var=$shlibpath_var
38205
38206# Is shlibpath searched before the hard-coded library search path?
38207shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38208
38209# Format of library name prefix.
38210libname_spec=$lt_libname_spec
38211
38212# List of archive names. First name is the real one, the rest are links.
38213# The last name is the one that the linker finds with -lNAME
38214library_names_spec=$lt_library_names_spec
38215
38216# The coded name of the library, if different from the real name.
38217soname_spec=$lt_soname_spec
38218
cristy0c60a692010-11-04 01:09:47 +000038219# Permission mode override for installation of shared libraries.
38220install_override_mode=$lt_install_override_mode
38221
cristy73bd4a52010-10-05 11:24:23 +000038222# Command to use after installation of a shared archive.
38223postinstall_cmds=$lt_postinstall_cmds
38224
38225# Command to use after uninstallation of a shared archive.
38226postuninstall_cmds=$lt_postuninstall_cmds
38227
38228# Commands used to finish a libtool library installation in a directory.
38229finish_cmds=$lt_finish_cmds
38230
38231# As "finish_cmds", except a single script fragment to be evaled but
38232# not shown.
38233finish_eval=$lt_finish_eval
38234
38235# Whether we should hardcode library paths into libraries.
38236hardcode_into_libs=$hardcode_into_libs
38237
38238# Compile-time system search path for libraries.
38239sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38240
38241# Run-time system search path for libraries.
38242sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38243
38244# Whether dlopen is supported.
38245dlopen_support=$enable_dlopen
38246
38247# Whether dlopen of programs is supported.
38248dlopen_self=$enable_dlopen_self
38249
38250# Whether dlopen of statically linked programs is supported.
38251dlopen_self_static=$enable_dlopen_self_static
38252
38253# Commands to strip libraries.
38254old_striplib=$lt_old_striplib
38255striplib=$lt_striplib
38256
38257
38258# The linker used to build libraries.
38259LD=$lt_LD
38260
cristy0c60a692010-11-04 01:09:47 +000038261# How to create reloadable object files.
38262reload_flag=$lt_reload_flag
38263reload_cmds=$lt_reload_cmds
38264
cristy73bd4a52010-10-05 11:24:23 +000038265# Commands used to build an old-style archive.
38266old_archive_cmds=$lt_old_archive_cmds
38267
38268# A language specific compiler.
38269CC=$lt_compiler
38270
38271# Is the compiler the GNU compiler?
38272with_gcc=$GCC
38273
38274# Compiler flag to turn off builtin functions.
38275no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38276
cristy73bd4a52010-10-05 11:24:23 +000038277# Additional compiler flags for building library objects.
38278pic_flag=$lt_lt_prog_compiler_pic
38279
cristyda16f162011-02-19 23:52:17 +000038280# How to pass a linker flag through the compiler.
38281wl=$lt_lt_prog_compiler_wl
38282
cristy73bd4a52010-10-05 11:24:23 +000038283# Compiler flag to prevent dynamic linking.
38284link_static_flag=$lt_lt_prog_compiler_static
38285
38286# Does compiler simultaneously support -c and -o options?
38287compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38288
38289# Whether or not to add -lc for building shared libraries.
38290build_libtool_need_lc=$archive_cmds_need_lc
38291
38292# Whether or not to disallow shared libs when runtime libs are static.
38293allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38294
38295# Compiler flag to allow reflexive dlopens.
38296export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38297
38298# Compiler flag to generate shared objects directly from archives.
38299whole_archive_flag_spec=$lt_whole_archive_flag_spec
38300
38301# Whether the compiler copes with passing no objects directly.
38302compiler_needs_object=$lt_compiler_needs_object
38303
38304# Create an old-style archive from a shared archive.
38305old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38306
38307# Create a temporary old-style archive to link instead of a shared archive.
38308old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38309
38310# Commands used to build a shared archive.
38311archive_cmds=$lt_archive_cmds
38312archive_expsym_cmds=$lt_archive_expsym_cmds
38313
38314# Commands used to build a loadable module if different from building
38315# a shared archive.
38316module_cmds=$lt_module_cmds
38317module_expsym_cmds=$lt_module_expsym_cmds
38318
38319# Whether we are building with GNU ld or not.
38320with_gnu_ld=$lt_with_gnu_ld
38321
38322# Flag that allows shared libraries with undefined symbols to be built.
38323allow_undefined_flag=$lt_allow_undefined_flag
38324
38325# Flag that enforces no undefined symbols.
38326no_undefined_flag=$lt_no_undefined_flag
38327
38328# Flag to hardcode \$libdir into a binary during linking.
38329# This must work even if \$libdir does not exist
38330hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38331
cristy73bd4a52010-10-05 11:24:23 +000038332# Whether we need a single "-rpath" flag with a separated argument.
38333hardcode_libdir_separator=$lt_hardcode_libdir_separator
38334
38335# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38336# DIR into the resulting binary.
38337hardcode_direct=$hardcode_direct
38338
38339# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38340# DIR into the resulting binary and the resulting library dependency is
38341# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38342# library is relocated.
38343hardcode_direct_absolute=$hardcode_direct_absolute
38344
38345# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38346# into the resulting binary.
38347hardcode_minus_L=$hardcode_minus_L
38348
38349# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38350# into the resulting binary.
38351hardcode_shlibpath_var=$hardcode_shlibpath_var
38352
38353# Set to "yes" if building a shared library automatically hardcodes DIR
38354# into the library and all subsequent libraries and executables linked
38355# against it.
38356hardcode_automatic=$hardcode_automatic
38357
38358# Set to yes if linker adds runtime paths of dependent libraries
38359# to runtime path list.
38360inherit_rpath=$inherit_rpath
38361
38362# Whether libtool must link a program against all its dependency libraries.
38363link_all_deplibs=$link_all_deplibs
38364
cristy73bd4a52010-10-05 11:24:23 +000038365# Set to "yes" if exported symbols are required.
38366always_export_symbols=$always_export_symbols
38367
38368# The commands to list exported symbols.
38369export_symbols_cmds=$lt_export_symbols_cmds
38370
38371# Symbols that should not be listed in the preloaded symbols.
38372exclude_expsyms=$lt_exclude_expsyms
38373
38374# Symbols that must always be exported.
38375include_expsyms=$lt_include_expsyms
38376
38377# Commands necessary for linking programs (against libraries) with templates.
38378prelink_cmds=$lt_prelink_cmds
38379
cristyda16f162011-02-19 23:52:17 +000038380# Commands necessary for finishing linking programs.
38381postlink_cmds=$lt_postlink_cmds
38382
cristy73bd4a52010-10-05 11:24:23 +000038383# Specify filename containing input files.
38384file_list_spec=$lt_file_list_spec
38385
38386# How to hardcode a shared library path into an executable.
38387hardcode_action=$hardcode_action
38388
38389# The directories searched by this compiler when creating a shared library.
38390compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38391
38392# Dependencies to place before and after the objects being linked to
38393# create a shared library.
38394predep_objects=$lt_predep_objects
38395postdep_objects=$lt_postdep_objects
38396predeps=$lt_predeps
38397postdeps=$lt_postdeps
38398
38399# The library search path used internally by the compiler when linking
38400# a shared library.
38401compiler_lib_search_path=$lt_compiler_lib_search_path
38402
38403# ### END LIBTOOL CONFIG
38404
38405_LT_EOF
38406
38407 case $host_os in
38408 aix3*)
38409 cat <<\_LT_EOF >> "$cfgfile"
38410# AIX sometimes has problems with the GCC collect2 program. For some
38411# reason, if we set the COLLECT_NAMES environment variable, the problems
38412# vanish in a puff of smoke.
38413if test "X${COLLECT_NAMES+set}" != Xset; then
38414 COLLECT_NAMES=
38415 export COLLECT_NAMES
38416fi
38417_LT_EOF
38418 ;;
38419 esac
38420
38421
38422ltmain="$ac_aux_dir/ltmain.sh"
38423
38424
38425 # We use sed instead of cat because bash on DJGPP gets confused if
38426 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38427 # text mode, it properly converts lines to CR/LF. This bash problem
38428 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038429 sed '$q' "$ltmain" >> "$cfgfile" \
38430 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038431
cristyda16f162011-02-19 23:52:17 +000038432 if test x"$xsi_shell" = xyes; then
38433 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38434func_dirname ()\
38435{\
38436\ case ${1} in\
38437\ */*) func_dirname_result="${1%/*}${2}" ;;\
38438\ * ) func_dirname_result="${3}" ;;\
38439\ esac\
38440} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38441 && mv -f "$cfgfile.tmp" "$cfgfile" \
38442 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38443test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038444
38445
cristyda16f162011-02-19 23:52:17 +000038446 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38447func_basename ()\
38448{\
38449\ func_basename_result="${1##*/}"\
38450} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38451 && mv -f "$cfgfile.tmp" "$cfgfile" \
38452 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38453test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038454
38455
cristyda16f162011-02-19 23:52:17 +000038456 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38457func_dirname_and_basename ()\
38458{\
38459\ case ${1} in\
38460\ */*) func_dirname_result="${1%/*}${2}" ;;\
38461\ * ) func_dirname_result="${3}" ;;\
38462\ esac\
38463\ func_basename_result="${1##*/}"\
38464} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38465 && mv -f "$cfgfile.tmp" "$cfgfile" \
38466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38467test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038468
cristyda16f162011-02-19 23:52:17 +000038469
38470 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38471func_stripname ()\
38472{\
38473\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38474\ # positional parameters, so assign one to ordinary parameter first.\
38475\ func_stripname_result=${3}\
38476\ func_stripname_result=${func_stripname_result#"${1}"}\
38477\ func_stripname_result=${func_stripname_result%"${2}"}\
38478} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38479 && mv -f "$cfgfile.tmp" "$cfgfile" \
38480 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38481test 0 -eq $? || _lt_function_replace_fail=:
38482
38483
38484 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38485func_split_long_opt ()\
38486{\
38487\ func_split_long_opt_name=${1%%=*}\
38488\ func_split_long_opt_arg=${1#*=}\
38489} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38490 && mv -f "$cfgfile.tmp" "$cfgfile" \
38491 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38492test 0 -eq $? || _lt_function_replace_fail=:
38493
38494
38495 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38496func_split_short_opt ()\
38497{\
38498\ func_split_short_opt_arg=${1#??}\
38499\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38500} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38501 && mv -f "$cfgfile.tmp" "$cfgfile" \
38502 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38503test 0 -eq $? || _lt_function_replace_fail=:
38504
38505
38506 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38507func_lo2o ()\
38508{\
38509\ case ${1} in\
38510\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38511\ *) func_lo2o_result=${1} ;;\
38512\ esac\
38513} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38514 && mv -f "$cfgfile.tmp" "$cfgfile" \
38515 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38516test 0 -eq $? || _lt_function_replace_fail=:
38517
38518
38519 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38520func_xform ()\
38521{\
38522 func_xform_result=${1%.*}.lo\
38523} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38524 && mv -f "$cfgfile.tmp" "$cfgfile" \
38525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38526test 0 -eq $? || _lt_function_replace_fail=:
38527
38528
38529 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38530func_arith ()\
38531{\
38532 func_arith_result=$(( $* ))\
38533} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38534 && mv -f "$cfgfile.tmp" "$cfgfile" \
38535 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38536test 0 -eq $? || _lt_function_replace_fail=:
38537
38538
38539 sed -e '/^func_len ()$/,/^} # func_len /c\
38540func_len ()\
38541{\
38542 func_len_result=${#1}\
38543} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38544 && mv -f "$cfgfile.tmp" "$cfgfile" \
38545 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38546test 0 -eq $? || _lt_function_replace_fail=:
38547
38548fi
38549
38550if test x"$lt_shell_append" = xyes; then
38551 sed -e '/^func_append ()$/,/^} # func_append /c\
38552func_append ()\
38553{\
38554 eval "${1}+=\\${2}"\
38555} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38556 && mv -f "$cfgfile.tmp" "$cfgfile" \
38557 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38558test 0 -eq $? || _lt_function_replace_fail=:
38559
38560
38561 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38562func_append_quoted ()\
38563{\
38564\ func_quote_for_eval "${2}"\
38565\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38566} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38567 && mv -f "$cfgfile.tmp" "$cfgfile" \
38568 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38569test 0 -eq $? || _lt_function_replace_fail=:
38570
38571
38572 # Save a `func_append' function call where possible by direct use of '+='
38573 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38574 && mv -f "$cfgfile.tmp" "$cfgfile" \
38575 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38576 test 0 -eq $? || _lt_function_replace_fail=:
38577else
38578 # Save a `func_append' function call even when '+=' is not available
38579 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38580 && mv -f "$cfgfile.tmp" "$cfgfile" \
38581 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38582 test 0 -eq $? || _lt_function_replace_fail=:
38583fi
38584
38585if test x"$_lt_function_replace_fail" = x":"; then
38586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38587$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38588fi
38589
38590
38591 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038592 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38593 chmod +x "$ofile"
38594
38595
38596 cat <<_LT_EOF >> "$ofile"
38597
38598# ### BEGIN LIBTOOL TAG CONFIG: CXX
38599
38600# The linker used to build libraries.
38601LD=$lt_LD_CXX
38602
cristy0c60a692010-11-04 01:09:47 +000038603# How to create reloadable object files.
38604reload_flag=$lt_reload_flag_CXX
38605reload_cmds=$lt_reload_cmds_CXX
38606
cristy73bd4a52010-10-05 11:24:23 +000038607# Commands used to build an old-style archive.
38608old_archive_cmds=$lt_old_archive_cmds_CXX
38609
38610# A language specific compiler.
38611CC=$lt_compiler_CXX
38612
38613# Is the compiler the GNU compiler?
38614with_gcc=$GCC_CXX
38615
38616# Compiler flag to turn off builtin functions.
38617no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38618
cristy73bd4a52010-10-05 11:24:23 +000038619# Additional compiler flags for building library objects.
38620pic_flag=$lt_lt_prog_compiler_pic_CXX
38621
cristyda16f162011-02-19 23:52:17 +000038622# How to pass a linker flag through the compiler.
38623wl=$lt_lt_prog_compiler_wl_CXX
38624
cristy73bd4a52010-10-05 11:24:23 +000038625# Compiler flag to prevent dynamic linking.
38626link_static_flag=$lt_lt_prog_compiler_static_CXX
38627
38628# Does compiler simultaneously support -c and -o options?
38629compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38630
38631# Whether or not to add -lc for building shared libraries.
38632build_libtool_need_lc=$archive_cmds_need_lc_CXX
38633
38634# Whether or not to disallow shared libs when runtime libs are static.
38635allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38636
38637# Compiler flag to allow reflexive dlopens.
38638export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38639
38640# Compiler flag to generate shared objects directly from archives.
38641whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38642
38643# Whether the compiler copes with passing no objects directly.
38644compiler_needs_object=$lt_compiler_needs_object_CXX
38645
38646# Create an old-style archive from a shared archive.
38647old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38648
38649# Create a temporary old-style archive to link instead of a shared archive.
38650old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38651
38652# Commands used to build a shared archive.
38653archive_cmds=$lt_archive_cmds_CXX
38654archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38655
38656# Commands used to build a loadable module if different from building
38657# a shared archive.
38658module_cmds=$lt_module_cmds_CXX
38659module_expsym_cmds=$lt_module_expsym_cmds_CXX
38660
38661# Whether we are building with GNU ld or not.
38662with_gnu_ld=$lt_with_gnu_ld_CXX
38663
38664# Flag that allows shared libraries with undefined symbols to be built.
38665allow_undefined_flag=$lt_allow_undefined_flag_CXX
38666
38667# Flag that enforces no undefined symbols.
38668no_undefined_flag=$lt_no_undefined_flag_CXX
38669
38670# Flag to hardcode \$libdir into a binary during linking.
38671# This must work even if \$libdir does not exist
38672hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38673
cristy73bd4a52010-10-05 11:24:23 +000038674# Whether we need a single "-rpath" flag with a separated argument.
38675hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38676
38677# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38678# DIR into the resulting binary.
38679hardcode_direct=$hardcode_direct_CXX
38680
38681# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38682# DIR into the resulting binary and the resulting library dependency is
38683# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38684# library is relocated.
38685hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38686
38687# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38688# into the resulting binary.
38689hardcode_minus_L=$hardcode_minus_L_CXX
38690
38691# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38692# into the resulting binary.
38693hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38694
38695# Set to "yes" if building a shared library automatically hardcodes DIR
38696# into the library and all subsequent libraries and executables linked
38697# against it.
38698hardcode_automatic=$hardcode_automatic_CXX
38699
38700# Set to yes if linker adds runtime paths of dependent libraries
38701# to runtime path list.
38702inherit_rpath=$inherit_rpath_CXX
38703
38704# Whether libtool must link a program against all its dependency libraries.
38705link_all_deplibs=$link_all_deplibs_CXX
38706
cristy73bd4a52010-10-05 11:24:23 +000038707# Set to "yes" if exported symbols are required.
38708always_export_symbols=$always_export_symbols_CXX
38709
38710# The commands to list exported symbols.
38711export_symbols_cmds=$lt_export_symbols_cmds_CXX
38712
38713# Symbols that should not be listed in the preloaded symbols.
38714exclude_expsyms=$lt_exclude_expsyms_CXX
38715
38716# Symbols that must always be exported.
38717include_expsyms=$lt_include_expsyms_CXX
38718
38719# Commands necessary for linking programs (against libraries) with templates.
38720prelink_cmds=$lt_prelink_cmds_CXX
38721
cristyda16f162011-02-19 23:52:17 +000038722# Commands necessary for finishing linking programs.
38723postlink_cmds=$lt_postlink_cmds_CXX
38724
cristy73bd4a52010-10-05 11:24:23 +000038725# Specify filename containing input files.
38726file_list_spec=$lt_file_list_spec_CXX
38727
38728# How to hardcode a shared library path into an executable.
38729hardcode_action=$hardcode_action_CXX
38730
38731# The directories searched by this compiler when creating a shared library.
38732compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38733
38734# Dependencies to place before and after the objects being linked to
38735# create a shared library.
38736predep_objects=$lt_predep_objects_CXX
38737postdep_objects=$lt_postdep_objects_CXX
38738predeps=$lt_predeps_CXX
38739postdeps=$lt_postdeps_CXX
38740
38741# The library search path used internally by the compiler when linking
38742# a shared library.
38743compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38744
38745# ### END LIBTOOL TAG CONFIG: CXX
38746_LT_EOF
38747
38748 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038749 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038750 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038751 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038752 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38753 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38754
38755 esac
38756done # for ac_tag
38757
38758
cristy8b350f62009-11-15 23:12:43 +000038759as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038760_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038761ac_clean_files=$ac_clean_files_save
38762
38763test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038764 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038765
38766
38767# configure is writing to config.log, and then calls config.status.
38768# config.status does its own redirection, appending to config.log.
38769# Unfortunately, on DOS this fails, as config.log is still kept open
38770# by configure, so config.status won't be able to write to it; its
38771# output is simply discarded. So we exec the FD to /dev/null,
38772# effectively closing config.log, so it can be properly (re)opened and
38773# appended to by config.status. When coming back to configure, we
38774# need to make the FD available again.
38775if test "$no_create" != yes; then
38776 ac_cs_success=:
38777 ac_config_status_args=
38778 test "$silent" = yes &&
38779 ac_config_status_args="$ac_config_status_args --quiet"
38780 exec 5>/dev/null
38781 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38782 exec 5>>config.log
38783 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38784 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038785 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038786fi
38787if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038789$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38790fi
38791
38792
38793rm -f magick-version
38794
cristy430a7312010-01-21 20:44:04 +000038795result_dejavu_font_dir='none'
38796if test "${dejavu_font_dir}x" != 'x'; then
38797 result_dejavu_font_dir=$dejavu_font_dir
38798fi
38799
cristy3ed852e2009-09-05 21:47:34 +000038800result_ghostscript_font_dir='none'
38801if test "${ghostscript_font_dir}x" != 'x'; then
38802 result_ghostscript_font_dir=$ghostscript_font_dir
38803fi
38804
38805result_windows_font_dir='none'
38806if test "${windows_font_dir}x" != 'x'; then
38807 result_windows_font_dir=${windows_font_dir}
38808fi
38809
cristy09b53e12011-10-14 12:47:22 +000038810{ $as_echo "$as_me:${as_lineno-$LINENO}:
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
38821Module support --with-modules=$with_modules $with_modules
38822GNU 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
cristyfbb0ef02010-12-19 02:32:11 +000038849LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038850Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38851OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038852PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038853PERL --with-perl=$with_perl $have_perl
38854PNG --with-png=$with_png $have_png
38855RSVG --with-rsvg=$with_rsvg $have_rsvg
38856TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038857WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038858Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38859WMF --with-wmf=$with_wmf $have_wmf
38860X11 --with-x=$with_x $have_x
38861XML --with-xml=$with_xml $have_xml
38862ZLIB --with-zlib=$with_zlib $have_zlib
38863
38864X11 Configuration:
38865 X_CFLAGS = $X_CFLAGS
38866 X_PRE_LIBS = $X_PRE_LIBS
38867 X_LIBS = $X_LIBS
38868 X_EXTRA_LIBS = $X_EXTRA_LIBS
38869
38870Options used to compile and link:
38871 PREFIX = $PREFIX_DIR
38872 EXEC-PREFIX = $EXEC_PREFIX_DIR
38873 VERSION = $PACKAGE_VERSION
38874 CC = $CC
38875 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038876 CPPFLAGS = $MAGICK_CPPFLAGS
38877 PCFLAGS = $MAGICK_PCFLAGS
38878 DEFS = $DEFS
38879 LDFLAGS = $LDFLAGS
38880 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38881 LIBS = $MAGICK_LIBS
38882 CXX = $CXX
38883 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038884 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038885" >&5
cristy09b53e12011-10-14 12:47:22 +000038886$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038887ImageMagick is configured as follows. Please verify that this configuration
38888matches your expectations.
38889
38890Host system type: $host
38891Build system type: $build
38892
38893 Option Value
38894-------------------------------------------------------------------------------
38895Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38896Static libraries --enable-static=$enable_static $libtool_build_static_libs
38897Module support --with-modules=$with_modules $with_modules
38898GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38899Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38900High Dynamic Range Imagery
38901 --enable-hdri=$enable_hdri $enable_hdri
38902
38903Delegate Configuration:
38904BZLIB --with-bzlib=$with_bzlib $have_bzlib
38905Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038906Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038907DJVU --with-djvu=$with_djvu $have_djvu
38908DPS --with-dps=$with_dps $have_dps
38909FFTW --with-fftw=$with_fftw $have_fftw
38910FlashPIX --with-fpx=$with_fpx $have_fpx
38911FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38912FreeType --with-freetype=$with_freetype $have_freetype
38913GhostPCL None $PCLDelegate ($PCLVersion)
38914GhostXPS None $XPSDelegate ($XPSVersion)
38915Ghostscript None $PSDelegate ($GSVersion)
38916Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38917Ghostscript lib --with-gslib=$with_gslib $have_gslib
38918Graphviz --with-gvc=$with_gvc $have_gvc
38919JBIG --with-jbig=$with_jbig $have_jbig
38920JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38921JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038922LCMS v1 --with-lcms=$with_lcms $have_lcms
38923LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038924LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038925LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038926Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38927OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038928PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038929PERL --with-perl=$with_perl $have_perl
38930PNG --with-png=$with_png $have_png
38931RSVG --with-rsvg=$with_rsvg $have_rsvg
38932TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038933WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038934Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38935WMF --with-wmf=$with_wmf $have_wmf
38936X11 --with-x=$with_x $have_x
38937XML --with-xml=$with_xml $have_xml
38938ZLIB --with-zlib=$with_zlib $have_zlib
38939
38940X11 Configuration:
38941 X_CFLAGS = $X_CFLAGS
38942 X_PRE_LIBS = $X_PRE_LIBS
38943 X_LIBS = $X_LIBS
38944 X_EXTRA_LIBS = $X_EXTRA_LIBS
38945
38946Options used to compile and link:
38947 PREFIX = $PREFIX_DIR
38948 EXEC-PREFIX = $EXEC_PREFIX_DIR
38949 VERSION = $PACKAGE_VERSION
38950 CC = $CC
38951 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038952 CPPFLAGS = $MAGICK_CPPFLAGS
38953 PCFLAGS = $MAGICK_PCFLAGS
38954 DEFS = $DEFS
38955 LDFLAGS = $LDFLAGS
38956 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38957 LIBS = $MAGICK_LIBS
38958 CXX = $CXX
38959 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038960 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038961" >&6;}