blob: 61ac8e88b47d2c1b6f5ef09b88c1eaae7ca57c13 [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
cristyc0890a62012-07-19 00:18:20 +00003654MAGICK_SVN_REVISION=8692
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
cristya0b81c32010-01-22 02:54:33 +00007971
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7973$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7974set x ${MAKE-make}
7975ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007976if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007977 $as_echo_n "(cached) " >&6
7978else
7979 cat >conftest.make <<\_ACEOF
7980SHELL = /bin/sh
7981all:
7982 @echo '@@@%%%=$(MAKE)=@@@%%%'
7983_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007984# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007985case `${MAKE-make} -f conftest.make 2>/dev/null` in
7986 *@@@%%%=?*=@@@%%%*)
7987 eval ac_cv_prog_make_${ac_make}_set=yes;;
7988 *)
7989 eval ac_cv_prog_make_${ac_make}_set=no;;
7990esac
7991rm -f conftest.make
7992fi
7993if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7995$as_echo "yes" >&6; }
7996 SET_MAKE=
7997else
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999$as_echo "no" >&6; }
8000 SET_MAKE="MAKE=${MAKE-make}"
8001fi
8002
cristy8b350f62009-11-15 23:12:43 +00008003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008004$as_echo_n "checking whether ln -s works... " >&6; }
8005LN_S=$as_ln_s
8006if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008008$as_echo "yes" >&6; }
8009else
cristy8b350f62009-11-15 23:12:43 +00008010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008011$as_echo "no, using $LN_S" >&6; }
8012fi
8013
cristy73bd4a52010-10-05 11:24:23 +00008014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8015$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8016
8017# Check whether --with-dmalloc was given.
8018if test "${with_dmalloc+set}" = set; then :
8019 withval=$with_dmalloc; if test "$withval" = yes; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8021$as_echo "yes" >&6; }
8022
8023$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8024
8025 LIBS="$LIBS -ldmalloc"
8026 LDFLAGS="$LDFLAGS -g"
8027else
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029$as_echo "no" >&6; }
8030fi
8031else
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033$as_echo "no" >&6; }
8034fi
8035
8036
8037
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8039$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008040if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008041 $as_echo_n "(cached) " >&6
8042else
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044/* end confdefs.h. */
8045#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008046 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008047 static void
8048 foo(void) {
8049 exit(1);
8050 }
8051
8052int
8053main ()
8054{
8055
8056 ;
8057 return 0;
8058}
8059_ACEOF
8060if ac_fn_c_try_compile "$LINENO"; then :
8061 ax_cv___attribute__=yes
8062else
8063 ax_cv___attribute__=no
8064
8065fi
8066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067
8068fi
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8070$as_echo "$ax_cv___attribute__" >&6; }
8071 if test "$ax_cv___attribute__" = "yes"; then
8072
8073$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8074
8075 fi
8076
8077
8078
cristy37110d62012-03-01 18:38:20 +00008079
8080
8081# Check whether --with-gcc-arch was given.
8082if test "${with_gcc_arch+set}" = set; then :
8083 withval=$with_gcc_arch; ax_gcc_arch=$withval
8084else
cristya32d1812012-03-02 19:24:21 +00008085 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008086fi
8087
8088
8089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8090$as_echo_n "checking for gcc architecture flag... " >&6; }
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8092$as_echo "" >&6; }
8093if ${ax_cv_gcc_archflag+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095else
8096
8097ax_cv_gcc_archflag="unknown"
8098
8099if test "$GCC" = yes; then
8100
8101if test "x$ax_gcc_arch" = xyes; then
8102ax_gcc_arch=""
8103if test "$cross_compiling" = no; then
8104case $host_cpu in
8105 i[3456]86*|x86_64*) # use cpuid codes
8106
8107ac_ext=c
8108ac_cpp='$CPP $CPPFLAGS'
8109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8111ac_compiler_gnu=$ac_cv_c_compiler_gnu
8112
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8114$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8115if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8116 $as_echo_n "(cached) " >&6
8117else
8118 if test "$cross_compiling" = yes; then :
8119 ax_cv_gcc_x86_cpuid_0=unknown
8120else
8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122/* end confdefs.h. */
8123#include <stdio.h>
8124int
8125main ()
8126{
8127
8128 int op = 0, eax, ebx, ecx, edx;
8129 FILE *f;
8130 __asm__("cpuid"
8131 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8132 : "a" (op));
8133 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8134 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8135 fclose(f);
8136 return 0;
8137
8138 ;
8139 return 0;
8140}
8141_ACEOF
8142if ac_fn_c_try_run "$LINENO"; then :
8143 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8144else
8145 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8146fi
8147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8148 conftest.$ac_objext conftest.beam conftest.$ac_ext
8149fi
8150
8151fi
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8153$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8154ac_ext=c
8155ac_cpp='$CPP $CPPFLAGS'
8156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8158ac_compiler_gnu=$ac_cv_c_compiler_gnu
8159
8160
8161
8162ac_ext=c
8163ac_cpp='$CPP $CPPFLAGS'
8164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8166ac_compiler_gnu=$ac_cv_c_compiler_gnu
8167
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8169$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8170if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8171 $as_echo_n "(cached) " >&6
8172else
8173 if test "$cross_compiling" = yes; then :
8174 ax_cv_gcc_x86_cpuid_1=unknown
8175else
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177/* end confdefs.h. */
8178#include <stdio.h>
8179int
8180main ()
8181{
8182
8183 int op = 1, eax, ebx, ecx, edx;
8184 FILE *f;
8185 __asm__("cpuid"
8186 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8187 : "a" (op));
8188 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8189 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8190 fclose(f);
8191 return 0;
8192
8193 ;
8194 return 0;
8195}
8196_ACEOF
8197if ac_fn_c_try_run "$LINENO"; then :
8198 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8199else
8200 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8201fi
8202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8203 conftest.$ac_objext conftest.beam conftest.$ac_ext
8204fi
8205
8206fi
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8208$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8209ac_ext=c
8210ac_cpp='$CPP $CPPFLAGS'
8211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8213ac_compiler_gnu=$ac_cv_c_compiler_gnu
8214
8215
8216 case $ax_cv_gcc_x86_cpuid_0 in
8217 *:756e6547:*:*) # Intel
8218 case $ax_cv_gcc_x86_cpuid_1 in
8219 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8220 *5??:*:*:*) ax_gcc_arch=pentium ;;
8221 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8222 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8223 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8224 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8225 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8226 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8227 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8228 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8229 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8230 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8231 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8232 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8233 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8234 case $host_cpu in
8235 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8236 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8237 esac ;;
8238 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8239 esac ;;
8240 *:68747541:*:*) # AMD
8241 case $ax_cv_gcc_x86_cpuid_1 in
8242 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8243 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8244 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8245 *60?:*:*:*) ax_gcc_arch=k7 ;;
8246 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8247 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8248 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8249 *6[68a]?:*:*:*)
8250
8251ac_ext=c
8252ac_cpp='$CPP $CPPFLAGS'
8253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8255ac_compiler_gnu=$ac_cv_c_compiler_gnu
8256
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8258$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8259if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261else
8262 if test "$cross_compiling" = yes; then :
8263 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8264else
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266/* end confdefs.h. */
8267#include <stdio.h>
8268int
8269main ()
8270{
8271
8272 int op = 0x80000006, eax, ebx, ecx, edx;
8273 FILE *f;
8274 __asm__("cpuid"
8275 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8276 : "a" (op));
8277 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8278 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8279 fclose(f);
8280 return 0;
8281
8282 ;
8283 return 0;
8284}
8285_ACEOF
8286if ac_fn_c_try_run "$LINENO"; then :
8287 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8288else
8289 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8290fi
8291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8292 conftest.$ac_objext conftest.beam conftest.$ac_ext
8293fi
8294
8295fi
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8297$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8298ac_ext=c
8299ac_cpp='$CPP $CPPFLAGS'
8300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8302ac_compiler_gnu=$ac_cv_c_compiler_gnu
8303
8304 # L2 cache size
8305 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8306 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8307 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8308 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8309 esac ;;
8310 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8311 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8312 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8313 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8314 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8315 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8316 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8317 esac ;;
8318 *:746e6543:*:*) # IDT
8319 case $ax_cv_gcc_x86_cpuid_1 in
8320 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8321 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8322 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8323 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8324 esac ;;
8325 esac
8326 if test x"$ax_gcc_arch" = x; then # fallback
8327 case $host_cpu in
8328 i586*) ax_gcc_arch=pentium ;;
8329 i686*) ax_gcc_arch=pentiumpro ;;
8330 esac
8331 fi
8332 ;;
8333
8334 sparc*)
8335 # Extract the first word of "prtdiag", so it can be a program name with args.
8336set dummy prtdiag; ac_word=$2
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338$as_echo_n "checking for $ac_word... " >&6; }
8339if ${ac_cv_path_PRTDIAG+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341else
8342 case $PRTDIAG in
8343 [\\/]* | ?:[\\/]*)
8344 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8345 ;;
8346 *)
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8349for as_dir in $as_dummy
8350do
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008355 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8358 fi
8359done
8360 done
8361IFS=$as_save_IFS
8362
8363 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8364 ;;
8365esac
8366fi
8367PRTDIAG=$ac_cv_path_PRTDIAG
8368if test -n "$PRTDIAG"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8370$as_echo "$PRTDIAG" >&6; }
8371else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373$as_echo "no" >&6; }
8374fi
8375
8376
8377 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`
8378 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8379 case $cputype in
8380 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8381 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8382 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8383 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8384 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8385 *cypress*) ax_gcc_arch=cypress ;;
8386 esac ;;
8387
8388 alphaev5) ax_gcc_arch=ev5 ;;
8389 alphaev56) ax_gcc_arch=ev56 ;;
8390 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8391 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8392 alphaev6) ax_gcc_arch=ev6 ;;
8393 alphaev67) ax_gcc_arch=ev67 ;;
8394 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8395 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8396 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8397 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8398
8399 powerpc*)
8400 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`
8401 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8402 case $cputype in
8403 *750*) ax_gcc_arch="750 G3" ;;
8404 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8405 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8406 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8407 *970*) ax_gcc_arch="970 G5 power4";;
8408 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8409 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8410 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8411 *) ax_gcc_arch=$cputype ;;
8412 esac
8413 ax_gcc_arch="$ax_gcc_arch powerpc"
8414 ;;
8415esac
8416fi # not cross-compiling
8417fi # guess arch
8418
8419if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8420for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008421 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008422 flags="-mtune=$arch"
8423 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8424 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8425 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8426 else
8427 flags="-march=$arch -mcpu=$arch -m$arch"
8428 fi
8429 for flag in $flags; do
8430 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8432$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8433if eval \${$as_CACHEVAR+:} false; then :
8434 $as_echo_n "(cached) " >&6
8435else
8436
8437 ax_check_save_flags=$CFLAGS
8438 CFLAGS="$CFLAGS $flag"
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440/* end confdefs.h. */
8441
8442int
8443main ()
8444{
8445
8446 ;
8447 return 0;
8448}
8449_ACEOF
8450if ac_fn_c_try_compile "$LINENO"; then :
8451 eval "$as_CACHEVAR=yes"
8452else
8453 eval "$as_CACHEVAR=no"
8454fi
8455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 CFLAGS=$ax_check_save_flags
8457fi
8458eval ac_res=\$$as_CACHEVAR
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8460$as_echo "$ac_res" >&6; }
8461if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8462 ax_cv_gcc_archflag=$flag; break
8463else
8464 :
8465fi
8466
8467 done
8468 test "x$ax_cv_gcc_archflag" = xunknown || break
8469done
8470fi
8471
8472fi # $GCC=yes
8473
8474fi
8475
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8477$as_echo_n "checking for gcc architecture flag... " >&6; }
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8479$as_echo "$ax_cv_gcc_archflag" >&6; }
8480if test "x$ax_cv_gcc_archflag" = xunknown; then
8481 :
8482else
8483 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8484fi
8485
8486
8487
cristy73bd4a52010-10-05 11:24:23 +00008488if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8489 if test -n "$ac_tool_prefix"; then
8490 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8491set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008494if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008495 $as_echo_n "(cached) " >&6
8496else
8497 case $PKG_CONFIG in
8498 [\\/]* | ?:[\\/]*)
8499 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8500 ;;
8501 *)
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503for as_dir in $PATH
8504do
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008509 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 break 2
8512 fi
8513done
8514 done
8515IFS=$as_save_IFS
8516
8517 ;;
8518esac
8519fi
8520PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8521if test -n "$PKG_CONFIG"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8523$as_echo "$PKG_CONFIG" >&6; }
8524else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526$as_echo "no" >&6; }
8527fi
8528
8529
8530fi
8531if test -z "$ac_cv_path_PKG_CONFIG"; then
8532 ac_pt_PKG_CONFIG=$PKG_CONFIG
8533 # Extract the first word of "pkg-config", so it can be a program name with args.
8534set dummy pkg-config; ac_word=$2
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008537if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008538 $as_echo_n "(cached) " >&6
8539else
8540 case $ac_pt_PKG_CONFIG in
8541 [\\/]* | ?:[\\/]*)
8542 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8543 ;;
8544 *)
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546for as_dir in $PATH
8547do
8548 IFS=$as_save_IFS
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008552 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 break 2
8555 fi
8556done
8557 done
8558IFS=$as_save_IFS
8559
8560 ;;
8561esac
8562fi
8563ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8564if test -n "$ac_pt_PKG_CONFIG"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8566$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8567else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569$as_echo "no" >&6; }
8570fi
8571
8572 if test "x$ac_pt_PKG_CONFIG" = x; then
8573 PKG_CONFIG=""
8574 else
8575 case $cross_compiling:$ac_tool_warned in
8576yes:)
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8579ac_tool_warned=yes ;;
8580esac
8581 PKG_CONFIG=$ac_pt_PKG_CONFIG
8582 fi
8583else
8584 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8585fi
8586
8587fi
8588if test -n "$PKG_CONFIG"; then
8589 _pkg_min_version=0.9.0
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8591$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8592 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8594$as_echo "yes" >&6; }
8595 else
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597$as_echo "no" >&6; }
8598 PKG_CONFIG=""
8599 fi
8600
8601fi
cristy3ed852e2009-09-05 21:47:34 +00008602
8603#
cristy3ed852e2009-09-05 21:47:34 +00008604# Enable run-time checking.
8605#
8606# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008607if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008608 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8609else
8610 enable_bounds_checking='no'
8611fi
8612
8613
8614if test "$enable_bounds_checking" = yes; then
8615
cristy8b350f62009-11-15 23:12:43 +00008616$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008617
8618fi
8619
8620#
8621# Tests for Windows
8622#
8623
8624
cristy73bd4a52010-10-05 11:24:23 +00008625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8626$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008627if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008628 $as_echo_n "(cached) " >&6
8629else
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631/* end confdefs.h. */
8632
8633int
8634main ()
8635{
8636#ifndef _MSC_VER
8637 choke me
8638#endif
8639
8640 ;
8641 return 0;
8642}
8643_ACEOF
8644if ac_fn_c_try_compile "$LINENO"; then :
8645 ax_compiler_ms=yes
8646else
8647 ax_compiler_ms=no
8648fi
8649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650ax_cv_c_compiler_ms=$ax_compiler_ms
8651
8652fi
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8654$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008655
8656GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008657native_win32_build='no'
8658cygwin_build='no'
8659case "${host_os}" in
8660 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008661 cygwin_build='yes'
8662 GDI32_LIBS='-lgdi32'
8663 ;;
8664 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008665 native_win32_build='yes'
8666 GDI32_LIBS='-lgdi32'
8667 ;;
8668esac
8669if test "${GDI32_LIBS}x" != 'x'; then
8670
cristy8b350f62009-11-15 23:12:43 +00008671$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008672
8673fi
8674
cristy73bd4a52010-10-05 11:24:23 +00008675 if test "${GDI32_LIBS}x" != 'x' ; then
8676 WINGDI32_DELEGATE_TRUE=
8677 WINGDI32_DELEGATE_FALSE='#'
8678else
8679 WINGDI32_DELEGATE_TRUE='#'
8680 WINGDI32_DELEGATE_FALSE=
8681fi
8682
8683 if test "${native_win32_build}" = 'yes' ; then
8684 WIN32_NATIVE_BUILD_TRUE=
8685 WIN32_NATIVE_BUILD_FALSE='#'
8686else
8687 WIN32_NATIVE_BUILD_TRUE='#'
8688 WIN32_NATIVE_BUILD_FALSE=
8689fi
8690
8691 if test "${cygwin_build}" = 'yes' ; then
8692 CYGWIN_BUILD_TRUE=
8693 CYGWIN_BUILD_FALSE='#'
8694else
8695 CYGWIN_BUILD_TRUE='#'
8696 CYGWIN_BUILD_FALSE=
8697fi
8698
8699 if test "x${CC}" = 'xcl.exe' ; then
8700 USING_CL_TRUE=
8701 USING_CL_FALSE='#'
8702else
8703 USING_CL_TRUE='#'
8704 USING_CL_FALSE=
8705fi
8706
cristy3ed852e2009-09-05 21:47:34 +00008707
8708WinPathScript="${srcdirfull}/winpath.sh"
8709
8710
8711#
8712# Compiler flags tweaks
8713#
8714if test "${GCC}" != "yes"; then
8715 case "${host}" in
8716 *-*-hpux* )
8717 # aCC: HP ANSI C++ B3910B A.03.34
8718 CFLAGS="${CFLAGS} -Wp,-H30000"
8719 if test -n "${CXXFLAGS}"; then
8720 CXXFLAGS='-AA'
8721 else
8722 CXXFLAGS="${CXXFLAGS} -AA"
8723 fi
8724 ;;
8725 *-dec-osf5.* )
8726 # Compaq alphaev68-dec-osf5.1 compiler
8727 if test -n "${CXXFLAGS}"; then
8728 CXXFLAGS='-std strict_ansi -noimplicit_include'
8729 else
8730 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8731 fi
8732 esac
8733fi
8734
8735# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008737$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008738if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008739 $as_echo_n "(cached) " >&6
8740else
8741
8742im_cv_ld_lazyload='none'
8743case "${host}" in
8744 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8745 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8746 im_cv_ld_lazyload='-Wl,-zlazyload'
8747 fi
8748 ;;
8749esac
8750
8751fi
cristy8b350f62009-11-15 23:12:43 +00008752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008753$as_echo "$im_cv_ld_lazyload" >&6; }
8754if test "${im_cv_ld_lazyload}" != 'none' ; then
8755 if test -z "${LDFLAGS}" ; then
8756 LDFLAGS="${im_cv_ld_lazyload}"
8757 else
8758 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8759 fi
8760fi
8761
8762case "$host" in
8763*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008764 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008765if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008766 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8767else
8768 build_osxuniversal=no
8769fi
8770
8771
8772 if test "${build_osxuniversal}" != no ; then
8773 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008774 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008775Please re-run configure with these options:
8776 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008777 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008778 fi
8779 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8780 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8781 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8782 fi
8783 ;;
8784esac
8785
cristy0151ae12011-10-28 16:32:29 +00008786#
8787# ARCH specific include directory
8788#
8789
cristy670aa3c2011-11-03 00:54:00 +00008790# Check whether --with-includearch-dir was given.
8791if test "${with_includearch_dir+set}" = set; then :
8792 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008793else
cristy670aa3c2011-11-03 00:54:00 +00008794 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008795fi
8796
8797
cristy670aa3c2011-11-03 00:54:00 +00008798eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008799
cristy0151ae12011-10-28 16:32:29 +00008800
8801#
8802# ARCH specific configuration directory
8803#
8804
cristy670aa3c2011-11-03 00:54:00 +00008805# Check whether --with-sharearch-dir was given.
8806if test "${with_sharearch_dir+set}" = set; then :
8807 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008808else
cristy408ebcd2011-11-14 01:36:57 +00008809 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008810fi
8811
8812
cristy670aa3c2011-11-03 00:54:00 +00008813eval "eval SHAREARCH_DIR=$sharearch_dir"
8814SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008815
cristy0151ae12011-10-28 16:32:29 +00008816
8817#
cristy3ed852e2009-09-05 21:47:34 +00008818# Enable support for threads
8819
8820# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008821if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008822 withval=$with_threads; with_threads=$withval
8823else
8824 with_threads='yes'
8825fi
8826
8827
8828have_threads=no
8829if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008830
8831
cristy73bd4a52010-10-05 11:24:23 +00008832ac_ext=c
8833ac_cpp='$CPP $CPPFLAGS'
8834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8836ac_compiler_gnu=$ac_cv_c_compiler_gnu
8837
8838ax_pthread_ok=no
8839
8840# We used to check for pthread.h first, but this fails if pthread.h
8841# requires special compiler flags (e.g. on True64 or Sequent).
8842# It gets checked for in the link test anyway.
8843
8844# First of all, check if the user has set any of the PTHREAD_LIBS,
8845# etcetera environment variables, and if threads linking works using
8846# them:
8847if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8848 save_CFLAGS="$CFLAGS"
8849 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8850 save_LIBS="$LIBS"
8851 LIBS="$PTHREAD_LIBS $LIBS"
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8853$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855/* end confdefs.h. */
8856
8857/* Override any GCC internal prototype to avoid an error.
8858 Use char because int might match the return type of a GCC
8859 builtin and then its argument prototype would still apply. */
8860#ifdef __cplusplus
8861extern "C"
8862#endif
8863char pthread_join ();
8864int
8865main ()
8866{
8867return pthread_join ();
8868 ;
8869 return 0;
8870}
8871_ACEOF
8872if ac_fn_c_try_link "$LINENO"; then :
8873 ax_pthread_ok=yes
8874fi
8875rm -f core conftest.err conftest.$ac_objext \
8876 conftest$ac_exeext conftest.$ac_ext
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8878$as_echo "$ax_pthread_ok" >&6; }
8879 if test x"$ax_pthread_ok" = xno; then
8880 PTHREAD_LIBS=""
8881 PTHREAD_CFLAGS=""
8882 fi
8883 LIBS="$save_LIBS"
8884 CFLAGS="$save_CFLAGS"
8885fi
8886
8887# We must check for the threads library under a number of different
8888# names; the ordering is very important because some systems
8889# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8890# libraries is broken (non-POSIX).
8891
8892# Create a list of thread flags to try. Items starting with a "-" are
8893# C compiler flags, and other items are library names, except for "none"
8894# which indicates that we try without any flags at all, and "pthread-config"
8895# which is a program returning the flags for the Pth emulation library.
8896
cristy18307f12011-12-30 01:20:16 +00008897ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008898
8899# The ordering *is* (sometimes) important. Some notes on the
8900# individual items follow:
8901
8902# pthreads: AIX (must check this before -lpthread)
8903# none: in case threads are in libc; should be tried before -Kthread and
8904# other compiler flags to prevent continual compiler warnings
8905# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8906# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8907# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8908# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8909# -pthreads: Solaris/gcc
8910# -mthreads: Mingw32/gcc, Lynx/gcc
8911# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8912# doesn't hurt to check since this sometimes defines pthreads too;
8913# also defines -D_REENTRANT)
8914# ... -mt is also the pthreads flag for HP/aCC
8915# pthread: Linux, etcetera
8916# --thread-safe: KAI C++
8917# pthread-config: use pthread-config program (for GNU Pth library)
8918
8919case "${host_cpu}-${host_os}" in
8920 *solaris*)
8921
8922 # On Solaris (at least, for some versions), libc contains stubbed
8923 # (non-functional) versions of the pthreads routines, so link-based
8924 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8925 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8926 # a function called by this macro, so we could check for that, but
8927 # who knows whether they'll stub that too in a future libc.) So,
8928 # we'll just look for -pthreads and -lpthread first:
8929
8930 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8931 ;;
8932
cristya316db12011-10-24 00:49:45 +00008933 *-darwin*)
8934 ax_pthread_flags="-pthread $ax_pthread_flags"
8935 ;;
cristy73bd4a52010-10-05 11:24:23 +00008936esac
8937
8938if test x"$ax_pthread_ok" = xno; then
8939for flag in $ax_pthread_flags; do
8940
8941 case $flag in
8942 none)
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8944$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8945 ;;
8946
8947 -*)
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8949$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8950 PTHREAD_CFLAGS="$flag"
8951 ;;
8952
cristya316db12011-10-24 00:49:45 +00008953 pthread-config)
8954 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008955set dummy pthread-config; ac_word=$2
8956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008958if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008959 $as_echo_n "(cached) " >&6
8960else
8961 if test -n "$ax_pthread_config"; then
8962 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8963else
8964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965for as_dir in $PATH
8966do
8967 IFS=$as_save_IFS
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008971 ac_cv_prog_ax_pthread_config="yes"
8972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 break 2
8974 fi
8975done
8976 done
8977IFS=$as_save_IFS
8978
8979 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8980fi
8981fi
8982ax_pthread_config=$ac_cv_prog_ax_pthread_config
8983if test -n "$ax_pthread_config"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8985$as_echo "$ax_pthread_config" >&6; }
8986else
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988$as_echo "no" >&6; }
8989fi
8990
8991
cristya316db12011-10-24 00:49:45 +00008992 if test x"$ax_pthread_config" = xno; then continue; fi
8993 PTHREAD_CFLAGS="`pthread-config --cflags`"
8994 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8995 ;;
cristy73bd4a52010-10-05 11:24:23 +00008996
8997 *)
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8999$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9000 PTHREAD_LIBS="-l$flag"
9001 ;;
9002 esac
9003
9004 save_LIBS="$LIBS"
9005 save_CFLAGS="$CFLAGS"
9006 LIBS="$PTHREAD_LIBS $LIBS"
9007 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9008
9009 # Check for various functions. We must include pthread.h,
9010 # since some functions may be macros. (On the Sequent, we
9011 # need a special flag -Kthread to make this header compile.)
9012 # We check for pthread_join because it is in -lpthread on IRIX
9013 # while pthread_create is in libc. We check for pthread_attr_init
9014 # due to DEC craziness with -lpthreads. We check for
9015 # pthread_cleanup_push because it is one of the few pthread
9016 # functions on Solaris that doesn't have a non-functional libc stub.
9017 # We try pthread_create on general principles.
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019/* end confdefs.h. */
9020#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009021 static void routine(void *a) { a = 0; }
9022 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009023int
9024main ()
9025{
9026pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009027 pthread_create(&th, 0, start_routine, 0);
9028 pthread_join(th, 0);
9029 pthread_attr_init(&attr);
9030 pthread_cleanup_push(routine, 0);
9031 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009032 ;
9033 return 0;
9034}
9035_ACEOF
9036if ac_fn_c_try_link "$LINENO"; then :
9037 ax_pthread_ok=yes
9038fi
9039rm -f core conftest.err conftest.$ac_objext \
9040 conftest$ac_exeext conftest.$ac_ext
9041
9042 LIBS="$save_LIBS"
9043 CFLAGS="$save_CFLAGS"
9044
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9046$as_echo "$ax_pthread_ok" >&6; }
9047 if test "x$ax_pthread_ok" = xyes; then
9048 break;
9049 fi
9050
9051 PTHREAD_LIBS=""
9052 PTHREAD_CFLAGS=""
9053done
9054fi
9055
9056# Various other checks:
9057if test "x$ax_pthread_ok" = xyes; then
9058 save_LIBS="$LIBS"
9059 LIBS="$PTHREAD_LIBS $LIBS"
9060 save_CFLAGS="$CFLAGS"
9061 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9062
9063 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009065$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009066 attr_name=unknown
9067 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009069/* end confdefs.h. */
9070#include <pthread.h>
9071int
9072main ()
9073{
cristya316db12011-10-24 00:49:45 +00009074int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009075 ;
9076 return 0;
9077}
9078_ACEOF
9079if ac_fn_c_try_link "$LINENO"; then :
9080 attr_name=$attr; break
9081fi
9082rm -f core conftest.err conftest.$ac_objext \
9083 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009084 done
cristy73bd4a52010-10-05 11:24:23 +00009085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9086$as_echo "$attr_name" >&6; }
9087 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9088
9089cat >>confdefs.h <<_ACEOF
9090#define PTHREAD_CREATE_JOINABLE $attr_name
9091_ACEOF
9092
9093 fi
9094
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9096$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9097 flag=no
9098 case "${host_cpu}-${host_os}" in
9099 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9100 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9101 esac
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9103$as_echo "${flag}" >&6; }
9104 if test "x$flag" != xno; then
9105 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9106 fi
9107
cristya316db12011-10-24 00:49:45 +00009108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9109$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9110if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112else
9113
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115/* end confdefs.h. */
9116
9117 #include <pthread.h>
9118int
9119main ()
9120{
9121int i = PTHREAD_PRIO_INHERIT;
9122 ;
9123 return 0;
9124}
9125_ACEOF
9126if ac_fn_c_try_link "$LINENO"; then :
9127 ax_cv_PTHREAD_PRIO_INHERIT=yes
9128else
9129 ax_cv_PTHREAD_PRIO_INHERIT=no
9130fi
9131rm -f core conftest.err conftest.$ac_objext \
9132 conftest$ac_exeext conftest.$ac_ext
9133
9134fi
9135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9136$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9137 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9138
9139$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9140
9141fi
9142
cristy73bd4a52010-10-05 11:24:23 +00009143 LIBS="$save_LIBS"
9144 CFLAGS="$save_CFLAGS"
9145
9146 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009147 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009148 for ac_prog in xlc_r cc_r
9149do
9150 # Extract the first word of "$ac_prog", so it can be a program name with args.
9151set dummy $ac_prog; ac_word=$2
9152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9153$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009154if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009155 $as_echo_n "(cached) " >&6
9156else
9157 if test -n "$PTHREAD_CC"; then
9158 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9159else
9160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161for as_dir in $PATH
9162do
9163 IFS=$as_save_IFS
9164 test -z "$as_dir" && as_dir=.
9165 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009167 ac_cv_prog_PTHREAD_CC="$ac_prog"
9168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9169 break 2
9170 fi
9171done
9172 done
9173IFS=$as_save_IFS
9174
9175fi
9176fi
9177PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9178if test -n "$PTHREAD_CC"; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9180$as_echo "$PTHREAD_CC" >&6; }
9181else
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9183$as_echo "no" >&6; }
9184fi
9185
9186
9187 test -n "$PTHREAD_CC" && break
9188done
9189test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9190
9191 else
9192 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009193 fi
cristy73bd4a52010-10-05 11:24:23 +00009194else
9195 PTHREAD_CC="$CC"
9196fi
9197
9198
9199
9200
9201
9202# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9203if test x"$ax_pthread_ok" = xyes; then
9204
9205$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9206
9207 :
9208else
9209 ax_pthread_ok=no
9210
9211fi
9212ac_ext=c
9213ac_cpp='$CPP $CPPFLAGS'
9214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9216ac_compiler_gnu=$ac_cv_c_compiler_gnu
9217
9218
cristy7acf8fb2010-09-23 19:58:53 +00009219 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009220 have_threads=yes
9221 DEF_THREAD="$PTHREAD_CFLAGS"
9222 CFLAGS="$CFLAGS $DEF_THREAD"
9223 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9224 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009225 { $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 +00009226$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9227 CC="$PTHREAD_CC"
9228 fi
cristy55bf91c2010-09-24 00:29:41 +00009229
9230$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9231
cristy3ed852e2009-09-05 21:47:34 +00009232 fi
9233fi
9234
9235# Enable support for OpenMP
9236if test "$have_threads" != 'yes'; then
9237 ac_cv_prog_c_openmp=unsupported
9238fi
9239
9240 OPENMP_CFLAGS=
9241 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009242if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009243 enableval=$enable_openmp;
9244fi
9245
9246 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009248$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009249if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009250 $as_echo_n "(cached) " >&6
9251else
cristy8b350f62009-11-15 23:12:43 +00009252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009254
9255#ifndef _OPENMP
9256 choke me
9257#endif
9258#include <omp.h>
9259int main () { return omp_get_num_threads (); }
9260
9261_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009262if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009263 ac_cv_prog_c_openmp='none needed'
9264else
cristy8b350f62009-11-15 23:12:43 +00009265 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009266 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9267 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009268 ac_save_CFLAGS=$CFLAGS
9269 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009272
9273#ifndef _OPENMP
9274 choke me
9275#endif
9276#include <omp.h>
9277int main () { return omp_get_num_threads (); }
9278
9279_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009280if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009281 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009282fi
cristy8b350f62009-11-15 23:12:43 +00009283rm -f core conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009285 CFLAGS=$ac_save_CFLAGS
9286 if test "$ac_cv_prog_c_openmp" != unsupported; then
9287 break
9288 fi
9289 done
9290fi
cristy8b350f62009-11-15 23:12:43 +00009291rm -f core conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009293fi
cristy8b350f62009-11-15 23:12:43 +00009294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009295$as_echo "$ac_cv_prog_c_openmp" >&6; }
9296 case $ac_cv_prog_c_openmp in #(
9297 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009298 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009299 *)
cristy8b350f62009-11-15 23:12:43 +00009300 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009301 esac
9302 fi
9303
9304
9305CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9306MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9307
cristy391f1ce2010-09-09 17:23:28 +00009308if test "$enable_openmp" != no; then
9309 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9310 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9311 fi
9312fi
cristy3ed852e2009-09-05 21:47:34 +00009313
cristy736173a2009-09-20 21:18:22 +00009314# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009315
9316
cristy73bd4a52010-10-05 11:24:23 +00009317ac_ext=c
9318ac_cpp='$CPP $CPPFLAGS'
9319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9321ac_compiler_gnu=$ac_cv_c_compiler_gnu
9322
9323ax_pthread_ok=no
9324
9325# We used to check for pthread.h first, but this fails if pthread.h
9326# requires special compiler flags (e.g. on True64 or Sequent).
9327# It gets checked for in the link test anyway.
9328
9329# First of all, check if the user has set any of the PTHREAD_LIBS,
9330# etcetera environment variables, and if threads linking works using
9331# them:
9332if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9333 save_CFLAGS="$CFLAGS"
9334 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9335 save_LIBS="$LIBS"
9336 LIBS="$PTHREAD_LIBS $LIBS"
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9338$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340/* end confdefs.h. */
9341
9342/* Override any GCC internal prototype to avoid an error.
9343 Use char because int might match the return type of a GCC
9344 builtin and then its argument prototype would still apply. */
9345#ifdef __cplusplus
9346extern "C"
9347#endif
9348char pthread_join ();
9349int
9350main ()
9351{
9352return pthread_join ();
9353 ;
9354 return 0;
9355}
9356_ACEOF
9357if ac_fn_c_try_link "$LINENO"; then :
9358 ax_pthread_ok=yes
9359fi
9360rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9363$as_echo "$ax_pthread_ok" >&6; }
9364 if test x"$ax_pthread_ok" = xno; then
9365 PTHREAD_LIBS=""
9366 PTHREAD_CFLAGS=""
9367 fi
9368 LIBS="$save_LIBS"
9369 CFLAGS="$save_CFLAGS"
9370fi
9371
9372# We must check for the threads library under a number of different
9373# names; the ordering is very important because some systems
9374# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9375# libraries is broken (non-POSIX).
9376
9377# Create a list of thread flags to try. Items starting with a "-" are
9378# C compiler flags, and other items are library names, except for "none"
9379# which indicates that we try without any flags at all, and "pthread-config"
9380# which is a program returning the flags for the Pth emulation library.
9381
cristy18307f12011-12-30 01:20:16 +00009382ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009383
9384# The ordering *is* (sometimes) important. Some notes on the
9385# individual items follow:
9386
9387# pthreads: AIX (must check this before -lpthread)
9388# none: in case threads are in libc; should be tried before -Kthread and
9389# other compiler flags to prevent continual compiler warnings
9390# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9391# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9392# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9393# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9394# -pthreads: Solaris/gcc
9395# -mthreads: Mingw32/gcc, Lynx/gcc
9396# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9397# doesn't hurt to check since this sometimes defines pthreads too;
9398# also defines -D_REENTRANT)
9399# ... -mt is also the pthreads flag for HP/aCC
9400# pthread: Linux, etcetera
9401# --thread-safe: KAI C++
9402# pthread-config: use pthread-config program (for GNU Pth library)
9403
9404case "${host_cpu}-${host_os}" in
9405 *solaris*)
9406
9407 # On Solaris (at least, for some versions), libc contains stubbed
9408 # (non-functional) versions of the pthreads routines, so link-based
9409 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9410 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9411 # a function called by this macro, so we could check for that, but
9412 # who knows whether they'll stub that too in a future libc.) So,
9413 # we'll just look for -pthreads and -lpthread first:
9414
9415 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9416 ;;
9417
cristya316db12011-10-24 00:49:45 +00009418 *-darwin*)
9419 ax_pthread_flags="-pthread $ax_pthread_flags"
9420 ;;
cristy73bd4a52010-10-05 11:24:23 +00009421esac
9422
9423if test x"$ax_pthread_ok" = xno; then
9424for flag in $ax_pthread_flags; do
9425
9426 case $flag in
9427 none)
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9429$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9430 ;;
9431
9432 -*)
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9434$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9435 PTHREAD_CFLAGS="$flag"
9436 ;;
9437
cristya316db12011-10-24 00:49:45 +00009438 pthread-config)
9439 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009440set dummy pthread-config; ac_word=$2
9441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009443if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009444 $as_echo_n "(cached) " >&6
9445else
9446 if test -n "$ax_pthread_config"; then
9447 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9448else
9449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450for as_dir in $PATH
9451do
9452 IFS=$as_save_IFS
9453 test -z "$as_dir" && as_dir=.
9454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009456 ac_cv_prog_ax_pthread_config="yes"
9457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9458 break 2
9459 fi
9460done
9461 done
9462IFS=$as_save_IFS
9463
9464 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9465fi
9466fi
9467ax_pthread_config=$ac_cv_prog_ax_pthread_config
9468if test -n "$ax_pthread_config"; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9470$as_echo "$ax_pthread_config" >&6; }
9471else
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9473$as_echo "no" >&6; }
9474fi
9475
9476
cristya316db12011-10-24 00:49:45 +00009477 if test x"$ax_pthread_config" = xno; then continue; fi
9478 PTHREAD_CFLAGS="`pthread-config --cflags`"
9479 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9480 ;;
cristy73bd4a52010-10-05 11:24:23 +00009481
9482 *)
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9484$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9485 PTHREAD_LIBS="-l$flag"
9486 ;;
9487 esac
9488
9489 save_LIBS="$LIBS"
9490 save_CFLAGS="$CFLAGS"
9491 LIBS="$PTHREAD_LIBS $LIBS"
9492 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9493
9494 # Check for various functions. We must include pthread.h,
9495 # since some functions may be macros. (On the Sequent, we
9496 # need a special flag -Kthread to make this header compile.)
9497 # We check for pthread_join because it is in -lpthread on IRIX
9498 # while pthread_create is in libc. We check for pthread_attr_init
9499 # due to DEC craziness with -lpthreads. We check for
9500 # pthread_cleanup_push because it is one of the few pthread
9501 # functions on Solaris that doesn't have a non-functional libc stub.
9502 # We try pthread_create on general principles.
9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504/* end confdefs.h. */
9505#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009506 static void routine(void *a) { a = 0; }
9507 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009508int
9509main ()
9510{
9511pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009512 pthread_create(&th, 0, start_routine, 0);
9513 pthread_join(th, 0);
9514 pthread_attr_init(&attr);
9515 pthread_cleanup_push(routine, 0);
9516 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009517 ;
9518 return 0;
9519}
9520_ACEOF
9521if ac_fn_c_try_link "$LINENO"; then :
9522 ax_pthread_ok=yes
9523fi
9524rm -f core conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526
9527 LIBS="$save_LIBS"
9528 CFLAGS="$save_CFLAGS"
9529
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9531$as_echo "$ax_pthread_ok" >&6; }
9532 if test "x$ax_pthread_ok" = xyes; then
9533 break;
9534 fi
9535
9536 PTHREAD_LIBS=""
9537 PTHREAD_CFLAGS=""
9538done
9539fi
9540
9541# Various other checks:
9542if test "x$ax_pthread_ok" = xyes; then
9543 save_LIBS="$LIBS"
9544 LIBS="$PTHREAD_LIBS $LIBS"
9545 save_CFLAGS="$CFLAGS"
9546 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9547
9548 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009550$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009551 attr_name=unknown
9552 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009554/* end confdefs.h. */
9555#include <pthread.h>
9556int
9557main ()
9558{
cristya316db12011-10-24 00:49:45 +00009559int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009560 ;
9561 return 0;
9562}
9563_ACEOF
9564if ac_fn_c_try_link "$LINENO"; then :
9565 attr_name=$attr; break
9566fi
9567rm -f core conftest.err conftest.$ac_objext \
9568 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009569 done
cristy73bd4a52010-10-05 11:24:23 +00009570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9571$as_echo "$attr_name" >&6; }
9572 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9573
9574cat >>confdefs.h <<_ACEOF
9575#define PTHREAD_CREATE_JOINABLE $attr_name
9576_ACEOF
9577
9578 fi
9579
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9581$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9582 flag=no
9583 case "${host_cpu}-${host_os}" in
9584 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9585 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9586 esac
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9588$as_echo "${flag}" >&6; }
9589 if test "x$flag" != xno; then
9590 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9591 fi
9592
cristya316db12011-10-24 00:49:45 +00009593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9594$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9595if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9596 $as_echo_n "(cached) " >&6
9597else
9598
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600/* end confdefs.h. */
9601
9602 #include <pthread.h>
9603int
9604main ()
9605{
9606int i = PTHREAD_PRIO_INHERIT;
9607 ;
9608 return 0;
9609}
9610_ACEOF
9611if ac_fn_c_try_link "$LINENO"; then :
9612 ax_cv_PTHREAD_PRIO_INHERIT=yes
9613else
9614 ax_cv_PTHREAD_PRIO_INHERIT=no
9615fi
9616rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618
9619fi
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9621$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9622 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9623
9624$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9625
9626fi
9627
cristy73bd4a52010-10-05 11:24:23 +00009628 LIBS="$save_LIBS"
9629 CFLAGS="$save_CFLAGS"
9630
9631 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009632 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009633 for ac_prog in xlc_r cc_r
9634do
9635 # Extract the first word of "$ac_prog", so it can be a program name with args.
9636set dummy $ac_prog; ac_word=$2
9637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009639if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009640 $as_echo_n "(cached) " >&6
9641else
9642 if test -n "$PTHREAD_CC"; then
9643 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9644else
9645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646for as_dir in $PATH
9647do
9648 IFS=$as_save_IFS
9649 test -z "$as_dir" && as_dir=.
9650 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009652 ac_cv_prog_PTHREAD_CC="$ac_prog"
9653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9654 break 2
9655 fi
9656done
9657 done
9658IFS=$as_save_IFS
9659
9660fi
9661fi
9662PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9663if test -n "$PTHREAD_CC"; then
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9665$as_echo "$PTHREAD_CC" >&6; }
9666else
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668$as_echo "no" >&6; }
9669fi
9670
9671
9672 test -n "$PTHREAD_CC" && break
9673done
9674test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9675
9676 else
9677 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009678 fi
cristy73bd4a52010-10-05 11:24:23 +00009679else
9680 PTHREAD_CC="$CC"
9681fi
9682
9683
9684
9685
9686
9687# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9688if test x"$ax_pthread_ok" = xyes; then
9689
9690$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9691
9692 :
9693else
9694 ax_pthread_ok=no
9695
9696fi
9697ac_ext=c
9698ac_cpp='$CPP $CPPFLAGS'
9699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9701ac_compiler_gnu=$ac_cv_c_compiler_gnu
9702
9703
9704
9705# Check whether --enable-opencl was given.
9706if test "${enable_opencl+set}" = set; then :
9707 enableval=$enable_opencl; disable_opencl=$enableval
9708else
9709 disable_opencl='yes'
9710fi
9711
9712
9713if test "$disable_opencl" = 'yes'; then
9714 ac_ext=c
9715ac_cpp='$CPP $CPPFLAGS'
9716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9718ac_compiler_gnu=$ac_cv_c_compiler_gnu
9719
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9721$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009722if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009723 $as_echo_n "(cached) " >&6
9724else
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726/* end confdefs.h. */
9727
9728int
9729main ()
9730{
9731#ifndef _MSC_VER
9732 choke me
9733#endif
9734
9735 ;
9736 return 0;
9737}
9738_ACEOF
9739if ac_fn_c_try_compile "$LINENO"; then :
9740 ax_compiler_ms=yes
9741else
9742 ax_compiler_ms=no
9743fi
9744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745ax_cv_c_compiler_ms=$ax_compiler_ms
9746
9747fi
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9749$as_echo "$ax_cv_c_compiler_ms" >&6; }
9750 if test X$ax_compiler_ms = Xno; then :
9751 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9752fi
9753
9754 ax_save_CPPFLAGS=$CPPFLAGS
9755 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9756 for ac_header in CL/cl.h OpenCL/cl.h
9757do :
9758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9759ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009760if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009761 cat >>confdefs.h <<_ACEOF
9762#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9763_ACEOF
9764
9765fi
9766
9767done
9768
9769 CPPFLAGS=$ax_save_CPPFLAGS
9770
9771 for ac_header in windows.h
9772do :
9773 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009774if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009775 cat >>confdefs.h <<_ACEOF
9776#define HAVE_WINDOWS_H 1
9777_ACEOF
9778
9779fi
9780
9781done
9782
9783
9784
9785
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9787$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009788if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009789 $as_echo_n "(cached) " >&6
9790else
9791 ax_cv_check_cl_libcl=no
9792 case $host_cpu in
9793 x86_64) ax_check_cl_libdir=lib64 ;;
9794 *) ax_check_cl_libdir=lib ;;
9795 esac
9796 ax_save_CPPFLAGS=$CPPFLAGS
9797 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9798 ax_save_LIBS=$LIBS
9799 LIBS=""
9800 ax_check_libs="-lOpenCL -lCL -lclparser"
9801 for ax_lib in $ax_check_libs; do
9802 if test X$ax_compiler_ms = Xyes; then :
9803 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9804else
9805 ax_try_lib=$ax_lib
9806fi
9807 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809/* end confdefs.h. */
9810
9811 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9812 # include <windows.h>
9813 # endif
9814 # ifdef HAVE_CL_CL_H
9815 # include <CL/cl.h>
9816 # elif defined(HAVE_OPENCL_CL_H)
9817 # include <OpenCL/cl.h>
9818 # else
9819 # error no CL.h
9820 # endif
9821int
9822main ()
9823{
9824clCreateContextFromType(0,0,0,0,0)
9825 ;
9826 return 0;
9827}
9828_ACEOF
9829if ac_fn_c_try_link "$LINENO"; then :
9830 ax_cv_check_cl_libcl=$ax_try_lib; break
9831else
9832 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"
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834/* end confdefs.h. */
9835
9836 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9837 # include <windows.h>
9838 # endif
9839 # ifdef HAVE_CL_CL_H
9840 # include <CL/cl.h>
9841 # elif defined(HAVE_OPENCL_CL_H)
9842 # include <OpenCL/cl.h>
9843 # else
9844 # error no CL.h
9845 # endif
9846int
9847main ()
9848{
9849clCreateContextFromType(0,0,0,0,0)
9850 ;
9851 return 0;
9852}
9853_ACEOF
9854if ac_fn_c_try_link "$LINENO"; then :
9855 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9856else
cristy78c5a0c2010-12-04 20:00:59 +00009857 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 +00009858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859/* end confdefs.h. */
9860
9861 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9862 # include <windows.h>
9863 # endif
9864 # ifdef HAVE_CL_CL_H
9865 # include <CL/cl.h>
9866 # elif defined(HAVE_OPENCL_CL_H)
9867 # include <OpenCL/cl.h>
9868 # else
9869 # error no CL.h
9870 # endif
9871int
9872main ()
9873{
9874clCreateContextFromType(0,0,0,0,0)
9875 ;
9876 return 0;
9877}
9878_ACEOF
9879if ac_fn_c_try_link "$LINENO"; then :
9880 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
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
9887fi
9888rm -f core conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9890 done
9891
cristyc3f8b8e2011-12-22 14:55:16 +00009892 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009893 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895/* end confdefs.h. */
9896
9897 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9898 # include <windows.h>
9899 # endif
9900 # ifdef HAVE_CL_CL_H
9901 # include <CL/cl.h>
9902 # elif defined(HAVE_OPENCL_CL_H)
9903 # include <OpenCL/cl.h>
9904 # else
9905 # error no CL.h
9906 # endif
9907int
9908main ()
9909{
9910clCreateContextFromType(0,0,0,0,0)
9911 ;
9912 return 0;
9913}
9914_ACEOF
9915if ac_fn_c_try_link "$LINENO"; then :
9916 ax_cv_check_cl_libcl=$LIBS
9917fi
9918rm -f core conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920fi
9921
9922 LIBS=$ax_save_LIBS
9923 CPPFLAGS=$ax_save_CPPFLAGS
9924fi
9925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9926$as_echo "$ax_cv_check_cl_libcl" >&6; }
9927
9928 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9929 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9930else
9931 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9932$as_echo "#define _OPENCL 1" >>confdefs.h
9933
9934fi
9935 ac_ext=c
9936ac_cpp='$CPP $CPPFLAGS'
9937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9939ac_compiler_gnu=$ac_cv_c_compiler_gnu
9940
9941fi
9942
9943
9944
9945
cristyc7083c12009-10-14 03:16:55 +00009946CFLAGS="$CL_CFLAGS $CFLAGS"
9947LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009948
cristy391f1ce2010-09-09 17:23:28 +00009949if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009950 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009951 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9952 fi
cristyfd9dcd42010-08-08 18:07:02 +00009953fi
cristy2e8b51d2009-10-17 18:26:15 +00009954
cristy3ed852e2009-09-05 21:47:34 +00009955########
9956#
9957# Check for large file support
9958#
9959########
9960# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009961if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009962 enableval=$enable_largefile;
9963fi
9964
9965if test "$enable_largefile" != no; then
9966
cristy8b350f62009-11-15 23:12:43 +00009967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009968$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009969if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009970 $as_echo_n "(cached) " >&6
9971else
9972 ac_cv_sys_largefile_CC=no
9973 if test "$GCC" != yes; then
9974 ac_save_CC=$CC
9975 while :; do
9976 # IRIX 6.2 and later do not support large files by default,
9977 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009979/* end confdefs.h. */
9980#include <sys/types.h>
9981 /* Check that off_t can represent 2**63 - 1 correctly.
9982 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9983 since some C++ compilers masquerading as C compilers
9984 incorrectly reject 9223372036854775807. */
9985#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9986 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9987 && LARGE_OFF_T % 2147483647 == 1)
9988 ? 1 : -1];
9989int
9990main ()
9991{
9992
9993 ;
9994 return 0;
9995}
9996_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009997 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009998 break
cristy3ed852e2009-09-05 21:47:34 +00009999fi
cristy3ed852e2009-09-05 21:47:34 +000010000rm -f core conftest.err conftest.$ac_objext
10001 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010002 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010003 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010004fi
cristy3ed852e2009-09-05 21:47:34 +000010005rm -f core conftest.err conftest.$ac_objext
10006 break
10007 done
10008 CC=$ac_save_CC
10009 rm -f conftest.$ac_ext
10010 fi
10011fi
cristy8b350f62009-11-15 23:12:43 +000010012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010013$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10014 if test "$ac_cv_sys_largefile_CC" != no; then
10015 CC=$CC$ac_cv_sys_largefile_CC
10016 fi
10017
cristy8b350f62009-11-15 23:12:43 +000010018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010019$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010020if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010021 $as_echo_n "(cached) " >&6
10022else
10023 while :; do
cristy8b350f62009-11-15 23:12:43 +000010024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010025/* end confdefs.h. */
10026#include <sys/types.h>
10027 /* Check that off_t can represent 2**63 - 1 correctly.
10028 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10029 since some C++ compilers masquerading as C compilers
10030 incorrectly reject 9223372036854775807. */
10031#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10032 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10033 && LARGE_OFF_T % 2147483647 == 1)
10034 ? 1 : -1];
10035int
10036main ()
10037{
10038
10039 ;
10040 return 0;
10041}
10042_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010043if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010044 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010045fi
cristy3ed852e2009-09-05 21:47:34 +000010046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010048/* end confdefs.h. */
10049#define _FILE_OFFSET_BITS 64
10050#include <sys/types.h>
10051 /* Check that off_t can represent 2**63 - 1 correctly.
10052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10053 since some C++ compilers masquerading as C compilers
10054 incorrectly reject 9223372036854775807. */
10055#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10057 && LARGE_OFF_T % 2147483647 == 1)
10058 ? 1 : -1];
10059int
10060main ()
10061{
10062
10063 ;
10064 return 0;
10065}
10066_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010067if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010068 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010069fi
cristy3ed852e2009-09-05 21:47:34 +000010070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071 ac_cv_sys_file_offset_bits=unknown
10072 break
10073done
10074fi
cristy8b350f62009-11-15 23:12:43 +000010075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010076$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10077case $ac_cv_sys_file_offset_bits in #(
10078 no | unknown) ;;
10079 *)
10080cat >>confdefs.h <<_ACEOF
10081#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10082_ACEOF
10083;;
10084esac
10085rm -rf conftest*
10086 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010088$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010089if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010090 $as_echo_n "(cached) " >&6
10091else
10092 while :; do
cristy8b350f62009-11-15 23:12:43 +000010093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010094/* end confdefs.h. */
10095#include <sys/types.h>
10096 /* Check that off_t can represent 2**63 - 1 correctly.
10097 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10098 since some C++ compilers masquerading as C compilers
10099 incorrectly reject 9223372036854775807. */
10100#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10101 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10102 && LARGE_OFF_T % 2147483647 == 1)
10103 ? 1 : -1];
10104int
10105main ()
10106{
10107
10108 ;
10109 return 0;
10110}
10111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010112if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010113 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010114fi
cristy3ed852e2009-09-05 21:47:34 +000010115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010117/* end confdefs.h. */
10118#define _LARGE_FILES 1
10119#include <sys/types.h>
10120 /* Check that off_t can represent 2**63 - 1 correctly.
10121 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10122 since some C++ compilers masquerading as C compilers
10123 incorrectly reject 9223372036854775807. */
10124#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10125 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10126 && LARGE_OFF_T % 2147483647 == 1)
10127 ? 1 : -1];
10128int
10129main ()
10130{
10131
10132 ;
10133 return 0;
10134}
10135_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010136if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010137 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010138fi
cristy3ed852e2009-09-05 21:47:34 +000010139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10140 ac_cv_sys_large_files=unknown
10141 break
10142done
10143fi
cristy8b350f62009-11-15 23:12:43 +000010144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010145$as_echo "$ac_cv_sys_large_files" >&6; }
10146case $ac_cv_sys_large_files in #(
10147 no | unknown) ;;
10148 *)
10149cat >>confdefs.h <<_ACEOF
10150#define _LARGE_FILES $ac_cv_sys_large_files
10151_ACEOF
10152;;
10153esac
10154rm -rf conftest*
10155 fi
cristy14fefe52012-05-21 00:59:18 +000010156
10157
cristy3ed852e2009-09-05 21:47:34 +000010158fi
10159
cristy8b350f62009-11-15 23:12:43 +000010160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010161$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010162if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010163 $as_echo_n "(cached) " >&6
10164else
10165 while :; do
cristy8b350f62009-11-15 23:12:43 +000010166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010167/* end confdefs.h. */
10168#include <sys/types.h> /* for off_t */
10169 #include <stdio.h>
10170int
10171main ()
10172{
10173int (*fp) (FILE *, off_t, int) = fseeko;
10174 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10175 ;
10176 return 0;
10177}
10178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010179if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010180 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010181fi
cristy8b350f62009-11-15 23:12:43 +000010182rm -f core conftest.err conftest.$ac_objext \
10183 conftest$ac_exeext conftest.$ac_ext
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010185/* end confdefs.h. */
10186#define _LARGEFILE_SOURCE 1
10187#include <sys/types.h> /* for off_t */
10188 #include <stdio.h>
10189int
10190main ()
10191{
10192int (*fp) (FILE *, off_t, int) = fseeko;
10193 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10194 ;
10195 return 0;
10196}
10197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010198if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010199 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010200fi
cristy8b350f62009-11-15 23:12:43 +000010201rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010203 ac_cv_sys_largefile_source=unknown
10204 break
10205done
10206fi
cristy8b350f62009-11-15 23:12:43 +000010207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010208$as_echo "$ac_cv_sys_largefile_source" >&6; }
10209case $ac_cv_sys_largefile_source in #(
10210 no | unknown) ;;
10211 *)
10212cat >>confdefs.h <<_ACEOF
10213#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10214_ACEOF
10215;;
10216esac
10217rm -rf conftest*
10218
10219# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10220# in glibc 2.1.3, but that breaks too many other things.
10221# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10222if test $ac_cv_sys_largefile_source != unknown; then
10223
cristy8b350f62009-11-15 23:12:43 +000010224$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010225
10226fi
10227
10228LFS_CPPFLAGS=''
10229if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010230 case $ac_cv_sys_file_offset_bits in
10231 no)
10232 # nothing to do here as the host supports LFS fine
10233 ;;
10234 unknown)
cristy8b350f62009-11-15 23:12:43 +000010235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010236$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010237 if test "$cross_compiling" = yes; then :
10238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010240as_fn_error $? "cannot run test program while cross compiling
10241See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010242else
cristy8b350f62009-11-15 23:12:43 +000010243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010245#include <unistd.h>
10246 main () {
10247 exit(!(sizeof(off_t) == 8));
10248 }
cristyda16f162011-02-19 23:52:17 +000010249int
10250main ()
10251{
10252
10253 ;
10254 return 0;
10255}
cristy3ed852e2009-09-05 21:47:34 +000010256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010257if ac_fn_c_try_run "$LINENO"; then :
10258 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010259
cristy09b53e12011-10-14 12:47:22 +000010260 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10261$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010262else
cristy09b53e12011-10-14 12:47:22 +000010263 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10264$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010265fi
cristy8b350f62009-11-15 23:12:43 +000010266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10267 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010268fi
10269
cristyc1e0cc12011-09-21 16:41:16 +000010270 ;;
10271 *)
10272 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10273 ;;
10274 esac
cristy3ed852e2009-09-05 21:47:34 +000010275 if test "$ac_cv_sys_large_files" != 'no'; then
10276 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10277 fi
10278 if test "$ac_cv_sys_largefile_source" != 'no'; then
10279 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10280 fi
10281fi
10282
10283
cristy3ed852e2009-09-05 21:47:34 +000010284# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010285enable_dlopen=yes
10286
10287
10288
10289case `pwd` in
10290 *\ * | *\ *)
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10292$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10293esac
10294
10295
10296
cristy99bd5232011-12-07 14:38:20 +000010297macro_version='2.4.2'
10298macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312ltmain="$ac_aux_dir/ltmain.sh"
10313
cristy0c60a692010-11-04 01:09:47 +000010314# Backslashify metacharacters that are still active within
10315# double-quoted strings.
10316sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10317
10318# Same as above, but do not quote variable references.
10319double_quote_subst='s/\(["`\\]\)/\\\1/g'
10320
10321# Sed substitution to delay expansion of an escaped shell variable in a
10322# double_quote_subst'ed string.
10323delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10324
10325# Sed substitution to delay expansion of an escaped single quote.
10326delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10327
10328# Sed substitution to avoid accidental globbing in evaled expressions
10329no_glob_subst='s/\*/\\\*/g'
10330
cristy73bd4a52010-10-05 11:24:23 +000010331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10332$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010333if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010334 $as_echo_n "(cached) " >&6
10335else
10336 if test -n "$NM"; then
10337 # Let the user override the test.
10338 lt_cv_path_NM="$NM"
10339else
10340 lt_nm_to_check="${ac_tool_prefix}nm"
10341 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10342 lt_nm_to_check="$lt_nm_to_check nm"
10343 fi
10344 for lt_tmp_nm in $lt_nm_to_check; do
10345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10346 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10347 IFS="$lt_save_ifs"
10348 test -z "$ac_dir" && ac_dir=.
10349 tmp_nm="$ac_dir/$lt_tmp_nm"
10350 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10351 # Check to see if the nm accepts a BSD-compat flag.
10352 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10353 # nm: unknown option "B" ignored
10354 # Tru64's nm complains that /dev/null is an invalid object file
10355 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10356 */dev/null* | *'Invalid file or object type'*)
10357 lt_cv_path_NM="$tmp_nm -B"
10358 break
10359 ;;
10360 *)
10361 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10362 */dev/null*)
10363 lt_cv_path_NM="$tmp_nm -p"
10364 break
10365 ;;
10366 *)
10367 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10368 continue # so that we can try to find one that supports BSD flags
10369 ;;
10370 esac
10371 ;;
10372 esac
10373 fi
10374 done
10375 IFS="$lt_save_ifs"
10376 done
10377 : ${lt_cv_path_NM=no}
10378fi
10379fi
10380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10381$as_echo "$lt_cv_path_NM" >&6; }
10382if test "$lt_cv_path_NM" != "no"; then
10383 NM="$lt_cv_path_NM"
10384else
10385 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010386 if test -n "$DUMPBIN"; then :
10387 # Let the user override the test.
10388 else
10389 if test -n "$ac_tool_prefix"; then
10390 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010391 do
10392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10393set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010396if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010397 $as_echo_n "(cached) " >&6
10398else
10399 if test -n "$DUMPBIN"; then
10400 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10401else
10402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403for as_dir in $PATH
10404do
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010409 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10411 break 2
10412 fi
10413done
10414 done
10415IFS=$as_save_IFS
10416
10417fi
10418fi
10419DUMPBIN=$ac_cv_prog_DUMPBIN
10420if test -n "$DUMPBIN"; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10422$as_echo "$DUMPBIN" >&6; }
10423else
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425$as_echo "no" >&6; }
10426fi
10427
10428
10429 test -n "$DUMPBIN" && break
10430 done
10431fi
10432if test -z "$DUMPBIN"; then
10433 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010434 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010435do
10436 # Extract the first word of "$ac_prog", so it can be a program name with args.
10437set dummy $ac_prog; ac_word=$2
10438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10439$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010440if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010441 $as_echo_n "(cached) " >&6
10442else
10443 if test -n "$ac_ct_DUMPBIN"; then
10444 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10445else
10446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447for as_dir in $PATH
10448do
10449 IFS=$as_save_IFS
10450 test -z "$as_dir" && as_dir=.
10451 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010453 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10455 break 2
10456 fi
10457done
10458 done
10459IFS=$as_save_IFS
10460
10461fi
10462fi
10463ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10464if test -n "$ac_ct_DUMPBIN"; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10466$as_echo "$ac_ct_DUMPBIN" >&6; }
10467else
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469$as_echo "no" >&6; }
10470fi
10471
10472
10473 test -n "$ac_ct_DUMPBIN" && break
10474done
10475
10476 if test "x$ac_ct_DUMPBIN" = x; then
10477 DUMPBIN=":"
10478 else
10479 case $cross_compiling:$ac_tool_warned in
10480yes:)
10481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10483ac_tool_warned=yes ;;
10484esac
10485 DUMPBIN=$ac_ct_DUMPBIN
10486 fi
10487fi
10488
cristy0c60a692010-11-04 01:09:47 +000010489 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10490 *COFF*)
10491 DUMPBIN="$DUMPBIN -symbols"
10492 ;;
10493 *)
10494 DUMPBIN=:
10495 ;;
10496 esac
10497 fi
cristy73bd4a52010-10-05 11:24:23 +000010498
10499 if test "$DUMPBIN" != ":"; then
10500 NM="$DUMPBIN"
10501 fi
10502fi
10503test -z "$NM" && NM=nm
10504
10505
10506
10507
10508
10509
10510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10511$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010512if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010513 $as_echo_n "(cached) " >&6
10514else
10515 lt_cv_nm_interface="BSD nm"
10516 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010517 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010518 (eval "$ac_compile" 2>conftest.err)
10519 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010520 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010521 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10522 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010523 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010524 cat conftest.out >&5
10525 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10526 lt_cv_nm_interface="MS dumpbin"
10527 fi
10528 rm -f conftest*
10529fi
10530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10531$as_echo "$lt_cv_nm_interface" >&6; }
10532
10533# find the maximum length of command line arguments
10534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10535$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010536if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010537 $as_echo_n "(cached) " >&6
10538else
10539 i=0
10540 teststring="ABCD"
10541
10542 case $build_os in
10543 msdosdjgpp*)
10544 # On DJGPP, this test can blow up pretty badly due to problems in libc
10545 # (any single argument exceeding 2000 bytes causes a buffer overrun
10546 # during glob expansion). Even if it were fixed, the result of this
10547 # check would be larger than it should be.
10548 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10549 ;;
10550
10551 gnu*)
10552 # Under GNU Hurd, this test is not required because there is
10553 # no limit to the length of command line arguments.
10554 # Libtool will interpret -1 as no limit whatsoever
10555 lt_cv_sys_max_cmd_len=-1;
10556 ;;
10557
10558 cygwin* | mingw* | cegcc*)
10559 # On Win9x/ME, this test blows up -- it succeeds, but takes
10560 # about 5 minutes as the teststring grows exponentially.
10561 # Worse, since 9x/ME are not pre-emptively multitasking,
10562 # you end up with a "frozen" computer, even though with patience
10563 # the test eventually succeeds (with a max line length of 256k).
10564 # Instead, let's just punt: use the minimum linelength reported by
10565 # all of the supported platforms: 8192 (on NT/2K/XP).
10566 lt_cv_sys_max_cmd_len=8192;
10567 ;;
10568
cristy0c60a692010-11-04 01:09:47 +000010569 mint*)
10570 # On MiNT this can take a long time and run out of memory.
10571 lt_cv_sys_max_cmd_len=8192;
10572 ;;
10573
cristy73bd4a52010-10-05 11:24:23 +000010574 amigaos*)
10575 # On AmigaOS with pdksh, this test takes hours, literally.
10576 # So we just punt and use a minimum line length of 8192.
10577 lt_cv_sys_max_cmd_len=8192;
10578 ;;
10579
10580 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10581 # This has been around since 386BSD, at least. Likely further.
10582 if test -x /sbin/sysctl; then
10583 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10584 elif test -x /usr/sbin/sysctl; then
10585 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10586 else
10587 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10588 fi
10589 # And add a safety zone
10590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10592 ;;
10593
10594 interix*)
10595 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10596 lt_cv_sys_max_cmd_len=196608
10597 ;;
10598
cristy99bd5232011-12-07 14:38:20 +000010599 os2*)
10600 # The test takes a long time on OS/2.
10601 lt_cv_sys_max_cmd_len=8192
10602 ;;
10603
cristy73bd4a52010-10-05 11:24:23 +000010604 osf*)
10605 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10606 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10607 # nice to cause kernel panics so lets avoid the loop below.
10608 # First set a reasonable default.
10609 lt_cv_sys_max_cmd_len=16384
10610 #
10611 if test -x /sbin/sysconfig; then
10612 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10613 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10614 esac
10615 fi
10616 ;;
10617 sco3.2v5*)
10618 lt_cv_sys_max_cmd_len=102400
10619 ;;
10620 sysv5* | sco5v6* | sysv4.2uw2*)
10621 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10622 if test -n "$kargmax"; then
10623 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10624 else
10625 lt_cv_sys_max_cmd_len=32768
10626 fi
10627 ;;
10628 *)
10629 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10630 if test -n "$lt_cv_sys_max_cmd_len"; then
10631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10633 else
10634 # Make teststring a little bigger before we do anything with it.
10635 # a 1K string should be a reasonable start.
10636 for i in 1 2 3 4 5 6 7 8 ; do
10637 teststring=$teststring$teststring
10638 done
10639 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10640 # If test is not a shell built-in, we'll probably end up computing a
10641 # maximum length that is only half of the actual maximum length, but
10642 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010643 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010644 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010645 test $i != 17 # 1/2 MB should be enough
10646 do
10647 i=`expr $i + 1`
10648 teststring=$teststring$teststring
10649 done
10650 # Only check the string length outside the loop.
10651 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10652 teststring=
10653 # Add a significant safety factor because C++ compilers can tack on
10654 # massive amounts of additional arguments before passing them to the
10655 # linker. It appears as though 1/2 is a usable value.
10656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10657 fi
10658 ;;
10659 esac
10660
10661fi
10662
10663if test -n $lt_cv_sys_max_cmd_len ; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10665$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10666else
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10668$as_echo "none" >&6; }
10669fi
10670max_cmd_len=$lt_cv_sys_max_cmd_len
10671
10672
10673
10674
10675
10676
10677: ${CP="cp -f"}
10678: ${MV="mv -f"}
10679: ${RM="rm -f"}
10680
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10682$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10683# Try some XSI features
10684xsi_shell=no
10685( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010686 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10687 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010688 && eval 'test $(( 1 + 1 )) -eq 2 \
10689 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10690 && xsi_shell=yes
10691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10692$as_echo "$xsi_shell" >&6; }
10693
10694
10695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10696$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10697lt_shell_append=no
10698( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10699 >/dev/null 2>&1 \
10700 && lt_shell_append=yes
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10702$as_echo "$lt_shell_append" >&6; }
10703
10704
10705if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10706 lt_unset=unset
10707else
10708 lt_unset=false
10709fi
10710
10711
10712
10713
10714
10715# test EBCDIC or ASCII
10716case `echo X|tr X '\101'` in
10717 A) # ASCII based system
10718 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10719 lt_SP2NL='tr \040 \012'
10720 lt_NL2SP='tr \015\012 \040\040'
10721 ;;
10722 *) # EBCDIC based system
10723 lt_SP2NL='tr \100 \n'
10724 lt_NL2SP='tr \r\n \100\100'
10725 ;;
10726esac
10727
10728
10729
10730
10731
10732
10733
10734
10735
cristyda16f162011-02-19 23:52:17 +000010736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10737$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10738if ${lt_cv_to_host_file_cmd+:} false; then :
10739 $as_echo_n "(cached) " >&6
10740else
10741 case $host in
10742 *-*-mingw* )
10743 case $build in
10744 *-*-mingw* ) # actually msys
10745 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10746 ;;
10747 *-*-cygwin* )
10748 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10749 ;;
10750 * ) # otherwise, assume *nix
10751 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10752 ;;
10753 esac
10754 ;;
10755 *-*-cygwin* )
10756 case $build in
10757 *-*-mingw* ) # actually msys
10758 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10759 ;;
10760 *-*-cygwin* )
10761 lt_cv_to_host_file_cmd=func_convert_file_noop
10762 ;;
10763 * ) # otherwise, assume *nix
10764 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10765 ;;
10766 esac
10767 ;;
10768 * ) # unhandled hosts (and "normal" native builds)
10769 lt_cv_to_host_file_cmd=func_convert_file_noop
10770 ;;
10771esac
10772
10773fi
10774
10775to_host_file_cmd=$lt_cv_to_host_file_cmd
10776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10777$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10778
10779
10780
10781
10782
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10784$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10785if ${lt_cv_to_tool_file_cmd+:} false; then :
10786 $as_echo_n "(cached) " >&6
10787else
10788 #assume ordinary cross tools, or native build.
10789lt_cv_to_tool_file_cmd=func_convert_file_noop
10790case $host in
10791 *-*-mingw* )
10792 case $build in
10793 *-*-mingw* ) # actually msys
10794 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10795 ;;
10796 esac
10797 ;;
10798esac
10799
10800fi
10801
10802to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10804$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10805
10806
10807
10808
10809
cristy73bd4a52010-10-05 11:24:23 +000010810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10811$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010812if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010813 $as_echo_n "(cached) " >&6
10814else
10815 lt_cv_ld_reload_flag='-r'
10816fi
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10818$as_echo "$lt_cv_ld_reload_flag" >&6; }
10819reload_flag=$lt_cv_ld_reload_flag
10820case $reload_flag in
10821"" | " "*) ;;
10822*) reload_flag=" $reload_flag" ;;
10823esac
10824reload_cmds='$LD$reload_flag -o $output$reload_objs'
10825case $host_os in
cristyda16f162011-02-19 23:52:17 +000010826 cygwin* | mingw* | pw32* | cegcc*)
10827 if test "$GCC" != yes; then
10828 reload_cmds=false
10829 fi
10830 ;;
cristy73bd4a52010-10-05 11:24:23 +000010831 darwin*)
10832 if test "$GCC" = yes; then
10833 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10834 else
10835 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10836 fi
10837 ;;
10838esac
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848if test -n "$ac_tool_prefix"; then
10849 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10850set dummy ${ac_tool_prefix}objdump; ac_word=$2
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010853if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010854 $as_echo_n "(cached) " >&6
10855else
10856 if test -n "$OBJDUMP"; then
10857 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10858else
10859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860for as_dir in $PATH
10861do
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010866 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10869 fi
10870done
10871 done
10872IFS=$as_save_IFS
10873
10874fi
10875fi
10876OBJDUMP=$ac_cv_prog_OBJDUMP
10877if test -n "$OBJDUMP"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10879$as_echo "$OBJDUMP" >&6; }
10880else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882$as_echo "no" >&6; }
10883fi
10884
10885
10886fi
10887if test -z "$ac_cv_prog_OBJDUMP"; then
10888 ac_ct_OBJDUMP=$OBJDUMP
10889 # Extract the first word of "objdump", so it can be a program name with args.
10890set dummy objdump; ac_word=$2
10891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010893if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010894 $as_echo_n "(cached) " >&6
10895else
10896 if test -n "$ac_ct_OBJDUMP"; then
10897 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10898else
10899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10900for as_dir in $PATH
10901do
10902 IFS=$as_save_IFS
10903 test -z "$as_dir" && as_dir=.
10904 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010906 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10908 break 2
10909 fi
10910done
10911 done
10912IFS=$as_save_IFS
10913
10914fi
10915fi
10916ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10917if test -n "$ac_ct_OBJDUMP"; then
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10919$as_echo "$ac_ct_OBJDUMP" >&6; }
10920else
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922$as_echo "no" >&6; }
10923fi
10924
10925 if test "x$ac_ct_OBJDUMP" = x; then
10926 OBJDUMP="false"
10927 else
10928 case $cross_compiling:$ac_tool_warned in
10929yes:)
10930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10932ac_tool_warned=yes ;;
10933esac
10934 OBJDUMP=$ac_ct_OBJDUMP
10935 fi
10936else
10937 OBJDUMP="$ac_cv_prog_OBJDUMP"
10938fi
10939
10940test -z "$OBJDUMP" && OBJDUMP=objdump
10941
10942
10943
10944
10945
10946
10947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10948$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010949if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010950 $as_echo_n "(cached) " >&6
10951else
10952 lt_cv_file_magic_cmd='$MAGIC_CMD'
10953lt_cv_file_magic_test_file=
10954lt_cv_deplibs_check_method='unknown'
10955# Need to set the preceding variable on all platforms that support
10956# interlibrary dependencies.
10957# 'none' -- dependencies not supported.
10958# `unknown' -- same as none, but documents that we really don't know.
10959# 'pass_all' -- all dependencies passed with no checks.
10960# 'test_compile' -- check by making test program.
10961# 'file_magic [[regex]]' -- check by looking for files in library path
10962# which responds to the $file_magic_cmd with a given extended regex.
10963# If you have `file' or equivalent on your system and you're not sure
10964# whether `pass_all' will *always* work, you probably want this one.
10965
10966case $host_os in
10967aix[4-9]*)
10968 lt_cv_deplibs_check_method=pass_all
10969 ;;
10970
10971beos*)
10972 lt_cv_deplibs_check_method=pass_all
10973 ;;
10974
10975bsdi[45]*)
10976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10977 lt_cv_file_magic_cmd='/usr/bin/file -L'
10978 lt_cv_file_magic_test_file=/shlib/libc.so
10979 ;;
10980
10981cygwin*)
10982 # func_win32_libid is a shell function defined in ltmain.sh
10983 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10984 lt_cv_file_magic_cmd='func_win32_libid'
10985 ;;
10986
10987mingw* | pw32*)
10988 # Base MSYS/MinGW do not provide the 'file' command needed by
10989 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10990 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010991 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10992 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10994 lt_cv_file_magic_cmd='func_win32_libid'
10995 else
cristy0c60a692010-11-04 01:09:47 +000010996 # Keep this pattern in sync with the one in func_win32_libid.
10997 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 +000010998 lt_cv_file_magic_cmd='$OBJDUMP -f'
10999 fi
11000 ;;
11001
cristy0c60a692010-11-04 01:09:47 +000011002cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011003 # use the weaker test based on 'objdump'. See mingw*.
11004 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11005 lt_cv_file_magic_cmd='$OBJDUMP -f'
11006 ;;
11007
11008darwin* | rhapsody*)
11009 lt_cv_deplibs_check_method=pass_all
11010 ;;
11011
11012freebsd* | dragonfly*)
11013 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11014 case $host_cpu in
11015 i*86 )
11016 # Not sure whether the presence of OpenBSD here was a mistake.
11017 # Let's accept both of them until this is cleared up.
11018 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11019 lt_cv_file_magic_cmd=/usr/bin/file
11020 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11021 ;;
11022 esac
11023 else
11024 lt_cv_deplibs_check_method=pass_all
11025 fi
11026 ;;
11027
11028gnu*)
11029 lt_cv_deplibs_check_method=pass_all
11030 ;;
11031
cristy0c60a692010-11-04 01:09:47 +000011032haiku*)
11033 lt_cv_deplibs_check_method=pass_all
11034 ;;
11035
cristy73bd4a52010-10-05 11:24:23 +000011036hpux10.20* | hpux11*)
11037 lt_cv_file_magic_cmd=/usr/bin/file
11038 case $host_cpu in
11039 ia64*)
11040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11041 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11042 ;;
11043 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011044 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 +000011045 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11046 ;;
11047 *)
cristy0c60a692010-11-04 01:09:47 +000011048 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 +000011049 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11050 ;;
11051 esac
11052 ;;
11053
11054interix[3-9]*)
11055 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11057 ;;
11058
11059irix5* | irix6* | nonstopux*)
11060 case $LD in
11061 *-32|*"-32 ") libmagic=32-bit;;
11062 *-n32|*"-n32 ") libmagic=N32;;
11063 *-64|*"-64 ") libmagic=64-bit;;
11064 *) libmagic=never-match;;
11065 esac
11066 lt_cv_deplibs_check_method=pass_all
11067 ;;
11068
cristy99bd5232011-12-07 14:38:20 +000011069# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011070linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011071 lt_cv_deplibs_check_method=pass_all
11072 ;;
11073
11074netbsd*)
11075 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11077 else
11078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11079 fi
11080 ;;
11081
11082newos6*)
11083 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11084 lt_cv_file_magic_cmd=/usr/bin/file
11085 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11086 ;;
11087
11088*nto* | *qnx*)
11089 lt_cv_deplibs_check_method=pass_all
11090 ;;
11091
11092openbsd*)
11093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11095 else
11096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11097 fi
11098 ;;
11099
11100osf3* | osf4* | osf5*)
11101 lt_cv_deplibs_check_method=pass_all
11102 ;;
11103
11104rdos*)
11105 lt_cv_deplibs_check_method=pass_all
11106 ;;
11107
11108solaris*)
11109 lt_cv_deplibs_check_method=pass_all
11110 ;;
11111
11112sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11113 lt_cv_deplibs_check_method=pass_all
11114 ;;
11115
11116sysv4 | sysv4.3*)
11117 case $host_vendor in
11118 motorola)
11119 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]'
11120 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11121 ;;
11122 ncr)
11123 lt_cv_deplibs_check_method=pass_all
11124 ;;
11125 sequent)
11126 lt_cv_file_magic_cmd='/bin/file'
11127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11128 ;;
11129 sni)
11130 lt_cv_file_magic_cmd='/bin/file'
11131 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11132 lt_cv_file_magic_test_file=/lib/libc.so
11133 ;;
11134 siemens)
11135 lt_cv_deplibs_check_method=pass_all
11136 ;;
11137 pc)
11138 lt_cv_deplibs_check_method=pass_all
11139 ;;
11140 esac
11141 ;;
11142
11143tpf*)
11144 lt_cv_deplibs_check_method=pass_all
11145 ;;
11146esac
11147
11148fi
11149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11150$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011151
11152file_magic_glob=
11153want_nocaseglob=no
11154if test "$build" = "$host"; then
11155 case $host_os in
11156 mingw* | pw32*)
11157 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11158 want_nocaseglob=yes
11159 else
11160 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11161 fi
11162 ;;
11163 esac
11164fi
11165
cristy73bd4a52010-10-05 11:24:23 +000011166file_magic_cmd=$lt_cv_file_magic_cmd
11167deplibs_check_method=$lt_cv_deplibs_check_method
11168test -z "$deplibs_check_method" && deplibs_check_method=unknown
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
cristyda16f162011-02-19 23:52:17 +000011181
11182
11183
11184
11185
11186
11187
11188
11189
11190
cristy73bd4a52010-10-05 11:24:23 +000011191if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011192 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11193set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011196if ${ac_cv_prog_DLLTOOL+:} false; then :
11197 $as_echo_n "(cached) " >&6
11198else
11199 if test -n "$DLLTOOL"; then
11200 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11201else
11202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203for as_dir in $PATH
11204do
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011209 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 break 2
11212 fi
11213done
11214 done
11215IFS=$as_save_IFS
11216
11217fi
11218fi
11219DLLTOOL=$ac_cv_prog_DLLTOOL
11220if test -n "$DLLTOOL"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11222$as_echo "$DLLTOOL" >&6; }
11223else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225$as_echo "no" >&6; }
11226fi
11227
11228
11229fi
11230if test -z "$ac_cv_prog_DLLTOOL"; then
11231 ac_ct_DLLTOOL=$DLLTOOL
11232 # Extract the first word of "dlltool", so it can be a program name with args.
11233set dummy dlltool; ac_word=$2
11234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235$as_echo_n "checking for $ac_word... " >&6; }
11236if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11237 $as_echo_n "(cached) " >&6
11238else
11239 if test -n "$ac_ct_DLLTOOL"; then
11240 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11241else
11242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243for as_dir in $PATH
11244do
11245 IFS=$as_save_IFS
11246 test -z "$as_dir" && as_dir=.
11247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011249 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11251 break 2
11252 fi
11253done
11254 done
11255IFS=$as_save_IFS
11256
11257fi
11258fi
11259ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11260if test -n "$ac_ct_DLLTOOL"; then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11262$as_echo "$ac_ct_DLLTOOL" >&6; }
11263else
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265$as_echo "no" >&6; }
11266fi
11267
11268 if test "x$ac_ct_DLLTOOL" = x; then
11269 DLLTOOL="false"
11270 else
11271 case $cross_compiling:$ac_tool_warned in
11272yes:)
11273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11275ac_tool_warned=yes ;;
11276esac
11277 DLLTOOL=$ac_ct_DLLTOOL
11278 fi
11279else
11280 DLLTOOL="$ac_cv_prog_DLLTOOL"
11281fi
11282
11283test -z "$DLLTOOL" && DLLTOOL=dlltool
11284
11285
11286
11287
11288
11289
11290
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11292$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11293if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11294 $as_echo_n "(cached) " >&6
11295else
11296 lt_cv_sharedlib_from_linklib_cmd='unknown'
11297
11298case $host_os in
11299cygwin* | mingw* | pw32* | cegcc*)
11300 # two different shell functions defined in ltmain.sh
11301 # decide which to use based on capabilities of $DLLTOOL
11302 case `$DLLTOOL --help 2>&1` in
11303 *--identify-strict*)
11304 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11305 ;;
11306 *)
11307 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11308 ;;
11309 esac
11310 ;;
11311*)
11312 # fallback: assume linklib IS sharedlib
11313 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11314 ;;
11315esac
11316
11317fi
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11319$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11320sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11321test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11322
11323
11324
11325
11326
11327
11328
11329if test -n "$ac_tool_prefix"; then
11330 for ac_prog in ar
11331 do
11332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335$as_echo_n "checking for $ac_word... " >&6; }
11336if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011337 $as_echo_n "(cached) " >&6
11338else
11339 if test -n "$AR"; then
11340 ac_cv_prog_AR="$AR" # Let the user override the test.
11341else
11342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343for as_dir in $PATH
11344do
11345 IFS=$as_save_IFS
11346 test -z "$as_dir" && as_dir=.
11347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011349 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11351 break 2
11352 fi
11353done
11354 done
11355IFS=$as_save_IFS
11356
11357fi
11358fi
11359AR=$ac_cv_prog_AR
11360if test -n "$AR"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11362$as_echo "$AR" >&6; }
11363else
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365$as_echo "no" >&6; }
11366fi
11367
11368
cristyda16f162011-02-19 23:52:17 +000011369 test -n "$AR" && break
11370 done
cristy73bd4a52010-10-05 11:24:23 +000011371fi
cristyda16f162011-02-19 23:52:17 +000011372if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011373 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011374 for ac_prog in ar
11375do
11376 # Extract the first word of "$ac_prog", so it can be a program name with args.
11377set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011380if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011381 $as_echo_n "(cached) " >&6
11382else
11383 if test -n "$ac_ct_AR"; then
11384 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11385else
11386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11387for as_dir in $PATH
11388do
11389 IFS=$as_save_IFS
11390 test -z "$as_dir" && as_dir=.
11391 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011393 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11395 break 2
11396 fi
11397done
11398 done
11399IFS=$as_save_IFS
11400
11401fi
11402fi
11403ac_ct_AR=$ac_cv_prog_ac_ct_AR
11404if test -n "$ac_ct_AR"; then
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11406$as_echo "$ac_ct_AR" >&6; }
11407else
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409$as_echo "no" >&6; }
11410fi
11411
cristyda16f162011-02-19 23:52:17 +000011412
11413 test -n "$ac_ct_AR" && break
11414done
11415
cristy73bd4a52010-10-05 11:24:23 +000011416 if test "x$ac_ct_AR" = x; then
11417 AR="false"
11418 else
11419 case $cross_compiling:$ac_tool_warned in
11420yes:)
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11423ac_tool_warned=yes ;;
11424esac
11425 AR=$ac_ct_AR
11426 fi
cristy73bd4a52010-10-05 11:24:23 +000011427fi
11428
cristyda16f162011-02-19 23:52:17 +000011429: ${AR=ar}
11430: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
cristyda16f162011-02-19 23:52:17 +000011442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11443$as_echo_n "checking for archiver @FILE support... " >&6; }
11444if ${lt_cv_ar_at_file+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446else
11447 lt_cv_ar_at_file=no
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449/* end confdefs.h. */
11450
11451int
11452main ()
11453{
11454
11455 ;
11456 return 0;
11457}
11458_ACEOF
11459if ac_fn_c_try_compile "$LINENO"; then :
11460 echo conftest.$ac_objext > conftest.lst
11461 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11463 (eval $lt_ar_try) 2>&5
11464 ac_status=$?
11465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11466 test $ac_status = 0; }
11467 if test "$ac_status" -eq 0; then
11468 # Ensure the archiver fails upon bogus file names.
11469 rm -f conftest.$ac_objext libconftest.a
11470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11471 (eval $lt_ar_try) 2>&5
11472 ac_status=$?
11473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474 test $ac_status = 0; }
11475 if test "$ac_status" -ne 0; then
11476 lt_cv_ar_at_file=@
11477 fi
11478 fi
11479 rm -f conftest.* libconftest.a
11480
11481fi
11482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11483
11484fi
11485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11486$as_echo "$lt_cv_ar_at_file" >&6; }
11487
11488if test "x$lt_cv_ar_at_file" = xno; then
11489 archiver_list_spec=
11490else
11491 archiver_list_spec=$lt_cv_ar_at_file
11492fi
11493
11494
11495
11496
11497
11498
11499
cristy73bd4a52010-10-05 11:24:23 +000011500if test -n "$ac_tool_prefix"; then
11501 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11502set dummy ${ac_tool_prefix}strip; ac_word=$2
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011505if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011506 $as_echo_n "(cached) " >&6
11507else
11508 if test -n "$STRIP"; then
11509 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11510else
11511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512for as_dir in $PATH
11513do
11514 IFS=$as_save_IFS
11515 test -z "$as_dir" && as_dir=.
11516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011518 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11520 break 2
11521 fi
11522done
11523 done
11524IFS=$as_save_IFS
11525
11526fi
11527fi
11528STRIP=$ac_cv_prog_STRIP
11529if test -n "$STRIP"; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11531$as_echo "$STRIP" >&6; }
11532else
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534$as_echo "no" >&6; }
11535fi
11536
11537
11538fi
11539if test -z "$ac_cv_prog_STRIP"; then
11540 ac_ct_STRIP=$STRIP
11541 # Extract the first word of "strip", so it can be a program name with args.
11542set dummy strip; ac_word=$2
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011545if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011546 $as_echo_n "(cached) " >&6
11547else
11548 if test -n "$ac_ct_STRIP"; then
11549 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11550else
11551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552for as_dir in $PATH
11553do
11554 IFS=$as_save_IFS
11555 test -z "$as_dir" && as_dir=.
11556 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011558 ac_cv_prog_ac_ct_STRIP="strip"
11559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 break 2
11561 fi
11562done
11563 done
11564IFS=$as_save_IFS
11565
11566fi
11567fi
11568ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11569if test -n "$ac_ct_STRIP"; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11571$as_echo "$ac_ct_STRIP" >&6; }
11572else
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574$as_echo "no" >&6; }
11575fi
11576
11577 if test "x$ac_ct_STRIP" = x; then
11578 STRIP=":"
11579 else
11580 case $cross_compiling:$ac_tool_warned in
11581yes:)
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11584ac_tool_warned=yes ;;
11585esac
11586 STRIP=$ac_ct_STRIP
11587 fi
11588else
11589 STRIP="$ac_cv_prog_STRIP"
11590fi
11591
11592test -z "$STRIP" && STRIP=:
11593
11594
11595
11596
11597
11598
11599if test -n "$ac_tool_prefix"; then
11600 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11601set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011604if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011605 $as_echo_n "(cached) " >&6
11606else
11607 if test -n "$RANLIB"; then
11608 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11609else
11610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611for as_dir in $PATH
11612do
11613 IFS=$as_save_IFS
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011617 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619 break 2
11620 fi
11621done
11622 done
11623IFS=$as_save_IFS
11624
11625fi
11626fi
11627RANLIB=$ac_cv_prog_RANLIB
11628if test -n "$RANLIB"; then
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11630$as_echo "$RANLIB" >&6; }
11631else
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633$as_echo "no" >&6; }
11634fi
11635
11636
11637fi
11638if test -z "$ac_cv_prog_RANLIB"; then
11639 ac_ct_RANLIB=$RANLIB
11640 # Extract the first word of "ranlib", so it can be a program name with args.
11641set dummy ranlib; ac_word=$2
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011644if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011645 $as_echo_n "(cached) " >&6
11646else
11647 if test -n "$ac_ct_RANLIB"; then
11648 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11649else
11650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651for as_dir in $PATH
11652do
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011657 ac_cv_prog_ac_ct_RANLIB="ranlib"
11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 break 2
11660 fi
11661done
11662 done
11663IFS=$as_save_IFS
11664
11665fi
11666fi
11667ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11668if test -n "$ac_ct_RANLIB"; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11670$as_echo "$ac_ct_RANLIB" >&6; }
11671else
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673$as_echo "no" >&6; }
11674fi
11675
11676 if test "x$ac_ct_RANLIB" = x; then
11677 RANLIB=":"
11678 else
11679 case $cross_compiling:$ac_tool_warned in
11680yes:)
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11683ac_tool_warned=yes ;;
11684esac
11685 RANLIB=$ac_ct_RANLIB
11686 fi
11687else
11688 RANLIB="$ac_cv_prog_RANLIB"
11689fi
11690
11691test -z "$RANLIB" && RANLIB=:
11692
11693
11694
11695
11696
11697
11698# Determine commands to create old-style static archives.
11699old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11700old_postinstall_cmds='chmod 644 $oldlib'
11701old_postuninstall_cmds=
11702
11703if test -n "$RANLIB"; then
11704 case $host_os in
11705 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011706 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011707 ;;
11708 *)
cristy99bd5232011-12-07 14:38:20 +000011709 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011710 ;;
11711 esac
cristy99bd5232011-12-07 14:38:20 +000011712 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011713fi
11714
cristy0c60a692010-11-04 01:09:47 +000011715case $host_os in
11716 darwin*)
11717 lock_old_archive_extraction=yes ;;
11718 *)
11719 lock_old_archive_extraction=no ;;
11720esac
11721
11722
11723
11724
11725
11726
cristy73bd4a52010-10-05 11:24:23 +000011727
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
11758
11759
11760# If no C compiler was specified, use CC.
11761LTCC=${LTCC-"$CC"}
11762
11763# If no C compiler flags were specified, use CFLAGS.
11764LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11765
11766# Allow CC to be a program name with arguments.
11767compiler=$CC
11768
11769
11770# Check for command to grab the raw symbol name followed by C symbol from nm.
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11772$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011773if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011774 $as_echo_n "(cached) " >&6
11775else
11776
11777# These are sane defaults that work on at least a few old systems.
11778# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11779
11780# Character class describing NM global symbol codes.
11781symcode='[BCDEGRST]'
11782
11783# Regexp to match symbols that can be accessed directly from C.
11784sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11785
11786# Define system-specific variables.
11787case $host_os in
11788aix*)
11789 symcode='[BCDT]'
11790 ;;
11791cygwin* | mingw* | pw32* | cegcc*)
11792 symcode='[ABCDGISTW]'
11793 ;;
11794hpux*)
11795 if test "$host_cpu" = ia64; then
11796 symcode='[ABCDEGRST]'
11797 fi
11798 ;;
11799irix* | nonstopux*)
11800 symcode='[BCDEGRST]'
11801 ;;
11802osf*)
11803 symcode='[BCDEGQRST]'
11804 ;;
11805solaris*)
11806 symcode='[BDRT]'
11807 ;;
11808sco3.2v5*)
11809 symcode='[DT]'
11810 ;;
11811sysv4.2uw2*)
11812 symcode='[DT]'
11813 ;;
11814sysv5* | sco5v6* | unixware* | OpenUNIX*)
11815 symcode='[ABDT]'
11816 ;;
11817sysv4)
11818 symcode='[DFNSTU]'
11819 ;;
11820esac
11821
11822# If we're using GNU nm, then use its standard symbol codes.
11823case `$NM -V 2>&1` in
11824*GNU* | *'with BFD'*)
11825 symcode='[ABCDGIRSTW]' ;;
11826esac
11827
11828# Transform an extracted symbol line into a proper C declaration.
11829# Some systems (esp. on ia64) link data and code symbols differently,
11830# so use this general approach.
11831lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11832
11833# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011834lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11835lt_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 +000011836
11837# Handle CRLF in mingw tool chain
11838opt_cr=
11839case $build_os in
11840mingw*)
11841 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11842 ;;
11843esac
11844
11845# Try without a prefix underscore, then with it.
11846for ac_symprfx in "" "_"; do
11847
11848 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11849 symxfrm="\\1 $ac_symprfx\\2 \\2"
11850
11851 # Write the raw and C identifiers.
11852 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11853 # Fake it for dumpbin and say T for any non-static function
11854 # and D for any global variable.
11855 # Also find C++ and __fastcall symbols from MSVC++,
11856 # which start with @ or ?.
11857 lt_cv_sys_global_symbol_pipe="$AWK '"\
11858" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011859" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011860" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11861" \$ 0!~/External *\|/{next};"\
11862" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11863" {if(hide[section]) next};"\
11864" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11865" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11866" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11867" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11868" ' prfx=^$ac_symprfx"
11869 else
11870 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11871 fi
cristyda16f162011-02-19 23:52:17 +000011872 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011873
11874 # Check to see that the pipe works correctly.
11875 pipe_works=no
11876
11877 rm -f conftest*
11878 cat > conftest.$ac_ext <<_LT_EOF
11879#ifdef __cplusplus
11880extern "C" {
11881#endif
11882char nm_test_var;
11883void nm_test_func(void);
11884void nm_test_func(void){}
11885#ifdef __cplusplus
11886}
11887#endif
11888int main(){nm_test_var='a';nm_test_func();return(0);}
11889_LT_EOF
11890
11891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11892 (eval $ac_compile) 2>&5
11893 ac_status=$?
11894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11895 test $ac_status = 0; }; then
11896 # Now try to grab the symbols.
11897 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11899 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011900 ac_status=$?
11901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11902 test $ac_status = 0; } && test -s "$nlist"; then
11903 # Try sorting and uniquifying the output.
11904 if sort "$nlist" | uniq > "$nlist"T; then
11905 mv -f "$nlist"T "$nlist"
11906 else
11907 rm -f "$nlist"T
11908 fi
11909
11910 # Make sure that we snagged all the symbols we need.
11911 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11912 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11913 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011914/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11915#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11916/* DATA imports from DLLs on WIN32 con't be const, because runtime
11917 relocations are performed -- see ld's documentation on pseudo-relocs. */
11918# define LT_DLSYM_CONST
11919#elif defined(__osf__)
11920/* This system does not cope well with relocations in const data. */
11921# define LT_DLSYM_CONST
11922#else
11923# define LT_DLSYM_CONST const
11924#endif
11925
cristy73bd4a52010-10-05 11:24:23 +000011926#ifdef __cplusplus
11927extern "C" {
11928#endif
11929
11930_LT_EOF
11931 # Now generate the symbol file.
11932 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11933
11934 cat <<_LT_EOF >> conftest.$ac_ext
11935
11936/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011937LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011938 const char *name;
11939 void *address;
11940}
11941lt__PROGRAM__LTX_preloaded_symbols[] =
11942{
11943 { "@PROGRAM@", (void *) 0 },
11944_LT_EOF
11945 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11946 cat <<\_LT_EOF >> conftest.$ac_ext
11947 {0, (void *) 0}
11948};
11949
11950/* This works around a problem in FreeBSD linker */
11951#ifdef FREEBSD_WORKAROUND
11952static const void *lt_preloaded_setup() {
11953 return lt__PROGRAM__LTX_preloaded_symbols;
11954}
11955#endif
11956
11957#ifdef __cplusplus
11958}
11959#endif
11960_LT_EOF
11961 # Now try linking the two files.
11962 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011963 lt_globsym_save_LIBS=$LIBS
11964 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011965 LIBS="conftstm.$ac_objext"
11966 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11968 (eval $ac_link) 2>&5
11969 ac_status=$?
11970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11971 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11972 pipe_works=yes
11973 fi
cristyda16f162011-02-19 23:52:17 +000011974 LIBS=$lt_globsym_save_LIBS
11975 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011976 else
11977 echo "cannot find nm_test_func in $nlist" >&5
11978 fi
11979 else
11980 echo "cannot find nm_test_var in $nlist" >&5
11981 fi
11982 else
11983 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11984 fi
11985 else
11986 echo "$progname: failed program was:" >&5
11987 cat conftest.$ac_ext >&5
11988 fi
11989 rm -rf conftest* conftst*
11990
11991 # Do not use the global_symbol_pipe unless it works.
11992 if test "$pipe_works" = yes; then
11993 break
11994 else
11995 lt_cv_sys_global_symbol_pipe=
11996 fi
11997done
11998
11999fi
12000
12001if test -z "$lt_cv_sys_global_symbol_pipe"; then
12002 lt_cv_sys_global_symbol_to_cdecl=
12003fi
12004if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12006$as_echo "failed" >&6; }
12007else
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12009$as_echo "ok" >&6; }
12010fi
12011
cristyda16f162011-02-19 23:52:17 +000012012# Response file support.
12013if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12014 nm_file_list_spec='@'
12015elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12016 nm_file_list_spec='@'
12017fi
cristy73bd4a52010-10-05 11:24:23 +000012018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
cristyda16f162011-02-19 23:52:17 +000012039
12040
12041
12042
12043
12044
12045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12046$as_echo_n "checking for sysroot... " >&6; }
12047
12048# Check whether --with-sysroot was given.
12049if test "${with_sysroot+set}" = set; then :
12050 withval=$with_sysroot;
12051else
12052 with_sysroot=no
12053fi
12054
12055
12056lt_sysroot=
12057case ${with_sysroot} in #(
12058 yes)
12059 if test "$GCC" = yes; then
12060 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12061 fi
12062 ;; #(
12063 /*)
12064 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12065 ;; #(
12066 no|'')
12067 ;; #(
12068 *)
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12070$as_echo "${with_sysroot}" >&6; }
12071 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12072 ;;
12073esac
12074
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12076$as_echo "${lt_sysroot:-no}" >&6; }
12077
12078
12079
12080
12081
cristy73bd4a52010-10-05 11:24:23 +000012082# Check whether --enable-libtool-lock was given.
12083if test "${enable_libtool_lock+set}" = set; then :
12084 enableval=$enable_libtool_lock;
12085fi
12086
12087test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12088
12089# Some flags need to be propagated to the compiler or linker for good
12090# libtool support.
12091case $host in
12092ia64-*-hpux*)
12093 # Find out which ABI we are using.
12094 echo 'int i;' > conftest.$ac_ext
12095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12096 (eval $ac_compile) 2>&5
12097 ac_status=$?
12098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12099 test $ac_status = 0; }; then
12100 case `/usr/bin/file conftest.$ac_objext` in
12101 *ELF-32*)
12102 HPUX_IA64_MODE="32"
12103 ;;
12104 *ELF-64*)
12105 HPUX_IA64_MODE="64"
12106 ;;
12107 esac
12108 fi
12109 rm -rf conftest*
12110 ;;
12111*-*-irix6*)
12112 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012113 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12115 (eval $ac_compile) 2>&5
12116 ac_status=$?
12117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12118 test $ac_status = 0; }; then
12119 if test "$lt_cv_prog_gnu_ld" = yes; then
12120 case `/usr/bin/file conftest.$ac_objext` in
12121 *32-bit*)
12122 LD="${LD-ld} -melf32bsmip"
12123 ;;
12124 *N32*)
12125 LD="${LD-ld} -melf32bmipn32"
12126 ;;
12127 *64-bit*)
12128 LD="${LD-ld} -melf64bmip"
12129 ;;
12130 esac
12131 else
12132 case `/usr/bin/file conftest.$ac_objext` in
12133 *32-bit*)
12134 LD="${LD-ld} -32"
12135 ;;
12136 *N32*)
12137 LD="${LD-ld} -n32"
12138 ;;
12139 *64-bit*)
12140 LD="${LD-ld} -64"
12141 ;;
12142 esac
12143 fi
12144 fi
12145 rm -rf conftest*
12146 ;;
12147
12148x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12149s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12150 # Find out which ABI we are using.
12151 echo 'int i;' > conftest.$ac_ext
12152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12153 (eval $ac_compile) 2>&5
12154 ac_status=$?
12155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12156 test $ac_status = 0; }; then
12157 case `/usr/bin/file conftest.o` in
12158 *32-bit*)
12159 case $host in
12160 x86_64-*kfreebsd*-gnu)
12161 LD="${LD-ld} -m elf_i386_fbsd"
12162 ;;
12163 x86_64-*linux*)
12164 LD="${LD-ld} -m elf_i386"
12165 ;;
12166 ppc64-*linux*|powerpc64-*linux*)
12167 LD="${LD-ld} -m elf32ppclinux"
12168 ;;
12169 s390x-*linux*)
12170 LD="${LD-ld} -m elf_s390"
12171 ;;
12172 sparc64-*linux*)
12173 LD="${LD-ld} -m elf32_sparc"
12174 ;;
12175 esac
12176 ;;
12177 *64-bit*)
12178 case $host in
12179 x86_64-*kfreebsd*-gnu)
12180 LD="${LD-ld} -m elf_x86_64_fbsd"
12181 ;;
12182 x86_64-*linux*)
12183 LD="${LD-ld} -m elf_x86_64"
12184 ;;
12185 ppc*-*linux*|powerpc*-*linux*)
12186 LD="${LD-ld} -m elf64ppc"
12187 ;;
12188 s390*-*linux*|s390*-*tpf*)
12189 LD="${LD-ld} -m elf64_s390"
12190 ;;
12191 sparc*-*linux*)
12192 LD="${LD-ld} -m elf64_sparc"
12193 ;;
12194 esac
12195 ;;
12196 esac
12197 fi
12198 rm -rf conftest*
12199 ;;
12200
12201*-*-sco3.2v5*)
12202 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12203 SAVE_CFLAGS="$CFLAGS"
12204 CFLAGS="$CFLAGS -belf"
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12206$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012207if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012208 $as_echo_n "(cached) " >&6
12209else
12210 ac_ext=c
12211ac_cpp='$CPP $CPPFLAGS'
12212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12214ac_compiler_gnu=$ac_cv_c_compiler_gnu
12215
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217/* end confdefs.h. */
12218
12219int
12220main ()
12221{
12222
12223 ;
12224 return 0;
12225}
12226_ACEOF
12227if ac_fn_c_try_link "$LINENO"; then :
12228 lt_cv_cc_needs_belf=yes
12229else
12230 lt_cv_cc_needs_belf=no
12231fi
12232rm -f core conftest.err conftest.$ac_objext \
12233 conftest$ac_exeext conftest.$ac_ext
12234 ac_ext=c
12235ac_cpp='$CPP $CPPFLAGS'
12236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12238ac_compiler_gnu=$ac_cv_c_compiler_gnu
12239
12240fi
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12242$as_echo "$lt_cv_cc_needs_belf" >&6; }
12243 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12244 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12245 CFLAGS="$SAVE_CFLAGS"
12246 fi
12247 ;;
cristy99bd5232011-12-07 14:38:20 +000012248*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012249 # Find out which ABI we are using.
12250 echo 'int i;' > conftest.$ac_ext
12251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12252 (eval $ac_compile) 2>&5
12253 ac_status=$?
12254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12255 test $ac_status = 0; }; then
12256 case `/usr/bin/file conftest.o` in
12257 *64-bit*)
12258 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012259 yes*)
12260 case $host in
12261 i?86-*-solaris*)
12262 LD="${LD-ld} -m elf_x86_64"
12263 ;;
12264 sparc*-*-solaris*)
12265 LD="${LD-ld} -m elf64_sparc"
12266 ;;
12267 esac
12268 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12269 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12270 LD="${LD-ld}_sol2"
12271 fi
12272 ;;
cristy73bd4a52010-10-05 11:24:23 +000012273 *)
12274 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12275 LD="${LD-ld} -64"
12276 fi
12277 ;;
12278 esac
12279 ;;
12280 esac
12281 fi
12282 rm -rf conftest*
12283 ;;
12284esac
12285
12286need_locks="$enable_libtool_lock"
12287
cristyda16f162011-02-19 23:52:17 +000012288if test -n "$ac_tool_prefix"; then
12289 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12290set dummy ${ac_tool_prefix}mt; ac_word=$2
12291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12292$as_echo_n "checking for $ac_word... " >&6; }
12293if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12294 $as_echo_n "(cached) " >&6
12295else
12296 if test -n "$MANIFEST_TOOL"; then
12297 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12298else
12299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300for as_dir in $PATH
12301do
12302 IFS=$as_save_IFS
12303 test -z "$as_dir" && as_dir=.
12304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012306 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12308 break 2
12309 fi
12310done
12311 done
12312IFS=$as_save_IFS
12313
12314fi
12315fi
12316MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12317if test -n "$MANIFEST_TOOL"; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12319$as_echo "$MANIFEST_TOOL" >&6; }
12320else
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322$as_echo "no" >&6; }
12323fi
12324
12325
12326fi
12327if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12328 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12329 # Extract the first word of "mt", so it can be a program name with args.
12330set dummy mt; ac_word=$2
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332$as_echo_n "checking for $ac_word... " >&6; }
12333if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12334 $as_echo_n "(cached) " >&6
12335else
12336 if test -n "$ac_ct_MANIFEST_TOOL"; then
12337 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12338else
12339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340for as_dir in $PATH
12341do
12342 IFS=$as_save_IFS
12343 test -z "$as_dir" && as_dir=.
12344 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012346 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12348 break 2
12349 fi
12350done
12351 done
12352IFS=$as_save_IFS
12353
12354fi
12355fi
12356ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12357if test -n "$ac_ct_MANIFEST_TOOL"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12359$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12360else
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362$as_echo "no" >&6; }
12363fi
12364
12365 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12366 MANIFEST_TOOL=":"
12367 else
12368 case $cross_compiling:$ac_tool_warned in
12369yes:)
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12372ac_tool_warned=yes ;;
12373esac
12374 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12375 fi
12376else
12377 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12378fi
12379
12380test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12382$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12383if ${lt_cv_path_mainfest_tool+:} false; then :
12384 $as_echo_n "(cached) " >&6
12385else
12386 lt_cv_path_mainfest_tool=no
12387 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12388 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12389 cat conftest.err >&5
12390 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12391 lt_cv_path_mainfest_tool=yes
12392 fi
12393 rm -f conftest*
12394fi
12395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12396$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12397if test "x$lt_cv_path_mainfest_tool" != xyes; then
12398 MANIFEST_TOOL=:
12399fi
12400
12401
12402
12403
12404
cristy73bd4a52010-10-05 11:24:23 +000012405
12406 case $host_os in
12407 rhapsody* | darwin*)
12408 if test -n "$ac_tool_prefix"; then
12409 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12410set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012413if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012414 $as_echo_n "(cached) " >&6
12415else
12416 if test -n "$DSYMUTIL"; then
12417 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12418else
12419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420for as_dir in $PATH
12421do
12422 IFS=$as_save_IFS
12423 test -z "$as_dir" && as_dir=.
12424 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012426 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428 break 2
12429 fi
12430done
12431 done
12432IFS=$as_save_IFS
12433
12434fi
12435fi
12436DSYMUTIL=$ac_cv_prog_DSYMUTIL
12437if test -n "$DSYMUTIL"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12439$as_echo "$DSYMUTIL" >&6; }
12440else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442$as_echo "no" >&6; }
12443fi
12444
12445
12446fi
12447if test -z "$ac_cv_prog_DSYMUTIL"; then
12448 ac_ct_DSYMUTIL=$DSYMUTIL
12449 # Extract the first word of "dsymutil", so it can be a program name with args.
12450set dummy dsymutil; ac_word=$2
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012453if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012454 $as_echo_n "(cached) " >&6
12455else
12456 if test -n "$ac_ct_DSYMUTIL"; then
12457 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12458else
12459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460for as_dir in $PATH
12461do
12462 IFS=$as_save_IFS
12463 test -z "$as_dir" && as_dir=.
12464 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012466 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12468 break 2
12469 fi
12470done
12471 done
12472IFS=$as_save_IFS
12473
12474fi
12475fi
12476ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12477if test -n "$ac_ct_DSYMUTIL"; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12479$as_echo "$ac_ct_DSYMUTIL" >&6; }
12480else
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482$as_echo "no" >&6; }
12483fi
12484
12485 if test "x$ac_ct_DSYMUTIL" = x; then
12486 DSYMUTIL=":"
12487 else
12488 case $cross_compiling:$ac_tool_warned in
12489yes:)
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12492ac_tool_warned=yes ;;
12493esac
12494 DSYMUTIL=$ac_ct_DSYMUTIL
12495 fi
12496else
12497 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12498fi
12499
12500 if test -n "$ac_tool_prefix"; then
12501 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12502set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12504$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012505if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012506 $as_echo_n "(cached) " >&6
12507else
12508 if test -n "$NMEDIT"; then
12509 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12510else
12511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512for as_dir in $PATH
12513do
12514 IFS=$as_save_IFS
12515 test -z "$as_dir" && as_dir=.
12516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012518 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12520 break 2
12521 fi
12522done
12523 done
12524IFS=$as_save_IFS
12525
12526fi
12527fi
12528NMEDIT=$ac_cv_prog_NMEDIT
12529if test -n "$NMEDIT"; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12531$as_echo "$NMEDIT" >&6; }
12532else
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534$as_echo "no" >&6; }
12535fi
12536
12537
12538fi
12539if test -z "$ac_cv_prog_NMEDIT"; then
12540 ac_ct_NMEDIT=$NMEDIT
12541 # Extract the first word of "nmedit", so it can be a program name with args.
12542set dummy nmedit; ac_word=$2
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012545if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012546 $as_echo_n "(cached) " >&6
12547else
12548 if test -n "$ac_ct_NMEDIT"; then
12549 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12550else
12551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552for as_dir in $PATH
12553do
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012558 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560 break 2
12561 fi
12562done
12563 done
12564IFS=$as_save_IFS
12565
12566fi
12567fi
12568ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12569if test -n "$ac_ct_NMEDIT"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12571$as_echo "$ac_ct_NMEDIT" >&6; }
12572else
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574$as_echo "no" >&6; }
12575fi
12576
12577 if test "x$ac_ct_NMEDIT" = x; then
12578 NMEDIT=":"
12579 else
12580 case $cross_compiling:$ac_tool_warned in
12581yes:)
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12584ac_tool_warned=yes ;;
12585esac
12586 NMEDIT=$ac_ct_NMEDIT
12587 fi
12588else
12589 NMEDIT="$ac_cv_prog_NMEDIT"
12590fi
12591
12592 if test -n "$ac_tool_prefix"; then
12593 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12594set dummy ${ac_tool_prefix}lipo; ac_word=$2
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12596$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012597if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012598 $as_echo_n "(cached) " >&6
12599else
12600 if test -n "$LIPO"; then
12601 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12602else
12603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604for as_dir in $PATH
12605do
12606 IFS=$as_save_IFS
12607 test -z "$as_dir" && as_dir=.
12608 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012610 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12612 break 2
12613 fi
12614done
12615 done
12616IFS=$as_save_IFS
12617
12618fi
12619fi
12620LIPO=$ac_cv_prog_LIPO
12621if test -n "$LIPO"; then
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12623$as_echo "$LIPO" >&6; }
12624else
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12626$as_echo "no" >&6; }
12627fi
12628
12629
12630fi
12631if test -z "$ac_cv_prog_LIPO"; then
12632 ac_ct_LIPO=$LIPO
12633 # Extract the first word of "lipo", so it can be a program name with args.
12634set dummy lipo; ac_word=$2
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012637if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012638 $as_echo_n "(cached) " >&6
12639else
12640 if test -n "$ac_ct_LIPO"; then
12641 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12642else
12643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644for as_dir in $PATH
12645do
12646 IFS=$as_save_IFS
12647 test -z "$as_dir" && as_dir=.
12648 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012650 ac_cv_prog_ac_ct_LIPO="lipo"
12651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12652 break 2
12653 fi
12654done
12655 done
12656IFS=$as_save_IFS
12657
12658fi
12659fi
12660ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12661if test -n "$ac_ct_LIPO"; then
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12663$as_echo "$ac_ct_LIPO" >&6; }
12664else
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666$as_echo "no" >&6; }
12667fi
12668
12669 if test "x$ac_ct_LIPO" = x; then
12670 LIPO=":"
12671 else
12672 case $cross_compiling:$ac_tool_warned in
12673yes:)
12674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12676ac_tool_warned=yes ;;
12677esac
12678 LIPO=$ac_ct_LIPO
12679 fi
12680else
12681 LIPO="$ac_cv_prog_LIPO"
12682fi
12683
12684 if test -n "$ac_tool_prefix"; then
12685 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12686set dummy ${ac_tool_prefix}otool; ac_word=$2
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012689if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012690 $as_echo_n "(cached) " >&6
12691else
12692 if test -n "$OTOOL"; then
12693 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12694else
12695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696for as_dir in $PATH
12697do
12698 IFS=$as_save_IFS
12699 test -z "$as_dir" && as_dir=.
12700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012702 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12704 break 2
12705 fi
12706done
12707 done
12708IFS=$as_save_IFS
12709
12710fi
12711fi
12712OTOOL=$ac_cv_prog_OTOOL
12713if test -n "$OTOOL"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12715$as_echo "$OTOOL" >&6; }
12716else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718$as_echo "no" >&6; }
12719fi
12720
12721
12722fi
12723if test -z "$ac_cv_prog_OTOOL"; then
12724 ac_ct_OTOOL=$OTOOL
12725 # Extract the first word of "otool", so it can be a program name with args.
12726set dummy otool; ac_word=$2
12727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012729if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012730 $as_echo_n "(cached) " >&6
12731else
12732 if test -n "$ac_ct_OTOOL"; then
12733 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12734else
12735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $PATH
12737do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012742 ac_cv_prog_ac_ct_OTOOL="otool"
12743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12745 fi
12746done
12747 done
12748IFS=$as_save_IFS
12749
12750fi
12751fi
12752ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12753if test -n "$ac_ct_OTOOL"; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12755$as_echo "$ac_ct_OTOOL" >&6; }
12756else
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758$as_echo "no" >&6; }
12759fi
12760
12761 if test "x$ac_ct_OTOOL" = x; then
12762 OTOOL=":"
12763 else
12764 case $cross_compiling:$ac_tool_warned in
12765yes:)
12766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12768ac_tool_warned=yes ;;
12769esac
12770 OTOOL=$ac_ct_OTOOL
12771 fi
12772else
12773 OTOOL="$ac_cv_prog_OTOOL"
12774fi
12775
12776 if test -n "$ac_tool_prefix"; then
12777 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12778set dummy ${ac_tool_prefix}otool64; ac_word=$2
12779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012781if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012782 $as_echo_n "(cached) " >&6
12783else
12784 if test -n "$OTOOL64"; then
12785 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12786else
12787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788for as_dir in $PATH
12789do
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
12792 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012794 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12796 break 2
12797 fi
12798done
12799 done
12800IFS=$as_save_IFS
12801
12802fi
12803fi
12804OTOOL64=$ac_cv_prog_OTOOL64
12805if test -n "$OTOOL64"; then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12807$as_echo "$OTOOL64" >&6; }
12808else
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810$as_echo "no" >&6; }
12811fi
12812
12813
12814fi
12815if test -z "$ac_cv_prog_OTOOL64"; then
12816 ac_ct_OTOOL64=$OTOOL64
12817 # Extract the first word of "otool64", so it can be a program name with args.
12818set dummy otool64; ac_word=$2
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012821if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012822 $as_echo_n "(cached) " >&6
12823else
12824 if test -n "$ac_ct_OTOOL64"; then
12825 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12826else
12827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828for as_dir in $PATH
12829do
12830 IFS=$as_save_IFS
12831 test -z "$as_dir" && as_dir=.
12832 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012834 ac_cv_prog_ac_ct_OTOOL64="otool64"
12835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836 break 2
12837 fi
12838done
12839 done
12840IFS=$as_save_IFS
12841
12842fi
12843fi
12844ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12845if test -n "$ac_ct_OTOOL64"; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12847$as_echo "$ac_ct_OTOOL64" >&6; }
12848else
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850$as_echo "no" >&6; }
12851fi
12852
12853 if test "x$ac_ct_OTOOL64" = x; then
12854 OTOOL64=":"
12855 else
12856 case $cross_compiling:$ac_tool_warned in
12857yes:)
12858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12860ac_tool_warned=yes ;;
12861esac
12862 OTOOL64=$ac_ct_OTOOL64
12863 fi
12864else
12865 OTOOL64="$ac_cv_prog_OTOOL64"
12866fi
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
12892
12893
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12895$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012896if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012897 $as_echo_n "(cached) " >&6
12898else
12899 lt_cv_apple_cc_single_mod=no
12900 if test -z "${LT_MULTI_MODULE}"; then
12901 # By default we will add the -single_module flag. You can override
12902 # by either setting the environment variable LT_MULTI_MODULE
12903 # non-empty at configure time, or by adding -multi_module to the
12904 # link flags.
12905 rm -rf libconftest.dylib*
12906 echo "int foo(void){return 1;}" > conftest.c
12907 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12908-dynamiclib -Wl,-single_module conftest.c" >&5
12909 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12910 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12911 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012912 # If there is a non-empty error log, and "single_module"
12913 # appears in it, assume the flag caused a linker warning
12914 if test -s conftest.err && $GREP single_module conftest.err; then
12915 cat conftest.err >&5
12916 # Otherwise, if the output was created with a 0 exit code from
12917 # the compiler, it worked.
12918 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012919 lt_cv_apple_cc_single_mod=yes
12920 else
12921 cat conftest.err >&5
12922 fi
12923 rm -rf libconftest.dylib*
12924 rm -f conftest.*
12925 fi
12926fi
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12928$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012929
cristy73bd4a52010-10-05 11:24:23 +000012930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12931$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012932if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012933 $as_echo_n "(cached) " >&6
12934else
12935 lt_cv_ld_exported_symbols_list=no
12936 save_LDFLAGS=$LDFLAGS
12937 echo "_main" > conftest.sym
12938 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940/* end confdefs.h. */
12941
12942int
12943main ()
12944{
12945
12946 ;
12947 return 0;
12948}
12949_ACEOF
12950if ac_fn_c_try_link "$LINENO"; then :
12951 lt_cv_ld_exported_symbols_list=yes
12952else
12953 lt_cv_ld_exported_symbols_list=no
12954fi
12955rm -f core conftest.err conftest.$ac_objext \
12956 conftest$ac_exeext conftest.$ac_ext
12957 LDFLAGS="$save_LDFLAGS"
12958
12959fi
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12961$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012962
cristy0c60a692010-11-04 01:09:47 +000012963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12964$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012965if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012966 $as_echo_n "(cached) " >&6
12967else
12968 lt_cv_ld_force_load=no
12969 cat > conftest.c << _LT_EOF
12970int forced_loaded() { return 2;}
12971_LT_EOF
12972 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12973 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12974 echo "$AR cru libconftest.a conftest.o" >&5
12975 $AR cru libconftest.a conftest.o 2>&5
12976 echo "$RANLIB libconftest.a" >&5
12977 $RANLIB libconftest.a 2>&5
12978 cat > conftest.c << _LT_EOF
12979int main() { return 0;}
12980_LT_EOF
12981 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12982 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12983 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012984 if test -s conftest.err && $GREP force_load conftest.err; then
12985 cat conftest.err >&5
12986 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012987 lt_cv_ld_force_load=yes
12988 else
12989 cat conftest.err >&5
12990 fi
12991 rm -f conftest.err libconftest.a conftest conftest.c
12992 rm -rf conftest.dSYM
12993
12994fi
12995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12996$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012997 case $host_os in
12998 rhapsody* | darwin1.[012])
12999 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13000 darwin1.*)
13001 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13002 darwin*) # darwin 5.x on
13003 # if running on 10.5 or later, the deployment target defaults
13004 # to the OS version, if on x86, and 10.4, the deployment
13005 # target defaults to 10.4. Don't you love it?
13006 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13007 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13008 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13009 10.[012]*)
13010 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13011 10.*)
13012 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13013 esac
13014 ;;
13015 esac
13016 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13017 _lt_dar_single_mod='$single_module'
13018 fi
13019 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13020 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13021 else
13022 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13023 fi
cristy0c60a692010-11-04 01:09:47 +000013024 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013025 _lt_dsymutil='~$DSYMUTIL $lib || :'
13026 else
13027 _lt_dsymutil=
13028 fi
13029 ;;
13030 esac
13031
13032for ac_header in dlfcn.h
13033do :
13034 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13035"
cristyda16f162011-02-19 23:52:17 +000013036if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013037 cat >>confdefs.h <<_ACEOF
13038#define HAVE_DLFCN_H 1
13039_ACEOF
13040
13041fi
13042
13043done
13044
13045
13046
cristy73bd4a52010-10-05 11:24:23 +000013047
cristyda16f162011-02-19 23:52:17 +000013048func_stripname_cnf ()
13049{
13050 case ${2} in
13051 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13052 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13053 esac
13054} # func_stripname_cnf
13055
13056
13057
cristy73bd4a52010-10-05 11:24:23 +000013058
13059
13060# Set options
13061enable_win32_dll=yes
13062
13063case $host in
cristy0c60a692010-11-04 01:09:47 +000013064*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013065 if test -n "$ac_tool_prefix"; then
13066 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13067set dummy ${ac_tool_prefix}as; ac_word=$2
13068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13069$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013070if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013071 $as_echo_n "(cached) " >&6
13072else
13073 if test -n "$AS"; then
13074 ac_cv_prog_AS="$AS" # Let the user override the test.
13075else
13076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077for as_dir in $PATH
13078do
13079 IFS=$as_save_IFS
13080 test -z "$as_dir" && as_dir=.
13081 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013083 ac_cv_prog_AS="${ac_tool_prefix}as"
13084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13085 break 2
13086 fi
13087done
13088 done
13089IFS=$as_save_IFS
13090
13091fi
13092fi
13093AS=$ac_cv_prog_AS
13094if test -n "$AS"; then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13096$as_echo "$AS" >&6; }
13097else
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099$as_echo "no" >&6; }
13100fi
13101
13102
13103fi
13104if test -z "$ac_cv_prog_AS"; then
13105 ac_ct_AS=$AS
13106 # Extract the first word of "as", so it can be a program name with args.
13107set dummy as; ac_word=$2
13108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13109$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013110if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013111 $as_echo_n "(cached) " >&6
13112else
13113 if test -n "$ac_ct_AS"; then
13114 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13115else
13116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117for as_dir in $PATH
13118do
13119 IFS=$as_save_IFS
13120 test -z "$as_dir" && as_dir=.
13121 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013123 ac_cv_prog_ac_ct_AS="as"
13124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13125 break 2
13126 fi
13127done
13128 done
13129IFS=$as_save_IFS
13130
13131fi
13132fi
13133ac_ct_AS=$ac_cv_prog_ac_ct_AS
13134if test -n "$ac_ct_AS"; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13136$as_echo "$ac_ct_AS" >&6; }
13137else
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13139$as_echo "no" >&6; }
13140fi
13141
13142 if test "x$ac_ct_AS" = x; then
13143 AS="false"
13144 else
13145 case $cross_compiling:$ac_tool_warned in
13146yes:)
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13149ac_tool_warned=yes ;;
13150esac
13151 AS=$ac_ct_AS
13152 fi
13153else
13154 AS="$ac_cv_prog_AS"
13155fi
13156
13157 if test -n "$ac_tool_prefix"; then
13158 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13159set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013162if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013163 $as_echo_n "(cached) " >&6
13164else
13165 if test -n "$DLLTOOL"; then
13166 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13167else
13168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169for as_dir in $PATH
13170do
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013175 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13177 break 2
13178 fi
13179done
13180 done
13181IFS=$as_save_IFS
13182
13183fi
13184fi
13185DLLTOOL=$ac_cv_prog_DLLTOOL
13186if test -n "$DLLTOOL"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13188$as_echo "$DLLTOOL" >&6; }
13189else
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191$as_echo "no" >&6; }
13192fi
13193
13194
13195fi
13196if test -z "$ac_cv_prog_DLLTOOL"; then
13197 ac_ct_DLLTOOL=$DLLTOOL
13198 # Extract the first word of "dlltool", so it can be a program name with args.
13199set dummy dlltool; ac_word=$2
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013202if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013203 $as_echo_n "(cached) " >&6
13204else
13205 if test -n "$ac_ct_DLLTOOL"; then
13206 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13207else
13208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209for as_dir in $PATH
13210do
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013215 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13217 break 2
13218 fi
13219done
13220 done
13221IFS=$as_save_IFS
13222
13223fi
13224fi
13225ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13226if test -n "$ac_ct_DLLTOOL"; then
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13228$as_echo "$ac_ct_DLLTOOL" >&6; }
13229else
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231$as_echo "no" >&6; }
13232fi
13233
13234 if test "x$ac_ct_DLLTOOL" = x; then
13235 DLLTOOL="false"
13236 else
13237 case $cross_compiling:$ac_tool_warned in
13238yes:)
13239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13241ac_tool_warned=yes ;;
13242esac
13243 DLLTOOL=$ac_ct_DLLTOOL
13244 fi
13245else
13246 DLLTOOL="$ac_cv_prog_DLLTOOL"
13247fi
13248
13249 if test -n "$ac_tool_prefix"; then
13250 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13251set dummy ${ac_tool_prefix}objdump; ac_word=$2
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013254if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013255 $as_echo_n "(cached) " >&6
13256else
13257 if test -n "$OBJDUMP"; then
13258 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13259else
13260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261for as_dir in $PATH
13262do
13263 IFS=$as_save_IFS
13264 test -z "$as_dir" && as_dir=.
13265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013267 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13269 break 2
13270 fi
13271done
13272 done
13273IFS=$as_save_IFS
13274
13275fi
13276fi
13277OBJDUMP=$ac_cv_prog_OBJDUMP
13278if test -n "$OBJDUMP"; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13280$as_echo "$OBJDUMP" >&6; }
13281else
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283$as_echo "no" >&6; }
13284fi
13285
13286
13287fi
13288if test -z "$ac_cv_prog_OBJDUMP"; then
13289 ac_ct_OBJDUMP=$OBJDUMP
13290 # Extract the first word of "objdump", so it can be a program name with args.
13291set dummy objdump; ac_word=$2
13292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013294if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013295 $as_echo_n "(cached) " >&6
13296else
13297 if test -n "$ac_ct_OBJDUMP"; then
13298 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13299else
13300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13301for as_dir in $PATH
13302do
13303 IFS=$as_save_IFS
13304 test -z "$as_dir" && as_dir=.
13305 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013307 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13309 break 2
13310 fi
13311done
13312 done
13313IFS=$as_save_IFS
13314
13315fi
13316fi
13317ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13318if test -n "$ac_ct_OBJDUMP"; then
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13320$as_echo "$ac_ct_OBJDUMP" >&6; }
13321else
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323$as_echo "no" >&6; }
13324fi
13325
13326 if test "x$ac_ct_OBJDUMP" = x; then
13327 OBJDUMP="false"
13328 else
13329 case $cross_compiling:$ac_tool_warned in
13330yes:)
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13333ac_tool_warned=yes ;;
13334esac
13335 OBJDUMP=$ac_ct_OBJDUMP
13336 fi
13337else
13338 OBJDUMP="$ac_cv_prog_OBJDUMP"
13339fi
13340
13341 ;;
13342esac
13343
13344test -z "$AS" && AS=as
13345
13346
13347
13348
13349
13350test -z "$DLLTOOL" && DLLTOOL=dlltool
13351
13352
13353
13354
13355
13356test -z "$OBJDUMP" && OBJDUMP=objdump
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366 # Check whether --enable-shared was given.
13367if test "${enable_shared+set}" = set; then :
13368 enableval=$enable_shared; p=${PACKAGE-default}
13369 case $enableval in
13370 yes) enable_shared=yes ;;
13371 no) enable_shared=no ;;
13372 *)
13373 enable_shared=no
13374 # Look at the argument we got. We use all the common list separators.
13375 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13376 for pkg in $enableval; do
13377 IFS="$lt_save_ifs"
13378 if test "X$pkg" = "X$p"; then
13379 enable_shared=yes
13380 fi
13381 done
13382 IFS="$lt_save_ifs"
13383 ;;
13384 esac
13385else
13386 enable_shared=yes
13387fi
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397 # Check whether --enable-static was given.
13398if test "${enable_static+set}" = set; then :
13399 enableval=$enable_static; p=${PACKAGE-default}
13400 case $enableval in
13401 yes) enable_static=yes ;;
13402 no) enable_static=no ;;
13403 *)
13404 enable_static=no
13405 # Look at the argument we got. We use all the common list separators.
13406 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13407 for pkg in $enableval; do
13408 IFS="$lt_save_ifs"
13409 if test "X$pkg" = "X$p"; then
13410 enable_static=yes
13411 fi
13412 done
13413 IFS="$lt_save_ifs"
13414 ;;
13415 esac
13416else
13417 enable_static=yes
13418fi
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429# Check whether --with-pic was given.
13430if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013431 withval=$with_pic; lt_p=${PACKAGE-default}
13432 case $withval in
13433 yes|no) pic_mode=$withval ;;
13434 *)
13435 pic_mode=default
13436 # Look at the argument we got. We use all the common list separators.
13437 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13438 for lt_pkg in $withval; do
13439 IFS="$lt_save_ifs"
13440 if test "X$lt_pkg" = "X$lt_p"; then
13441 pic_mode=yes
13442 fi
13443 done
13444 IFS="$lt_save_ifs"
13445 ;;
13446 esac
cristy73bd4a52010-10-05 11:24:23 +000013447else
13448 pic_mode=default
13449fi
13450
13451
13452test -z "$pic_mode" && pic_mode=default
13453
13454
13455
13456
13457
13458
13459
13460 # Check whether --enable-fast-install was given.
13461if test "${enable_fast_install+set}" = set; then :
13462 enableval=$enable_fast_install; p=${PACKAGE-default}
13463 case $enableval in
13464 yes) enable_fast_install=yes ;;
13465 no) enable_fast_install=no ;;
13466 *)
13467 enable_fast_install=no
13468 # Look at the argument we got. We use all the common list separators.
13469 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13470 for pkg in $enableval; do
13471 IFS="$lt_save_ifs"
13472 if test "X$pkg" = "X$p"; then
13473 enable_fast_install=yes
13474 fi
13475 done
13476 IFS="$lt_save_ifs"
13477 ;;
13478 esac
13479else
13480 enable_fast_install=yes
13481fi
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493# This can be used to rebuild libtool when needed
13494LIBTOOL_DEPS="$ltmain"
13495
13496# Always use our own libtool.
13497LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
cristy0c60a692010-11-04 01:09:47 +000013523
cristy99bd5232011-12-07 14:38:20 +000013524
13525
13526
13527
cristy73bd4a52010-10-05 11:24:23 +000013528test -z "$LN_S" && LN_S="ln -s"
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543if test -n "${ZSH_VERSION+set}" ; then
13544 setopt NO_GLOB_SUBST
13545fi
13546
13547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13548$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013549if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013550 $as_echo_n "(cached) " >&6
13551else
13552 rm -f .libs 2>/dev/null
13553mkdir .libs 2>/dev/null
13554if test -d .libs; then
13555 lt_cv_objdir=.libs
13556else
13557 # MS-DOS does not allow filenames that begin with a dot.
13558 lt_cv_objdir=_libs
13559fi
13560rmdir .libs 2>/dev/null
13561fi
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13563$as_echo "$lt_cv_objdir" >&6; }
13564objdir=$lt_cv_objdir
13565
13566
13567
13568
13569
13570cat >>confdefs.h <<_ACEOF
13571#define LT_OBJDIR "$lt_cv_objdir/"
13572_ACEOF
13573
13574
13575
13576
cristy73bd4a52010-10-05 11:24:23 +000013577case $host_os in
13578aix3*)
13579 # AIX sometimes has problems with the GCC collect2 program. For some
13580 # reason, if we set the COLLECT_NAMES environment variable, the problems
13581 # vanish in a puff of smoke.
13582 if test "X${COLLECT_NAMES+set}" != Xset; then
13583 COLLECT_NAMES=
13584 export COLLECT_NAMES
13585 fi
13586 ;;
13587esac
13588
cristy73bd4a52010-10-05 11:24:23 +000013589# Global variables:
13590ofile=libtool
13591can_build_shared=yes
13592
13593# All known linkers require a `.a' archive for static linking (except MSVC,
13594# which needs '.lib').
13595libext=a
13596
13597with_gnu_ld="$lt_cv_prog_gnu_ld"
13598
13599old_CC="$CC"
13600old_CFLAGS="$CFLAGS"
13601
13602# Set sane defaults for various variables
13603test -z "$CC" && CC=cc
13604test -z "$LTCC" && LTCC=$CC
13605test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13606test -z "$LD" && LD=ld
13607test -z "$ac_objext" && ac_objext=o
13608
13609for cc_temp in $compiler""; do
13610 case $cc_temp in
13611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13613 \-*) ;;
13614 *) break;;
13615 esac
13616done
cristy0c60a692010-11-04 01:09:47 +000013617cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013618
13619
13620# Only perform the check for file, if the check method requires it
13621test -z "$MAGIC_CMD" && MAGIC_CMD=file
13622case $deplibs_check_method in
13623file_magic*)
13624 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13626$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013627if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013628 $as_echo_n "(cached) " >&6
13629else
13630 case $MAGIC_CMD in
13631[\\/*] | ?:[\\/]*)
13632 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13633 ;;
13634*)
13635 lt_save_MAGIC_CMD="$MAGIC_CMD"
13636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13637 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13638 for ac_dir in $ac_dummy; do
13639 IFS="$lt_save_ifs"
13640 test -z "$ac_dir" && ac_dir=.
13641 if test -f $ac_dir/${ac_tool_prefix}file; then
13642 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13643 if test -n "$file_magic_test_file"; then
13644 case $deplibs_check_method in
13645 "file_magic "*)
13646 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13648 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13649 $EGREP "$file_magic_regex" > /dev/null; then
13650 :
13651 else
13652 cat <<_LT_EOF 1>&2
13653
13654*** Warning: the command libtool uses to detect shared libraries,
13655*** $file_magic_cmd, produces output that libtool cannot recognize.
13656*** The result is that libtool may fail to recognize shared libraries
13657*** as such. This will affect the creation of libtool libraries that
13658*** depend on shared libraries, but programs linked with such libtool
13659*** libraries will work regardless of this problem. Nevertheless, you
13660*** may want to report the problem to your system manager and/or to
13661*** bug-libtool@gnu.org
13662
13663_LT_EOF
13664 fi ;;
13665 esac
13666 fi
13667 break
13668 fi
13669 done
13670 IFS="$lt_save_ifs"
13671 MAGIC_CMD="$lt_save_MAGIC_CMD"
13672 ;;
13673esac
13674fi
13675
13676MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13677if test -n "$MAGIC_CMD"; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13679$as_echo "$MAGIC_CMD" >&6; }
13680else
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682$as_echo "no" >&6; }
13683fi
13684
13685
13686
13687
13688
13689if test -z "$lt_cv_path_MAGIC_CMD"; then
13690 if test -n "$ac_tool_prefix"; then
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13692$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013693if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013694 $as_echo_n "(cached) " >&6
13695else
13696 case $MAGIC_CMD in
13697[\\/*] | ?:[\\/]*)
13698 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13699 ;;
13700*)
13701 lt_save_MAGIC_CMD="$MAGIC_CMD"
13702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13703 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13704 for ac_dir in $ac_dummy; do
13705 IFS="$lt_save_ifs"
13706 test -z "$ac_dir" && ac_dir=.
13707 if test -f $ac_dir/file; then
13708 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13709 if test -n "$file_magic_test_file"; then
13710 case $deplibs_check_method in
13711 "file_magic "*)
13712 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13714 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13715 $EGREP "$file_magic_regex" > /dev/null; then
13716 :
13717 else
13718 cat <<_LT_EOF 1>&2
13719
13720*** Warning: the command libtool uses to detect shared libraries,
13721*** $file_magic_cmd, produces output that libtool cannot recognize.
13722*** The result is that libtool may fail to recognize shared libraries
13723*** as such. This will affect the creation of libtool libraries that
13724*** depend on shared libraries, but programs linked with such libtool
13725*** libraries will work regardless of this problem. Nevertheless, you
13726*** may want to report the problem to your system manager and/or to
13727*** bug-libtool@gnu.org
13728
13729_LT_EOF
13730 fi ;;
13731 esac
13732 fi
13733 break
13734 fi
13735 done
13736 IFS="$lt_save_ifs"
13737 MAGIC_CMD="$lt_save_MAGIC_CMD"
13738 ;;
13739esac
13740fi
13741
13742MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13743if test -n "$MAGIC_CMD"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13745$as_echo "$MAGIC_CMD" >&6; }
13746else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748$as_echo "no" >&6; }
13749fi
13750
13751
13752 else
13753 MAGIC_CMD=:
13754 fi
13755fi
13756
13757 fi
13758 ;;
13759esac
13760
13761# Use C for the default configuration in the libtool script
13762
13763lt_save_CC="$CC"
13764ac_ext=c
13765ac_cpp='$CPP $CPPFLAGS'
13766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13768ac_compiler_gnu=$ac_cv_c_compiler_gnu
13769
13770
13771# Source file extension for C test sources.
13772ac_ext=c
13773
13774# Object file extension for compiled C test sources.
13775objext=o
13776objext=$objext
13777
13778# Code to be used in simple compile tests
13779lt_simple_compile_test_code="int some_variable = 0;"
13780
13781# Code to be used in simple link tests
13782lt_simple_link_test_code='int main(){return(0);}'
13783
13784
13785
13786
13787
13788
13789
13790# If no C compiler was specified, use CC.
13791LTCC=${LTCC-"$CC"}
13792
13793# If no C compiler flags were specified, use CFLAGS.
13794LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13795
13796# Allow CC to be a program name with arguments.
13797compiler=$CC
13798
13799# Save the default compiler, since it gets overwritten when the other
13800# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13801compiler_DEFAULT=$CC
13802
13803# save warnings/boilerplate of simple test code
13804ac_outfile=conftest.$ac_objext
13805echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13806eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13807_lt_compiler_boilerplate=`cat conftest.err`
13808$RM conftest*
13809
13810ac_outfile=conftest.$ac_objext
13811echo "$lt_simple_link_test_code" >conftest.$ac_ext
13812eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13813_lt_linker_boilerplate=`cat conftest.err`
13814$RM -r conftest*
13815
13816
13817## CAVEAT EMPTOR:
13818## There is no encapsulation within the following macros, do not change
13819## the running order or otherwise move them around unless you know exactly
13820## what you are doing...
13821if test -n "$compiler"; then
13822
13823lt_prog_compiler_no_builtin_flag=
13824
13825if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013826 case $cc_basename in
13827 nvcc*)
13828 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13829 *)
13830 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13831 esac
cristy73bd4a52010-10-05 11:24:23 +000013832
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13834$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013835if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013836 $as_echo_n "(cached) " >&6
13837else
13838 lt_cv_prog_compiler_rtti_exceptions=no
13839 ac_outfile=conftest.$ac_objext
13840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13841 lt_compiler_flag="-fno-rtti -fno-exceptions"
13842 # Insert the option either (1) after the last *FLAGS variable, or
13843 # (2) before a word containing "conftest.", or (3) at the end.
13844 # Note that $ac_compile itself does not contain backslashes and begins
13845 # with a dollar sign (not a hyphen), so the echo should work correctly.
13846 # The option is referenced via a variable to avoid confusing sed.
13847 lt_compile=`echo "$ac_compile" | $SED \
13848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13850 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013852 (eval "$lt_compile" 2>conftest.err)
13853 ac_status=$?
13854 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013856 if (exit $ac_status) && test -s "$ac_outfile"; then
13857 # The compiler can only warn and ignore the option if not recognized
13858 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013859 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13861 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13862 lt_cv_prog_compiler_rtti_exceptions=yes
13863 fi
13864 fi
13865 $RM conftest*
13866
13867fi
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13869$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13870
13871if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13872 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13873else
13874 :
13875fi
13876
13877fi
13878
13879
13880
13881
13882
13883
13884 lt_prog_compiler_wl=
13885lt_prog_compiler_pic=
13886lt_prog_compiler_static=
13887
cristy73bd4a52010-10-05 11:24:23 +000013888
13889 if test "$GCC" = yes; then
13890 lt_prog_compiler_wl='-Wl,'
13891 lt_prog_compiler_static='-static'
13892
13893 case $host_os in
13894 aix*)
13895 # All AIX code is PIC.
13896 if test "$host_cpu" = ia64; then
13897 # AIX 5 now supports IA64 processor
13898 lt_prog_compiler_static='-Bstatic'
13899 fi
13900 ;;
13901
13902 amigaos*)
13903 case $host_cpu in
13904 powerpc)
13905 # see comment about AmigaOS4 .so support
13906 lt_prog_compiler_pic='-fPIC'
13907 ;;
13908 m68k)
13909 # FIXME: we need at least 68020 code to build shared libraries, but
13910 # adding the `-m68020' flag to GCC prevents building anything better,
13911 # like `-m68040'.
13912 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13913 ;;
13914 esac
13915 ;;
13916
13917 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13918 # PIC is the default for these OSes.
13919 ;;
13920
13921 mingw* | cygwin* | pw32* | os2* | cegcc*)
13922 # This hack is so that the source file can tell whether it is being
13923 # built for inclusion in a dll (and should export symbols for example).
13924 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13925 # (--disable-auto-import) libraries
13926 lt_prog_compiler_pic='-DDLL_EXPORT'
13927 ;;
13928
13929 darwin* | rhapsody*)
13930 # PIC is the default on this platform
13931 # Common symbols not allowed in MH_DYLIB files
13932 lt_prog_compiler_pic='-fno-common'
13933 ;;
13934
cristy0c60a692010-11-04 01:09:47 +000013935 haiku*)
13936 # PIC is the default for Haiku.
13937 # The "-static" flag exists, but is broken.
13938 lt_prog_compiler_static=
13939 ;;
13940
cristy73bd4a52010-10-05 11:24:23 +000013941 hpux*)
13942 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13943 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13944 # sets the default TLS model and affects inlining.
13945 case $host_cpu in
13946 hppa*64*)
13947 # +Z the default
13948 ;;
13949 *)
13950 lt_prog_compiler_pic='-fPIC'
13951 ;;
13952 esac
13953 ;;
13954
13955 interix[3-9]*)
13956 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13957 # Instead, we relocate shared libraries at runtime.
13958 ;;
13959
13960 msdosdjgpp*)
13961 # Just because we use GCC doesn't mean we suddenly get shared libraries
13962 # on systems that don't support them.
13963 lt_prog_compiler_can_build_shared=no
13964 enable_shared=no
13965 ;;
13966
13967 *nto* | *qnx*)
13968 # QNX uses GNU C++, but need to define -shared option too, otherwise
13969 # it will coredump.
13970 lt_prog_compiler_pic='-fPIC -shared'
13971 ;;
13972
13973 sysv4*MP*)
13974 if test -d /usr/nec; then
13975 lt_prog_compiler_pic=-Kconform_pic
13976 fi
13977 ;;
13978
13979 *)
13980 lt_prog_compiler_pic='-fPIC'
13981 ;;
13982 esac
cristy0c60a692010-11-04 01:09:47 +000013983
13984 case $cc_basename in
13985 nvcc*) # Cuda Compiler Driver 2.2
13986 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013987 if test -n "$lt_prog_compiler_pic"; then
13988 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13989 fi
cristy0c60a692010-11-04 01:09:47 +000013990 ;;
13991 esac
cristy73bd4a52010-10-05 11:24:23 +000013992 else
13993 # PORTME Check for flag to pass linker flags through the system compiler.
13994 case $host_os in
13995 aix*)
13996 lt_prog_compiler_wl='-Wl,'
13997 if test "$host_cpu" = ia64; then
13998 # AIX 5 now supports IA64 processor
13999 lt_prog_compiler_static='-Bstatic'
14000 else
14001 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14002 fi
14003 ;;
14004
14005 mingw* | cygwin* | pw32* | os2* | cegcc*)
14006 # This hack is so that the source file can tell whether it is being
14007 # built for inclusion in a dll (and should export symbols for example).
14008 lt_prog_compiler_pic='-DDLL_EXPORT'
14009 ;;
14010
14011 hpux9* | hpux10* | hpux11*)
14012 lt_prog_compiler_wl='-Wl,'
14013 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14014 # not for PA HP-UX.
14015 case $host_cpu in
14016 hppa*64*|ia64*)
14017 # +Z the default
14018 ;;
14019 *)
14020 lt_prog_compiler_pic='+Z'
14021 ;;
14022 esac
14023 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14024 lt_prog_compiler_static='${wl}-a ${wl}archive'
14025 ;;
14026
14027 irix5* | irix6* | nonstopux*)
14028 lt_prog_compiler_wl='-Wl,'
14029 # PIC (with -KPIC) is the default.
14030 lt_prog_compiler_static='-non_shared'
14031 ;;
14032
cristy0c60a692010-11-04 01:09:47 +000014033 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014034 case $cc_basename in
14035 # old Intel for x86_64 which still supported -KPIC.
14036 ecc*)
14037 lt_prog_compiler_wl='-Wl,'
14038 lt_prog_compiler_pic='-KPIC'
14039 lt_prog_compiler_static='-static'
14040 ;;
14041 # icc used to be incompatible with GCC.
14042 # ICC 10 doesn't accept -KPIC any more.
14043 icc* | ifort*)
14044 lt_prog_compiler_wl='-Wl,'
14045 lt_prog_compiler_pic='-fPIC'
14046 lt_prog_compiler_static='-static'
14047 ;;
14048 # Lahey Fortran 8.1.
14049 lf95*)
14050 lt_prog_compiler_wl='-Wl,'
14051 lt_prog_compiler_pic='--shared'
14052 lt_prog_compiler_static='--static'
14053 ;;
cristyda16f162011-02-19 23:52:17 +000014054 nagfor*)
14055 # NAG Fortran compiler
14056 lt_prog_compiler_wl='-Wl,-Wl,,'
14057 lt_prog_compiler_pic='-PIC'
14058 lt_prog_compiler_static='-Bstatic'
14059 ;;
cristy0c60a692010-11-04 01:09:47 +000014060 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014061 # Portland Group compilers (*not* the Pentium gcc compiler,
14062 # which looks to be a dead project)
14063 lt_prog_compiler_wl='-Wl,'
14064 lt_prog_compiler_pic='-fpic'
14065 lt_prog_compiler_static='-Bstatic'
14066 ;;
14067 ccc*)
14068 lt_prog_compiler_wl='-Wl,'
14069 # All Alpha code is PIC.
14070 lt_prog_compiler_static='-non_shared'
14071 ;;
cristy0c60a692010-11-04 01:09:47 +000014072 xl* | bgxl* | bgf* | mpixl*)
14073 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014074 lt_prog_compiler_wl='-Wl,'
14075 lt_prog_compiler_pic='-qpic'
14076 lt_prog_compiler_static='-qstaticlink'
14077 ;;
14078 *)
14079 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014080 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014081 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14082 lt_prog_compiler_pic='-KPIC'
14083 lt_prog_compiler_static='-Bstatic'
14084 lt_prog_compiler_wl=''
14085 ;;
cristy99bd5232011-12-07 14:38:20 +000014086 *Sun\ F* | *Sun*Fortran*)
14087 lt_prog_compiler_pic='-KPIC'
14088 lt_prog_compiler_static='-Bstatic'
14089 lt_prog_compiler_wl='-Qoption ld '
14090 ;;
cristy73bd4a52010-10-05 11:24:23 +000014091 *Sun\ C*)
14092 # Sun C 5.9
14093 lt_prog_compiler_pic='-KPIC'
14094 lt_prog_compiler_static='-Bstatic'
14095 lt_prog_compiler_wl='-Wl,'
14096 ;;
cristy99bd5232011-12-07 14:38:20 +000014097 *Intel*\ [CF]*Compiler*)
14098 lt_prog_compiler_wl='-Wl,'
14099 lt_prog_compiler_pic='-fPIC'
14100 lt_prog_compiler_static='-static'
14101 ;;
14102 *Portland\ Group*)
14103 lt_prog_compiler_wl='-Wl,'
14104 lt_prog_compiler_pic='-fpic'
14105 lt_prog_compiler_static='-Bstatic'
14106 ;;
cristy73bd4a52010-10-05 11:24:23 +000014107 esac
14108 ;;
14109 esac
14110 ;;
14111
14112 newsos6)
14113 lt_prog_compiler_pic='-KPIC'
14114 lt_prog_compiler_static='-Bstatic'
14115 ;;
14116
14117 *nto* | *qnx*)
14118 # QNX uses GNU C++, but need to define -shared option too, otherwise
14119 # it will coredump.
14120 lt_prog_compiler_pic='-fPIC -shared'
14121 ;;
14122
14123 osf3* | osf4* | osf5*)
14124 lt_prog_compiler_wl='-Wl,'
14125 # All OSF/1 code is PIC.
14126 lt_prog_compiler_static='-non_shared'
14127 ;;
14128
14129 rdos*)
14130 lt_prog_compiler_static='-non_shared'
14131 ;;
14132
14133 solaris*)
14134 lt_prog_compiler_pic='-KPIC'
14135 lt_prog_compiler_static='-Bstatic'
14136 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014137 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014138 lt_prog_compiler_wl='-Qoption ld ';;
14139 *)
14140 lt_prog_compiler_wl='-Wl,';;
14141 esac
14142 ;;
14143
14144 sunos4*)
14145 lt_prog_compiler_wl='-Qoption ld '
14146 lt_prog_compiler_pic='-PIC'
14147 lt_prog_compiler_static='-Bstatic'
14148 ;;
14149
14150 sysv4 | sysv4.2uw2* | sysv4.3*)
14151 lt_prog_compiler_wl='-Wl,'
14152 lt_prog_compiler_pic='-KPIC'
14153 lt_prog_compiler_static='-Bstatic'
14154 ;;
14155
14156 sysv4*MP*)
14157 if test -d /usr/nec ;then
14158 lt_prog_compiler_pic='-Kconform_pic'
14159 lt_prog_compiler_static='-Bstatic'
14160 fi
14161 ;;
14162
14163 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14164 lt_prog_compiler_wl='-Wl,'
14165 lt_prog_compiler_pic='-KPIC'
14166 lt_prog_compiler_static='-Bstatic'
14167 ;;
14168
14169 unicos*)
14170 lt_prog_compiler_wl='-Wl,'
14171 lt_prog_compiler_can_build_shared=no
14172 ;;
14173
14174 uts4*)
14175 lt_prog_compiler_pic='-pic'
14176 lt_prog_compiler_static='-Bstatic'
14177 ;;
14178
14179 *)
14180 lt_prog_compiler_can_build_shared=no
14181 ;;
14182 esac
14183 fi
14184
14185case $host_os in
14186 # For platforms which do not support PIC, -DPIC is meaningless:
14187 *djgpp*)
14188 lt_prog_compiler_pic=
14189 ;;
14190 *)
14191 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14192 ;;
14193esac
cristy73bd4a52010-10-05 11:24:23 +000014194
cristyda16f162011-02-19 23:52:17 +000014195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14196$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14197if ${lt_cv_prog_compiler_pic+:} false; then :
14198 $as_echo_n "(cached) " >&6
14199else
14200 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14201fi
14202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14203$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14204lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014205
14206#
14207# Check to make sure the PIC flag actually works.
14208#
14209if test -n "$lt_prog_compiler_pic"; then
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14211$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014212if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014213 $as_echo_n "(cached) " >&6
14214else
14215 lt_cv_prog_compiler_pic_works=no
14216 ac_outfile=conftest.$ac_objext
14217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14218 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14219 # Insert the option either (1) after the last *FLAGS variable, or
14220 # (2) before a word containing "conftest.", or (3) at the end.
14221 # Note that $ac_compile itself does not contain backslashes and begins
14222 # with a dollar sign (not a hyphen), so the echo should work correctly.
14223 # The option is referenced via a variable to avoid confusing sed.
14224 lt_compile=`echo "$ac_compile" | $SED \
14225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14227 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014228 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014229 (eval "$lt_compile" 2>conftest.err)
14230 ac_status=$?
14231 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014233 if (exit $ac_status) && test -s "$ac_outfile"; then
14234 # The compiler can only warn and ignore the option if not recognized
14235 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14238 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14239 lt_cv_prog_compiler_pic_works=yes
14240 fi
14241 fi
14242 $RM conftest*
14243
14244fi
14245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14246$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14247
14248if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14249 case $lt_prog_compiler_pic in
14250 "" | " "*) ;;
14251 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14252 esac
14253else
14254 lt_prog_compiler_pic=
14255 lt_prog_compiler_can_build_shared=no
14256fi
14257
14258fi
14259
14260
14261
14262
14263
14264
cristyda16f162011-02-19 23:52:17 +000014265
14266
14267
14268
14269
cristy73bd4a52010-10-05 11:24:23 +000014270#
14271# Check to make sure the static flag actually works.
14272#
14273wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14275$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014276if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014277 $as_echo_n "(cached) " >&6
14278else
14279 lt_cv_prog_compiler_static_works=no
14280 save_LDFLAGS="$LDFLAGS"
14281 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14282 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14283 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14284 # The linker can only warn and ignore the option if not recognized
14285 # So say no if there are warnings
14286 if test -s conftest.err; then
14287 # Append any errors to the config.log.
14288 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014289 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14291 if diff conftest.exp conftest.er2 >/dev/null; then
14292 lt_cv_prog_compiler_static_works=yes
14293 fi
14294 else
14295 lt_cv_prog_compiler_static_works=yes
14296 fi
14297 fi
14298 $RM -r conftest*
14299 LDFLAGS="$save_LDFLAGS"
14300
14301fi
14302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14303$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14304
14305if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14306 :
14307else
14308 lt_prog_compiler_static=
14309fi
14310
14311
14312
14313
14314
14315
14316
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14318$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014319if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014320 $as_echo_n "(cached) " >&6
14321else
14322 lt_cv_prog_compiler_c_o=no
14323 $RM -r conftest 2>/dev/null
14324 mkdir conftest
14325 cd conftest
14326 mkdir out
14327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14328
14329 lt_compiler_flag="-o out/conftest2.$ac_objext"
14330 # Insert the option either (1) after the last *FLAGS variable, or
14331 # (2) before a word containing "conftest.", or (3) at the end.
14332 # Note that $ac_compile itself does not contain backslashes and begins
14333 # with a dollar sign (not a hyphen), so the echo should work correctly.
14334 lt_compile=`echo "$ac_compile" | $SED \
14335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14337 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014338 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014339 (eval "$lt_compile" 2>out/conftest.err)
14340 ac_status=$?
14341 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014343 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14344 then
14345 # The compiler can only warn and ignore the option if not recognized
14346 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014347 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014348 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14349 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14350 lt_cv_prog_compiler_c_o=yes
14351 fi
14352 fi
14353 chmod u+w . 2>&5
14354 $RM conftest*
14355 # SGI C++ compiler will create directory out/ii_files/ for
14356 # template instantiation
14357 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14358 $RM out/* && rmdir out
14359 cd ..
14360 $RM -r conftest
14361 $RM conftest*
14362
14363fi
14364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14365$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14366
14367
14368
14369
14370
14371
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14373$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014374if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014375 $as_echo_n "(cached) " >&6
14376else
14377 lt_cv_prog_compiler_c_o=no
14378 $RM -r conftest 2>/dev/null
14379 mkdir conftest
14380 cd conftest
14381 mkdir out
14382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14383
14384 lt_compiler_flag="-o out/conftest2.$ac_objext"
14385 # Insert the option either (1) after the last *FLAGS variable, or
14386 # (2) before a word containing "conftest.", or (3) at the end.
14387 # Note that $ac_compile itself does not contain backslashes and begins
14388 # with a dollar sign (not a hyphen), so the echo should work correctly.
14389 lt_compile=`echo "$ac_compile" | $SED \
14390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14392 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014394 (eval "$lt_compile" 2>out/conftest.err)
14395 ac_status=$?
14396 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014398 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14399 then
14400 # The compiler can only warn and ignore the option if not recognized
14401 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14405 lt_cv_prog_compiler_c_o=yes
14406 fi
14407 fi
14408 chmod u+w . 2>&5
14409 $RM conftest*
14410 # SGI C++ compiler will create directory out/ii_files/ for
14411 # template instantiation
14412 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14413 $RM out/* && rmdir out
14414 cd ..
14415 $RM -r conftest
14416 $RM conftest*
14417
14418fi
14419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14420$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14421
14422
14423
14424
14425hard_links="nottested"
14426if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14427 # do not overwrite the value of need_locks provided by the user
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14429$as_echo_n "checking if we can lock with hard links... " >&6; }
14430 hard_links=yes
14431 $RM conftest*
14432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14433 touch conftest.a
14434 ln conftest.a conftest.b 2>&5 || hard_links=no
14435 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14437$as_echo "$hard_links" >&6; }
14438 if test "$hard_links" = no; then
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14440$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14441 need_locks=warn
14442 fi
14443else
14444 need_locks=no
14445fi
14446
14447
14448
14449
14450
14451
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14453$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14454
14455 runpath_var=
14456 allow_undefined_flag=
14457 always_export_symbols=no
14458 archive_cmds=
14459 archive_expsym_cmds=
14460 compiler_needs_object=no
14461 enable_shared_with_static_runtimes=no
14462 export_dynamic_flag_spec=
14463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14464 hardcode_automatic=no
14465 hardcode_direct=no
14466 hardcode_direct_absolute=no
14467 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014468 hardcode_libdir_separator=
14469 hardcode_minus_L=no
14470 hardcode_shlibpath_var=unsupported
14471 inherit_rpath=no
14472 link_all_deplibs=unknown
14473 module_cmds=
14474 module_expsym_cmds=
14475 old_archive_from_new_cmds=
14476 old_archive_from_expsyms_cmds=
14477 thread_safe_flag_spec=
14478 whole_archive_flag_spec=
14479 # include_expsyms should be a list of space-separated symbols to be *always*
14480 # included in the symbol list
14481 include_expsyms=
14482 # exclude_expsyms can be an extended regexp of symbols to exclude
14483 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14484 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14485 # as well as any symbol that contains `d'.
14486 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14487 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14488 # platforms (ab)use it in PIC code, but their linkers get confused if
14489 # the symbol is explicitly referenced. Since portable code cannot
14490 # rely on this symbol name, it's probably fine to never include it in
14491 # preloaded symbol tables.
14492 # Exclude shared library initialization/finalization symbols.
14493 extract_expsyms_cmds=
14494
14495 case $host_os in
14496 cygwin* | mingw* | pw32* | cegcc*)
14497 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14498 # When not using gcc, we currently assume that we are using
14499 # Microsoft Visual C++.
14500 if test "$GCC" != yes; then
14501 with_gnu_ld=no
14502 fi
14503 ;;
14504 interix*)
14505 # we just hope/assume this is gcc and not c89 (= MSVC++)
14506 with_gnu_ld=yes
14507 ;;
14508 openbsd*)
14509 with_gnu_ld=no
14510 ;;
14511 esac
14512
14513 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014514
14515 # On some targets, GNU ld is compatible enough with the native linker
14516 # that we're better off using the native interface for both.
14517 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014518 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014519 case $host_os in
14520 aix*)
14521 # The AIX port of GNU ld has always aspired to compatibility
14522 # with the native linker. However, as the warning in the GNU ld
14523 # block says, versions before 2.19.5* couldn't really create working
14524 # shared libraries, regardless of the interface used.
14525 case `$LD -v 2>&1` in
14526 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14527 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14528 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14529 *)
14530 lt_use_gnu_ld_interface=yes
14531 ;;
14532 esac
14533 ;;
14534 *)
14535 lt_use_gnu_ld_interface=yes
14536 ;;
14537 esac
14538 fi
14539
14540 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014541 # If archive_cmds runs LD, not CC, wlarc should be empty
14542 wlarc='${wl}'
14543
14544 # Set some defaults for GNU ld with shared library support. These
14545 # are reset later if shared libraries are not supported. Putting them
14546 # here allows them to be overridden if necessary.
14547 runpath_var=LD_RUN_PATH
14548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14549 export_dynamic_flag_spec='${wl}--export-dynamic'
14550 # ancient GNU ld didn't support --whole-archive et. al.
14551 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14552 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14553 else
14554 whole_archive_flag_spec=
14555 fi
14556 supports_anon_versioning=no
14557 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014558 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014559 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14560 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14561 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14562 *\ 2.11.*) ;; # other 2.11 versions
14563 *) supports_anon_versioning=yes ;;
14564 esac
14565
14566 # See if GNU ld supports shared libraries.
14567 case $host_os in
14568 aix[3-9]*)
14569 # On AIX/PPC, the GNU linker is very broken
14570 if test "$host_cpu" != ia64; then
14571 ld_shlibs=no
14572 cat <<_LT_EOF 1>&2
14573
cristy0c60a692010-11-04 01:09:47 +000014574*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014575*** to be unable to reliably create shared libraries on AIX.
14576*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014577*** really care for shared libraries, you may want to install binutils
14578*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14579*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014580
14581_LT_EOF
14582 fi
14583 ;;
14584
14585 amigaos*)
14586 case $host_cpu in
14587 powerpc)
14588 # see comment about AmigaOS4 .so support
14589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14590 archive_expsym_cmds=''
14591 ;;
14592 m68k)
14593 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)'
14594 hardcode_libdir_flag_spec='-L$libdir'
14595 hardcode_minus_L=yes
14596 ;;
14597 esac
14598 ;;
14599
14600 beos*)
14601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14602 allow_undefined_flag=unsupported
14603 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14604 # support --undefined. This deserves some investigation. FIXME
14605 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14606 else
14607 ld_shlibs=no
14608 fi
14609 ;;
14610
14611 cygwin* | mingw* | pw32* | cegcc*)
14612 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14613 # as there is no search path for DLLs.
14614 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014615 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014616 allow_undefined_flag=unsupported
14617 always_export_symbols=no
14618 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014619 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'
14620 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 +000014621
14622 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14624 # If the export-symbols file already is a .def file (1st line
14625 # is EXPORTS), use it as is; otherwise, prepend...
14626 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14627 cp $export_symbols $output_objdir/$soname.def;
14628 else
14629 echo EXPORTS > $output_objdir/$soname.def;
14630 cat $export_symbols >> $output_objdir/$soname.def;
14631 fi~
14632 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14633 else
14634 ld_shlibs=no
14635 fi
14636 ;;
14637
cristy0c60a692010-11-04 01:09:47 +000014638 haiku*)
14639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14640 link_all_deplibs=yes
14641 ;;
14642
cristy73bd4a52010-10-05 11:24:23 +000014643 interix[3-9]*)
14644 hardcode_direct=no
14645 hardcode_shlibpath_var=no
14646 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14647 export_dynamic_flag_spec='${wl}-E'
14648 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14649 # Instead, shared libraries are loaded at an image base (0x10000000 by
14650 # default) and relocated if they conflict, which is a slow very memory
14651 # consuming and fragmenting process. To avoid this, we pick a random,
14652 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14653 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14654 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14655 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'
14656 ;;
14657
cristy0c60a692010-11-04 01:09:47 +000014658 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014659 tmp_diet=no
14660 if test "$host_os" = linux-dietlibc; then
14661 case $cc_basename in
14662 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14663 esac
14664 fi
14665 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14666 && test "$tmp_diet" = no
14667 then
cristyda16f162011-02-19 23:52:17 +000014668 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014669 tmp_sharedflag='-shared'
14670 case $cc_basename,$host_cpu in
14671 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014672 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 +000014673 tmp_addflag=' $pic_flag'
14674 ;;
cristy0c60a692010-11-04 01:09:47 +000014675 pgf77* | pgf90* | pgf95* | pgfortran*)
14676 # Portland Group f77 and f90 compilers
14677 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 +000014678 tmp_addflag=' $pic_flag -Mnomain' ;;
14679 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14680 tmp_addflag=' -i_dynamic' ;;
14681 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14682 tmp_addflag=' -i_dynamic -nofor_main' ;;
14683 ifc* | ifort*) # Intel Fortran compiler
14684 tmp_addflag=' -nofor_main' ;;
14685 lf95*) # Lahey Fortran 8.1
14686 whole_archive_flag_spec=
14687 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014688 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014689 tmp_sharedflag='-qmkshrobj'
14690 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014691 nvcc*) # Cuda Compiler Driver 2.2
14692 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'
14693 compiler_needs_object=yes
14694 ;;
cristy73bd4a52010-10-05 11:24:23 +000014695 esac
14696 case `$CC -V 2>&1 | sed 5q` in
14697 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014698 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 +000014699 compiler_needs_object=yes
14700 tmp_sharedflag='-G' ;;
14701 *Sun\ F*) # Sun Fortran 8.3
14702 tmp_sharedflag='-G' ;;
14703 esac
14704 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14705
14706 if test "x$supports_anon_versioning" = xyes; then
14707 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14708 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14709 echo "local: *; };" >> $output_objdir/$libname.ver~
14710 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14711 fi
14712
14713 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014714 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014715 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14716 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014718 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014719 if test "x$supports_anon_versioning" = xyes; then
14720 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14721 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14722 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014723 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014724 fi
14725 ;;
14726 esac
14727 else
14728 ld_shlibs=no
14729 fi
14730 ;;
14731
14732 netbsd*)
14733 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14734 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14735 wlarc=
14736 else
cristyda16f162011-02-19 23:52:17 +000014737 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14738 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 +000014739 fi
14740 ;;
14741
14742 solaris*)
14743 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14744 ld_shlibs=no
14745 cat <<_LT_EOF 1>&2
14746
14747*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14748*** create shared libraries on Solaris systems. Therefore, libtool
14749*** is disabling shared libraries support. We urge you to upgrade GNU
14750*** binutils to release 2.9.1 or newer. Another option is to modify
14751*** your PATH or compiler configuration so that the native linker is
14752*** used, and then restart.
14753
14754_LT_EOF
14755 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014756 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14757 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 +000014758 else
14759 ld_shlibs=no
14760 fi
14761 ;;
14762
14763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14764 case `$LD -v 2>&1` in
14765 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14766 ld_shlibs=no
14767 cat <<_LT_EOF 1>&2
14768
14769*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14770*** reliably create shared libraries on SCO systems. Therefore, libtool
14771*** is disabling shared libraries support. We urge you to upgrade GNU
14772*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14773*** your PATH or compiler configuration so that the native linker is
14774*** used, and then restart.
14775
14776_LT_EOF
14777 ;;
14778 *)
14779 # For security reasons, it is highly recommended that you always
14780 # use absolute paths for naming shared libraries, and exclude the
14781 # DT_RUNPATH tag from executables and libraries. But doing so
14782 # requires that you compile everything twice, which is a pain.
14783 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14786 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14787 else
14788 ld_shlibs=no
14789 fi
14790 ;;
14791 esac
14792 ;;
14793
14794 sunos4*)
14795 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14796 wlarc=
14797 hardcode_direct=yes
14798 hardcode_shlibpath_var=no
14799 ;;
14800
14801 *)
14802 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014803 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14804 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 +000014805 else
14806 ld_shlibs=no
14807 fi
14808 ;;
14809 esac
14810
14811 if test "$ld_shlibs" = no; then
14812 runpath_var=
14813 hardcode_libdir_flag_spec=
14814 export_dynamic_flag_spec=
14815 whole_archive_flag_spec=
14816 fi
14817 else
14818 # PORTME fill in a description of your system's linker (not GNU ld)
14819 case $host_os in
14820 aix3*)
14821 allow_undefined_flag=unsupported
14822 always_export_symbols=yes
14823 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'
14824 # Note: this linker hardcodes the directories in LIBPATH if there
14825 # are no directories specified by -L.
14826 hardcode_minus_L=yes
14827 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14828 # Neither direct hardcoding nor static linking is supported with a
14829 # broken collect2.
14830 hardcode_direct=unsupported
14831 fi
14832 ;;
14833
14834 aix[4-9]*)
14835 if test "$host_cpu" = ia64; then
14836 # On IA64, the linker does run time linking by default, so we don't
14837 # have to do anything special.
14838 aix_use_runtimelinking=no
14839 exp_sym_flag='-Bexport'
14840 no_entry_flag=""
14841 else
14842 # If we're using GNU nm, then we don't want the "-C" option.
14843 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014844 # Also, AIX nm treats weak defined symbols like other global
14845 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014846 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014847 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 +000014848 else
14849 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'
14850 fi
14851 aix_use_runtimelinking=no
14852
14853 # Test if we are trying to use run time linking or normal
14854 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14855 # need to do runtime linking.
14856 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14857 for ld_flag in $LDFLAGS; do
14858 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14859 aix_use_runtimelinking=yes
14860 break
14861 fi
14862 done
14863 ;;
14864 esac
14865
14866 exp_sym_flag='-bexport'
14867 no_entry_flag='-bnoentry'
14868 fi
14869
14870 # When large executables or shared objects are built, AIX ld can
14871 # have problems creating the table of contents. If linking a library
14872 # or program results in "error TOC overflow" add -mminimal-toc to
14873 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14874 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14875
14876 archive_cmds=''
14877 hardcode_direct=yes
14878 hardcode_direct_absolute=yes
14879 hardcode_libdir_separator=':'
14880 link_all_deplibs=yes
14881 file_list_spec='${wl}-f,'
14882
14883 if test "$GCC" = yes; then
14884 case $host_os in aix4.[012]|aix4.[012].*)
14885 # We only want to do this on AIX 4.2 and lower, the check
14886 # below for broken collect2 doesn't work under 4.3+
14887 collect2name=`${CC} -print-prog-name=collect2`
14888 if test -f "$collect2name" &&
14889 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14890 then
14891 # We have reworked collect2
14892 :
14893 else
14894 # We have old collect2
14895 hardcode_direct=unsupported
14896 # It fails to find uninstalled libraries when the uninstalled
14897 # path is not listed in the libpath. Setting hardcode_minus_L
14898 # to unsupported forces relinking
14899 hardcode_minus_L=yes
14900 hardcode_libdir_flag_spec='-L$libdir'
14901 hardcode_libdir_separator=
14902 fi
14903 ;;
14904 esac
14905 shared_flag='-shared'
14906 if test "$aix_use_runtimelinking" = yes; then
14907 shared_flag="$shared_flag "'${wl}-G'
14908 fi
14909 else
14910 # not using gcc
14911 if test "$host_cpu" = ia64; then
14912 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14913 # chokes on -Wl,-G. The following line is correct:
14914 shared_flag='-G'
14915 else
14916 if test "$aix_use_runtimelinking" = yes; then
14917 shared_flag='${wl}-G'
14918 else
14919 shared_flag='${wl}-bM:SRE'
14920 fi
14921 fi
14922 fi
14923
14924 export_dynamic_flag_spec='${wl}-bexpall'
14925 # It seems that -bexpall does not export symbols beginning with
14926 # underscore (_), so it is better to generate a list of symbols to export.
14927 always_export_symbols=yes
14928 if test "$aix_use_runtimelinking" = yes; then
14929 # Warning - without using the other runtime loading flags (-brtl),
14930 # -berok will link without error, but may produce a broken library.
14931 allow_undefined_flag='-berok'
14932 # Determine the default libpath from the value encoded in an
14933 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014934 if test "${lt_cv_aix_libpath+set}" = set; then
14935 aix_libpath=$lt_cv_aix_libpath
14936else
14937 if ${lt_cv_aix_libpath_+:} false; then :
14938 $as_echo_n "(cached) " >&6
14939else
14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014941/* end confdefs.h. */
14942
14943int
14944main ()
14945{
14946
14947 ;
14948 return 0;
14949}
14950_ACEOF
14951if ac_fn_c_try_link "$LINENO"; then :
14952
cristyda16f162011-02-19 23:52:17 +000014953 lt_aix_libpath_sed='
14954 /Import File Strings/,/^$/ {
14955 /^0/ {
14956 s/^0 *\([^ ]*\) *$/\1/
14957 p
14958 }
14959 }'
14960 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14961 # Check for a 64-bit object if we didn't find anything.
14962 if test -z "$lt_cv_aix_libpath_"; then
14963 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14964 fi
cristy73bd4a52010-10-05 11:24:23 +000014965fi
14966rm -f core conftest.err conftest.$ac_objext \
14967 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014968 if test -z "$lt_cv_aix_libpath_"; then
14969 lt_cv_aix_libpath_="/usr/lib:/lib"
14970 fi
14971
14972fi
14973
14974 aix_libpath=$lt_cv_aix_libpath_
14975fi
cristy73bd4a52010-10-05 11:24:23 +000014976
14977 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014978 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 +000014979 else
14980 if test "$host_cpu" = ia64; then
14981 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14982 allow_undefined_flag="-z nodefs"
14983 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"
14984 else
14985 # Determine the default libpath from the value encoded in an
14986 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014987 if test "${lt_cv_aix_libpath+set}" = set; then
14988 aix_libpath=$lt_cv_aix_libpath
14989else
14990 if ${lt_cv_aix_libpath_+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992else
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014994/* end confdefs.h. */
14995
14996int
14997main ()
14998{
14999
15000 ;
15001 return 0;
15002}
15003_ACEOF
15004if ac_fn_c_try_link "$LINENO"; then :
15005
cristyda16f162011-02-19 23:52:17 +000015006 lt_aix_libpath_sed='
15007 /Import File Strings/,/^$/ {
15008 /^0/ {
15009 s/^0 *\([^ ]*\) *$/\1/
15010 p
15011 }
15012 }'
15013 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15014 # Check for a 64-bit object if we didn't find anything.
15015 if test -z "$lt_cv_aix_libpath_"; then
15016 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15017 fi
cristy73bd4a52010-10-05 11:24:23 +000015018fi
15019rm -f core conftest.err conftest.$ac_objext \
15020 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015021 if test -z "$lt_cv_aix_libpath_"; then
15022 lt_cv_aix_libpath_="/usr/lib:/lib"
15023 fi
15024
15025fi
15026
15027 aix_libpath=$lt_cv_aix_libpath_
15028fi
cristy73bd4a52010-10-05 11:24:23 +000015029
15030 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15031 # Warning - without using the other run time loading flags,
15032 # -berok will link without error, but may produce a broken library.
15033 no_undefined_flag=' ${wl}-bernotok'
15034 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015035 if test "$with_gnu_ld" = yes; then
15036 # We only use this code for GNU lds that support --whole-archive.
15037 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15038 else
15039 # Exported symbols can be pulled into shared objects from archives
15040 whole_archive_flag_spec='$convenience'
15041 fi
cristy73bd4a52010-10-05 11:24:23 +000015042 archive_cmds_need_lc=yes
15043 # This is similar to how AIX traditionally builds its shared libraries.
15044 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'
15045 fi
15046 fi
15047 ;;
15048
15049 amigaos*)
15050 case $host_cpu in
15051 powerpc)
15052 # see comment about AmigaOS4 .so support
15053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15054 archive_expsym_cmds=''
15055 ;;
15056 m68k)
15057 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)'
15058 hardcode_libdir_flag_spec='-L$libdir'
15059 hardcode_minus_L=yes
15060 ;;
15061 esac
15062 ;;
15063
15064 bsdi[45]*)
15065 export_dynamic_flag_spec=-rdynamic
15066 ;;
15067
15068 cygwin* | mingw* | pw32* | cegcc*)
15069 # When not using gcc, we currently assume that we are using
15070 # Microsoft Visual C++.
15071 # hardcode_libdir_flag_spec is actually meaningless, as there is
15072 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015073 case $cc_basename in
15074 cl*)
15075 # Native MSVC
15076 hardcode_libdir_flag_spec=' '
15077 allow_undefined_flag=unsupported
15078 always_export_symbols=yes
15079 file_list_spec='@'
15080 # Tell ltmain to make .lib files, not .a files.
15081 libext=lib
15082 # Tell ltmain to make .dll files, not .so files.
15083 shrext_cmds=".dll"
15084 # FIXME: Setting linknames here is a bad hack.
15085 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15086 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15087 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15088 else
15089 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15090 fi~
15091 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15092 linknames='
15093 # The linker will not automatically build a static lib if we build a DLL.
15094 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15095 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015096 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015097 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15098 # Don't use ranlib
15099 old_postinstall_cmds='chmod 644 $oldlib'
15100 postlink_cmds='lt_outputfile="@OUTPUT@"~
15101 lt_tool_outputfile="@TOOL_OUTPUT@"~
15102 case $lt_outputfile in
15103 *.exe|*.EXE) ;;
15104 *)
15105 lt_outputfile="$lt_outputfile.exe"
15106 lt_tool_outputfile="$lt_tool_outputfile.exe"
15107 ;;
15108 esac~
15109 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15110 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15111 $RM "$lt_outputfile.manifest";
15112 fi'
15113 ;;
15114 *)
15115 # Assume MSVC wrapper
15116 hardcode_libdir_flag_spec=' '
15117 allow_undefined_flag=unsupported
15118 # Tell ltmain to make .lib files, not .a files.
15119 libext=lib
15120 # Tell ltmain to make .dll files, not .so files.
15121 shrext_cmds=".dll"
15122 # FIXME: Setting linknames here is a bad hack.
15123 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15124 # The linker will automatically build a .lib file if we build a DLL.
15125 old_archive_from_new_cmds='true'
15126 # FIXME: Should let the user specify the lib program.
15127 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15128 enable_shared_with_static_runtimes=yes
15129 ;;
15130 esac
cristy73bd4a52010-10-05 11:24:23 +000015131 ;;
15132
15133 darwin* | rhapsody*)
15134
15135
15136 archive_cmds_need_lc=no
15137 hardcode_direct=no
15138 hardcode_automatic=yes
15139 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015140 if test "$lt_cv_ld_force_load" = "yes"; then
15141 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 +000015142
cristy0c60a692010-11-04 01:09:47 +000015143 else
15144 whole_archive_flag_spec=''
15145 fi
cristy73bd4a52010-10-05 11:24:23 +000015146 link_all_deplibs=yes
15147 allow_undefined_flag="$_lt_dar_allow_undefined"
15148 case $cc_basename in
15149 ifort*) _lt_dar_can_shared=yes ;;
15150 *) _lt_dar_can_shared=$GCC ;;
15151 esac
15152 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015153 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015154 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15155 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15156 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}"
15157 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}"
15158
15159 else
15160 ld_shlibs=no
15161 fi
15162
15163 ;;
15164
15165 dgux*)
15166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15167 hardcode_libdir_flag_spec='-L$libdir'
15168 hardcode_shlibpath_var=no
15169 ;;
15170
cristy73bd4a52010-10-05 11:24:23 +000015171 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15172 # support. Future versions do this automatically, but an explicit c++rt0.o
15173 # does not break anything, and helps significantly (at the cost of a little
15174 # extra space).
15175 freebsd2.2*)
15176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15177 hardcode_libdir_flag_spec='-R$libdir'
15178 hardcode_direct=yes
15179 hardcode_shlibpath_var=no
15180 ;;
15181
15182 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015183 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15185 hardcode_direct=yes
15186 hardcode_minus_L=yes
15187 hardcode_shlibpath_var=no
15188 ;;
15189
15190 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15191 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015192 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015193 hardcode_libdir_flag_spec='-R$libdir'
15194 hardcode_direct=yes
15195 hardcode_shlibpath_var=no
15196 ;;
15197
15198 hpux9*)
15199 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015200 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 +000015201 else
15202 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'
15203 fi
15204 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15205 hardcode_libdir_separator=:
15206 hardcode_direct=yes
15207
15208 # hardcode_minus_L: Not really in the search PATH,
15209 # but as the default location of the library.
15210 hardcode_minus_L=yes
15211 export_dynamic_flag_spec='${wl}-E'
15212 ;;
15213
15214 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015215 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015216 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 +000015217 else
15218 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15219 fi
15220 if test "$with_gnu_ld" = no; then
15221 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015222 hardcode_libdir_separator=:
15223 hardcode_direct=yes
15224 hardcode_direct_absolute=yes
15225 export_dynamic_flag_spec='${wl}-E'
15226 # hardcode_minus_L: Not really in the search PATH,
15227 # but as the default location of the library.
15228 hardcode_minus_L=yes
15229 fi
15230 ;;
15231
15232 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015233 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015234 case $host_cpu in
15235 hppa*64*)
15236 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15237 ;;
15238 ia64*)
cristyda16f162011-02-19 23:52:17 +000015239 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015240 ;;
15241 *)
cristyda16f162011-02-19 23:52:17 +000015242 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 +000015243 ;;
15244 esac
15245 else
15246 case $host_cpu in
15247 hppa*64*)
15248 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15249 ;;
15250 ia64*)
15251 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15252 ;;
15253 *)
cristy0c60a692010-11-04 01:09:47 +000015254
15255 # Older versions of the 11.00 compiler do not understand -b yet
15256 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15258$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015259if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015260 $as_echo_n "(cached) " >&6
15261else
15262 lt_cv_prog_compiler__b=no
15263 save_LDFLAGS="$LDFLAGS"
15264 LDFLAGS="$LDFLAGS -b"
15265 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15266 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15267 # The linker can only warn and ignore the option if not recognized
15268 # So say no if there are warnings
15269 if test -s conftest.err; then
15270 # Append any errors to the config.log.
15271 cat conftest.err 1>&5
15272 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15274 if diff conftest.exp conftest.er2 >/dev/null; then
15275 lt_cv_prog_compiler__b=yes
15276 fi
15277 else
15278 lt_cv_prog_compiler__b=yes
15279 fi
15280 fi
15281 $RM -r conftest*
15282 LDFLAGS="$save_LDFLAGS"
15283
15284fi
15285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15286$as_echo "$lt_cv_prog_compiler__b" >&6; }
15287
15288if test x"$lt_cv_prog_compiler__b" = xyes; then
15289 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15290else
15291 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15292fi
15293
cristy73bd4a52010-10-05 11:24:23 +000015294 ;;
15295 esac
15296 fi
15297 if test "$with_gnu_ld" = no; then
15298 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15299 hardcode_libdir_separator=:
15300
15301 case $host_cpu in
15302 hppa*64*|ia64*)
15303 hardcode_direct=no
15304 hardcode_shlibpath_var=no
15305 ;;
15306 *)
15307 hardcode_direct=yes
15308 hardcode_direct_absolute=yes
15309 export_dynamic_flag_spec='${wl}-E'
15310
15311 # hardcode_minus_L: Not really in the search PATH,
15312 # but as the default location of the library.
15313 hardcode_minus_L=yes
15314 ;;
15315 esac
15316 fi
15317 ;;
15318
15319 irix5* | irix6* | nonstopux*)
15320 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015321 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 +000015322 # Try to use the -exported_symbol ld option, if it does not
15323 # work, assume that -exports_file does not work either and
15324 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015325 # This should be the same for all languages, so no per-tag cache variable.
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15327$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15328if ${lt_cv_irix_exported_symbol+:} false; then :
15329 $as_echo_n "(cached) " >&6
15330else
15331 save_LDFLAGS="$LDFLAGS"
15332 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015334/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015335int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015336_ACEOF
15337if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015338 lt_cv_irix_exported_symbol=yes
15339else
15340 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015341fi
15342rm -f core conftest.err conftest.$ac_objext \
15343 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015344 LDFLAGS="$save_LDFLAGS"
15345fi
15346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15347$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15348 if test "$lt_cv_irix_exported_symbol" = yes; then
15349 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'
15350 fi
cristy73bd4a52010-10-05 11:24:23 +000015351 else
cristy0c60a692010-11-04 01:09:47 +000015352 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'
15353 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 +000015354 fi
15355 archive_cmds_need_lc='no'
15356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15357 hardcode_libdir_separator=:
15358 inherit_rpath=yes
15359 link_all_deplibs=yes
15360 ;;
15361
15362 netbsd*)
15363 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15364 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15365 else
15366 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15367 fi
15368 hardcode_libdir_flag_spec='-R$libdir'
15369 hardcode_direct=yes
15370 hardcode_shlibpath_var=no
15371 ;;
15372
15373 newsos6)
15374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15375 hardcode_direct=yes
15376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15377 hardcode_libdir_separator=:
15378 hardcode_shlibpath_var=no
15379 ;;
15380
15381 *nto* | *qnx*)
15382 ;;
15383
15384 openbsd*)
15385 if test -f /usr/libexec/ld.so; then
15386 hardcode_direct=yes
15387 hardcode_shlibpath_var=no
15388 hardcode_direct_absolute=yes
15389 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15390 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15391 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15392 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15393 export_dynamic_flag_spec='${wl}-E'
15394 else
15395 case $host_os in
15396 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15398 hardcode_libdir_flag_spec='-R$libdir'
15399 ;;
15400 *)
15401 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15402 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15403 ;;
15404 esac
15405 fi
15406 else
15407 ld_shlibs=no
15408 fi
15409 ;;
15410
15411 os2*)
15412 hardcode_libdir_flag_spec='-L$libdir'
15413 hardcode_minus_L=yes
15414 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015415 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 +000015416 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15417 ;;
15418
15419 osf3*)
15420 if test "$GCC" = yes; then
15421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015422 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 +000015423 else
15424 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015425 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 +000015426 fi
15427 archive_cmds_need_lc='no'
15428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15429 hardcode_libdir_separator=:
15430 ;;
15431
15432 osf4* | osf5*) # as osf3* with the addition of -msym flag
15433 if test "$GCC" = yes; then
15434 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015435 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 +000015436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15437 else
15438 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015439 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 +000015440 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 +000015441 $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 +000015442
15443 # Both c and cxx compiler support -rpath directly
15444 hardcode_libdir_flag_spec='-rpath $libdir'
15445 fi
15446 archive_cmds_need_lc='no'
15447 hardcode_libdir_separator=:
15448 ;;
15449
15450 solaris*)
15451 no_undefined_flag=' -z defs'
15452 if test "$GCC" = yes; then
15453 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015454 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 +000015455 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 +000015456 $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 +000015457 else
15458 case `$CC -V 2>&1` in
15459 *"Compilers 5.0"*)
15460 wlarc=''
15461 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15462 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15463 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15464 ;;
15465 *)
15466 wlarc='${wl}'
15467 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15468 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15469 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15470 ;;
15471 esac
15472 fi
15473 hardcode_libdir_flag_spec='-R$libdir'
15474 hardcode_shlibpath_var=no
15475 case $host_os in
15476 solaris2.[0-5] | solaris2.[0-5].*) ;;
15477 *)
15478 # The compiler driver will combine and reorder linker options,
15479 # but understands `-z linker_flag'. GCC discards it without `$wl',
15480 # but is careful enough not to reorder.
15481 # Supported since Solaris 2.6 (maybe 2.5.1?)
15482 if test "$GCC" = yes; then
15483 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15484 else
15485 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15486 fi
15487 ;;
15488 esac
15489 link_all_deplibs=yes
15490 ;;
15491
15492 sunos4*)
15493 if test "x$host_vendor" = xsequent; then
15494 # Use $CC to link under sequent, because it throws in some extra .o
15495 # files that make .init and .fini sections work.
15496 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15497 else
15498 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15499 fi
15500 hardcode_libdir_flag_spec='-L$libdir'
15501 hardcode_direct=yes
15502 hardcode_minus_L=yes
15503 hardcode_shlibpath_var=no
15504 ;;
15505
15506 sysv4)
15507 case $host_vendor in
15508 sni)
15509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15510 hardcode_direct=yes # is this really true???
15511 ;;
15512 siemens)
15513 ## LD is ld it makes a PLAMLIB
15514 ## CC just makes a GrossModule.
15515 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15516 reload_cmds='$CC -r -o $output$reload_objs'
15517 hardcode_direct=no
15518 ;;
15519 motorola)
15520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15522 ;;
15523 esac
15524 runpath_var='LD_RUN_PATH'
15525 hardcode_shlibpath_var=no
15526 ;;
15527
15528 sysv4.3*)
15529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530 hardcode_shlibpath_var=no
15531 export_dynamic_flag_spec='-Bexport'
15532 ;;
15533
15534 sysv4*MP*)
15535 if test -d /usr/nec; then
15536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537 hardcode_shlibpath_var=no
15538 runpath_var=LD_RUN_PATH
15539 hardcode_runpath_var=yes
15540 ld_shlibs=yes
15541 fi
15542 ;;
15543
15544 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15545 no_undefined_flag='${wl}-z,text'
15546 archive_cmds_need_lc=no
15547 hardcode_shlibpath_var=no
15548 runpath_var='LD_RUN_PATH'
15549
15550 if test "$GCC" = yes; then
15551 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15552 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15553 else
15554 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15555 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15556 fi
15557 ;;
15558
15559 sysv5* | sco3.2v5* | sco5v6*)
15560 # Note: We can NOT use -z defs as we might desire, because we do not
15561 # link with -lc, and that would cause any symbols used from libc to
15562 # always be unresolved, which means just about no library would
15563 # ever link correctly. If we're not using GNU ld we use -z text
15564 # though, which does catch some bad symbols but isn't as heavy-handed
15565 # as -z defs.
15566 no_undefined_flag='${wl}-z,text'
15567 allow_undefined_flag='${wl}-z,nodefs'
15568 archive_cmds_need_lc=no
15569 hardcode_shlibpath_var=no
15570 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15571 hardcode_libdir_separator=':'
15572 link_all_deplibs=yes
15573 export_dynamic_flag_spec='${wl}-Bexport'
15574 runpath_var='LD_RUN_PATH'
15575
15576 if test "$GCC" = yes; then
15577 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15578 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15579 else
15580 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15581 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15582 fi
15583 ;;
15584
15585 uts4*)
15586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15587 hardcode_libdir_flag_spec='-L$libdir'
15588 hardcode_shlibpath_var=no
15589 ;;
15590
15591 *)
15592 ld_shlibs=no
15593 ;;
15594 esac
15595
15596 if test x$host_vendor = xsni; then
15597 case $host in
15598 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15599 export_dynamic_flag_spec='${wl}-Blargedynsym'
15600 ;;
15601 esac
15602 fi
15603 fi
15604
15605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15606$as_echo "$ld_shlibs" >&6; }
15607test "$ld_shlibs" = no && can_build_shared=no
15608
15609with_gnu_ld=$with_gnu_ld
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625#
15626# Do we need to explicitly link libc?
15627#
15628case "x$archive_cmds_need_lc" in
15629x|xyes)
15630 # Assume -lc should be added
15631 archive_cmds_need_lc=yes
15632
15633 if test "$enable_shared" = yes && test "$GCC" = yes; then
15634 case $archive_cmds in
15635 *'~'*)
15636 # FIXME: we may have to deal with multi-command sequences.
15637 ;;
15638 '$CC '*)
15639 # Test whether the compiler implicitly links with -lc since on some
15640 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15641 # to ld, don't add -lc before -lgcc.
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15643$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015644if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015645 $as_echo_n "(cached) " >&6
15646else
15647 $RM conftest*
15648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015649
cristy0c60a692010-11-04 01:09:47 +000015650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015651 (eval $ac_compile) 2>&5
15652 ac_status=$?
15653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15654 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015655 soname=conftest
15656 lib=conftest
15657 libobjs=conftest.$ac_objext
15658 deplibs=
15659 wl=$lt_prog_compiler_wl
15660 pic_flag=$lt_prog_compiler_pic
15661 compiler_flags=-v
15662 linker_flags=-v
15663 verstring=
15664 output_objdir=.
15665 libname=conftest
15666 lt_save_allow_undefined_flag=$allow_undefined_flag
15667 allow_undefined_flag=
15668 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 +000015669 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15670 ac_status=$?
15671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15672 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015673 then
15674 lt_cv_archive_cmds_need_lc=no
15675 else
15676 lt_cv_archive_cmds_need_lc=yes
15677 fi
15678 allow_undefined_flag=$lt_save_allow_undefined_flag
15679 else
15680 cat conftest.err 1>&5
15681 fi
15682 $RM conftest*
15683
15684fi
15685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15686$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15687 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015688 ;;
15689 esac
15690 fi
15691 ;;
15692esac
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
15842
15843
15844
cristy73bd4a52010-10-05 11:24:23 +000015845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15846$as_echo_n "checking dynamic linker characteristics... " >&6; }
15847
15848if test "$GCC" = yes; then
15849 case $host_os in
15850 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15851 *) lt_awk_arg="/^libraries:/" ;;
15852 esac
cristy0c60a692010-11-04 01:09:47 +000015853 case $host_os in
15854 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15855 *) lt_sed_strip_eq="s,=/,/,g" ;;
15856 esac
15857 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15858 case $lt_search_path_spec in
15859 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015860 # if the path contains ";" then we assume it to be the separator
15861 # otherwise default to the standard path separator (i.e. ":") - it is
15862 # assumed that no part of a normal pathname contains ";" but that should
15863 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015864 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15865 ;;
15866 *)
15867 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15868 ;;
15869 esac
cristy73bd4a52010-10-05 11:24:23 +000015870 # Ok, now we have the path, separated by spaces, we can step through it
15871 # and add multilib dir if necessary.
15872 lt_tmp_lt_search_path_spec=
15873 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15874 for lt_sys_path in $lt_search_path_spec; do
15875 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15876 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15877 else
15878 test -d "$lt_sys_path" && \
15879 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15880 fi
15881 done
cristy0c60a692010-11-04 01:09:47 +000015882 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015883BEGIN {RS=" "; FS="/|\n";} {
15884 lt_foo="";
15885 lt_count=0;
15886 for (lt_i = NF; lt_i > 0; lt_i--) {
15887 if ($lt_i != "" && $lt_i != ".") {
15888 if ($lt_i == "..") {
15889 lt_count++;
15890 } else {
15891 if (lt_count == 0) {
15892 lt_foo="/" $lt_i lt_foo;
15893 } else {
15894 lt_count--;
15895 }
15896 }
15897 }
15898 }
15899 if (lt_foo != "") { lt_freq[lt_foo]++; }
15900 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15901}'`
cristy0c60a692010-11-04 01:09:47 +000015902 # AWK program above erroneously prepends '/' to C:/dos/paths
15903 # for these hosts.
15904 case $host_os in
15905 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15906 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15907 esac
15908 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015909else
15910 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15911fi
15912library_names_spec=
15913libname_spec='lib$name'
15914soname_spec=
15915shrext_cmds=".so"
15916postinstall_cmds=
15917postuninstall_cmds=
15918finish_cmds=
15919finish_eval=
15920shlibpath_var=
15921shlibpath_overrides_runpath=unknown
15922version_type=none
15923dynamic_linker="$host_os ld.so"
15924sys_lib_dlsearch_path_spec="/lib /usr/lib"
15925need_lib_prefix=unknown
15926hardcode_into_libs=no
15927
15928# when you set need_version to no, make sure it does not cause -set_version
15929# flags to be left without arguments
15930need_version=unknown
15931
15932case $host_os in
15933aix3*)
cristy99bd5232011-12-07 14:38:20 +000015934 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15936 shlibpath_var=LIBPATH
15937
15938 # AIX 3 has no versioning support, so we append a major version to the name.
15939 soname_spec='${libname}${release}${shared_ext}$major'
15940 ;;
15941
15942aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015943 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015944 need_lib_prefix=no
15945 need_version=no
15946 hardcode_into_libs=yes
15947 if test "$host_cpu" = ia64; then
15948 # AIX 5 supports IA64
15949 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15950 shlibpath_var=LD_LIBRARY_PATH
15951 else
15952 # With GCC up to 2.95.x, collect2 would create an import file
15953 # for dependence libraries. The import file would start with
15954 # the line `#! .'. This would cause the generated library to
15955 # depend on `.', always an invalid library. This was fixed in
15956 # development snapshots of GCC prior to 3.0.
15957 case $host_os in
15958 aix4 | aix4.[01] | aix4.[01].*)
15959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15960 echo ' yes '
15961 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15962 :
15963 else
15964 can_build_shared=no
15965 fi
15966 ;;
15967 esac
15968 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15969 # soname into executable. Probably we can add versioning support to
15970 # collect2, so additional links can be useful in future.
15971 if test "$aix_use_runtimelinking" = yes; then
15972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15973 # instead of lib<name>.a to let people know that these are not
15974 # typical AIX shared libraries.
15975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976 else
15977 # We preserve .a as extension for shared libraries through AIX4.2
15978 # and later when we are not doing run time linking.
15979 library_names_spec='${libname}${release}.a $libname.a'
15980 soname_spec='${libname}${release}${shared_ext}$major'
15981 fi
15982 shlibpath_var=LIBPATH
15983 fi
15984 ;;
15985
15986amigaos*)
15987 case $host_cpu in
15988 powerpc)
15989 # Since July 2007 AmigaOS4 officially supports .so libraries.
15990 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992 ;;
15993 m68k)
15994 library_names_spec='$libname.ixlibrary $libname.a'
15995 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015996 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 +000015997 ;;
15998 esac
15999 ;;
16000
16001beos*)
16002 library_names_spec='${libname}${shared_ext}'
16003 dynamic_linker="$host_os ld.so"
16004 shlibpath_var=LIBRARY_PATH
16005 ;;
16006
16007bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016008 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016009 need_version=no
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011 soname_spec='${libname}${release}${shared_ext}$major'
16012 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16013 shlibpath_var=LD_LIBRARY_PATH
16014 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16015 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16016 # the default ld.so.conf also contains /usr/contrib/lib and
16017 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16018 # libtool to hard-code these into programs
16019 ;;
16020
16021cygwin* | mingw* | pw32* | cegcc*)
16022 version_type=windows
16023 shrext_cmds=".dll"
16024 need_version=no
16025 need_lib_prefix=no
16026
cristyda16f162011-02-19 23:52:17 +000016027 case $GCC,$cc_basename in
16028 yes,*)
16029 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016030 library_names_spec='$libname.dll.a'
16031 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16032 postinstall_cmds='base_file=`basename \${file}`~
16033 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16034 dldir=$destdir/`dirname \$dlpath`~
16035 test -d \$dldir || mkdir -p \$dldir~
16036 $install_prog $dir/$dlname \$dldir/$dlname~
16037 chmod a+x \$dldir/$dlname~
16038 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16039 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16040 fi'
16041 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16042 dlpath=$dir/\$dldll~
16043 $RM \$dlpath'
16044 shlibpath_overrides_runpath=yes
16045
16046 case $host_os in
16047 cygwin*)
16048 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16049 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016050
16051 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016052 ;;
16053 mingw* | cegcc*)
16054 # MinGW DLLs use traditional 'lib' prefix
16055 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016056 ;;
16057 pw32*)
16058 # pw32 DLLs use 'pw' prefix rather than 'lib'
16059 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16060 ;;
16061 esac
cristyda16f162011-02-19 23:52:17 +000016062 dynamic_linker='Win32 ld.exe'
16063 ;;
16064
16065 *,cl*)
16066 # Native MSVC
16067 libname_spec='$name'
16068 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16069 library_names_spec='${libname}.dll.lib'
16070
16071 case $build_os in
16072 mingw*)
16073 sys_lib_search_path_spec=
16074 lt_save_ifs=$IFS
16075 IFS=';'
16076 for lt_path in $LIB
16077 do
16078 IFS=$lt_save_ifs
16079 # Let DOS variable expansion print the short 8.3 style file name.
16080 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16081 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16082 done
16083 IFS=$lt_save_ifs
16084 # Convert to MSYS style.
16085 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16086 ;;
16087 cygwin*)
16088 # Convert to unix form, then to dos form, then back to unix form
16089 # but this time dos style (no spaces!) so that the unix form looks
16090 # like /cygdrive/c/PROGRA~1:/cygdr...
16091 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16092 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16093 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16094 ;;
16095 *)
16096 sys_lib_search_path_spec="$LIB"
16097 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16098 # It is most probably a Windows format PATH.
16099 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16100 else
16101 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16102 fi
16103 # FIXME: find the short name or the path components, as spaces are
16104 # common. (e.g. "Program Files" -> "PROGRA~1")
16105 ;;
16106 esac
16107
16108 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16109 postinstall_cmds='base_file=`basename \${file}`~
16110 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16111 dldir=$destdir/`dirname \$dlpath`~
16112 test -d \$dldir || mkdir -p \$dldir~
16113 $install_prog $dir/$dlname \$dldir/$dlname'
16114 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16115 dlpath=$dir/\$dldll~
16116 $RM \$dlpath'
16117 shlibpath_overrides_runpath=yes
16118 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016119 ;;
16120
16121 *)
cristyda16f162011-02-19 23:52:17 +000016122 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016123 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016124 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016125 ;;
16126 esac
cristy73bd4a52010-10-05 11:24:23 +000016127 # FIXME: first we should search . and the directory the executable is in
16128 shlibpath_var=PATH
16129 ;;
16130
16131darwin* | rhapsody*)
16132 dynamic_linker="$host_os dyld"
16133 version_type=darwin
16134 need_lib_prefix=no
16135 need_version=no
16136 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16137 soname_spec='${libname}${release}${major}$shared_ext'
16138 shlibpath_overrides_runpath=yes
16139 shlibpath_var=DYLD_LIBRARY_PATH
16140 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16141
16142 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16143 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16144 ;;
16145
16146dgux*)
cristy99bd5232011-12-07 14:38:20 +000016147 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016148 need_lib_prefix=no
16149 need_version=no
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16151 soname_spec='${libname}${release}${shared_ext}$major'
16152 shlibpath_var=LD_LIBRARY_PATH
16153 ;;
16154
cristy73bd4a52010-10-05 11:24:23 +000016155freebsd* | dragonfly*)
16156 # DragonFly does not have aout. When/if they implement a new
16157 # versioning mechanism, adjust this.
16158 if test -x /usr/bin/objformat; then
16159 objformat=`/usr/bin/objformat`
16160 else
16161 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016162 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016163 *) objformat=elf ;;
16164 esac
16165 fi
16166 version_type=freebsd-$objformat
16167 case $version_type in
16168 freebsd-elf*)
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16170 need_version=no
16171 need_lib_prefix=no
16172 ;;
16173 freebsd-*)
16174 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16175 need_version=yes
16176 ;;
16177 esac
16178 shlibpath_var=LD_LIBRARY_PATH
16179 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016180 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016181 shlibpath_overrides_runpath=yes
16182 ;;
16183 freebsd3.[01]* | freebsdelf3.[01]*)
16184 shlibpath_overrides_runpath=yes
16185 hardcode_into_libs=yes
16186 ;;
16187 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16188 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16189 shlibpath_overrides_runpath=no
16190 hardcode_into_libs=yes
16191 ;;
16192 *) # from 4.6 on, and DragonFly
16193 shlibpath_overrides_runpath=yes
16194 hardcode_into_libs=yes
16195 ;;
16196 esac
16197 ;;
16198
16199gnu*)
cristy99bd5232011-12-07 14:38:20 +000016200 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016201 need_lib_prefix=no
16202 need_version=no
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016206 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016207 hardcode_into_libs=yes
16208 ;;
16209
cristy0c60a692010-11-04 01:09:47 +000016210haiku*)
cristy99bd5232011-12-07 14:38:20 +000016211 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016212 need_lib_prefix=no
16213 need_version=no
16214 dynamic_linker="$host_os runtime_loader"
16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16216 soname_spec='${libname}${release}${shared_ext}$major'
16217 shlibpath_var=LIBRARY_PATH
16218 shlibpath_overrides_runpath=yes
16219 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16220 hardcode_into_libs=yes
16221 ;;
16222
cristy73bd4a52010-10-05 11:24:23 +000016223hpux9* | hpux10* | hpux11*)
16224 # Give a soname corresponding to the major version so that dld.sl refuses to
16225 # link against other versions.
16226 version_type=sunos
16227 need_lib_prefix=no
16228 need_version=no
16229 case $host_cpu in
16230 ia64*)
16231 shrext_cmds='.so'
16232 hardcode_into_libs=yes
16233 dynamic_linker="$host_os dld.so"
16234 shlibpath_var=LD_LIBRARY_PATH
16235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237 soname_spec='${libname}${release}${shared_ext}$major'
16238 if test "X$HPUX_IA64_MODE" = X32; then
16239 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16240 else
16241 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16242 fi
16243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16244 ;;
16245 hppa*64*)
16246 shrext_cmds='.sl'
16247 hardcode_into_libs=yes
16248 dynamic_linker="$host_os dld.sl"
16249 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16252 soname_spec='${libname}${release}${shared_ext}$major'
16253 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16255 ;;
16256 *)
16257 shrext_cmds='.sl'
16258 dynamic_linker="$host_os dld.sl"
16259 shlibpath_var=SHLIB_PATH
16260 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 ;;
16264 esac
cristy0c60a692010-11-04 01:09:47 +000016265 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016266 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016267 # or fails outright, so override atomically:
16268 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016269 ;;
16270
16271interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016272 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016273 need_lib_prefix=no
16274 need_version=no
16275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16276 soname_spec='${libname}${release}${shared_ext}$major'
16277 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16278 shlibpath_var=LD_LIBRARY_PATH
16279 shlibpath_overrides_runpath=no
16280 hardcode_into_libs=yes
16281 ;;
16282
16283irix5* | irix6* | nonstopux*)
16284 case $host_os in
16285 nonstopux*) version_type=nonstopux ;;
16286 *)
16287 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016288 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016289 else
16290 version_type=irix
16291 fi ;;
16292 esac
16293 need_lib_prefix=no
16294 need_version=no
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16297 case $host_os in
16298 irix5* | nonstopux*)
16299 libsuff= shlibsuff=
16300 ;;
16301 *)
16302 case $LD in # libtool.m4 will add one of these switches to LD
16303 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16304 libsuff= shlibsuff= libmagic=32-bit;;
16305 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16306 libsuff=32 shlibsuff=N32 libmagic=N32;;
16307 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16308 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16309 *) libsuff= shlibsuff= libmagic=never-match;;
16310 esac
16311 ;;
16312 esac
16313 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16314 shlibpath_overrides_runpath=no
16315 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16316 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16317 hardcode_into_libs=yes
16318 ;;
16319
16320# No shared lib support for Linux oldld, aout, or coff.
16321linux*oldld* | linux*aout* | linux*coff*)
16322 dynamic_linker=no
16323 ;;
16324
cristy99bd5232011-12-07 14:38:20 +000016325# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016326linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016327 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016328 need_lib_prefix=no
16329 need_version=no
16330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16331 soname_spec='${libname}${release}${shared_ext}$major'
16332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16333 shlibpath_var=LD_LIBRARY_PATH
16334 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016335
cristy73bd4a52010-10-05 11:24:23 +000016336 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016337 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016338 $as_echo_n "(cached) " >&6
16339else
16340 lt_cv_shlibpath_overrides_runpath=no
16341 save_LDFLAGS=$LDFLAGS
16342 save_libdir=$libdir
16343 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16344 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016346/* end confdefs.h. */
16347
16348int
16349main ()
16350{
16351
16352 ;
16353 return 0;
16354}
16355_ACEOF
16356if ac_fn_c_try_link "$LINENO"; then :
16357 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016358 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016359fi
16360fi
16361rm -f core conftest.err conftest.$ac_objext \
16362 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016363 LDFLAGS=$save_LDFLAGS
16364 libdir=$save_libdir
16365
16366fi
16367
16368 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016369
16370 # This implies no fast_install, which is unacceptable.
16371 # Some rework will be needed to allow for fast_install
16372 # before this can be enabled.
16373 hardcode_into_libs=yes
16374
16375 # Add ABI-specific directories to the system library path.
16376 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16377
16378 # Append ld.so.conf contents to the search path
16379 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016380 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 +000016381 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016382
cristy73bd4a52010-10-05 11:24:23 +000016383 fi
16384
16385 # We used to test for /lib/ld.so.1 and disable shared libraries on
16386 # powerpc, because MkLinux only supported shared libraries with the
16387 # GNU dynamic linker. Since this was broken with cross compilers,
16388 # most powerpc-linux boxes support dynamic linking these days and
16389 # people can always --disable-shared, the test was removed, and we
16390 # assume the GNU/Linux dynamic linker is in use.
16391 dynamic_linker='GNU/Linux ld.so'
16392 ;;
16393
16394netbsd*)
16395 version_type=sunos
16396 need_lib_prefix=no
16397 need_version=no
16398 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16401 dynamic_linker='NetBSD (a.out) ld.so'
16402 else
16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16404 soname_spec='${libname}${release}${shared_ext}$major'
16405 dynamic_linker='NetBSD ld.elf_so'
16406 fi
16407 shlibpath_var=LD_LIBRARY_PATH
16408 shlibpath_overrides_runpath=yes
16409 hardcode_into_libs=yes
16410 ;;
16411
16412newsos6)
cristy99bd5232011-12-07 14:38:20 +000016413 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 shlibpath_overrides_runpath=yes
16417 ;;
16418
16419*nto* | *qnx*)
16420 version_type=qnx
16421 need_lib_prefix=no
16422 need_version=no
16423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16424 soname_spec='${libname}${release}${shared_ext}$major'
16425 shlibpath_var=LD_LIBRARY_PATH
16426 shlibpath_overrides_runpath=no
16427 hardcode_into_libs=yes
16428 dynamic_linker='ldqnx.so'
16429 ;;
16430
16431openbsd*)
16432 version_type=sunos
16433 sys_lib_dlsearch_path_spec="/usr/lib"
16434 need_lib_prefix=no
16435 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16436 case $host_os in
16437 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16438 *) need_version=no ;;
16439 esac
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16442 shlibpath_var=LD_LIBRARY_PATH
16443 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16444 case $host_os in
16445 openbsd2.[89] | openbsd2.[89].*)
16446 shlibpath_overrides_runpath=no
16447 ;;
16448 *)
16449 shlibpath_overrides_runpath=yes
16450 ;;
16451 esac
16452 else
16453 shlibpath_overrides_runpath=yes
16454 fi
16455 ;;
16456
16457os2*)
16458 libname_spec='$name'
16459 shrext_cmds=".dll"
16460 need_lib_prefix=no
16461 library_names_spec='$libname${shared_ext} $libname.a'
16462 dynamic_linker='OS/2 ld.exe'
16463 shlibpath_var=LIBPATH
16464 ;;
16465
16466osf3* | osf4* | osf5*)
16467 version_type=osf
16468 need_lib_prefix=no
16469 need_version=no
16470 soname_spec='${libname}${release}${shared_ext}$major'
16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16474 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16475 ;;
16476
16477rdos*)
16478 dynamic_linker=no
16479 ;;
16480
16481solaris*)
cristy99bd5232011-12-07 14:38:20 +000016482 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016483 need_lib_prefix=no
16484 need_version=no
16485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16486 soname_spec='${libname}${release}${shared_ext}$major'
16487 shlibpath_var=LD_LIBRARY_PATH
16488 shlibpath_overrides_runpath=yes
16489 hardcode_into_libs=yes
16490 # ldd complains unless libraries are executable
16491 postinstall_cmds='chmod +x $lib'
16492 ;;
16493
16494sunos4*)
16495 version_type=sunos
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16497 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 shlibpath_overrides_runpath=yes
16500 if test "$with_gnu_ld" = yes; then
16501 need_lib_prefix=no
16502 fi
16503 need_version=yes
16504 ;;
16505
16506sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016507 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16509 soname_spec='${libname}${release}${shared_ext}$major'
16510 shlibpath_var=LD_LIBRARY_PATH
16511 case $host_vendor in
16512 sni)
16513 shlibpath_overrides_runpath=no
16514 need_lib_prefix=no
16515 runpath_var=LD_RUN_PATH
16516 ;;
16517 siemens)
16518 need_lib_prefix=no
16519 ;;
16520 motorola)
16521 need_lib_prefix=no
16522 need_version=no
16523 shlibpath_overrides_runpath=no
16524 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16525 ;;
16526 esac
16527 ;;
16528
16529sysv4*MP*)
16530 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016531 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016532 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16533 soname_spec='$libname${shared_ext}.$major'
16534 shlibpath_var=LD_LIBRARY_PATH
16535 fi
16536 ;;
16537
16538sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16539 version_type=freebsd-elf
16540 need_lib_prefix=no
16541 need_version=no
16542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16543 soname_spec='${libname}${release}${shared_ext}$major'
16544 shlibpath_var=LD_LIBRARY_PATH
16545 shlibpath_overrides_runpath=yes
16546 hardcode_into_libs=yes
16547 if test "$with_gnu_ld" = yes; then
16548 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16549 else
16550 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16551 case $host_os in
16552 sco3.2v5*)
16553 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16554 ;;
16555 esac
16556 fi
16557 sys_lib_dlsearch_path_spec='/usr/lib'
16558 ;;
16559
16560tpf*)
16561 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016562 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016563 need_lib_prefix=no
16564 need_version=no
16565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16566 shlibpath_var=LD_LIBRARY_PATH
16567 shlibpath_overrides_runpath=no
16568 hardcode_into_libs=yes
16569 ;;
16570
16571uts4*)
cristy99bd5232011-12-07 14:38:20 +000016572 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16574 soname_spec='${libname}${release}${shared_ext}$major'
16575 shlibpath_var=LD_LIBRARY_PATH
16576 ;;
16577
16578*)
16579 dynamic_linker=no
16580 ;;
16581esac
16582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16583$as_echo "$dynamic_linker" >&6; }
16584test "$dynamic_linker" = no && can_build_shared=no
16585
16586variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16587if test "$GCC" = yes; then
16588 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16589fi
16590
16591if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16592 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16593fi
16594if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16595 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16596fi
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
16681
16682
16683
cristy0c60a692010-11-04 01:09:47 +000016684
16685
16686
16687
16688
cristy73bd4a52010-10-05 11:24:23 +000016689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16690$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16691hardcode_action=
16692if test -n "$hardcode_libdir_flag_spec" ||
16693 test -n "$runpath_var" ||
16694 test "X$hardcode_automatic" = "Xyes" ; then
16695
16696 # We can hardcode non-existent directories.
16697 if test "$hardcode_direct" != no &&
16698 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16699 # have to relink, otherwise we might link with an installed library
16700 # when we should be linking with a yet-to-be-installed one
16701 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16702 test "$hardcode_minus_L" != no; then
16703 # Linking always hardcodes the temporary library directory.
16704 hardcode_action=relink
16705 else
16706 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16707 hardcode_action=immediate
16708 fi
16709else
16710 # We cannot hardcode anything, or else we can only hardcode existing
16711 # directories.
16712 hardcode_action=unsupported
16713fi
16714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16715$as_echo "$hardcode_action" >&6; }
16716
16717if test "$hardcode_action" = relink ||
16718 test "$inherit_rpath" = yes; then
16719 # Fast installation is not supported
16720 enable_fast_install=no
16721elif test "$shlibpath_overrides_runpath" = yes ||
16722 test "$enable_shared" = no; then
16723 # Fast installation is not necessary
16724 enable_fast_install=needless
16725fi
16726
16727
16728
16729
16730
16731
16732 if test "x$enable_dlopen" != xyes; then
16733 enable_dlopen=unknown
16734 enable_dlopen_self=unknown
16735 enable_dlopen_self_static=unknown
16736else
16737 lt_cv_dlopen=no
16738 lt_cv_dlopen_libs=
16739
16740 case $host_os in
16741 beos*)
16742 lt_cv_dlopen="load_add_on"
16743 lt_cv_dlopen_libs=
16744 lt_cv_dlopen_self=yes
16745 ;;
16746
16747 mingw* | pw32* | cegcc*)
16748 lt_cv_dlopen="LoadLibrary"
16749 lt_cv_dlopen_libs=
16750 ;;
16751
16752 cygwin*)
16753 lt_cv_dlopen="dlopen"
16754 lt_cv_dlopen_libs=
16755 ;;
16756
16757 darwin*)
16758 # if libdl is installed we need to link against it
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16760$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016761if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016762 $as_echo_n "(cached) " >&6
16763else
16764 ac_check_lib_save_LIBS=$LIBS
16765LIBS="-ldl $LIBS"
16766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767/* end confdefs.h. */
16768
16769/* Override any GCC internal prototype to avoid an error.
16770 Use char because int might match the return type of a GCC
16771 builtin and then its argument prototype would still apply. */
16772#ifdef __cplusplus
16773extern "C"
16774#endif
16775char dlopen ();
16776int
16777main ()
16778{
16779return dlopen ();
16780 ;
16781 return 0;
16782}
16783_ACEOF
16784if ac_fn_c_try_link "$LINENO"; then :
16785 ac_cv_lib_dl_dlopen=yes
16786else
16787 ac_cv_lib_dl_dlopen=no
16788fi
16789rm -f core conftest.err conftest.$ac_objext \
16790 conftest$ac_exeext conftest.$ac_ext
16791LIBS=$ac_check_lib_save_LIBS
16792fi
16793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16794$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016795if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016796 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16797else
16798
16799 lt_cv_dlopen="dyld"
16800 lt_cv_dlopen_libs=
16801 lt_cv_dlopen_self=yes
16802
16803fi
16804
16805 ;;
16806
16807 *)
16808 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016809if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016810 lt_cv_dlopen="shl_load"
16811else
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16813$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016814if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016815 $as_echo_n "(cached) " >&6
16816else
16817 ac_check_lib_save_LIBS=$LIBS
16818LIBS="-ldld $LIBS"
16819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820/* end confdefs.h. */
16821
16822/* Override any GCC internal prototype to avoid an error.
16823 Use char because int might match the return type of a GCC
16824 builtin and then its argument prototype would still apply. */
16825#ifdef __cplusplus
16826extern "C"
16827#endif
16828char shl_load ();
16829int
16830main ()
16831{
16832return shl_load ();
16833 ;
16834 return 0;
16835}
16836_ACEOF
16837if ac_fn_c_try_link "$LINENO"; then :
16838 ac_cv_lib_dld_shl_load=yes
16839else
16840 ac_cv_lib_dld_shl_load=no
16841fi
16842rm -f core conftest.err conftest.$ac_objext \
16843 conftest$ac_exeext conftest.$ac_ext
16844LIBS=$ac_check_lib_save_LIBS
16845fi
16846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16847$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016848if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016849 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16850else
16851 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016852if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016853 lt_cv_dlopen="dlopen"
16854else
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16856$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016857if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016858 $as_echo_n "(cached) " >&6
16859else
16860 ac_check_lib_save_LIBS=$LIBS
16861LIBS="-ldl $LIBS"
16862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863/* end confdefs.h. */
16864
16865/* Override any GCC internal prototype to avoid an error.
16866 Use char because int might match the return type of a GCC
16867 builtin and then its argument prototype would still apply. */
16868#ifdef __cplusplus
16869extern "C"
16870#endif
16871char dlopen ();
16872int
16873main ()
16874{
16875return dlopen ();
16876 ;
16877 return 0;
16878}
16879_ACEOF
16880if ac_fn_c_try_link "$LINENO"; then :
16881 ac_cv_lib_dl_dlopen=yes
16882else
16883 ac_cv_lib_dl_dlopen=no
16884fi
16885rm -f core conftest.err conftest.$ac_objext \
16886 conftest$ac_exeext conftest.$ac_ext
16887LIBS=$ac_check_lib_save_LIBS
16888fi
16889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16890$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016891if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016892 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16893else
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16895$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016896if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016897 $as_echo_n "(cached) " >&6
16898else
16899 ac_check_lib_save_LIBS=$LIBS
16900LIBS="-lsvld $LIBS"
16901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902/* end confdefs.h. */
16903
16904/* Override any GCC internal prototype to avoid an error.
16905 Use char because int might match the return type of a GCC
16906 builtin and then its argument prototype would still apply. */
16907#ifdef __cplusplus
16908extern "C"
16909#endif
16910char dlopen ();
16911int
16912main ()
16913{
16914return dlopen ();
16915 ;
16916 return 0;
16917}
16918_ACEOF
16919if ac_fn_c_try_link "$LINENO"; then :
16920 ac_cv_lib_svld_dlopen=yes
16921else
16922 ac_cv_lib_svld_dlopen=no
16923fi
16924rm -f core conftest.err conftest.$ac_objext \
16925 conftest$ac_exeext conftest.$ac_ext
16926LIBS=$ac_check_lib_save_LIBS
16927fi
16928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16929$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016930if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16932else
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16934$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016935if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016936 $as_echo_n "(cached) " >&6
16937else
16938 ac_check_lib_save_LIBS=$LIBS
16939LIBS="-ldld $LIBS"
16940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941/* end confdefs.h. */
16942
16943/* Override any GCC internal prototype to avoid an error.
16944 Use char because int might match the return type of a GCC
16945 builtin and then its argument prototype would still apply. */
16946#ifdef __cplusplus
16947extern "C"
16948#endif
16949char dld_link ();
16950int
16951main ()
16952{
16953return dld_link ();
16954 ;
16955 return 0;
16956}
16957_ACEOF
16958if ac_fn_c_try_link "$LINENO"; then :
16959 ac_cv_lib_dld_dld_link=yes
16960else
16961 ac_cv_lib_dld_dld_link=no
16962fi
16963rm -f core conftest.err conftest.$ac_objext \
16964 conftest$ac_exeext conftest.$ac_ext
16965LIBS=$ac_check_lib_save_LIBS
16966fi
16967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16968$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016969if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016970 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16971fi
16972
16973
16974fi
16975
16976
16977fi
16978
16979
16980fi
16981
16982
16983fi
16984
16985
16986fi
16987
16988 ;;
16989 esac
16990
16991 if test "x$lt_cv_dlopen" != xno; then
16992 enable_dlopen=yes
16993 else
16994 enable_dlopen=no
16995 fi
16996
16997 case $lt_cv_dlopen in
16998 dlopen)
16999 save_CPPFLAGS="$CPPFLAGS"
17000 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17001
17002 save_LDFLAGS="$LDFLAGS"
17003 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17004
17005 save_LIBS="$LIBS"
17006 LIBS="$lt_cv_dlopen_libs $LIBS"
17007
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17009$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017010if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017011 $as_echo_n "(cached) " >&6
17012else
17013 if test "$cross_compiling" = yes; then :
17014 lt_cv_dlopen_self=cross
17015else
17016 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17017 lt_status=$lt_dlunknown
17018 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017019#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017020#include "confdefs.h"
17021
17022#if HAVE_DLFCN_H
17023#include <dlfcn.h>
17024#endif
17025
17026#include <stdio.h>
17027
17028#ifdef RTLD_GLOBAL
17029# define LT_DLGLOBAL RTLD_GLOBAL
17030#else
17031# ifdef DL_GLOBAL
17032# define LT_DLGLOBAL DL_GLOBAL
17033# else
17034# define LT_DLGLOBAL 0
17035# endif
17036#endif
17037
17038/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17039 find out it does not work in some platform. */
17040#ifndef LT_DLLAZY_OR_NOW
17041# ifdef RTLD_LAZY
17042# define LT_DLLAZY_OR_NOW RTLD_LAZY
17043# else
17044# ifdef DL_LAZY
17045# define LT_DLLAZY_OR_NOW DL_LAZY
17046# else
17047# ifdef RTLD_NOW
17048# define LT_DLLAZY_OR_NOW RTLD_NOW
17049# else
17050# ifdef DL_NOW
17051# define LT_DLLAZY_OR_NOW DL_NOW
17052# else
17053# define LT_DLLAZY_OR_NOW 0
17054# endif
17055# endif
17056# endif
17057# endif
17058#endif
17059
cristy0c60a692010-11-04 01:09:47 +000017060/* When -fvisbility=hidden is used, assume the code has been annotated
17061 correspondingly for the symbols needed. */
17062#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017063int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017064#endif
17065
cristyda16f162011-02-19 23:52:17 +000017066int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017067int main ()
17068{
17069 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17070 int status = $lt_dlunknown;
17071
17072 if (self)
17073 {
17074 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017075 else
17076 {
17077 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17078 else puts (dlerror ());
17079 }
cristy73bd4a52010-10-05 11:24:23 +000017080 /* dlclose (self); */
17081 }
17082 else
17083 puts (dlerror ());
17084
17085 return status;
17086}
17087_LT_EOF
17088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17089 (eval $ac_link) 2>&5
17090 ac_status=$?
17091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17092 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17093 (./conftest; exit; ) >&5 2>/dev/null
17094 lt_status=$?
17095 case x$lt_status in
17096 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17097 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17098 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17099 esac
17100 else :
17101 # compilation failed
17102 lt_cv_dlopen_self=no
17103 fi
17104fi
17105rm -fr conftest*
17106
17107
17108fi
17109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17110$as_echo "$lt_cv_dlopen_self" >&6; }
17111
17112 if test "x$lt_cv_dlopen_self" = xyes; then
17113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17115$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017116if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017117 $as_echo_n "(cached) " >&6
17118else
17119 if test "$cross_compiling" = yes; then :
17120 lt_cv_dlopen_self_static=cross
17121else
17122 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17123 lt_status=$lt_dlunknown
17124 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017125#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017126#include "confdefs.h"
17127
17128#if HAVE_DLFCN_H
17129#include <dlfcn.h>
17130#endif
17131
17132#include <stdio.h>
17133
17134#ifdef RTLD_GLOBAL
17135# define LT_DLGLOBAL RTLD_GLOBAL
17136#else
17137# ifdef DL_GLOBAL
17138# define LT_DLGLOBAL DL_GLOBAL
17139# else
17140# define LT_DLGLOBAL 0
17141# endif
17142#endif
17143
17144/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17145 find out it does not work in some platform. */
17146#ifndef LT_DLLAZY_OR_NOW
17147# ifdef RTLD_LAZY
17148# define LT_DLLAZY_OR_NOW RTLD_LAZY
17149# else
17150# ifdef DL_LAZY
17151# define LT_DLLAZY_OR_NOW DL_LAZY
17152# else
17153# ifdef RTLD_NOW
17154# define LT_DLLAZY_OR_NOW RTLD_NOW
17155# else
17156# ifdef DL_NOW
17157# define LT_DLLAZY_OR_NOW DL_NOW
17158# else
17159# define LT_DLLAZY_OR_NOW 0
17160# endif
17161# endif
17162# endif
17163# endif
17164#endif
17165
cristy0c60a692010-11-04 01:09:47 +000017166/* When -fvisbility=hidden is used, assume the code has been annotated
17167 correspondingly for the symbols needed. */
17168#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017169int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017170#endif
17171
cristyda16f162011-02-19 23:52:17 +000017172int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017173int main ()
17174{
17175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17176 int status = $lt_dlunknown;
17177
17178 if (self)
17179 {
17180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017181 else
17182 {
17183 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17184 else puts (dlerror ());
17185 }
cristy73bd4a52010-10-05 11:24:23 +000017186 /* dlclose (self); */
17187 }
17188 else
17189 puts (dlerror ());
17190
17191 return status;
17192}
17193_LT_EOF
17194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17195 (eval $ac_link) 2>&5
17196 ac_status=$?
17197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17198 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17199 (./conftest; exit; ) >&5 2>/dev/null
17200 lt_status=$?
17201 case x$lt_status in
17202 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17203 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17204 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17205 esac
17206 else :
17207 # compilation failed
17208 lt_cv_dlopen_self_static=no
17209 fi
17210fi
17211rm -fr conftest*
17212
17213
17214fi
17215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17216$as_echo "$lt_cv_dlopen_self_static" >&6; }
17217 fi
17218
17219 CPPFLAGS="$save_CPPFLAGS"
17220 LDFLAGS="$save_LDFLAGS"
17221 LIBS="$save_LIBS"
17222 ;;
17223 esac
17224
17225 case $lt_cv_dlopen_self in
17226 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17227 *) enable_dlopen_self=unknown ;;
17228 esac
17229
17230 case $lt_cv_dlopen_self_static in
17231 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17232 *) enable_dlopen_self_static=unknown ;;
17233 esac
17234fi
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252striplib=
17253old_striplib=
17254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17255$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17256if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17257 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17258 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17260$as_echo "yes" >&6; }
17261else
17262# FIXME - insert some real tests, host_os isn't really good enough
17263 case $host_os in
17264 darwin*)
17265 if test -n "$STRIP" ; then
17266 striplib="$STRIP -x"
17267 old_striplib="$STRIP -S"
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17269$as_echo "yes" >&6; }
17270 else
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17272$as_echo "no" >&6; }
17273 fi
17274 ;;
17275 *)
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17277$as_echo "no" >&6; }
17278 ;;
17279 esac
17280fi
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293 # Report which library types will actually be built
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17295$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17297$as_echo "$can_build_shared" >&6; }
17298
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17300$as_echo_n "checking whether to build shared libraries... " >&6; }
17301 test "$can_build_shared" = "no" && enable_shared=no
17302
17303 # On AIX, shared libraries and static libraries use the same namespace, and
17304 # are all built from PIC.
17305 case $host_os in
17306 aix3*)
17307 test "$enable_shared" = yes && enable_static=no
17308 if test -n "$RANLIB"; then
17309 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17310 postinstall_cmds='$RANLIB $lib'
17311 fi
17312 ;;
17313
17314 aix[4-9]*)
17315 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17316 test "$enable_shared" = yes && enable_static=no
17317 fi
17318 ;;
17319 esac
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17321$as_echo "$enable_shared" >&6; }
17322
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17324$as_echo_n "checking whether to build static libraries... " >&6; }
17325 # Make sure either enable_shared or enable_static is yes.
17326 test "$enable_shared" = yes || enable_static=yes
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17328$as_echo "$enable_static" >&6; }
17329
17330
17331
17332
17333fi
17334ac_ext=c
17335ac_cpp='$CPP $CPPFLAGS'
17336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17338ac_compiler_gnu=$ac_cv_c_compiler_gnu
17339
17340CC="$lt_save_CC"
17341
cristy0c60a692010-11-04 01:09:47 +000017342 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17343 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17344 (test "X$CXX" != "Xg++"))) ; then
17345 ac_ext=cpp
17346ac_cpp='$CXXCPP $CPPFLAGS'
17347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17351$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17352if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017353 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017354 $as_echo_n "(cached) " >&6
17355else
17356 # Double quotes because CXXCPP needs to be expanded
17357 for CXXCPP in "$CXX -E" "/lib/cpp"
17358 do
17359 ac_preproc_ok=false
17360for ac_cxx_preproc_warn_flag in '' yes
17361do
17362 # Use a header file that comes with gcc, so configuring glibc
17363 # with a fresh cross-compiler works.
17364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17365 # <limits.h> exists even on freestanding compilers.
17366 # On the NeXT, cc -E runs the code through the compiler's parser,
17367 # not just through cpp. "Syntax error" is here to catch this case.
17368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17369/* end confdefs.h. */
17370#ifdef __STDC__
17371# include <limits.h>
17372#else
17373# include <assert.h>
17374#endif
17375 Syntax error
17376_ACEOF
17377if ac_fn_cxx_try_cpp "$LINENO"; then :
17378
17379else
17380 # Broken: fails on valid input.
17381continue
17382fi
cristyda16f162011-02-19 23:52:17 +000017383rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017384
17385 # OK, works on sane cases. Now check whether nonexistent headers
17386 # can be detected and how.
17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388/* end confdefs.h. */
17389#include <ac_nonexistent.h>
17390_ACEOF
17391if ac_fn_cxx_try_cpp "$LINENO"; then :
17392 # Broken: success on invalid input.
17393continue
17394else
17395 # Passes both tests.
17396ac_preproc_ok=:
17397break
17398fi
cristyda16f162011-02-19 23:52:17 +000017399rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017400
17401done
17402# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017403rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017404if $ac_preproc_ok; then :
17405 break
17406fi
17407
17408 done
17409 ac_cv_prog_CXXCPP=$CXXCPP
17410
17411fi
17412 CXXCPP=$ac_cv_prog_CXXCPP
17413else
17414 ac_cv_prog_CXXCPP=$CXXCPP
17415fi
17416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17417$as_echo "$CXXCPP" >&6; }
17418ac_preproc_ok=false
17419for ac_cxx_preproc_warn_flag in '' yes
17420do
17421 # Use a header file that comes with gcc, so configuring glibc
17422 # with a fresh cross-compiler works.
17423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17424 # <limits.h> exists even on freestanding compilers.
17425 # On the NeXT, cc -E runs the code through the compiler's parser,
17426 # not just through cpp. "Syntax error" is here to catch this case.
17427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428/* end confdefs.h. */
17429#ifdef __STDC__
17430# include <limits.h>
17431#else
17432# include <assert.h>
17433#endif
17434 Syntax error
17435_ACEOF
17436if ac_fn_cxx_try_cpp "$LINENO"; then :
17437
17438else
17439 # Broken: fails on valid input.
17440continue
17441fi
cristyda16f162011-02-19 23:52:17 +000017442rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017443
17444 # OK, works on sane cases. Now check whether nonexistent headers
17445 # can be detected and how.
17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447/* end confdefs.h. */
17448#include <ac_nonexistent.h>
17449_ACEOF
17450if ac_fn_cxx_try_cpp "$LINENO"; then :
17451 # Broken: success on invalid input.
17452continue
17453else
17454 # Passes both tests.
17455ac_preproc_ok=:
17456break
17457fi
cristyda16f162011-02-19 23:52:17 +000017458rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017459
17460done
17461# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017462rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017463if $ac_preproc_ok; then :
17464
17465else
17466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17468as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17469See \`config.log' for more details" "$LINENO" 5; }
17470fi
17471
17472ac_ext=c
17473ac_cpp='$CPP $CPPFLAGS'
17474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17476ac_compiler_gnu=$ac_cv_c_compiler_gnu
17477
17478else
17479 _lt_caught_CXX_error=yes
17480fi
cristy73bd4a52010-10-05 11:24:23 +000017481
17482ac_ext=cpp
17483ac_cpp='$CXXCPP $CPPFLAGS'
17484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17487
17488archive_cmds_need_lc_CXX=no
17489allow_undefined_flag_CXX=
17490always_export_symbols_CXX=no
17491archive_expsym_cmds_CXX=
17492compiler_needs_object_CXX=no
17493export_dynamic_flag_spec_CXX=
17494hardcode_direct_CXX=no
17495hardcode_direct_absolute_CXX=no
17496hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017497hardcode_libdir_separator_CXX=
17498hardcode_minus_L_CXX=no
17499hardcode_shlibpath_var_CXX=unsupported
17500hardcode_automatic_CXX=no
17501inherit_rpath_CXX=no
17502module_cmds_CXX=
17503module_expsym_cmds_CXX=
17504link_all_deplibs_CXX=unknown
17505old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017506reload_flag_CXX=$reload_flag
17507reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017508no_undefined_flag_CXX=
17509whole_archive_flag_spec_CXX=
17510enable_shared_with_static_runtimes_CXX=no
17511
17512# Source file extension for C++ test sources.
17513ac_ext=cpp
17514
17515# Object file extension for compiled C++ test sources.
17516objext=o
17517objext_CXX=$objext
17518
17519# No sense in running all these tests if we already determined that
17520# the CXX compiler isn't working. Some variables (like enable_shared)
17521# are currently assumed to apply to all compilers on this platform,
17522# and will be corrupted by setting them based on a non-working compiler.
17523if test "$_lt_caught_CXX_error" != yes; then
17524 # Code to be used in simple compile tests
17525 lt_simple_compile_test_code="int some_variable = 0;"
17526
17527 # Code to be used in simple link tests
17528 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17529
17530 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17531
17532
17533
17534
17535
17536
17537# If no C compiler was specified, use CC.
17538LTCC=${LTCC-"$CC"}
17539
17540# If no C compiler flags were specified, use CFLAGS.
17541LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17542
17543# Allow CC to be a program name with arguments.
17544compiler=$CC
17545
17546
17547 # save warnings/boilerplate of simple test code
17548 ac_outfile=conftest.$ac_objext
17549echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17550eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17551_lt_compiler_boilerplate=`cat conftest.err`
17552$RM conftest*
17553
17554 ac_outfile=conftest.$ac_objext
17555echo "$lt_simple_link_test_code" >conftest.$ac_ext
17556eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17557_lt_linker_boilerplate=`cat conftest.err`
17558$RM -r conftest*
17559
17560
17561 # Allow CC to be a program name with arguments.
17562 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017563 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017564 lt_save_LD=$LD
17565 lt_save_GCC=$GCC
17566 GCC=$GXX
17567 lt_save_with_gnu_ld=$with_gnu_ld
17568 lt_save_path_LD=$lt_cv_path_LD
17569 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17570 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17571 else
17572 $as_unset lt_cv_prog_gnu_ld
17573 fi
17574 if test -n "${lt_cv_path_LDCXX+set}"; then
17575 lt_cv_path_LD=$lt_cv_path_LDCXX
17576 else
17577 $as_unset lt_cv_path_LD
17578 fi
17579 test -z "${LDCXX+set}" || LD=$LDCXX
17580 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017581 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017582 compiler=$CC
17583 compiler_CXX=$CC
17584 for cc_temp in $compiler""; do
17585 case $cc_temp in
17586 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17587 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17588 \-*) ;;
17589 *) break;;
17590 esac
17591done
cristy0c60a692010-11-04 01:09:47 +000017592cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017593
17594
17595 if test -n "$compiler"; then
17596 # We don't want -fno-exception when compiling C++ code, so set the
17597 # no_builtin_flag separately
17598 if test "$GXX" = yes; then
17599 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17600 else
17601 lt_prog_compiler_no_builtin_flag_CXX=
17602 fi
17603
17604 if test "$GXX" = yes; then
17605 # Set up default GNU C++ configuration
17606
17607
17608
17609# Check whether --with-gnu-ld was given.
17610if test "${with_gnu_ld+set}" = set; then :
17611 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17612else
17613 with_gnu_ld=no
17614fi
17615
17616ac_prog=ld
17617if test "$GCC" = yes; then
17618 # Check if gcc -print-prog-name=ld gives a path.
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17620$as_echo_n "checking for ld used by $CC... " >&6; }
17621 case $host in
17622 *-*-mingw*)
17623 # gcc leaves a trailing carriage return which upsets mingw
17624 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17625 *)
17626 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17627 esac
17628 case $ac_prog in
17629 # Accept absolute paths.
17630 [\\/]* | ?:[\\/]*)
17631 re_direlt='/[^/][^/]*/\.\./'
17632 # Canonicalize the pathname of ld
17633 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17634 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17635 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17636 done
17637 test -z "$LD" && LD="$ac_prog"
17638 ;;
17639 "")
17640 # If it fails, then pretend we aren't using GCC.
17641 ac_prog=ld
17642 ;;
17643 *)
17644 # If it is relative, then search for the first ld in PATH.
17645 with_gnu_ld=unknown
17646 ;;
17647 esac
17648elif test "$with_gnu_ld" = yes; then
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17650$as_echo_n "checking for GNU ld... " >&6; }
17651else
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17653$as_echo_n "checking for non-GNU ld... " >&6; }
17654fi
cristyda16f162011-02-19 23:52:17 +000017655if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017656 $as_echo_n "(cached) " >&6
17657else
17658 if test -z "$LD"; then
17659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17660 for ac_dir in $PATH; do
17661 IFS="$lt_save_ifs"
17662 test -z "$ac_dir" && ac_dir=.
17663 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17664 lt_cv_path_LD="$ac_dir/$ac_prog"
17665 # Check to see if the program is GNU ld. I'd rather use --version,
17666 # but apparently some variants of GNU ld only accept -v.
17667 # Break only if it was the GNU/non-GNU ld that we prefer.
17668 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17669 *GNU* | *'with BFD'*)
17670 test "$with_gnu_ld" != no && break
17671 ;;
17672 *)
17673 test "$with_gnu_ld" != yes && break
17674 ;;
17675 esac
17676 fi
17677 done
17678 IFS="$lt_save_ifs"
17679else
17680 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17681fi
17682fi
17683
17684LD="$lt_cv_path_LD"
17685if test -n "$LD"; then
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17687$as_echo "$LD" >&6; }
17688else
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17690$as_echo "no" >&6; }
17691fi
cristy98dddb52010-11-04 00:30:15 +000017692test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17694$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017695if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017696 $as_echo_n "(cached) " >&6
17697else
17698 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17699case `$LD -v 2>&1 </dev/null` in
17700*GNU* | *'with BFD'*)
17701 lt_cv_prog_gnu_ld=yes
17702 ;;
17703*)
17704 lt_cv_prog_gnu_ld=no
17705 ;;
17706esac
17707fi
17708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17709$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17710with_gnu_ld=$lt_cv_prog_gnu_ld
17711
17712
17713
17714
17715
17716
17717
17718 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17719 # archiving commands below assume that GNU ld is being used.
17720 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017721 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17722 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 +000017723
17724 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17726
17727 # If archive_cmds runs LD, not CC, wlarc should be empty
17728 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17729 # investigate it a little bit more. (MM)
17730 wlarc='${wl}'
17731
17732 # ancient GNU ld didn't support --whole-archive et. al.
17733 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17734 $GREP 'no-whole-archive' > /dev/null; then
17735 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17736 else
17737 whole_archive_flag_spec_CXX=
17738 fi
17739 else
17740 with_gnu_ld=no
17741 wlarc=
17742
17743 # A generic and very simple default shared library creation
17744 # command for GNU C++ for the case where it uses the native
17745 # linker, instead of GNU ld. If possible, this setting should
17746 # overridden to take advantage of the native linker features on
17747 # the platform it is being used on.
17748 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17749 fi
17750
17751 # Commands to make compiler produce verbose output that lists
17752 # what "hidden" libraries, object files and flags are used when
17753 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017754 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017755
17756 else
17757 GXX=no
17758 with_gnu_ld=no
17759 wlarc=
17760 fi
17761
17762 # PORTME: fill in a description of your system's C++ link characteristics
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17764$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17765 ld_shlibs_CXX=yes
17766 case $host_os in
17767 aix3*)
17768 # FIXME: insert proper C++ library support
17769 ld_shlibs_CXX=no
17770 ;;
17771 aix[4-9]*)
17772 if test "$host_cpu" = ia64; then
17773 # On IA64, the linker does run time linking by default, so we don't
17774 # have to do anything special.
17775 aix_use_runtimelinking=no
17776 exp_sym_flag='-Bexport'
17777 no_entry_flag=""
17778 else
17779 aix_use_runtimelinking=no
17780
17781 # Test if we are trying to use run time linking or normal
17782 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17783 # need to do runtime linking.
17784 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17785 for ld_flag in $LDFLAGS; do
17786 case $ld_flag in
17787 *-brtl*)
17788 aix_use_runtimelinking=yes
17789 break
17790 ;;
17791 esac
17792 done
17793 ;;
17794 esac
17795
17796 exp_sym_flag='-bexport'
17797 no_entry_flag='-bnoentry'
17798 fi
17799
17800 # When large executables or shared objects are built, AIX ld can
17801 # have problems creating the table of contents. If linking a library
17802 # or program results in "error TOC overflow" add -mminimal-toc to
17803 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17804 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17805
17806 archive_cmds_CXX=''
17807 hardcode_direct_CXX=yes
17808 hardcode_direct_absolute_CXX=yes
17809 hardcode_libdir_separator_CXX=':'
17810 link_all_deplibs_CXX=yes
17811 file_list_spec_CXX='${wl}-f,'
17812
17813 if test "$GXX" = yes; then
17814 case $host_os in aix4.[012]|aix4.[012].*)
17815 # We only want to do this on AIX 4.2 and lower, the check
17816 # below for broken collect2 doesn't work under 4.3+
17817 collect2name=`${CC} -print-prog-name=collect2`
17818 if test -f "$collect2name" &&
17819 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17820 then
17821 # We have reworked collect2
17822 :
17823 else
17824 # We have old collect2
17825 hardcode_direct_CXX=unsupported
17826 # It fails to find uninstalled libraries when the uninstalled
17827 # path is not listed in the libpath. Setting hardcode_minus_L
17828 # to unsupported forces relinking
17829 hardcode_minus_L_CXX=yes
17830 hardcode_libdir_flag_spec_CXX='-L$libdir'
17831 hardcode_libdir_separator_CXX=
17832 fi
17833 esac
17834 shared_flag='-shared'
17835 if test "$aix_use_runtimelinking" = yes; then
17836 shared_flag="$shared_flag "'${wl}-G'
17837 fi
17838 else
17839 # not using gcc
17840 if test "$host_cpu" = ia64; then
17841 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17842 # chokes on -Wl,-G. The following line is correct:
17843 shared_flag='-G'
17844 else
17845 if test "$aix_use_runtimelinking" = yes; then
17846 shared_flag='${wl}-G'
17847 else
17848 shared_flag='${wl}-bM:SRE'
17849 fi
17850 fi
17851 fi
17852
17853 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17854 # It seems that -bexpall does not export symbols beginning with
17855 # underscore (_), so it is better to generate a list of symbols to
17856 # export.
17857 always_export_symbols_CXX=yes
17858 if test "$aix_use_runtimelinking" = yes; then
17859 # Warning - without using the other runtime loading flags (-brtl),
17860 # -berok will link without error, but may produce a broken library.
17861 allow_undefined_flag_CXX='-berok'
17862 # Determine the default libpath from the value encoded in an empty
17863 # executable.
cristyda16f162011-02-19 23:52:17 +000017864 if test "${lt_cv_aix_libpath+set}" = set; then
17865 aix_libpath=$lt_cv_aix_libpath
17866else
17867 if ${lt_cv_aix_libpath__CXX+:} false; then :
17868 $as_echo_n "(cached) " >&6
17869else
17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017871/* end confdefs.h. */
17872
17873int
17874main ()
17875{
17876
17877 ;
17878 return 0;
17879}
17880_ACEOF
17881if ac_fn_cxx_try_link "$LINENO"; then :
17882
cristyda16f162011-02-19 23:52:17 +000017883 lt_aix_libpath_sed='
17884 /Import File Strings/,/^$/ {
17885 /^0/ {
17886 s/^0 *\([^ ]*\) *$/\1/
17887 p
17888 }
17889 }'
17890 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17891 # Check for a 64-bit object if we didn't find anything.
17892 if test -z "$lt_cv_aix_libpath__CXX"; then
17893 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17894 fi
cristy73bd4a52010-10-05 11:24:23 +000017895fi
17896rm -f core conftest.err conftest.$ac_objext \
17897 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017898 if test -z "$lt_cv_aix_libpath__CXX"; then
17899 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17900 fi
17901
17902fi
17903
17904 aix_libpath=$lt_cv_aix_libpath__CXX
17905fi
cristy73bd4a52010-10-05 11:24:23 +000017906
17907 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17908
cristy0c60a692010-11-04 01:09:47 +000017909 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 +000017910 else
17911 if test "$host_cpu" = ia64; then
17912 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17913 allow_undefined_flag_CXX="-z nodefs"
17914 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"
17915 else
17916 # Determine the default libpath from the value encoded in an
17917 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017918 if test "${lt_cv_aix_libpath+set}" = set; then
17919 aix_libpath=$lt_cv_aix_libpath
17920else
17921 if ${lt_cv_aix_libpath__CXX+:} false; then :
17922 $as_echo_n "(cached) " >&6
17923else
17924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017925/* end confdefs.h. */
17926
17927int
17928main ()
17929{
17930
17931 ;
17932 return 0;
17933}
17934_ACEOF
17935if ac_fn_cxx_try_link "$LINENO"; then :
17936
cristyda16f162011-02-19 23:52:17 +000017937 lt_aix_libpath_sed='
17938 /Import File Strings/,/^$/ {
17939 /^0/ {
17940 s/^0 *\([^ ]*\) *$/\1/
17941 p
17942 }
17943 }'
17944 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17945 # Check for a 64-bit object if we didn't find anything.
17946 if test -z "$lt_cv_aix_libpath__CXX"; then
17947 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17948 fi
cristy73bd4a52010-10-05 11:24:23 +000017949fi
17950rm -f core conftest.err conftest.$ac_objext \
17951 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017952 if test -z "$lt_cv_aix_libpath__CXX"; then
17953 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17954 fi
17955
17956fi
17957
17958 aix_libpath=$lt_cv_aix_libpath__CXX
17959fi
cristy73bd4a52010-10-05 11:24:23 +000017960
17961 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17962 # Warning - without using the other run time loading flags,
17963 # -berok will link without error, but may produce a broken library.
17964 no_undefined_flag_CXX=' ${wl}-bernotok'
17965 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017966 if test "$with_gnu_ld" = yes; then
17967 # We only use this code for GNU lds that support --whole-archive.
17968 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17969 else
17970 # Exported symbols can be pulled into shared objects from archives
17971 whole_archive_flag_spec_CXX='$convenience'
17972 fi
cristy73bd4a52010-10-05 11:24:23 +000017973 archive_cmds_need_lc_CXX=yes
17974 # This is similar to how AIX traditionally builds its shared
17975 # libraries.
17976 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'
17977 fi
17978 fi
17979 ;;
17980
17981 beos*)
17982 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17983 allow_undefined_flag_CXX=unsupported
17984 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17985 # support --undefined. This deserves some investigation. FIXME
17986 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17987 else
17988 ld_shlibs_CXX=no
17989 fi
17990 ;;
17991
17992 chorus*)
17993 case $cc_basename in
17994 *)
17995 # FIXME: insert proper C++ library support
17996 ld_shlibs_CXX=no
17997 ;;
17998 esac
17999 ;;
18000
18001 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018002 case $GXX,$cc_basename in
18003 ,cl* | no,cl*)
18004 # Native MSVC
18005 # hardcode_libdir_flag_spec is actually meaningless, as there is
18006 # no search path for DLLs.
18007 hardcode_libdir_flag_spec_CXX=' '
18008 allow_undefined_flag_CXX=unsupported
18009 always_export_symbols_CXX=yes
18010 file_list_spec_CXX='@'
18011 # Tell ltmain to make .lib files, not .a files.
18012 libext=lib
18013 # Tell ltmain to make .dll files, not .so files.
18014 shrext_cmds=".dll"
18015 # FIXME: Setting linknames here is a bad hack.
18016 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18017 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18018 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18019 else
18020 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18021 fi~
18022 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18023 linknames='
18024 # The linker will not automatically build a static lib if we build a DLL.
18025 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18026 enable_shared_with_static_runtimes_CXX=yes
18027 # Don't use ranlib
18028 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18029 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18030 lt_tool_outputfile="@TOOL_OUTPUT@"~
18031 case $lt_outputfile in
18032 *.exe|*.EXE) ;;
18033 *)
18034 lt_outputfile="$lt_outputfile.exe"
18035 lt_tool_outputfile="$lt_tool_outputfile.exe"
18036 ;;
18037 esac~
18038 func_to_tool_file "$lt_outputfile"~
18039 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18040 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18041 $RM "$lt_outputfile.manifest";
18042 fi'
18043 ;;
18044 *)
18045 # g++
18046 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18047 # as there is no search path for DLLs.
18048 hardcode_libdir_flag_spec_CXX='-L$libdir'
18049 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18050 allow_undefined_flag_CXX=unsupported
18051 always_export_symbols_CXX=no
18052 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018053
cristyda16f162011-02-19 23:52:17 +000018054 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18055 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'
18056 # If the export-symbols file already is a .def file (1st line
18057 # is EXPORTS), use it as is; otherwise, prepend...
18058 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18059 cp $export_symbols $output_objdir/$soname.def;
18060 else
18061 echo EXPORTS > $output_objdir/$soname.def;
18062 cat $export_symbols >> $output_objdir/$soname.def;
18063 fi~
18064 $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'
18065 else
18066 ld_shlibs_CXX=no
18067 fi
18068 ;;
18069 esac
18070 ;;
cristy73bd4a52010-10-05 11:24:23 +000018071 darwin* | rhapsody*)
18072
18073
18074 archive_cmds_need_lc_CXX=no
18075 hardcode_direct_CXX=no
18076 hardcode_automatic_CXX=yes
18077 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018078 if test "$lt_cv_ld_force_load" = "yes"; then
18079 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 +000018080
cristy0c60a692010-11-04 01:09:47 +000018081 else
18082 whole_archive_flag_spec_CXX=''
18083 fi
cristy73bd4a52010-10-05 11:24:23 +000018084 link_all_deplibs_CXX=yes
18085 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18086 case $cc_basename in
18087 ifort*) _lt_dar_can_shared=yes ;;
18088 *) _lt_dar_can_shared=$GCC ;;
18089 esac
18090 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018091 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018092 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}"
18093 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18094 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}"
18095 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}"
18096 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18097 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}"
18098 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}"
18099 fi
18100
18101 else
18102 ld_shlibs_CXX=no
18103 fi
18104
18105 ;;
18106
18107 dgux*)
18108 case $cc_basename in
18109 ec++*)
18110 # FIXME: insert proper C++ library support
18111 ld_shlibs_CXX=no
18112 ;;
18113 ghcx*)
18114 # Green Hills C++ Compiler
18115 # FIXME: insert proper C++ library support
18116 ld_shlibs_CXX=no
18117 ;;
18118 *)
18119 # FIXME: insert proper C++ library support
18120 ld_shlibs_CXX=no
18121 ;;
18122 esac
18123 ;;
18124
cristy99bd5232011-12-07 14:38:20 +000018125 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018126 # C++ shared libraries reported to be fairly broken before
18127 # switch to ELF
18128 ld_shlibs_CXX=no
18129 ;;
18130
18131 freebsd-elf*)
18132 archive_cmds_need_lc_CXX=no
18133 ;;
18134
18135 freebsd* | dragonfly*)
18136 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18137 # conventions
18138 ld_shlibs_CXX=yes
18139 ;;
18140
18141 gnu*)
18142 ;;
18143
cristy0c60a692010-11-04 01:09:47 +000018144 haiku*)
18145 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18146 link_all_deplibs_CXX=yes
18147 ;;
18148
cristy73bd4a52010-10-05 11:24:23 +000018149 hpux9*)
18150 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18151 hardcode_libdir_separator_CXX=:
18152 export_dynamic_flag_spec_CXX='${wl}-E'
18153 hardcode_direct_CXX=yes
18154 hardcode_minus_L_CXX=yes # Not in the search PATH,
18155 # but as the default
18156 # location of the library.
18157
18158 case $cc_basename in
18159 CC*)
18160 # FIXME: insert proper C++ library support
18161 ld_shlibs_CXX=no
18162 ;;
18163 aCC*)
18164 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'
18165 # Commands to make compiler produce verbose output that lists
18166 # what "hidden" libraries, object files and flags are used when
18167 # linking a shared library.
18168 #
18169 # There doesn't appear to be a way to prevent this compiler from
18170 # explicitly linking system object files so we need to strip them
18171 # from the output so that they don't get included in the library
18172 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018173 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 +000018174 ;;
18175 *)
18176 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018177 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 +000018178 else
18179 # FIXME: insert proper C++ library support
18180 ld_shlibs_CXX=no
18181 fi
18182 ;;
18183 esac
18184 ;;
18185
18186 hpux10*|hpux11*)
18187 if test $with_gnu_ld = no; then
18188 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18189 hardcode_libdir_separator_CXX=:
18190
18191 case $host_cpu in
18192 hppa*64*|ia64*)
18193 ;;
18194 *)
18195 export_dynamic_flag_spec_CXX='${wl}-E'
18196 ;;
18197 esac
18198 fi
18199 case $host_cpu in
18200 hppa*64*|ia64*)
18201 hardcode_direct_CXX=no
18202 hardcode_shlibpath_var_CXX=no
18203 ;;
18204 *)
18205 hardcode_direct_CXX=yes
18206 hardcode_direct_absolute_CXX=yes
18207 hardcode_minus_L_CXX=yes # Not in the search PATH,
18208 # but as the default
18209 # location of the library.
18210 ;;
18211 esac
18212
18213 case $cc_basename in
18214 CC*)
18215 # FIXME: insert proper C++ library support
18216 ld_shlibs_CXX=no
18217 ;;
18218 aCC*)
18219 case $host_cpu in
18220 hppa*64*)
18221 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18222 ;;
18223 ia64*)
18224 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18225 ;;
18226 *)
18227 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18228 ;;
18229 esac
18230 # Commands to make compiler produce verbose output that lists
18231 # what "hidden" libraries, object files and flags are used when
18232 # linking a shared library.
18233 #
18234 # There doesn't appear to be a way to prevent this compiler from
18235 # explicitly linking system object files so we need to strip them
18236 # from the output so that they don't get included in the library
18237 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018238 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 +000018239 ;;
18240 *)
18241 if test "$GXX" = yes; then
18242 if test $with_gnu_ld = no; then
18243 case $host_cpu in
18244 hppa*64*)
18245 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18246 ;;
18247 ia64*)
cristyda16f162011-02-19 23:52:17 +000018248 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 +000018249 ;;
18250 *)
cristyda16f162011-02-19 23:52:17 +000018251 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 +000018252 ;;
18253 esac
18254 fi
18255 else
18256 # FIXME: insert proper C++ library support
18257 ld_shlibs_CXX=no
18258 fi
18259 ;;
18260 esac
18261 ;;
18262
18263 interix[3-9]*)
18264 hardcode_direct_CXX=no
18265 hardcode_shlibpath_var_CXX=no
18266 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18267 export_dynamic_flag_spec_CXX='${wl}-E'
18268 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18269 # Instead, shared libraries are loaded at an image base (0x10000000 by
18270 # default) and relocated if they conflict, which is a slow very memory
18271 # consuming and fragmenting process. To avoid this, we pick a random,
18272 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18273 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18274 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'
18275 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'
18276 ;;
18277 irix5* | irix6*)
18278 case $cc_basename in
18279 CC*)
18280 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018281 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 +000018282
18283 # Archives containing C++ object files must be created using
18284 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18285 # necessary to make sure instantiated templates are included
18286 # in the archive.
18287 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18288 ;;
18289 *)
18290 if test "$GXX" = yes; then
18291 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018292 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 +000018293 else
cristyda16f162011-02-19 23:52:17 +000018294 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 +000018295 fi
18296 fi
18297 link_all_deplibs_CXX=yes
18298 ;;
18299 esac
18300 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18301 hardcode_libdir_separator_CXX=:
18302 inherit_rpath_CXX=yes
18303 ;;
18304
cristy0c60a692010-11-04 01:09:47 +000018305 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018306 case $cc_basename in
18307 KCC*)
18308 # Kuck and Associates, Inc. (KAI) C++ Compiler
18309
18310 # KCC will only create a shared library if the output file
18311 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18312 # to its proper name (with version) after linking.
18313 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'
18314 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'
18315 # Commands to make compiler produce verbose output that lists
18316 # what "hidden" libraries, object files and flags are used when
18317 # linking a shared library.
18318 #
18319 # There doesn't appear to be a way to prevent this compiler from
18320 # explicitly linking system object files so we need to strip them
18321 # from the output so that they don't get included in the library
18322 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018323 output_verbose_link_cmd='templist=`$CC $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 +000018324
18325 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18326 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18327
18328 # Archives containing C++ object files must be created using
18329 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18330 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18331 ;;
18332 icpc* | ecpc* )
18333 # Intel C++
18334 with_gnu_ld=yes
18335 # version 8.0 and above of icpc choke on multiply defined symbols
18336 # if we add $predep_objects and $postdep_objects, however 7.1 and
18337 # earlier do not add the objects themselves.
18338 case `$CC -V 2>&1` in
18339 *"Version 7."*)
18340 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18341 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'
18342 ;;
18343 *) # Version 8.0 or newer
18344 tmp_idyn=
18345 case $host_cpu in
18346 ia64*) tmp_idyn=' -i_dynamic';;
18347 esac
18348 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18349 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'
18350 ;;
18351 esac
18352 archive_cmds_need_lc_CXX=no
18353 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18355 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18356 ;;
18357 pgCC* | pgcpp*)
18358 # Portland Group C++ compiler
18359 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018360 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018361 prelink_cmds_CXX='tpldir=Template.dir~
18362 rm -rf $tpldir~
18363 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018364 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018365 old_archive_cmds_CXX='tpldir=Template.dir~
18366 rm -rf $tpldir~
18367 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018368 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018369 $RANLIB $oldlib'
18370 archive_cmds_CXX='tpldir=Template.dir~
18371 rm -rf $tpldir~
18372 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018373 $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 +000018374 archive_expsym_cmds_CXX='tpldir=Template.dir~
18375 rm -rf $tpldir~
18376 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018377 $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 +000018378 ;;
cristy0c60a692010-11-04 01:09:47 +000018379 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018380 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18381 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'
18382 ;;
18383 esac
18384
18385 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18386 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018387 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 +000018388 ;;
18389 cxx*)
18390 # Compaq C++
18391 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18392 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'
18393
18394 runpath_var=LD_RUN_PATH
18395 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18396 hardcode_libdir_separator_CXX=:
18397
18398 # Commands to make compiler produce verbose output that lists
18399 # what "hidden" libraries, object files and flags are used when
18400 # linking a shared library.
18401 #
18402 # There doesn't appear to be a way to prevent this compiler from
18403 # explicitly linking system object files so we need to strip them
18404 # from the output so that they don't get included in the library
18405 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018406 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 +000018407 ;;
cristy0c60a692010-11-04 01:09:47 +000018408 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018409 # IBM XL 8.0 on PPC, with GNU ld
18410 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18412 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18413 if test "x$supports_anon_versioning" = xyes; then
18414 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18415 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18416 echo "local: *; };" >> $output_objdir/$libname.ver~
18417 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18418 fi
18419 ;;
18420 *)
18421 case `$CC -V 2>&1 | sed 5q` in
18422 *Sun\ C*)
18423 # Sun C++ 5.9
18424 no_undefined_flag_CXX=' -zdefs'
18425 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18426 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'
18427 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018428 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 +000018429 compiler_needs_object_CXX=yes
18430
18431 # Not sure whether something based on
18432 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18433 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018434 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018435
18436 # Archives containing C++ object files must be created using
18437 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18438 # necessary to make sure instantiated templates are included
18439 # in the archive.
18440 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18441 ;;
18442 esac
18443 ;;
18444 esac
18445 ;;
18446
18447 lynxos*)
18448 # FIXME: insert proper C++ library support
18449 ld_shlibs_CXX=no
18450 ;;
18451
18452 m88k*)
18453 # FIXME: insert proper C++ library support
18454 ld_shlibs_CXX=no
18455 ;;
18456
18457 mvs*)
18458 case $cc_basename in
18459 cxx*)
18460 # FIXME: insert proper C++ library support
18461 ld_shlibs_CXX=no
18462 ;;
18463 *)
18464 # FIXME: insert proper C++ library support
18465 ld_shlibs_CXX=no
18466 ;;
18467 esac
18468 ;;
18469
18470 netbsd*)
18471 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18472 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18473 wlarc=
18474 hardcode_libdir_flag_spec_CXX='-R$libdir'
18475 hardcode_direct_CXX=yes
18476 hardcode_shlibpath_var_CXX=no
18477 fi
18478 # Workaround some broken pre-1.5 toolchains
18479 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18480 ;;
18481
18482 *nto* | *qnx*)
18483 ld_shlibs_CXX=yes
18484 ;;
18485
18486 openbsd2*)
18487 # C++ shared libraries are fairly broken
18488 ld_shlibs_CXX=no
18489 ;;
18490
18491 openbsd*)
18492 if test -f /usr/libexec/ld.so; then
18493 hardcode_direct_CXX=yes
18494 hardcode_shlibpath_var_CXX=no
18495 hardcode_direct_absolute_CXX=yes
18496 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18497 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18499 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18500 export_dynamic_flag_spec_CXX='${wl}-E'
18501 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18502 fi
cristy0c60a692010-11-04 01:09:47 +000018503 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018504 else
18505 ld_shlibs_CXX=no
18506 fi
18507 ;;
18508
18509 osf3* | osf4* | osf5*)
18510 case $cc_basename in
18511 KCC*)
18512 # Kuck and Associates, Inc. (KAI) C++ Compiler
18513
18514 # KCC will only create a shared library if the output file
18515 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18516 # to its proper name (with version) after linking.
18517 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'
18518
18519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18520 hardcode_libdir_separator_CXX=:
18521
18522 # Archives containing C++ object files must be created using
18523 # the KAI C++ compiler.
18524 case $host in
18525 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18526 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18527 esac
18528 ;;
18529 RCC*)
18530 # Rational C++ 2.4.1
18531 # FIXME: insert proper C++ library support
18532 ld_shlibs_CXX=no
18533 ;;
18534 cxx*)
18535 case $host in
18536 osf3*)
18537 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018538 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 +000018539 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18540 ;;
18541 *)
18542 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018543 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 +000018544 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18545 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018546 $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 +000018547 $RM $lib.exp'
18548 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18549 ;;
18550 esac
18551
18552 hardcode_libdir_separator_CXX=:
18553
18554 # Commands to make compiler produce verbose output that lists
18555 # what "hidden" libraries, object files and flags are used when
18556 # linking a shared library.
18557 #
18558 # There doesn't appear to be a way to prevent this compiler from
18559 # explicitly linking system object files so we need to strip them
18560 # from the output so that they don't get included in the library
18561 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018562 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 +000018563 ;;
18564 *)
18565 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18566 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18567 case $host in
18568 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018569 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 +000018570 ;;
18571 *)
cristyda16f162011-02-19 23:52:17 +000018572 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 +000018573 ;;
18574 esac
18575
18576 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18577 hardcode_libdir_separator_CXX=:
18578
18579 # Commands to make compiler produce verbose output that lists
18580 # what "hidden" libraries, object files and flags are used when
18581 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018582 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018583
18584 else
18585 # FIXME: insert proper C++ library support
18586 ld_shlibs_CXX=no
18587 fi
18588 ;;
18589 esac
18590 ;;
18591
18592 psos*)
18593 # FIXME: insert proper C++ library support
18594 ld_shlibs_CXX=no
18595 ;;
18596
18597 sunos4*)
18598 case $cc_basename in
18599 CC*)
18600 # Sun C++ 4.x
18601 # FIXME: insert proper C++ library support
18602 ld_shlibs_CXX=no
18603 ;;
18604 lcc*)
18605 # Lucid
18606 # FIXME: insert proper C++ library support
18607 ld_shlibs_CXX=no
18608 ;;
18609 *)
18610 # FIXME: insert proper C++ library support
18611 ld_shlibs_CXX=no
18612 ;;
18613 esac
18614 ;;
18615
18616 solaris*)
18617 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018618 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018619 # Sun C++ 4.2, 5.x and Centerline C++
18620 archive_cmds_need_lc_CXX=yes
18621 no_undefined_flag_CXX=' -zdefs'
18622 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18623 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18624 $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'
18625
18626 hardcode_libdir_flag_spec_CXX='-R$libdir'
18627 hardcode_shlibpath_var_CXX=no
18628 case $host_os in
18629 solaris2.[0-5] | solaris2.[0-5].*) ;;
18630 *)
18631 # The compiler driver will combine and reorder linker options,
18632 # but understands `-z linker_flag'.
18633 # Supported since Solaris 2.6 (maybe 2.5.1?)
18634 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18635 ;;
18636 esac
18637 link_all_deplibs_CXX=yes
18638
cristy0c60a692010-11-04 01:09:47 +000018639 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018640
18641 # Archives containing C++ object files must be created using
18642 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18643 # necessary to make sure instantiated templates are included
18644 # in the archive.
18645 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18646 ;;
18647 gcx*)
18648 # Green Hills C++ Compiler
18649 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18650
18651 # The C++ compiler must be used to create the archive.
18652 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18653 ;;
18654 *)
18655 # GNU C++ compiler with Solaris linker
18656 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18657 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18658 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018659 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 +000018660 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 +000018661 $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 +000018662
18663 # Commands to make compiler produce verbose output that lists
18664 # what "hidden" libraries, object files and flags are used when
18665 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018666 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018667 else
18668 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18669 # platform.
18670 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18671 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18672 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18673
18674 # Commands to make compiler produce verbose output that lists
18675 # what "hidden" libraries, object files and flags are used when
18676 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018677 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018678 fi
18679
18680 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18681 case $host_os in
18682 solaris2.[0-5] | solaris2.[0-5].*) ;;
18683 *)
18684 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18685 ;;
18686 esac
18687 fi
18688 ;;
18689 esac
18690 ;;
18691
18692 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18693 no_undefined_flag_CXX='${wl}-z,text'
18694 archive_cmds_need_lc_CXX=no
18695 hardcode_shlibpath_var_CXX=no
18696 runpath_var='LD_RUN_PATH'
18697
18698 case $cc_basename in
18699 CC*)
18700 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18701 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18702 ;;
18703 *)
18704 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18705 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18706 ;;
18707 esac
18708 ;;
18709
18710 sysv5* | sco3.2v5* | sco5v6*)
18711 # Note: We can NOT use -z defs as we might desire, because we do not
18712 # link with -lc, and that would cause any symbols used from libc to
18713 # always be unresolved, which means just about no library would
18714 # ever link correctly. If we're not using GNU ld we use -z text
18715 # though, which does catch some bad symbols but isn't as heavy-handed
18716 # as -z defs.
18717 no_undefined_flag_CXX='${wl}-z,text'
18718 allow_undefined_flag_CXX='${wl}-z,nodefs'
18719 archive_cmds_need_lc_CXX=no
18720 hardcode_shlibpath_var_CXX=no
18721 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18722 hardcode_libdir_separator_CXX=':'
18723 link_all_deplibs_CXX=yes
18724 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18725 runpath_var='LD_RUN_PATH'
18726
18727 case $cc_basename in
18728 CC*)
18729 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18730 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 +000018731 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18732 '"$old_archive_cmds_CXX"
18733 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18734 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018735 ;;
18736 *)
18737 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18738 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18739 ;;
18740 esac
18741 ;;
18742
18743 tandem*)
18744 case $cc_basename in
18745 NCC*)
18746 # NonStop-UX NCC 3.20
18747 # FIXME: insert proper C++ library support
18748 ld_shlibs_CXX=no
18749 ;;
18750 *)
18751 # FIXME: insert proper C++ library support
18752 ld_shlibs_CXX=no
18753 ;;
18754 esac
18755 ;;
18756
18757 vxworks*)
18758 # FIXME: insert proper C++ library support
18759 ld_shlibs_CXX=no
18760 ;;
18761
18762 *)
18763 # FIXME: insert proper C++ library support
18764 ld_shlibs_CXX=no
18765 ;;
18766 esac
18767
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18769$as_echo "$ld_shlibs_CXX" >&6; }
18770 test "$ld_shlibs_CXX" = no && can_build_shared=no
18771
18772 GCC_CXX="$GXX"
18773 LD_CXX="$LD"
18774
18775 ## CAVEAT EMPTOR:
18776 ## There is no encapsulation within the following macros, do not change
18777 ## the running order or otherwise move them around unless you know exactly
18778 ## what you are doing...
18779 # Dependencies to place before and after the object being linked:
18780predep_objects_CXX=
18781postdep_objects_CXX=
18782predeps_CXX=
18783postdeps_CXX=
18784compiler_lib_search_path_CXX=
18785
18786cat > conftest.$ac_ext <<_LT_EOF
18787class Foo
18788{
18789public:
18790 Foo (void) { a = 0; }
18791private:
18792 int a;
18793};
18794_LT_EOF
18795
cristyda16f162011-02-19 23:52:17 +000018796
18797_lt_libdeps_save_CFLAGS=$CFLAGS
18798case "$CC $CFLAGS " in #(
18799*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18800*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018801*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018802esac
18803
cristy73bd4a52010-10-05 11:24:23 +000018804if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18805 (eval $ac_compile) 2>&5
18806 ac_status=$?
18807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18808 test $ac_status = 0; }; then
18809 # Parse the compiler output and extract the necessary
18810 # objects, libraries and library flags.
18811
18812 # Sentinel used to keep track of whether or not we are before
18813 # the conftest object file.
18814 pre_test_object_deps_done=no
18815
18816 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018817 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018818
18819 -L* | -R* | -l*)
18820 # Some compilers place space between "-{L,R}" and the path.
18821 # Remove the space.
18822 if test $p = "-L" ||
18823 test $p = "-R"; then
18824 prev=$p
18825 continue
cristy73bd4a52010-10-05 11:24:23 +000018826 fi
18827
cristyda16f162011-02-19 23:52:17 +000018828 # Expand the sysroot to ease extracting the directories later.
18829 if test -z "$prev"; then
18830 case $p in
18831 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18832 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18833 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18834 esac
18835 fi
18836 case $p in
18837 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18838 esac
cristy73bd4a52010-10-05 11:24:23 +000018839 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018840 case ${prev} in
18841 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018842 # Internal compiler library paths should come after those
18843 # provided the user. The postdeps already come after the
18844 # user supplied libs so there is no need to process them.
18845 if test -z "$compiler_lib_search_path_CXX"; then
18846 compiler_lib_search_path_CXX="${prev}${p}"
18847 else
18848 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18849 fi
18850 ;;
18851 # The "-l" case would never come before the object being
18852 # linked, so don't bother handling this case.
18853 esac
18854 else
18855 if test -z "$postdeps_CXX"; then
18856 postdeps_CXX="${prev}${p}"
18857 else
18858 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18859 fi
18860 fi
cristyda16f162011-02-19 23:52:17 +000018861 prev=
cristy73bd4a52010-10-05 11:24:23 +000018862 ;;
18863
cristyda16f162011-02-19 23:52:17 +000018864 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018865 *.$objext)
18866 # This assumes that the test object file only shows up
18867 # once in the compiler output.
18868 if test "$p" = "conftest.$objext"; then
18869 pre_test_object_deps_done=yes
18870 continue
18871 fi
18872
18873 if test "$pre_test_object_deps_done" = no; then
18874 if test -z "$predep_objects_CXX"; then
18875 predep_objects_CXX="$p"
18876 else
18877 predep_objects_CXX="$predep_objects_CXX $p"
18878 fi
18879 else
18880 if test -z "$postdep_objects_CXX"; then
18881 postdep_objects_CXX="$p"
18882 else
18883 postdep_objects_CXX="$postdep_objects_CXX $p"
18884 fi
18885 fi
18886 ;;
18887
18888 *) ;; # Ignore the rest.
18889
18890 esac
18891 done
18892
18893 # Clean up.
18894 rm -f a.out a.exe
18895else
18896 echo "libtool.m4: error: problem compiling CXX test program"
18897fi
18898
18899$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018900CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018901
18902# PORTME: override above test on systems where it is broken
18903case $host_os in
18904interix[3-9]*)
18905 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18906 # hack all around it, let's just trust "g++" to DTRT.
18907 predep_objects_CXX=
18908 postdep_objects_CXX=
18909 postdeps_CXX=
18910 ;;
18911
18912linux*)
18913 case `$CC -V 2>&1 | sed 5q` in
18914 *Sun\ C*)
18915 # Sun C++ 5.9
18916
18917 # The more standards-conforming stlport4 library is
18918 # incompatible with the Cstd library. Avoid specifying
18919 # it if it's in CXXFLAGS. Ignore libCrun as
18920 # -library=stlport4 depends on it.
18921 case " $CXX $CXXFLAGS " in
18922 *" -library=stlport4 "*)
18923 solaris_use_stlport4=yes
18924 ;;
18925 esac
18926
18927 if test "$solaris_use_stlport4" != yes; then
18928 postdeps_CXX='-library=Cstd -library=Crun'
18929 fi
18930 ;;
18931 esac
18932 ;;
18933
18934solaris*)
18935 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018936 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018937 # The more standards-conforming stlport4 library is
18938 # incompatible with the Cstd library. Avoid specifying
18939 # it if it's in CXXFLAGS. Ignore libCrun as
18940 # -library=stlport4 depends on it.
18941 case " $CXX $CXXFLAGS " in
18942 *" -library=stlport4 "*)
18943 solaris_use_stlport4=yes
18944 ;;
18945 esac
18946
18947 # Adding this requires a known-good setup of shared libraries for
18948 # Sun compiler versions before 5.6, else PIC objects from an old
18949 # archive will be linked into the output, leading to subtle bugs.
18950 if test "$solaris_use_stlport4" != yes; then
18951 postdeps_CXX='-library=Cstd -library=Crun'
18952 fi
18953 ;;
18954 esac
18955 ;;
18956esac
18957
18958
18959case " $postdeps_CXX " in
18960*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18961esac
18962 compiler_lib_search_dirs_CXX=
18963if test -n "${compiler_lib_search_path_CXX}"; then
18964 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18965fi
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
18995
18996
18997 lt_prog_compiler_wl_CXX=
18998lt_prog_compiler_pic_CXX=
18999lt_prog_compiler_static_CXX=
19000
cristy73bd4a52010-10-05 11:24:23 +000019001
19002 # C++ specific cases for pic, static, wl, etc.
19003 if test "$GXX" = yes; then
19004 lt_prog_compiler_wl_CXX='-Wl,'
19005 lt_prog_compiler_static_CXX='-static'
19006
19007 case $host_os in
19008 aix*)
19009 # All AIX code is PIC.
19010 if test "$host_cpu" = ia64; then
19011 # AIX 5 now supports IA64 processor
19012 lt_prog_compiler_static_CXX='-Bstatic'
19013 fi
19014 ;;
19015
19016 amigaos*)
19017 case $host_cpu in
19018 powerpc)
19019 # see comment about AmigaOS4 .so support
19020 lt_prog_compiler_pic_CXX='-fPIC'
19021 ;;
19022 m68k)
19023 # FIXME: we need at least 68020 code to build shared libraries, but
19024 # adding the `-m68020' flag to GCC prevents building anything better,
19025 # like `-m68040'.
19026 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19027 ;;
19028 esac
19029 ;;
19030
19031 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19032 # PIC is the default for these OSes.
19033 ;;
19034 mingw* | cygwin* | os2* | pw32* | cegcc*)
19035 # This hack is so that the source file can tell whether it is being
19036 # built for inclusion in a dll (and should export symbols for example).
19037 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19038 # (--disable-auto-import) libraries
19039 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19040 ;;
19041 darwin* | rhapsody*)
19042 # PIC is the default on this platform
19043 # Common symbols not allowed in MH_DYLIB files
19044 lt_prog_compiler_pic_CXX='-fno-common'
19045 ;;
19046 *djgpp*)
19047 # DJGPP does not support shared libraries at all
19048 lt_prog_compiler_pic_CXX=
19049 ;;
cristy0c60a692010-11-04 01:09:47 +000019050 haiku*)
19051 # PIC is the default for Haiku.
19052 # The "-static" flag exists, but is broken.
19053 lt_prog_compiler_static_CXX=
19054 ;;
cristy73bd4a52010-10-05 11:24:23 +000019055 interix[3-9]*)
19056 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19057 # Instead, we relocate shared libraries at runtime.
19058 ;;
19059 sysv4*MP*)
19060 if test -d /usr/nec; then
19061 lt_prog_compiler_pic_CXX=-Kconform_pic
19062 fi
19063 ;;
19064 hpux*)
19065 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19066 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19067 # sets the default TLS model and affects inlining.
19068 case $host_cpu in
19069 hppa*64*)
19070 ;;
19071 *)
19072 lt_prog_compiler_pic_CXX='-fPIC'
19073 ;;
19074 esac
19075 ;;
19076 *qnx* | *nto*)
19077 # QNX uses GNU C++, but need to define -shared option too, otherwise
19078 # it will coredump.
19079 lt_prog_compiler_pic_CXX='-fPIC -shared'
19080 ;;
19081 *)
19082 lt_prog_compiler_pic_CXX='-fPIC'
19083 ;;
19084 esac
19085 else
19086 case $host_os in
19087 aix[4-9]*)
19088 # All AIX code is PIC.
19089 if test "$host_cpu" = ia64; then
19090 # AIX 5 now supports IA64 processor
19091 lt_prog_compiler_static_CXX='-Bstatic'
19092 else
19093 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19094 fi
19095 ;;
19096 chorus*)
19097 case $cc_basename in
19098 cxch68*)
19099 # Green Hills C++ Compiler
19100 # _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"
19101 ;;
19102 esac
19103 ;;
cristyda16f162011-02-19 23:52:17 +000019104 mingw* | cygwin* | os2* | pw32* | cegcc*)
19105 # This hack is so that the source file can tell whether it is being
19106 # built for inclusion in a dll (and should export symbols for example).
19107 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19108 ;;
cristy73bd4a52010-10-05 11:24:23 +000019109 dgux*)
19110 case $cc_basename in
19111 ec++*)
19112 lt_prog_compiler_pic_CXX='-KPIC'
19113 ;;
19114 ghcx*)
19115 # Green Hills C++ Compiler
19116 lt_prog_compiler_pic_CXX='-pic'
19117 ;;
19118 *)
19119 ;;
19120 esac
19121 ;;
19122 freebsd* | dragonfly*)
19123 # FreeBSD uses GNU C++
19124 ;;
19125 hpux9* | hpux10* | hpux11*)
19126 case $cc_basename in
19127 CC*)
19128 lt_prog_compiler_wl_CXX='-Wl,'
19129 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19130 if test "$host_cpu" != ia64; then
19131 lt_prog_compiler_pic_CXX='+Z'
19132 fi
19133 ;;
19134 aCC*)
19135 lt_prog_compiler_wl_CXX='-Wl,'
19136 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19137 case $host_cpu in
19138 hppa*64*|ia64*)
19139 # +Z the default
19140 ;;
19141 *)
19142 lt_prog_compiler_pic_CXX='+Z'
19143 ;;
19144 esac
19145 ;;
19146 *)
19147 ;;
19148 esac
19149 ;;
19150 interix*)
19151 # This is c89, which is MS Visual C++ (no shared libs)
19152 # Anyone wants to do a port?
19153 ;;
19154 irix5* | irix6* | nonstopux*)
19155 case $cc_basename in
19156 CC*)
19157 lt_prog_compiler_wl_CXX='-Wl,'
19158 lt_prog_compiler_static_CXX='-non_shared'
19159 # CC pic flag -KPIC is the default.
19160 ;;
19161 *)
19162 ;;
19163 esac
19164 ;;
cristy0c60a692010-11-04 01:09:47 +000019165 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019166 case $cc_basename in
19167 KCC*)
19168 # KAI C++ Compiler
19169 lt_prog_compiler_wl_CXX='--backend -Wl,'
19170 lt_prog_compiler_pic_CXX='-fPIC'
19171 ;;
19172 ecpc* )
19173 # old Intel C++ for x86_64 which still supported -KPIC.
19174 lt_prog_compiler_wl_CXX='-Wl,'
19175 lt_prog_compiler_pic_CXX='-KPIC'
19176 lt_prog_compiler_static_CXX='-static'
19177 ;;
19178 icpc* )
19179 # Intel C++, used to be incompatible with GCC.
19180 # ICC 10 doesn't accept -KPIC any more.
19181 lt_prog_compiler_wl_CXX='-Wl,'
19182 lt_prog_compiler_pic_CXX='-fPIC'
19183 lt_prog_compiler_static_CXX='-static'
19184 ;;
19185 pgCC* | pgcpp*)
19186 # Portland Group C++ compiler
19187 lt_prog_compiler_wl_CXX='-Wl,'
19188 lt_prog_compiler_pic_CXX='-fpic'
19189 lt_prog_compiler_static_CXX='-Bstatic'
19190 ;;
19191 cxx*)
19192 # Compaq C++
19193 # Make sure the PIC flag is empty. It appears that all Alpha
19194 # Linux and Compaq Tru64 Unix objects are PIC.
19195 lt_prog_compiler_pic_CXX=
19196 lt_prog_compiler_static_CXX='-non_shared'
19197 ;;
cristy0c60a692010-11-04 01:09:47 +000019198 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19199 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019200 lt_prog_compiler_wl_CXX='-Wl,'
19201 lt_prog_compiler_pic_CXX='-qpic'
19202 lt_prog_compiler_static_CXX='-qstaticlink'
19203 ;;
19204 *)
19205 case `$CC -V 2>&1 | sed 5q` in
19206 *Sun\ C*)
19207 # Sun C++ 5.9
19208 lt_prog_compiler_pic_CXX='-KPIC'
19209 lt_prog_compiler_static_CXX='-Bstatic'
19210 lt_prog_compiler_wl_CXX='-Qoption ld '
19211 ;;
19212 esac
19213 ;;
19214 esac
19215 ;;
19216 lynxos*)
19217 ;;
19218 m88k*)
19219 ;;
19220 mvs*)
19221 case $cc_basename in
19222 cxx*)
19223 lt_prog_compiler_pic_CXX='-W c,exportall'
19224 ;;
19225 *)
19226 ;;
19227 esac
19228 ;;
19229 netbsd*)
19230 ;;
19231 *qnx* | *nto*)
19232 # QNX uses GNU C++, but need to define -shared option too, otherwise
19233 # it will coredump.
19234 lt_prog_compiler_pic_CXX='-fPIC -shared'
19235 ;;
19236 osf3* | osf4* | osf5*)
19237 case $cc_basename in
19238 KCC*)
19239 lt_prog_compiler_wl_CXX='--backend -Wl,'
19240 ;;
19241 RCC*)
19242 # Rational C++ 2.4.1
19243 lt_prog_compiler_pic_CXX='-pic'
19244 ;;
19245 cxx*)
19246 # Digital/Compaq C++
19247 lt_prog_compiler_wl_CXX='-Wl,'
19248 # Make sure the PIC flag is empty. It appears that all Alpha
19249 # Linux and Compaq Tru64 Unix objects are PIC.
19250 lt_prog_compiler_pic_CXX=
19251 lt_prog_compiler_static_CXX='-non_shared'
19252 ;;
19253 *)
19254 ;;
19255 esac
19256 ;;
19257 psos*)
19258 ;;
19259 solaris*)
19260 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019261 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019262 # Sun C++ 4.2, 5.x and Centerline C++
19263 lt_prog_compiler_pic_CXX='-KPIC'
19264 lt_prog_compiler_static_CXX='-Bstatic'
19265 lt_prog_compiler_wl_CXX='-Qoption ld '
19266 ;;
19267 gcx*)
19268 # Green Hills C++ Compiler
19269 lt_prog_compiler_pic_CXX='-PIC'
19270 ;;
19271 *)
19272 ;;
19273 esac
19274 ;;
19275 sunos4*)
19276 case $cc_basename in
19277 CC*)
19278 # Sun C++ 4.x
19279 lt_prog_compiler_pic_CXX='-pic'
19280 lt_prog_compiler_static_CXX='-Bstatic'
19281 ;;
19282 lcc*)
19283 # Lucid
19284 lt_prog_compiler_pic_CXX='-pic'
19285 ;;
19286 *)
19287 ;;
19288 esac
19289 ;;
19290 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19291 case $cc_basename in
19292 CC*)
19293 lt_prog_compiler_wl_CXX='-Wl,'
19294 lt_prog_compiler_pic_CXX='-KPIC'
19295 lt_prog_compiler_static_CXX='-Bstatic'
19296 ;;
19297 esac
19298 ;;
19299 tandem*)
19300 case $cc_basename in
19301 NCC*)
19302 # NonStop-UX NCC 3.20
19303 lt_prog_compiler_pic_CXX='-KPIC'
19304 ;;
19305 *)
19306 ;;
19307 esac
19308 ;;
19309 vxworks*)
19310 ;;
19311 *)
19312 lt_prog_compiler_can_build_shared_CXX=no
19313 ;;
19314 esac
19315 fi
19316
19317case $host_os in
19318 # For platforms which do not support PIC, -DPIC is meaningless:
19319 *djgpp*)
19320 lt_prog_compiler_pic_CXX=
19321 ;;
19322 *)
19323 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19324 ;;
19325esac
cristy73bd4a52010-10-05 11:24:23 +000019326
cristyda16f162011-02-19 23:52:17 +000019327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19328$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19329if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19330 $as_echo_n "(cached) " >&6
19331else
19332 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19333fi
19334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19335$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19336lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019337
19338#
19339# Check to make sure the PIC flag actually works.
19340#
19341if test -n "$lt_prog_compiler_pic_CXX"; then
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19343$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019344if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019345 $as_echo_n "(cached) " >&6
19346else
19347 lt_cv_prog_compiler_pic_works_CXX=no
19348 ac_outfile=conftest.$ac_objext
19349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19350 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19351 # Insert the option either (1) after the last *FLAGS variable, or
19352 # (2) before a word containing "conftest.", or (3) at the end.
19353 # Note that $ac_compile itself does not contain backslashes and begins
19354 # with a dollar sign (not a hyphen), so the echo should work correctly.
19355 # The option is referenced via a variable to avoid confusing sed.
19356 lt_compile=`echo "$ac_compile" | $SED \
19357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19359 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019361 (eval "$lt_compile" 2>conftest.err)
19362 ac_status=$?
19363 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019365 if (exit $ac_status) && test -s "$ac_outfile"; then
19366 # The compiler can only warn and ignore the option if not recognized
19367 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019368 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19370 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19371 lt_cv_prog_compiler_pic_works_CXX=yes
19372 fi
19373 fi
19374 $RM conftest*
19375
19376fi
19377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19378$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19379
19380if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19381 case $lt_prog_compiler_pic_CXX in
19382 "" | " "*) ;;
19383 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19384 esac
19385else
19386 lt_prog_compiler_pic_CXX=
19387 lt_prog_compiler_can_build_shared_CXX=no
19388fi
19389
19390fi
19391
19392
19393
cristyda16f162011-02-19 23:52:17 +000019394
19395
cristy73bd4a52010-10-05 11:24:23 +000019396#
19397# Check to make sure the static flag actually works.
19398#
19399wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19401$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019402if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019403 $as_echo_n "(cached) " >&6
19404else
19405 lt_cv_prog_compiler_static_works_CXX=no
19406 save_LDFLAGS="$LDFLAGS"
19407 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19408 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19409 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19410 # The linker can only warn and ignore the option if not recognized
19411 # So say no if there are warnings
19412 if test -s conftest.err; then
19413 # Append any errors to the config.log.
19414 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019415 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19417 if diff conftest.exp conftest.er2 >/dev/null; then
19418 lt_cv_prog_compiler_static_works_CXX=yes
19419 fi
19420 else
19421 lt_cv_prog_compiler_static_works_CXX=yes
19422 fi
19423 fi
19424 $RM -r conftest*
19425 LDFLAGS="$save_LDFLAGS"
19426
19427fi
19428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19429$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19430
19431if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19432 :
19433else
19434 lt_prog_compiler_static_CXX=
19435fi
19436
19437
19438
19439
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19441$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019442if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019443 $as_echo_n "(cached) " >&6
19444else
19445 lt_cv_prog_compiler_c_o_CXX=no
19446 $RM -r conftest 2>/dev/null
19447 mkdir conftest
19448 cd conftest
19449 mkdir out
19450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19451
19452 lt_compiler_flag="-o out/conftest2.$ac_objext"
19453 # Insert the option either (1) after the last *FLAGS variable, or
19454 # (2) before a word containing "conftest.", or (3) at the end.
19455 # Note that $ac_compile itself does not contain backslashes and begins
19456 # with a dollar sign (not a hyphen), so the echo should work correctly.
19457 lt_compile=`echo "$ac_compile" | $SED \
19458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19460 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019461 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019462 (eval "$lt_compile" 2>out/conftest.err)
19463 ac_status=$?
19464 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019466 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19467 then
19468 # The compiler can only warn and ignore the option if not recognized
19469 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019471 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19472 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19473 lt_cv_prog_compiler_c_o_CXX=yes
19474 fi
19475 fi
19476 chmod u+w . 2>&5
19477 $RM conftest*
19478 # SGI C++ compiler will create directory out/ii_files/ for
19479 # template instantiation
19480 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19481 $RM out/* && rmdir out
19482 cd ..
19483 $RM -r conftest
19484 $RM conftest*
19485
19486fi
19487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19488$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19489
19490
19491
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19493$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019494if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019495 $as_echo_n "(cached) " >&6
19496else
19497 lt_cv_prog_compiler_c_o_CXX=no
19498 $RM -r conftest 2>/dev/null
19499 mkdir conftest
19500 cd conftest
19501 mkdir out
19502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19503
19504 lt_compiler_flag="-o out/conftest2.$ac_objext"
19505 # Insert the option either (1) after the last *FLAGS variable, or
19506 # (2) before a word containing "conftest.", or (3) at the end.
19507 # Note that $ac_compile itself does not contain backslashes and begins
19508 # with a dollar sign (not a hyphen), so the echo should work correctly.
19509 lt_compile=`echo "$ac_compile" | $SED \
19510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19512 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019513 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019514 (eval "$lt_compile" 2>out/conftest.err)
19515 ac_status=$?
19516 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019518 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19519 then
19520 # The compiler can only warn and ignore the option if not recognized
19521 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019522 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019523 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19524 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19525 lt_cv_prog_compiler_c_o_CXX=yes
19526 fi
19527 fi
19528 chmod u+w . 2>&5
19529 $RM conftest*
19530 # SGI C++ compiler will create directory out/ii_files/ for
19531 # template instantiation
19532 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19533 $RM out/* && rmdir out
19534 cd ..
19535 $RM -r conftest
19536 $RM conftest*
19537
19538fi
19539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19540$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19541
19542
19543
19544
19545hard_links="nottested"
19546if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19547 # do not overwrite the value of need_locks provided by the user
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19549$as_echo_n "checking if we can lock with hard links... " >&6; }
19550 hard_links=yes
19551 $RM conftest*
19552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19553 touch conftest.a
19554 ln conftest.a conftest.b 2>&5 || hard_links=no
19555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19557$as_echo "$hard_links" >&6; }
19558 if test "$hard_links" = no; then
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19560$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19561 need_locks=warn
19562 fi
19563else
19564 need_locks=no
19565fi
19566
19567
19568
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19570$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19571
19572 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019573 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019574 case $host_os in
19575 aix[4-9]*)
19576 # If we're using GNU nm, then we don't want the "-C" option.
19577 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019578 # Also, AIX nm treats weak defined symbols like other global defined
19579 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019580 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019581 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 +000019582 else
19583 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'
19584 fi
19585 ;;
19586 pw32*)
19587 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019588 ;;
cristy73bd4a52010-10-05 11:24:23 +000019589 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019590 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019591 cl*)
19592 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19593 ;;
cristyda16f162011-02-19 23:52:17 +000019594 *)
19595 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'
19596 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19597 ;;
19598 esac
19599 ;;
cristy73bd4a52010-10-05 11:24:23 +000019600 *)
19601 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019602 ;;
cristy73bd4a52010-10-05 11:24:23 +000019603 esac
cristy73bd4a52010-10-05 11:24:23 +000019604
19605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19606$as_echo "$ld_shlibs_CXX" >&6; }
19607test "$ld_shlibs_CXX" = no && can_build_shared=no
19608
19609with_gnu_ld_CXX=$with_gnu_ld
19610
19611
19612
19613
19614
19615
19616#
19617# Do we need to explicitly link libc?
19618#
19619case "x$archive_cmds_need_lc_CXX" in
19620x|xyes)
19621 # Assume -lc should be added
19622 archive_cmds_need_lc_CXX=yes
19623
19624 if test "$enable_shared" = yes && test "$GCC" = yes; then
19625 case $archive_cmds_CXX in
19626 *'~'*)
19627 # FIXME: we may have to deal with multi-command sequences.
19628 ;;
19629 '$CC '*)
19630 # Test whether the compiler implicitly links with -lc since on some
19631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19632 # to ld, don't add -lc before -lgcc.
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19634$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019635if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019636 $as_echo_n "(cached) " >&6
19637else
19638 $RM conftest*
19639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019640
cristy0c60a692010-11-04 01:09:47 +000019641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019642 (eval $ac_compile) 2>&5
19643 ac_status=$?
19644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19645 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019646 soname=conftest
19647 lib=conftest
19648 libobjs=conftest.$ac_objext
19649 deplibs=
19650 wl=$lt_prog_compiler_wl_CXX
19651 pic_flag=$lt_prog_compiler_pic_CXX
19652 compiler_flags=-v
19653 linker_flags=-v
19654 verstring=
19655 output_objdir=.
19656 libname=conftest
19657 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19658 allow_undefined_flag_CXX=
19659 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 +000019660 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19661 ac_status=$?
19662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19663 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019664 then
19665 lt_cv_archive_cmds_need_lc_CXX=no
19666 else
19667 lt_cv_archive_cmds_need_lc_CXX=yes
19668 fi
19669 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19670 else
19671 cat conftest.err 1>&5
19672 fi
19673 $RM conftest*
19674
19675fi
19676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19677$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19678 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019679 ;;
19680 esac
19681 fi
19682 ;;
19683esac
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
19743
19744
19745
cristy73bd4a52010-10-05 11:24:23 +000019746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19747$as_echo_n "checking dynamic linker characteristics... " >&6; }
19748
19749library_names_spec=
19750libname_spec='lib$name'
19751soname_spec=
19752shrext_cmds=".so"
19753postinstall_cmds=
19754postuninstall_cmds=
19755finish_cmds=
19756finish_eval=
19757shlibpath_var=
19758shlibpath_overrides_runpath=unknown
19759version_type=none
19760dynamic_linker="$host_os ld.so"
19761sys_lib_dlsearch_path_spec="/lib /usr/lib"
19762need_lib_prefix=unknown
19763hardcode_into_libs=no
19764
19765# when you set need_version to no, make sure it does not cause -set_version
19766# flags to be left without arguments
19767need_version=unknown
19768
19769case $host_os in
19770aix3*)
cristy99bd5232011-12-07 14:38:20 +000019771 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19773 shlibpath_var=LIBPATH
19774
19775 # AIX 3 has no versioning support, so we append a major version to the name.
19776 soname_spec='${libname}${release}${shared_ext}$major'
19777 ;;
19778
19779aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019780 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019781 need_lib_prefix=no
19782 need_version=no
19783 hardcode_into_libs=yes
19784 if test "$host_cpu" = ia64; then
19785 # AIX 5 supports IA64
19786 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19787 shlibpath_var=LD_LIBRARY_PATH
19788 else
19789 # With GCC up to 2.95.x, collect2 would create an import file
19790 # for dependence libraries. The import file would start with
19791 # the line `#! .'. This would cause the generated library to
19792 # depend on `.', always an invalid library. This was fixed in
19793 # development snapshots of GCC prior to 3.0.
19794 case $host_os in
19795 aix4 | aix4.[01] | aix4.[01].*)
19796 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19797 echo ' yes '
19798 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19799 :
19800 else
19801 can_build_shared=no
19802 fi
19803 ;;
19804 esac
19805 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19806 # soname into executable. Probably we can add versioning support to
19807 # collect2, so additional links can be useful in future.
19808 if test "$aix_use_runtimelinking" = yes; then
19809 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19810 # instead of lib<name>.a to let people know that these are not
19811 # typical AIX shared libraries.
19812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19813 else
19814 # We preserve .a as extension for shared libraries through AIX4.2
19815 # and later when we are not doing run time linking.
19816 library_names_spec='${libname}${release}.a $libname.a'
19817 soname_spec='${libname}${release}${shared_ext}$major'
19818 fi
19819 shlibpath_var=LIBPATH
19820 fi
19821 ;;
19822
19823amigaos*)
19824 case $host_cpu in
19825 powerpc)
19826 # Since July 2007 AmigaOS4 officially supports .so libraries.
19827 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19829 ;;
19830 m68k)
19831 library_names_spec='$libname.ixlibrary $libname.a'
19832 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019833 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 +000019834 ;;
19835 esac
19836 ;;
19837
19838beos*)
19839 library_names_spec='${libname}${shared_ext}'
19840 dynamic_linker="$host_os ld.so"
19841 shlibpath_var=LIBRARY_PATH
19842 ;;
19843
19844bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019845 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019846 need_version=no
19847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19848 soname_spec='${libname}${release}${shared_ext}$major'
19849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19850 shlibpath_var=LD_LIBRARY_PATH
19851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19853 # the default ld.so.conf also contains /usr/contrib/lib and
19854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19855 # libtool to hard-code these into programs
19856 ;;
19857
19858cygwin* | mingw* | pw32* | cegcc*)
19859 version_type=windows
19860 shrext_cmds=".dll"
19861 need_version=no
19862 need_lib_prefix=no
19863
cristyda16f162011-02-19 23:52:17 +000019864 case $GCC,$cc_basename in
19865 yes,*)
19866 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019867 library_names_spec='$libname.dll.a'
19868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19869 postinstall_cmds='base_file=`basename \${file}`~
19870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19871 dldir=$destdir/`dirname \$dlpath`~
19872 test -d \$dldir || mkdir -p \$dldir~
19873 $install_prog $dir/$dlname \$dldir/$dlname~
19874 chmod a+x \$dldir/$dlname~
19875 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19876 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19877 fi'
19878 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19879 dlpath=$dir/\$dldll~
19880 $RM \$dlpath'
19881 shlibpath_overrides_runpath=yes
19882
19883 case $host_os in
19884 cygwin*)
19885 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19886 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019887
cristy73bd4a52010-10-05 11:24:23 +000019888 ;;
19889 mingw* | cegcc*)
19890 # MinGW DLLs use traditional 'lib' prefix
19891 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019892 ;;
19893 pw32*)
19894 # pw32 DLLs use 'pw' prefix rather than 'lib'
19895 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19896 ;;
19897 esac
cristyda16f162011-02-19 23:52:17 +000019898 dynamic_linker='Win32 ld.exe'
19899 ;;
19900
19901 *,cl*)
19902 # Native MSVC
19903 libname_spec='$name'
19904 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19905 library_names_spec='${libname}.dll.lib'
19906
19907 case $build_os in
19908 mingw*)
19909 sys_lib_search_path_spec=
19910 lt_save_ifs=$IFS
19911 IFS=';'
19912 for lt_path in $LIB
19913 do
19914 IFS=$lt_save_ifs
19915 # Let DOS variable expansion print the short 8.3 style file name.
19916 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19917 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19918 done
19919 IFS=$lt_save_ifs
19920 # Convert to MSYS style.
19921 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19922 ;;
19923 cygwin*)
19924 # Convert to unix form, then to dos form, then back to unix form
19925 # but this time dos style (no spaces!) so that the unix form looks
19926 # like /cygdrive/c/PROGRA~1:/cygdr...
19927 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19928 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19929 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19930 ;;
19931 *)
19932 sys_lib_search_path_spec="$LIB"
19933 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19934 # It is most probably a Windows format PATH.
19935 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19936 else
19937 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19938 fi
19939 # FIXME: find the short name or the path components, as spaces are
19940 # common. (e.g. "Program Files" -> "PROGRA~1")
19941 ;;
19942 esac
19943
19944 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19945 postinstall_cmds='base_file=`basename \${file}`~
19946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19947 dldir=$destdir/`dirname \$dlpath`~
19948 test -d \$dldir || mkdir -p \$dldir~
19949 $install_prog $dir/$dlname \$dldir/$dlname'
19950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19951 dlpath=$dir/\$dldll~
19952 $RM \$dlpath'
19953 shlibpath_overrides_runpath=yes
19954 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019955 ;;
19956
19957 *)
cristyda16f162011-02-19 23:52:17 +000019958 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019959 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019960 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019961 ;;
19962 esac
cristy73bd4a52010-10-05 11:24:23 +000019963 # FIXME: first we should search . and the directory the executable is in
19964 shlibpath_var=PATH
19965 ;;
19966
19967darwin* | rhapsody*)
19968 dynamic_linker="$host_os dyld"
19969 version_type=darwin
19970 need_lib_prefix=no
19971 need_version=no
19972 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19973 soname_spec='${libname}${release}${major}$shared_ext'
19974 shlibpath_overrides_runpath=yes
19975 shlibpath_var=DYLD_LIBRARY_PATH
19976 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19977
19978 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19979 ;;
19980
19981dgux*)
cristy99bd5232011-12-07 14:38:20 +000019982 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019983 need_lib_prefix=no
19984 need_version=no
19985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19986 soname_spec='${libname}${release}${shared_ext}$major'
19987 shlibpath_var=LD_LIBRARY_PATH
19988 ;;
19989
cristy73bd4a52010-10-05 11:24:23 +000019990freebsd* | dragonfly*)
19991 # DragonFly does not have aout. When/if they implement a new
19992 # versioning mechanism, adjust this.
19993 if test -x /usr/bin/objformat; then
19994 objformat=`/usr/bin/objformat`
19995 else
19996 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019997 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000019998 *) objformat=elf ;;
19999 esac
20000 fi
20001 version_type=freebsd-$objformat
20002 case $version_type in
20003 freebsd-elf*)
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20005 need_version=no
20006 need_lib_prefix=no
20007 ;;
20008 freebsd-*)
20009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20010 need_version=yes
20011 ;;
20012 esac
20013 shlibpath_var=LD_LIBRARY_PATH
20014 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020015 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020016 shlibpath_overrides_runpath=yes
20017 ;;
20018 freebsd3.[01]* | freebsdelf3.[01]*)
20019 shlibpath_overrides_runpath=yes
20020 hardcode_into_libs=yes
20021 ;;
20022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20024 shlibpath_overrides_runpath=no
20025 hardcode_into_libs=yes
20026 ;;
20027 *) # from 4.6 on, and DragonFly
20028 shlibpath_overrides_runpath=yes
20029 hardcode_into_libs=yes
20030 ;;
20031 esac
20032 ;;
20033
20034gnu*)
cristy99bd5232011-12-07 14:38:20 +000020035 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020036 need_lib_prefix=no
20037 need_version=no
20038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20039 soname_spec='${libname}${release}${shared_ext}$major'
20040 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020041 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020042 hardcode_into_libs=yes
20043 ;;
20044
cristy0c60a692010-11-04 01:09:47 +000020045haiku*)
cristy99bd5232011-12-07 14:38:20 +000020046 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020047 need_lib_prefix=no
20048 need_version=no
20049 dynamic_linker="$host_os runtime_loader"
20050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20051 soname_spec='${libname}${release}${shared_ext}$major'
20052 shlibpath_var=LIBRARY_PATH
20053 shlibpath_overrides_runpath=yes
20054 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20055 hardcode_into_libs=yes
20056 ;;
20057
cristy73bd4a52010-10-05 11:24:23 +000020058hpux9* | hpux10* | hpux11*)
20059 # Give a soname corresponding to the major version so that dld.sl refuses to
20060 # link against other versions.
20061 version_type=sunos
20062 need_lib_prefix=no
20063 need_version=no
20064 case $host_cpu in
20065 ia64*)
20066 shrext_cmds='.so'
20067 hardcode_into_libs=yes
20068 dynamic_linker="$host_os dld.so"
20069 shlibpath_var=LD_LIBRARY_PATH
20070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20072 soname_spec='${libname}${release}${shared_ext}$major'
20073 if test "X$HPUX_IA64_MODE" = X32; then
20074 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20075 else
20076 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20077 fi
20078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20079 ;;
20080 hppa*64*)
20081 shrext_cmds='.sl'
20082 hardcode_into_libs=yes
20083 dynamic_linker="$host_os dld.sl"
20084 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20087 soname_spec='${libname}${release}${shared_ext}$major'
20088 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20090 ;;
20091 *)
20092 shrext_cmds='.sl'
20093 dynamic_linker="$host_os dld.sl"
20094 shlibpath_var=SHLIB_PATH
20095 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20097 soname_spec='${libname}${release}${shared_ext}$major'
20098 ;;
20099 esac
cristy0c60a692010-11-04 01:09:47 +000020100 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020101 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020102 # or fails outright, so override atomically:
20103 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020104 ;;
20105
20106interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020107 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020108 need_lib_prefix=no
20109 need_version=no
20110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20111 soname_spec='${libname}${release}${shared_ext}$major'
20112 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20113 shlibpath_var=LD_LIBRARY_PATH
20114 shlibpath_overrides_runpath=no
20115 hardcode_into_libs=yes
20116 ;;
20117
20118irix5* | irix6* | nonstopux*)
20119 case $host_os in
20120 nonstopux*) version_type=nonstopux ;;
20121 *)
20122 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020123 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020124 else
20125 version_type=irix
20126 fi ;;
20127 esac
20128 need_lib_prefix=no
20129 need_version=no
20130 soname_spec='${libname}${release}${shared_ext}$major'
20131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20132 case $host_os in
20133 irix5* | nonstopux*)
20134 libsuff= shlibsuff=
20135 ;;
20136 *)
20137 case $LD in # libtool.m4 will add one of these switches to LD
20138 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20139 libsuff= shlibsuff= libmagic=32-bit;;
20140 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20141 libsuff=32 shlibsuff=N32 libmagic=N32;;
20142 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20143 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20144 *) libsuff= shlibsuff= libmagic=never-match;;
20145 esac
20146 ;;
20147 esac
20148 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20149 shlibpath_overrides_runpath=no
20150 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20151 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20152 hardcode_into_libs=yes
20153 ;;
20154
20155# No shared lib support for Linux oldld, aout, or coff.
20156linux*oldld* | linux*aout* | linux*coff*)
20157 dynamic_linker=no
20158 ;;
20159
cristy99bd5232011-12-07 14:38:20 +000020160# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020161linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020162 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020163 need_lib_prefix=no
20164 need_version=no
20165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20166 soname_spec='${libname}${release}${shared_ext}$major'
20167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20168 shlibpath_var=LD_LIBRARY_PATH
20169 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020170
cristy73bd4a52010-10-05 11:24:23 +000020171 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020172 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020173 $as_echo_n "(cached) " >&6
20174else
20175 lt_cv_shlibpath_overrides_runpath=no
20176 save_LDFLAGS=$LDFLAGS
20177 save_libdir=$libdir
20178 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20179 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020181/* end confdefs.h. */
20182
20183int
20184main ()
20185{
20186
20187 ;
20188 return 0;
20189}
20190_ACEOF
20191if ac_fn_cxx_try_link "$LINENO"; then :
20192 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020193 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020194fi
20195fi
20196rm -f core conftest.err conftest.$ac_objext \
20197 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020198 LDFLAGS=$save_LDFLAGS
20199 libdir=$save_libdir
20200
20201fi
20202
20203 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020204
20205 # This implies no fast_install, which is unacceptable.
20206 # Some rework will be needed to allow for fast_install
20207 # before this can be enabled.
20208 hardcode_into_libs=yes
20209
20210 # Add ABI-specific directories to the system library path.
20211 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20212
20213 # Append ld.so.conf contents to the search path
20214 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020215 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 +000020216 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020217
cristy73bd4a52010-10-05 11:24:23 +000020218 fi
20219
20220 # We used to test for /lib/ld.so.1 and disable shared libraries on
20221 # powerpc, because MkLinux only supported shared libraries with the
20222 # GNU dynamic linker. Since this was broken with cross compilers,
20223 # most powerpc-linux boxes support dynamic linking these days and
20224 # people can always --disable-shared, the test was removed, and we
20225 # assume the GNU/Linux dynamic linker is in use.
20226 dynamic_linker='GNU/Linux ld.so'
20227 ;;
20228
20229netbsd*)
20230 version_type=sunos
20231 need_lib_prefix=no
20232 need_version=no
20233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20236 dynamic_linker='NetBSD (a.out) ld.so'
20237 else
20238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20239 soname_spec='${libname}${release}${shared_ext}$major'
20240 dynamic_linker='NetBSD ld.elf_so'
20241 fi
20242 shlibpath_var=LD_LIBRARY_PATH
20243 shlibpath_overrides_runpath=yes
20244 hardcode_into_libs=yes
20245 ;;
20246
20247newsos6)
cristy99bd5232011-12-07 14:38:20 +000020248 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250 shlibpath_var=LD_LIBRARY_PATH
20251 shlibpath_overrides_runpath=yes
20252 ;;
20253
20254*nto* | *qnx*)
20255 version_type=qnx
20256 need_lib_prefix=no
20257 need_version=no
20258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20259 soname_spec='${libname}${release}${shared_ext}$major'
20260 shlibpath_var=LD_LIBRARY_PATH
20261 shlibpath_overrides_runpath=no
20262 hardcode_into_libs=yes
20263 dynamic_linker='ldqnx.so'
20264 ;;
20265
20266openbsd*)
20267 version_type=sunos
20268 sys_lib_dlsearch_path_spec="/usr/lib"
20269 need_lib_prefix=no
20270 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20271 case $host_os in
20272 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20273 *) need_version=no ;;
20274 esac
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20277 shlibpath_var=LD_LIBRARY_PATH
20278 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20279 case $host_os in
20280 openbsd2.[89] | openbsd2.[89].*)
20281 shlibpath_overrides_runpath=no
20282 ;;
20283 *)
20284 shlibpath_overrides_runpath=yes
20285 ;;
20286 esac
20287 else
20288 shlibpath_overrides_runpath=yes
20289 fi
20290 ;;
20291
20292os2*)
20293 libname_spec='$name'
20294 shrext_cmds=".dll"
20295 need_lib_prefix=no
20296 library_names_spec='$libname${shared_ext} $libname.a'
20297 dynamic_linker='OS/2 ld.exe'
20298 shlibpath_var=LIBPATH
20299 ;;
20300
20301osf3* | osf4* | osf5*)
20302 version_type=osf
20303 need_lib_prefix=no
20304 need_version=no
20305 soname_spec='${libname}${release}${shared_ext}$major'
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20307 shlibpath_var=LD_LIBRARY_PATH
20308 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20309 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20310 ;;
20311
20312rdos*)
20313 dynamic_linker=no
20314 ;;
20315
20316solaris*)
cristy99bd5232011-12-07 14:38:20 +000020317 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020318 need_lib_prefix=no
20319 need_version=no
20320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20321 soname_spec='${libname}${release}${shared_ext}$major'
20322 shlibpath_var=LD_LIBRARY_PATH
20323 shlibpath_overrides_runpath=yes
20324 hardcode_into_libs=yes
20325 # ldd complains unless libraries are executable
20326 postinstall_cmds='chmod +x $lib'
20327 ;;
20328
20329sunos4*)
20330 version_type=sunos
20331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20332 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20333 shlibpath_var=LD_LIBRARY_PATH
20334 shlibpath_overrides_runpath=yes
20335 if test "$with_gnu_ld" = yes; then
20336 need_lib_prefix=no
20337 fi
20338 need_version=yes
20339 ;;
20340
20341sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020342 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 case $host_vendor in
20347 sni)
20348 shlibpath_overrides_runpath=no
20349 need_lib_prefix=no
20350 runpath_var=LD_RUN_PATH
20351 ;;
20352 siemens)
20353 need_lib_prefix=no
20354 ;;
20355 motorola)
20356 need_lib_prefix=no
20357 need_version=no
20358 shlibpath_overrides_runpath=no
20359 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20360 ;;
20361 esac
20362 ;;
20363
20364sysv4*MP*)
20365 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020366 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020367 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20368 soname_spec='$libname${shared_ext}.$major'
20369 shlibpath_var=LD_LIBRARY_PATH
20370 fi
20371 ;;
20372
20373sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20374 version_type=freebsd-elf
20375 need_lib_prefix=no
20376 need_version=no
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20378 soname_spec='${libname}${release}${shared_ext}$major'
20379 shlibpath_var=LD_LIBRARY_PATH
20380 shlibpath_overrides_runpath=yes
20381 hardcode_into_libs=yes
20382 if test "$with_gnu_ld" = yes; then
20383 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20384 else
20385 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20386 case $host_os in
20387 sco3.2v5*)
20388 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20389 ;;
20390 esac
20391 fi
20392 sys_lib_dlsearch_path_spec='/usr/lib'
20393 ;;
20394
20395tpf*)
20396 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020397 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020398 need_lib_prefix=no
20399 need_version=no
20400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20401 shlibpath_var=LD_LIBRARY_PATH
20402 shlibpath_overrides_runpath=no
20403 hardcode_into_libs=yes
20404 ;;
20405
20406uts4*)
cristy99bd5232011-12-07 14:38:20 +000020407 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20409 soname_spec='${libname}${release}${shared_ext}$major'
20410 shlibpath_var=LD_LIBRARY_PATH
20411 ;;
20412
20413*)
20414 dynamic_linker=no
20415 ;;
20416esac
20417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20418$as_echo "$dynamic_linker" >&6; }
20419test "$dynamic_linker" = no && can_build_shared=no
20420
20421variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20422if test "$GCC" = yes; then
20423 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20424fi
20425
20426if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20427 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20428fi
20429if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20430 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20431fi
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
20465
20466
20467
cristy0c60a692010-11-04 01:09:47 +000020468
20469
cristy73bd4a52010-10-05 11:24:23 +000020470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20471$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20472hardcode_action_CXX=
20473if test -n "$hardcode_libdir_flag_spec_CXX" ||
20474 test -n "$runpath_var_CXX" ||
20475 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20476
20477 # We can hardcode non-existent directories.
20478 if test "$hardcode_direct_CXX" != no &&
20479 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20480 # have to relink, otherwise we might link with an installed library
20481 # when we should be linking with a yet-to-be-installed one
20482 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20483 test "$hardcode_minus_L_CXX" != no; then
20484 # Linking always hardcodes the temporary library directory.
20485 hardcode_action_CXX=relink
20486 else
20487 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20488 hardcode_action_CXX=immediate
20489 fi
20490else
20491 # We cannot hardcode anything, or else we can only hardcode existing
20492 # directories.
20493 hardcode_action_CXX=unsupported
20494fi
20495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20496$as_echo "$hardcode_action_CXX" >&6; }
20497
20498if test "$hardcode_action_CXX" = relink ||
20499 test "$inherit_rpath_CXX" = yes; then
20500 # Fast installation is not supported
20501 enable_fast_install=no
20502elif test "$shlibpath_overrides_runpath" = yes ||
20503 test "$enable_shared" = no; then
20504 # Fast installation is not necessary
20505 enable_fast_install=needless
20506fi
20507
20508
20509
20510
20511
20512
20513
20514 fi # test -n "$compiler"
20515
20516 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020517 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020518 LDCXX=$LD
20519 LD=$lt_save_LD
20520 GCC=$lt_save_GCC
20521 with_gnu_ld=$lt_save_with_gnu_ld
20522 lt_cv_path_LDCXX=$lt_cv_path_LD
20523 lt_cv_path_LD=$lt_save_path_LD
20524 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20525 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20526fi # test "$_lt_caught_CXX_error" != yes
20527
20528ac_ext=c
20529ac_cpp='$CPP $CPPFLAGS'
20530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20532ac_compiler_gnu=$ac_cv_c_compiler_gnu
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
cristy99bd5232011-12-07 14:38:20 +000020546
20547
cristy73bd4a52010-10-05 11:24:23 +000020548 ac_config_commands="$ac_config_commands libtool"
20549
20550
20551
20552
20553# Only expand once:
20554
20555
20556
cristy3ed852e2009-09-05 21:47:34 +000020557
20558
20559# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020560
20561
20562
20563
20564
20565
20566
cristy73bd4a52010-10-05 11:24:23 +000020567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20568$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020569if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020570 $as_echo_n "(cached) " >&6
20571else
20572
20573module=yes
20574eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020575module=no
20576eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020577
20578fi
20579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20580$as_echo "$libltdl_cv_shlibext" >&6; }
20581if test -n "$libltdl_cv_shlibext"; then
20582
20583cat >>confdefs.h <<_ACEOF
20584#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20585_ACEOF
20586
20587fi
cristy99bd5232011-12-07 14:38:20 +000020588if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20589
20590cat >>confdefs.h <<_ACEOF
20591#define LT_SHARED_EXT "$libltdl_cv_shrext"
20592_ACEOF
20593
20594fi
cristy73bd4a52010-10-05 11:24:23 +000020595
20596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20597$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020598if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020599 $as_echo_n "(cached) " >&6
20600else
20601 lt_cv_module_path_var="$shlibpath_var"
20602fi
20603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20604$as_echo "$lt_cv_module_path_var" >&6; }
20605if test -n "$lt_cv_module_path_var"; then
20606
20607cat >>confdefs.h <<_ACEOF
20608#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20609_ACEOF
20610
20611fi
20612
20613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20614$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020615if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020616 $as_echo_n "(cached) " >&6
20617else
20618 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20619fi
20620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20621$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20622if test -n "$lt_cv_sys_dlsearch_path"; then
20623 sys_dlsearch_path=
20624 for dir in $lt_cv_sys_dlsearch_path; do
20625 if test -z "$sys_dlsearch_path"; then
20626 sys_dlsearch_path="$dir"
20627 else
20628 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20629 fi
20630 done
20631
20632cat >>confdefs.h <<_ACEOF
20633#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20634_ACEOF
20635
20636fi
20637
20638
20639LT_DLLOADERS=
20640
20641
20642ac_ext=c
20643ac_cpp='$CPP $CPPFLAGS'
20644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20646ac_compiler_gnu=$ac_cv_c_compiler_gnu
20647
20648
20649LIBADD_DLOPEN=
20650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20651$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020652if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020653 $as_echo_n "(cached) " >&6
20654else
20655 ac_func_search_save_LIBS=$LIBS
20656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20657/* end confdefs.h. */
20658
20659/* Override any GCC internal prototype to avoid an error.
20660 Use char because int might match the return type of a GCC
20661 builtin and then its argument prototype would still apply. */
20662#ifdef __cplusplus
20663extern "C"
20664#endif
20665char dlopen ();
20666int
20667main ()
20668{
20669return dlopen ();
20670 ;
20671 return 0;
20672}
20673_ACEOF
20674for ac_lib in '' dl; do
20675 if test -z "$ac_lib"; then
20676 ac_res="none required"
20677 else
20678 ac_res=-l$ac_lib
20679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20680 fi
20681 if ac_fn_c_try_link "$LINENO"; then :
20682 ac_cv_search_dlopen=$ac_res
20683fi
20684rm -f core conftest.err conftest.$ac_objext \
20685 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020686 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020687 break
20688fi
20689done
cristyda16f162011-02-19 23:52:17 +000020690if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020691
20692else
20693 ac_cv_search_dlopen=no
20694fi
20695rm conftest.$ac_ext
20696LIBS=$ac_func_search_save_LIBS
20697fi
20698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20699$as_echo "$ac_cv_search_dlopen" >&6; }
20700ac_res=$ac_cv_search_dlopen
20701if test "$ac_res" != no; then :
20702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20703
20704$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20705
20706 if test "$ac_cv_search_dlopen" != "none required" ; then
20707 LIBADD_DLOPEN="-ldl"
20708 fi
20709 libltdl_cv_lib_dl_dlopen="yes"
20710 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20711else
20712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20713/* end confdefs.h. */
20714#if HAVE_DLFCN_H
20715# include <dlfcn.h>
20716#endif
20717
20718int
20719main ()
20720{
20721dlopen(0, 0);
20722 ;
20723 return 0;
20724}
20725_ACEOF
20726if ac_fn_c_try_link "$LINENO"; then :
20727
20728$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20729
20730 libltdl_cv_func_dlopen="yes"
20731 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20732else
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20734$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020735if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020736 $as_echo_n "(cached) " >&6
20737else
20738 ac_check_lib_save_LIBS=$LIBS
20739LIBS="-lsvld $LIBS"
20740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20741/* end confdefs.h. */
20742
20743/* Override any GCC internal prototype to avoid an error.
20744 Use char because int might match the return type of a GCC
20745 builtin and then its argument prototype would still apply. */
20746#ifdef __cplusplus
20747extern "C"
20748#endif
20749char dlopen ();
20750int
20751main ()
20752{
20753return dlopen ();
20754 ;
20755 return 0;
20756}
20757_ACEOF
20758if ac_fn_c_try_link "$LINENO"; then :
20759 ac_cv_lib_svld_dlopen=yes
20760else
20761 ac_cv_lib_svld_dlopen=no
20762fi
20763rm -f core conftest.err conftest.$ac_objext \
20764 conftest$ac_exeext conftest.$ac_ext
20765LIBS=$ac_check_lib_save_LIBS
20766fi
20767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20768$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020769if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020770
20771$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20772
20773 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20774 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20775fi
20776
20777fi
20778rm -f core conftest.err conftest.$ac_objext \
20779 conftest$ac_exeext conftest.$ac_ext
20780fi
20781
20782if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20783then
20784 lt_save_LIBS="$LIBS"
20785 LIBS="$LIBS $LIBADD_DLOPEN"
20786 for ac_func in dlerror
20787do :
20788 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020789if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020790 cat >>confdefs.h <<_ACEOF
20791#define HAVE_DLERROR 1
20792_ACEOF
20793
20794fi
20795done
20796
20797 LIBS="$lt_save_LIBS"
20798fi
20799
20800
20801LIBADD_SHL_LOAD=
20802ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020803if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020804
20805$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20806
20807 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20808else
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20810$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020811if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020812 $as_echo_n "(cached) " >&6
20813else
20814 ac_check_lib_save_LIBS=$LIBS
20815LIBS="-ldld $LIBS"
20816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20817/* end confdefs.h. */
20818
20819/* Override any GCC internal prototype to avoid an error.
20820 Use char because int might match the return type of a GCC
20821 builtin and then its argument prototype would still apply. */
20822#ifdef __cplusplus
20823extern "C"
20824#endif
20825char shl_load ();
20826int
20827main ()
20828{
20829return shl_load ();
20830 ;
20831 return 0;
20832}
20833_ACEOF
20834if ac_fn_c_try_link "$LINENO"; then :
20835 ac_cv_lib_dld_shl_load=yes
20836else
20837 ac_cv_lib_dld_shl_load=no
20838fi
20839rm -f core conftest.err conftest.$ac_objext \
20840 conftest$ac_exeext conftest.$ac_ext
20841LIBS=$ac_check_lib_save_LIBS
20842fi
20843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20844$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020845if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020846
20847$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20848
20849 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20850 LIBADD_SHL_LOAD="-ldld"
20851fi
20852
20853fi
20854
20855
20856
20857case $host_os in
20858darwin[1567].*)
20859# We only want this for pre-Mac OS X 10.4.
20860 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020861if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020862
20863$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20864
20865 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20866fi
20867
20868 ;;
20869beos*)
20870 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20871 ;;
20872cygwin* | mingw* | os2* | pw32*)
20873 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20874"
cristyda16f162011-02-19 23:52:17 +000020875if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020876 ac_have_decl=1
20877else
20878 ac_have_decl=0
20879fi
20880
20881cat >>confdefs.h <<_ACEOF
20882#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20883_ACEOF
20884
20885 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20886 ;;
20887esac
20888
20889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20890$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020891if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020892 $as_echo_n "(cached) " >&6
20893else
20894 ac_check_lib_save_LIBS=$LIBS
20895LIBS="-ldld $LIBS"
20896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897/* end confdefs.h. */
20898
20899/* Override any GCC internal prototype to avoid an error.
20900 Use char because int might match the return type of a GCC
20901 builtin and then its argument prototype would still apply. */
20902#ifdef __cplusplus
20903extern "C"
20904#endif
20905char dld_link ();
20906int
20907main ()
20908{
20909return dld_link ();
20910 ;
20911 return 0;
20912}
20913_ACEOF
20914if ac_fn_c_try_link "$LINENO"; then :
20915 ac_cv_lib_dld_dld_link=yes
20916else
20917 ac_cv_lib_dld_dld_link=no
20918fi
20919rm -f core conftest.err conftest.$ac_objext \
20920 conftest$ac_exeext conftest.$ac_ext
20921LIBS=$ac_check_lib_save_LIBS
20922fi
20923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20924$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020925if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020926
20927$as_echo "#define HAVE_DLD 1" >>confdefs.h
20928
20929 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20930fi
20931
20932
20933
20934
20935LT_DLPREOPEN=
20936if test -n "$LT_DLLOADERS"
20937then
20938 for lt_loader in $LT_DLLOADERS; do
20939 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20940 done
20941
20942$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20943
20944fi
20945
20946
20947LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20948
20949
20950ac_ext=c
20951ac_cpp='$CPP $CPPFLAGS'
20952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20954ac_compiler_gnu=$ac_cv_c_compiler_gnu
20955
20956
20957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20958$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020959if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020960 $as_echo_n "(cached) " >&6
20961else
20962 lt_cv_sys_symbol_underscore=no
20963 cat > conftest.$ac_ext <<_LT_EOF
20964void nm_test_func(){}
20965int main(){nm_test_func;return 0;}
20966_LT_EOF
20967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20968 (eval $ac_compile) 2>&5
20969 ac_status=$?
20970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20971 test $ac_status = 0; }; then
20972 # Now try to grab the symbols.
20973 ac_nlist=conftest.nm
20974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20975 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20976 ac_status=$?
20977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20978 test $ac_status = 0; } && test -s "$ac_nlist"; then
20979 # See whether the symbols have a leading underscore.
20980 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20981 lt_cv_sys_symbol_underscore=yes
20982 else
20983 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20984 :
20985 else
20986 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20987 fi
20988 fi
20989 else
20990 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20991 fi
20992 else
20993 echo "configure: failed program was:" >&5
20994 cat conftest.c >&5
20995 fi
20996 rm -rf conftest*
20997
20998fi
20999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
21000$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
21001 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
21002
21003
21004if test x"$lt_cv_sys_symbol_underscore" = xyes; then
21005 if test x"$libltdl_cv_func_dlopen" = xyes ||
21006 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
21008$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021009if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021010 $as_echo_n "(cached) " >&6
21011else
21012 libltdl_cv_need_uscore=unknown
21013 save_LIBS="$LIBS"
21014 LIBS="$LIBS $LIBADD_DLOPEN"
21015 if test "$cross_compiling" = yes; then :
21016 libltdl_cv_need_uscore=cross
21017else
21018 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21019 lt_status=$lt_dlunknown
21020 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000021021#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000021022#include "confdefs.h"
21023
21024#if HAVE_DLFCN_H
21025#include <dlfcn.h>
21026#endif
21027
21028#include <stdio.h>
21029
21030#ifdef RTLD_GLOBAL
21031# define LT_DLGLOBAL RTLD_GLOBAL
21032#else
21033# ifdef DL_GLOBAL
21034# define LT_DLGLOBAL DL_GLOBAL
21035# else
21036# define LT_DLGLOBAL 0
21037# endif
21038#endif
21039
21040/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21041 find out it does not work in some platform. */
21042#ifndef LT_DLLAZY_OR_NOW
21043# ifdef RTLD_LAZY
21044# define LT_DLLAZY_OR_NOW RTLD_LAZY
21045# else
21046# ifdef DL_LAZY
21047# define LT_DLLAZY_OR_NOW DL_LAZY
21048# else
21049# ifdef RTLD_NOW
21050# define LT_DLLAZY_OR_NOW RTLD_NOW
21051# else
21052# ifdef DL_NOW
21053# define LT_DLLAZY_OR_NOW DL_NOW
21054# else
21055# define LT_DLLAZY_OR_NOW 0
21056# endif
21057# endif
21058# endif
21059# endif
21060#endif
21061
cristy0c60a692010-11-04 01:09:47 +000021062/* When -fvisbility=hidden is used, assume the code has been annotated
21063 correspondingly for the symbols needed. */
21064#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021065int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021066#endif
21067
cristyda16f162011-02-19 23:52:17 +000021068int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021069int main ()
21070{
21071 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21072 int status = $lt_dlunknown;
21073
21074 if (self)
21075 {
21076 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021077 else
21078 {
21079 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21080 else puts (dlerror ());
21081 }
cristy73bd4a52010-10-05 11:24:23 +000021082 /* dlclose (self); */
21083 }
21084 else
21085 puts (dlerror ());
21086
21087 return status;
21088}
21089_LT_EOF
21090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21091 (eval $ac_link) 2>&5
21092 ac_status=$?
21093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21094 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21095 (./conftest; exit; ) >&5 2>/dev/null
21096 lt_status=$?
21097 case x$lt_status in
21098 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21099 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21100 x$lt_dlunknown|x*) ;;
21101 esac
21102 else :
21103 # compilation failed
21104
21105 fi
21106fi
21107rm -fr conftest*
21108
21109 LIBS="$save_LIBS"
21110
21111fi
21112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21113$as_echo "$libltdl_cv_need_uscore" >&6; }
21114 fi
21115fi
21116
21117if test x"$libltdl_cv_need_uscore" = xyes; then
21118
21119$as_echo "#define NEED_USCORE 1" >>confdefs.h
21120
21121fi
21122
21123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21124$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021125if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021126 $as_echo_n "(cached) " >&6
21127else
21128 # PORTME does your system automatically load deplibs for dlopen?
21129 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21130 # For now, we just catch OSes we know something about -- in the
21131 # future, we'll try test this programmatically.
21132 lt_cv_sys_dlopen_deplibs=unknown
21133 case $host_os in
21134 aix3*|aix4.1.*|aix4.2.*)
21135 # Unknown whether this is true for these versions of AIX, but
21136 # we want this `case' here to explicitly catch those versions.
21137 lt_cv_sys_dlopen_deplibs=unknown
21138 ;;
21139 aix[4-9]*)
21140 lt_cv_sys_dlopen_deplibs=yes
21141 ;;
21142 amigaos*)
21143 case $host_cpu in
21144 powerpc)
21145 lt_cv_sys_dlopen_deplibs=no
21146 ;;
21147 esac
21148 ;;
21149 darwin*)
21150 # Assuming the user has installed a libdl from somewhere, this is true
21151 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21152 lt_cv_sys_dlopen_deplibs=yes
21153 ;;
21154 freebsd* | dragonfly*)
21155 lt_cv_sys_dlopen_deplibs=yes
21156 ;;
cristy0c60a692010-11-04 01:09:47 +000021157 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021158 # GNU and its variants, using gnu ld.so (Glibc)
21159 lt_cv_sys_dlopen_deplibs=yes
21160 ;;
21161 hpux10*|hpux11*)
21162 lt_cv_sys_dlopen_deplibs=yes
21163 ;;
21164 interix*)
21165 lt_cv_sys_dlopen_deplibs=yes
21166 ;;
21167 irix[12345]*|irix6.[01]*)
21168 # Catch all versions of IRIX before 6.2, and indicate that we don't
21169 # know how it worked for any of those versions.
21170 lt_cv_sys_dlopen_deplibs=unknown
21171 ;;
21172 irix*)
21173 # The case above catches anything before 6.2, and it's known that
21174 # at 6.2 and later dlopen does load deplibs.
21175 lt_cv_sys_dlopen_deplibs=yes
21176 ;;
21177 netbsd*)
21178 lt_cv_sys_dlopen_deplibs=yes
21179 ;;
21180 openbsd*)
21181 lt_cv_sys_dlopen_deplibs=yes
21182 ;;
21183 osf[1234]*)
21184 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21185 # it did *not* use an RPATH in a shared library to find objects the
21186 # library depends on, so we explicitly say `no'.
21187 lt_cv_sys_dlopen_deplibs=no
21188 ;;
21189 osf5.0|osf5.0a|osf5.1)
21190 # dlopen *does* load deplibs and with the right loader patch applied
21191 # it even uses RPATH in a shared library to search for shared objects
21192 # that the library depends on, but there's no easy way to know if that
21193 # patch is installed. Since this is the case, all we can really
21194 # say is unknown -- it depends on the patch being installed. If
21195 # it is, this changes to `yes'. Without it, it would be `no'.
21196 lt_cv_sys_dlopen_deplibs=unknown
21197 ;;
21198 osf*)
21199 # the two cases above should catch all versions of osf <= 5.1. Read
21200 # the comments above for what we know about them.
21201 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21202 # is used to find them so we can finally say `yes'.
21203 lt_cv_sys_dlopen_deplibs=yes
21204 ;;
21205 qnx*)
21206 lt_cv_sys_dlopen_deplibs=yes
21207 ;;
21208 solaris*)
21209 lt_cv_sys_dlopen_deplibs=yes
21210 ;;
21211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21212 libltdl_cv_sys_dlopen_deplibs=yes
21213 ;;
21214 esac
21215
21216fi
21217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21218$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21219if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21220
21221$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21222
21223fi
21224
21225:
21226
21227for ac_header in argz.h
21228do :
21229 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21230"
cristyda16f162011-02-19 23:52:17 +000021231if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021232 cat >>confdefs.h <<_ACEOF
21233#define HAVE_ARGZ_H 1
21234_ACEOF
21235
21236fi
21237
21238done
21239
21240
21241ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21242# include <argz.h>
21243#endif
21244"
cristyda16f162011-02-19 23:52:17 +000021245if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021246
21247cat >>confdefs.h <<_ACEOF
21248#define HAVE_ERROR_T 1
21249_ACEOF
21250
21251
21252else
21253
21254$as_echo "#define error_t int" >>confdefs.h
21255
21256
21257$as_echo "#define __error_t_defined 1" >>confdefs.h
21258
21259fi
21260
21261
21262ARGZ_H=
21263for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21264 argz_next argz_stringify
21265do :
21266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21267ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021268if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021269 cat >>confdefs.h <<_ACEOF
21270#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21271_ACEOF
21272
21273else
21274 ARGZ_H=argz.h;
21275
21276 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21277
21278fi
21279done
21280
21281
21282if test -z "$ARGZ_H"; then :
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21284$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021285if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021286 $as_echo_n "(cached) " >&6
21287else
21288 case $host_os in #(
21289 *cygwin*)
21290 lt_cv_sys_argz_works=no
21291 if test "$cross_compiling" != no; then
21292 lt_cv_sys_argz_works="guessing no"
21293 else
21294 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21295 save_IFS=$IFS
21296 IFS=-.
21297 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21298 IFS=$save_IFS
21299 lt_os_major=${2-0}
21300 lt_os_minor=${3-0}
21301 lt_os_micro=${4-0}
21302 if test "$lt_os_major" -gt 1 \
21303 || { test "$lt_os_major" -eq 1 \
21304 && { test "$lt_os_minor" -gt 5 \
21305 || { test "$lt_os_minor" -eq 5 \
21306 && test "$lt_os_micro" -gt 24; }; }; }; then
21307 lt_cv_sys_argz_works=yes
21308 fi
21309 fi
21310 ;; #(
21311 *) lt_cv_sys_argz_works=yes ;;
21312 esac
21313fi
21314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21315$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021316 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021317
21318$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21319
21320else
21321 ARGZ_H=argz.h
21322
21323
21324 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21325
21326fi
21327fi
21328
21329
21330
21331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21332$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021333if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021334 $as_echo_n "(cached) " >&6
21335else
21336 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21337 libltdl_cv_preloaded_symbols=yes
21338 else
21339 libltdl_cv_preloaded_symbols=no
21340 fi
21341
21342fi
21343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21344$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21345if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21346
21347$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21348
21349fi
21350
21351# Set options
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363# Check whether --with-included_ltdl was given.
21364if test "${with_included_ltdl+set}" = set; then :
21365 withval=$with_included_ltdl;
21366fi
21367
21368
21369if test "x$with_included_ltdl" != xyes; then
21370 # We are not being forced to use the included libltdl sources, so
21371 # decide whether there is a useful installed version we can use.
21372 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21373
21374"
cristyda16f162011-02-19 23:52:17 +000021375if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021376 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21377 #include <ltdl.h>
21378"
cristyda16f162011-02-19 23:52:17 +000021379if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21381$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021382if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021383 $as_echo_n "(cached) " >&6
21384else
21385 ac_check_lib_save_LIBS=$LIBS
21386LIBS="-lltdl $LIBS"
21387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21388/* end confdefs.h. */
21389
21390/* Override any GCC internal prototype to avoid an error.
21391 Use char because int might match the return type of a GCC
21392 builtin and then its argument prototype would still apply. */
21393#ifdef __cplusplus
21394extern "C"
21395#endif
21396char lt_dladvise_preload ();
21397int
21398main ()
21399{
21400return lt_dladvise_preload ();
21401 ;
21402 return 0;
21403}
21404_ACEOF
21405if ac_fn_c_try_link "$LINENO"; then :
21406 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21407else
21408 ac_cv_lib_ltdl_lt_dladvise_preload=no
21409fi
21410rm -f core conftest.err conftest.$ac_objext \
21411 conftest$ac_exeext conftest.$ac_ext
21412LIBS=$ac_check_lib_save_LIBS
21413fi
21414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21415$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021416if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021417 with_included_ltdl=no
21418else
21419 with_included_ltdl=yes
21420fi
21421
21422else
21423 with_included_ltdl=yes
21424fi
21425
21426else
21427 with_included_ltdl=yes
21428fi
21429
21430
21431fi
21432
21433
21434
21435
21436# Check whether --with-ltdl_include was given.
21437if test "${with_ltdl_include+set}" = set; then :
21438 withval=$with_ltdl_include;
21439fi
21440
21441
21442if test -n "$with_ltdl_include"; then
21443 if test -f "$with_ltdl_include/ltdl.h"; then :
21444 else
cristy98dddb52010-11-04 00:30:15 +000021445 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021446 fi
21447else
21448 with_ltdl_include=no
21449fi
21450
21451
21452# Check whether --with-ltdl_lib was given.
21453if test "${with_ltdl_lib+set}" = set; then :
21454 withval=$with_ltdl_lib;
21455fi
21456
21457
21458if test -n "$with_ltdl_lib"; then
21459 if test -f "$with_ltdl_lib/libltdl.la"; then :
21460 else
cristy98dddb52010-11-04 00:30:15 +000021461 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021462 fi
21463else
21464 with_ltdl_lib=no
21465fi
21466
21467case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21468 ,yes,no,no,)
21469 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021470 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021471 "") enable_ltdl_convenience=yes
21472 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21473esac
21474LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21475LTDLDEPS=$LIBLTDL
21476LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21477
21478
21479
21480
21481
21482# For backwards non-gettext consistent compatibility...
21483INCLTDL="$LTDLINCL"
21484
21485
21486 ;;
21487 ,no,no,no,)
21488 # If the included ltdl is not to be used, then use the
21489 # preinstalled libltdl we found.
21490
21491$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21492
21493 LIBLTDL=-lltdl
21494 LTDLDEPS=
21495 LTDLINCL=
21496 ;;
21497 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021498 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021499 ;;
21500 *) with_included_ltdl=no
21501 LIBLTDL="-L$with_ltdl_lib -lltdl"
21502 LTDLDEPS=
21503 LTDLINCL="-I$with_ltdl_include"
21504 ;;
21505esac
21506INCLTDL="$LTDLINCL"
21507
21508# Report our decision...
21509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21510$as_echo_n "checking where to find libltdl headers... " >&6; }
21511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21512$as_echo "$LTDLINCL" >&6; }
21513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21514$as_echo_n "checking where to find libltdl library... " >&6; }
21515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21516$as_echo "$LIBLTDL" >&6; }
21517
21518
21519
21520# Check whether --enable-ltdl-install was given.
21521if test "${enable_ltdl_install+set}" = set; then :
21522 enableval=$enable_ltdl_install;
21523fi
21524
21525
21526case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21527 *yes*) ;;
21528 *) enable_ltdl_convenience=yes ;;
21529esac
21530
21531 if test x"${enable_ltdl_install-no}" != xno; then
21532 INSTALL_LTDL_TRUE=
21533 INSTALL_LTDL_FALSE='#'
21534else
21535 INSTALL_LTDL_TRUE='#'
21536 INSTALL_LTDL_FALSE=
21537fi
21538
21539 if test x"${enable_ltdl_convenience-no}" != xno; then
21540 CONVENIENCE_LTDL_TRUE=
21541 CONVENIENCE_LTDL_FALSE='#'
21542else
21543 CONVENIENCE_LTDL_TRUE='#'
21544 CONVENIENCE_LTDL_FALSE=
21545fi
21546
21547
21548
21549
21550
21551
cristy73bd4a52010-10-05 11:24:23 +000021552# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21553# the user used. This is so that ltdl.h can pick up the parent projects
21554# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21555# definitions required by ltdl.c.
21556# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21557
21558
21559
21560for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21561do :
21562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21563ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21564"
cristy98dddb52010-11-04 00:30:15 +000021565if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021566 cat >>confdefs.h <<_ACEOF
21567#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21568_ACEOF
21569
21570fi
21571
21572done
21573
21574
21575for ac_func in closedir opendir readdir
21576do :
21577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21578ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021579if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021580 cat >>confdefs.h <<_ACEOF
21581#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21582_ACEOF
21583
21584else
21585
21586
21587 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21588
21589fi
21590done
21591
21592for ac_func in strlcat strlcpy
21593do :
21594 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21595ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021596if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021597 cat >>confdefs.h <<_ACEOF
21598#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21599_ACEOF
21600
21601else
21602
21603
21604 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21605
21606fi
21607done
21608
21609
21610
21611cat >>confdefs.h <<_ACEOF
21612#define LT_LIBEXT "$libext"
21613_ACEOF
21614
21615
cristyda16f162011-02-19 23:52:17 +000021616name=
21617eval "lt_libprefix=\"$libname_spec\""
21618
21619cat >>confdefs.h <<_ACEOF
21620#define LT_LIBPREFIX "$lt_libprefix"
21621_ACEOF
21622
21623
cristy73bd4a52010-10-05 11:24:23 +000021624name=ltdl
cristyda16f162011-02-19 23:52:17 +000021625eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021626
21627
21628
21629
21630
21631
21632
21633
21634# Only expand once:
21635
21636
cristy3ed852e2009-09-05 21:47:34 +000021637
21638# Check to see if building shared libraries
21639libtool_build_shared_libs='no'
21640if test "$enable_shared" = 'yes'; then
21641 libtool_build_shared_libs='yes'
21642fi
21643
21644# Check to see if building static libraries
21645libtool_build_static_libs='no'
21646if test "$enable_static" = 'yes'; then
21647 libtool_build_static_libs='yes'
21648fi
21649
cristy73bd4a52010-10-05 11:24:23 +000021650 if test "${libtool_build_shared_libs}" = 'yes'; then
21651 WITH_SHARED_LIBS_TRUE=
21652 WITH_SHARED_LIBS_FALSE='#'
21653else
21654 WITH_SHARED_LIBS_TRUE='#'
21655 WITH_SHARED_LIBS_FALSE=
21656fi
21657
cristy3ed852e2009-09-05 21:47:34 +000021658#
21659# Enable support for building loadable modules
21660#
21661
21662# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021663if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021664 withval=$with_modules; with_modules=$withval
21665else
cristy5a1cefd2010-01-06 20:42:35 +000021666 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021667fi
21668
21669
21670# Only allow building loadable modules if we are building shared libraries
21671if test "$with_modules" != 'no' ; then
21672 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021673 { $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 +000021674$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21675 with_modules='no'
21676 fi
21677fi
21678if test "$with_modules" != 'no'; then
21679
cristy8b350f62009-11-15 23:12:43 +000021680$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021681
21682fi
cristy73bd4a52010-10-05 11:24:23 +000021683 if test "$with_modules" != 'no'; then
21684 WITH_MODULES_TRUE=
21685 WITH_MODULES_FALSE='#'
21686else
21687 WITH_MODULES_TRUE='#'
21688 WITH_MODULES_FALSE=
21689fi
21690
cristy3ed852e2009-09-05 21:47:34 +000021691
21692# Enable building/use of libltdl if we are building shared libraries regardless
21693# of whether modules are built or not.
21694with_ltdl='no'
21695if test "$libtool_build_shared_libs" != 'no'; then
21696 with_ltdl='yes'
21697fi
21698
cristy73bd4a52010-10-05 11:24:23 +000021699 if test "$with_ltdl" != 'no'; then
21700 WITH_LTDL_TRUE=
21701 WITH_LTDL_FALSE='#'
21702else
21703 WITH_LTDL_TRUE='#'
21704 WITH_LTDL_FALSE=
21705fi
21706
cristy3ed852e2009-09-05 21:47:34 +000021707if test "$with_ltdl" != 'no'; then
21708
cristy8b350f62009-11-15 23:12:43 +000021709$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021710
21711
21712 # Set DLLDFLAGS
21713 if test X"$enable_shared" = Xyes; then
21714 DLLDFLAGS=-export-dynamic
21715
21716 fi
21717fi
21718
21719# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021720# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021721# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021722if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021723 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21724else
21725 enable_delegate_build='no'
21726fi
21727
21728
21729# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021730if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021731 enableval=$enable_deprecated; enable_deprecated=$enableval
21732else
21733 enable_deprecated='no'
21734fi
21735
21736
21737if test "$enable_deprecated" = 'yes'; then
21738
cristy8b350f62009-11-15 23:12:43 +000021739$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021740
21741else
21742 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21743fi
21744
21745# Build a version of ImageMagick which operates uninstalled.
21746# Used to build distributions located via MAGICK_HOME / executable path
21747# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021748if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021749 enableval=$enable_installed; enable_installed=$enableval
21750else
21751 enable_installed='yes'
21752fi
21753
21754
21755if test "$enable_installed" = 'yes'; then
21756
cristy8b350f62009-11-15 23:12:43 +000021757$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021758
21759else
21760 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21761fi
21762
21763# Permit enciphering and deciphering image pixels.
21764# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021765if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021766 enableval=$enable_cipher; enable_cipher=$enableval
21767else
21768 enable_cipher='yes'
21769fi
21770
21771
21772if test "$enable_cipher" = 'yes'; then
21773
cristy8b350f62009-11-15 23:12:43 +000021774$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021775
21776fi
21777
cristy6e3607c2011-09-13 13:59:17 +000021778# Build a zero-configuration version of ImageMagick.
21779# Check whether --enable-zero-configuration was given.
21780if test "${enable_zero_configuration+set}" = set; then :
21781 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021782else
cristy6e3607c2011-09-13 13:59:17 +000021783 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021784fi
21785
21786
cristy6e3607c2011-09-13 13:59:17 +000021787if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021788
cristy6e3607c2011-09-13 13:59:17 +000021789$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021790
cristy81af5702011-09-13 14:20:58 +000021791 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021792fi
21793
21794# Build a high dynamic range version of ImageMagick.
21795# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021796if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021797 enableval=$enable_hdri; enable_hdri=$enableval
21798else
21799 enable_hdri='no'
21800fi
21801
21802
21803MAGICK_HDRI=""
21804if test "$enable_hdri" = 'yes'; then
21805 MAGICK_HDRI="HDRI"
21806
cristy8b350f62009-11-15 23:12:43 +000021807$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021808
cristyfd9dcd42010-08-08 18:07:02 +000021809 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021810fi
21811
cristy3ed852e2009-09-05 21:47:34 +000021812# Build a version of ImageMagick with assert statements.
21813# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021814if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021815 enableval=$enable_assert; enable_assert=$enableval
21816else
21817 enable_assert='yes'
21818fi
21819
21820
21821if test "$enable_assert" = 'no'; then
21822
cristy8b350f62009-11-15 23:12:43 +000021823$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021824
21825fi
21826
cristya448bd22011-10-14 12:38:13 +000021827# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021828
21829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21830$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21831 # Check whether --enable-maintainer-mode was given.
21832if test "${enable_maintainer_mode+set}" = set; then :
21833 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21834else
21835 USE_MAINTAINER_MODE=no
21836fi
21837
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21839$as_echo "$USE_MAINTAINER_MODE" >&6; }
21840 if test $USE_MAINTAINER_MODE = yes; then
21841 MAINTAINER_MODE_TRUE=
21842 MAINTAINER_MODE_FALSE='#'
21843else
21844 MAINTAINER_MODE_TRUE='#'
21845 MAINTAINER_MODE_FALSE=
21846fi
21847
21848 MAINT=$MAINTAINER_MODE_TRUE
21849
21850
cristy3ed852e2009-09-05 21:47:34 +000021851
cristy3ed852e2009-09-05 21:47:34 +000021852# Enable ccmalloc memory debugging support
21853# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021854if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021855 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21856else
21857 enable_ccmalloc='no'
21858fi
21859
21860
21861# Enable Electric Fence memory debugging support
21862# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021863if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021864 enableval=$enable_efence; enable_efence=$enableval
21865else
21866 enable_efence='no'
21867fi
21868
21869
21870# Enable prof-based profiling support
21871# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021872if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021873 enableval=$enable_prof; enable_prof=$enableval
21874else
21875 enable_prof='no'
21876fi
21877
21878
21879# Enable gprof-based profiling support
21880# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021881if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021882 enableval=$enable_gprof; enable_gprof=$enableval
21883else
21884 enable_gprof='no'
21885fi
21886
21887
21888# Enable gcov-based profiling support
21889# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021890if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021891 enableval=$enable_gcov; enable_gcov=$enableval
21892else
21893 enable_gcov='no'
21894fi
21895
21896
21897enable_profiling='no'
21898if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21899 enable_profiling='yes'
21900 if test "$libtool_build_shared_libs" = 'yes'; then
21901 echo "Warning: Can not profile code using shared libraries"
21902 fi
21903fi
21904
21905# Magick API method prefix
21906
21907# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021908if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021909 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021910else
cristyfc3d0222012-02-07 15:05:57 +000021911 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021912fi
21913
21914
cristyfc3d0222012-02-07 15:05:57 +000021915if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021916
21917cat >>confdefs.h <<_ACEOF
21918#define NAMESPACE_PREFIX $with_method_prefix
21919_ACEOF
21920
cristyfc3d0222012-02-07 15:05:57 +000021921 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021922fi
21923
cristy71d8c202012-03-20 17:05:01 +000021924# Enable legacy support (default no)
21925# Check whether --enable-legacy-support was given.
21926if test "${enable_legacy_support+set}" = set; then :
21927 enableval=$enable_legacy_support; with_legacy_support=$enableval
21928else
21929 with_legacy_support='no'
21930fi
21931
21932 if test "$with_legacy_support" != 'no'; then
21933 LEGACY_SUPPORT_TRUE=
21934 LEGACY_SUPPORT_FALSE='#'
21935else
21936 LEGACY_SUPPORT_TRUE='#'
21937 LEGACY_SUPPORT_FALSE=
21938fi
21939
21940
cristy3ed852e2009-09-05 21:47:34 +000021941# Number of bits in a Quantum
21942
21943# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021944if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021945 withval=$with_quantum_depth; with_quantum_depth=$withval
21946else
21947 with_quantum_depth=16
21948fi
21949
21950
21951if test "$with_quantum_depth" != '8'; then
21952 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21953fi
21954
21955case "${with_quantum_depth}" in
21956 8 ) ;;
21957 16 ) ;;
21958 32 ) ;;
21959 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021960 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021961esac
21962QUANTUM_DEPTH="$with_quantum_depth"
21963
21964cat >>confdefs.h <<_ACEOF
21965#define QUANTUM_DEPTH $QUANTUM_DEPTH
21966_ACEOF
21967
21968
21969# Set pixel cache threshold
21970
21971# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021972if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021973 withval=$with_cache; with_cache=$withval
21974else
21975 with_cache=''
21976fi
21977
21978
21979if test "$with_cache" != ''; then
21980
21981cat >>confdefs.h <<_ACEOF
21982#define PixelCacheThreshold $with_cache
21983_ACEOF
21984
21985 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21986fi
21987
21988# Disable/Enable support for full delegate paths
21989
21990# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021991if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021992 withval=$with_frozenpaths; with_frozenpaths=$withval
21993else
21994 with_frozenpaths='no'
21995fi
21996
21997
21998# Enable build/install of Magick++
21999
22000# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000022001if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022002 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22003else
22004 with_magick_plus_plus='yes'
22005fi
22006
22007
22008# Disable build/install of PerlMagick.
22009
22010# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022011if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022012 withval=$with_perl; with_perl=$withval
22013else
cristyb5f4e2f2010-04-25 00:49:11 +000022014 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022015fi
22016
22017
22018# Options to pass when configuring PerlMagick
22019
22020# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022021if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022022 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022023fi
22024
22025
cristy3ed852e2009-09-05 21:47:34 +000022026
22027# Enable umem, object-caching memory allocation library.
22028
22029# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022030if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022031 withval=$with_umem; with_umem=$withval
22032else
22033 with_umem='no'
22034fi
22035
22036if test "$with_umem" != 'yes' ; then
22037 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22038fi
22039
22040#
22041# Specify path to shared libstdc++ if not in normal location
22042#
22043
22044# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022045if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022046 withval=$with_libstdc; with_libstdc=$withval
22047else
22048 with_libstdc=''
22049fi
22050
22051
22052if test "$with_libstdc" != ''; then
22053 if test -d "$with_libstdc"; then
22054 LIBSTDCLDFLAGS="-L$with_libstdc"
22055 fi
22056fi
22057
22058
22059# Does gcc required -traditional?
22060if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022062$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022063if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022064 $as_echo_n "(cached) " >&6
22065else
22066 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022068/* end confdefs.h. */
22069#include <sgtty.h>
22070Autoconf TIOCGETP
22071_ACEOF
22072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022073 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022074 ac_cv_prog_gcc_traditional=yes
22075else
22076 ac_cv_prog_gcc_traditional=no
22077fi
22078rm -f conftest*
22079
22080
22081 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022083/* end confdefs.h. */
22084#include <termio.h>
22085Autoconf TCGETA
22086_ACEOF
22087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022088 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022089 ac_cv_prog_gcc_traditional=yes
22090fi
22091rm -f conftest*
22092
22093 fi
22094fi
cristy8b350f62009-11-15 23:12:43 +000022095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022096$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22097 if test $ac_cv_prog_gcc_traditional = yes; then
22098 CC="$CC -traditional"
22099 fi
22100fi
22101
22102
22103########
22104#
22105# Set defines required to build DLLs and modules using MinGW
22106#
22107########
22108# These options are set for multi-thread DLL module build
22109# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22110# module: _DLL
22111# executable/Magick++: _DLL _MAGICKMOD_
22112MODULE_EXTRA_CPPFLAGS=''
22113LIBRARY_EXTRA_CPPFLAGS=''
22114if test "${native_win32_build}" = 'yes'; then
22115 if test "${libtool_build_shared_libs}" = 'yes'; then
22116 CPPFLAGS="$CPPFLAGS -D_DLL"
22117 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22118 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22119 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22120 if test "$with_modules" = 'yes'; then
22121 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22122 else
22123 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22124 fi
22125 else
22126 CPPFLAGS="$CPPFLAGS -D_LIB"
22127 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22128 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22129 fi
22130 if test "$with_threads" = 'yes'; then
22131 CPPFLAGS="$CPPFLAGS -D_MT"
22132 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22133 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22134 fi
22135fi
22136
22137
22138
22139# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022141$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022142if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022143 $as_echo_n "(cached) " >&6
22144else
cristy8b350f62009-11-15 23:12:43 +000022145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022146/* end confdefs.h. */
22147#include <stdlib.h>
22148#include <stdarg.h>
22149#include <string.h>
22150#include <float.h>
22151
22152int
22153main ()
22154{
22155
22156 ;
22157 return 0;
22158}
22159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022160if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022161 ac_cv_header_stdc=yes
22162else
cristy8b350f62009-11-15 23:12:43 +000022163 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022164fi
cristy3ed852e2009-09-05 21:47:34 +000022165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22166
22167if test $ac_cv_header_stdc = yes; then
22168 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022170/* end confdefs.h. */
22171#include <string.h>
22172
22173_ACEOF
22174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022175 $EGREP "memchr" >/dev/null 2>&1; then :
22176
cristy3ed852e2009-09-05 21:47:34 +000022177else
22178 ac_cv_header_stdc=no
22179fi
22180rm -f conftest*
22181
22182fi
22183
22184if test $ac_cv_header_stdc = yes; then
22185 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022187/* end confdefs.h. */
22188#include <stdlib.h>
22189
22190_ACEOF
22191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022192 $EGREP "free" >/dev/null 2>&1; then :
22193
cristy3ed852e2009-09-05 21:47:34 +000022194else
22195 ac_cv_header_stdc=no
22196fi
22197rm -f conftest*
22198
22199fi
22200
22201if test $ac_cv_header_stdc = yes; then
22202 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022203 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022204 :
22205else
cristy8b350f62009-11-15 23:12:43 +000022206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022207/* end confdefs.h. */
22208#include <ctype.h>
22209#include <stdlib.h>
22210#if ((' ' & 0x0FF) == 0x020)
22211# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22212# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22213#else
22214# define ISLOWER(c) \
22215 (('a' <= (c) && (c) <= 'i') \
22216 || ('j' <= (c) && (c) <= 'r') \
22217 || ('s' <= (c) && (c) <= 'z'))
22218# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22219#endif
22220
22221#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22222int
22223main ()
22224{
22225 int i;
22226 for (i = 0; i < 256; i++)
22227 if (XOR (islower (i), ISLOWER (i))
22228 || toupper (i) != TOUPPER (i))
22229 return 2;
22230 return 0;
22231}
22232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022233if ac_fn_c_try_run "$LINENO"; then :
22234
cristy3ed852e2009-09-05 21:47:34 +000022235else
cristy8b350f62009-11-15 23:12:43 +000022236 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022237fi
cristy8b350f62009-11-15 23:12:43 +000022238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22239 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022240fi
22241
cristy3ed852e2009-09-05 21:47:34 +000022242fi
22243fi
cristy8b350f62009-11-15 23:12:43 +000022244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022245$as_echo "$ac_cv_header_stdc" >&6; }
22246if test $ac_cv_header_stdc = yes; then
22247
cristy8b350f62009-11-15 23:12:43 +000022248$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022249
22250fi
22251
22252if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022253 { $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 +000022254 header files. Compilation cannot proceed. Please install the ANSI C
22255 headers and rerun this script." >&5
22256$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22257 header files. Compilation cannot proceed. Please install the ANSI C
22258 headers and rerun this script." >&2;};
22259fi
cristya0b81c32010-01-22 02:54:33 +000022260
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22262$as_echo_n "checking whether to enable assertions... " >&6; }
22263 # Check whether --enable-assert was given.
22264if test "${enable_assert+set}" = set; then :
22265 enableval=$enable_assert; ac_enable_assert=$enableval
22266 if test "x$enableval" = xno; then :
22267
22268$as_echo "#define NDEBUG 1" >>confdefs.h
22269
22270elif test "x$enableval" != xyes; then :
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22272$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22273 ac_enable_assert=yes
22274fi
22275else
22276 ac_enable_assert=yes
22277fi
22278
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22280$as_echo "$ac_enable_assert" >&6; }
22281
cristy3ed852e2009-09-05 21:47:34 +000022282ac_header_dirent=no
22283for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22284 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022286$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022287if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022288 $as_echo_n "(cached) " >&6
22289else
cristy8b350f62009-11-15 23:12:43 +000022290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022291/* end confdefs.h. */
22292#include <sys/types.h>
22293#include <$ac_hdr>
22294
22295int
22296main ()
22297{
22298if ((DIR *) 0)
22299return 0;
22300 ;
22301 return 0;
22302}
22303_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022304if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022305 eval "$as_ac_Header=yes"
22306else
cristy8b350f62009-11-15 23:12:43 +000022307 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022308fi
cristy3ed852e2009-09-05 21:47:34 +000022309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22310fi
cristy8b350f62009-11-15 23:12:43 +000022311eval ac_res=\$$as_ac_Header
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022313$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022314if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022315 cat >>confdefs.h <<_ACEOF
22316#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22317_ACEOF
22318
22319ac_header_dirent=$ac_hdr; break
22320fi
22321
22322done
22323# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22324if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022326$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022327if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022328 $as_echo_n "(cached) " >&6
22329else
22330 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022332/* end confdefs.h. */
22333
22334/* Override any GCC internal prototype to avoid an error.
22335 Use char because int might match the return type of a GCC
22336 builtin and then its argument prototype would still apply. */
22337#ifdef __cplusplus
22338extern "C"
22339#endif
22340char opendir ();
22341int
22342main ()
22343{
22344return opendir ();
22345 ;
22346 return 0;
22347}
22348_ACEOF
22349for ac_lib in '' dir; do
22350 if test -z "$ac_lib"; then
22351 ac_res="none required"
22352 else
22353 ac_res=-l$ac_lib
22354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22355 fi
cristy8b350f62009-11-15 23:12:43 +000022356 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022357 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022358fi
cristy8b350f62009-11-15 23:12:43 +000022359rm -f core conftest.err conftest.$ac_objext \
22360 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022361 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022362 break
22363fi
22364done
cristyda16f162011-02-19 23:52:17 +000022365if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022366
cristy3ed852e2009-09-05 21:47:34 +000022367else
22368 ac_cv_search_opendir=no
22369fi
22370rm conftest.$ac_ext
22371LIBS=$ac_func_search_save_LIBS
22372fi
cristy8b350f62009-11-15 23:12:43 +000022373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022374$as_echo "$ac_cv_search_opendir" >&6; }
22375ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022376if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22378
22379fi
22380
22381else
cristy8b350f62009-11-15 23:12:43 +000022382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022383$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022384if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022385 $as_echo_n "(cached) " >&6
22386else
22387 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022389/* end confdefs.h. */
22390
22391/* Override any GCC internal prototype to avoid an error.
22392 Use char because int might match the return type of a GCC
22393 builtin and then its argument prototype would still apply. */
22394#ifdef __cplusplus
22395extern "C"
22396#endif
22397char opendir ();
22398int
22399main ()
22400{
22401return opendir ();
22402 ;
22403 return 0;
22404}
22405_ACEOF
22406for ac_lib in '' x; do
22407 if test -z "$ac_lib"; then
22408 ac_res="none required"
22409 else
22410 ac_res=-l$ac_lib
22411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22412 fi
cristy8b350f62009-11-15 23:12:43 +000022413 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022414 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022415fi
cristy8b350f62009-11-15 23:12:43 +000022416rm -f core conftest.err conftest.$ac_objext \
22417 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022418 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022419 break
22420fi
22421done
cristyda16f162011-02-19 23:52:17 +000022422if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022423
cristy3ed852e2009-09-05 21:47:34 +000022424else
22425 ac_cv_search_opendir=no
22426fi
22427rm conftest.$ac_ext
22428LIBS=$ac_func_search_save_LIBS
22429fi
cristy8b350f62009-11-15 23:12:43 +000022430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022431$as_echo "$ac_cv_search_opendir" >&6; }
22432ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022433if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22435
22436fi
22437
22438fi
22439
22440
22441# Check additional headers
cristya8549b12011-05-18 19:05:08 +000022442for 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 +000022443do :
22444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22445ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022446if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022447 cat >>confdefs.h <<_ACEOF
22448#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22449_ACEOF
22450
22451fi
22452
22453done
22454
22455
22456########
22457#
22458# Checks for typedefs, structures, and compiler characteristics.
22459#
22460########
22461
cristy8b350f62009-11-15 23:12:43 +000022462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022463$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022464if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022465 $as_echo_n "(cached) " >&6
22466else
cristy8b350f62009-11-15 23:12:43 +000022467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022468/* end confdefs.h. */
22469
cristy14fefe52012-05-21 00:59:18 +000022470 #include <stdbool.h>
22471 #ifndef bool
22472 "error: bool is not defined"
22473 #endif
22474 #ifndef false
22475 "error: false is not defined"
22476 #endif
22477 #if false
22478 "error: false is not 0"
22479 #endif
22480 #ifndef true
22481 "error: true is not defined"
22482 #endif
22483 #if true != 1
22484 "error: true is not 1"
22485 #endif
22486 #ifndef __bool_true_false_are_defined
22487 "error: __bool_true_false_are_defined is not defined"
22488 #endif
cristy3ed852e2009-09-05 21:47:34 +000022489
cristy14fefe52012-05-21 00:59:18 +000022490 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022491
cristy14fefe52012-05-21 00:59:18 +000022492 char a[true == 1 ? 1 : -1];
22493 char b[false == 0 ? 1 : -1];
22494 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22495 char d[(bool) 0.5 == true ? 1 : -1];
22496 /* See body of main program for 'e'. */
22497 char f[(_Bool) 0.0 == false ? 1 : -1];
22498 char g[true];
22499 char h[sizeof (_Bool)];
22500 char i[sizeof s.t];
22501 enum { j = false, k = true, l = false * true, m = true * 256 };
22502 /* The following fails for
22503 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22504 _Bool n[m];
22505 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22506 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22507 /* Catch a bug in an HP-UX C compiler. See
22508 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22509 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22510 */
22511 _Bool q = true;
22512 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022513
22514int
22515main ()
22516{
22517
cristy14fefe52012-05-21 00:59:18 +000022518 bool e = &s;
22519 *pq |= q;
22520 *pq |= ! q;
22521 /* Refer to every declared value, to avoid compiler optimizations. */
22522 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22523 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022524
22525 ;
22526 return 0;
22527}
22528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022529if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022530 ac_cv_header_stdbool_h=yes
22531else
cristy8b350f62009-11-15 23:12:43 +000022532 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022533fi
cristy3ed852e2009-09-05 21:47:34 +000022534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22535fi
cristy8b350f62009-11-15 23:12:43 +000022536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022537$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022538 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022539if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022540
22541cat >>confdefs.h <<_ACEOF
22542#define HAVE__BOOL 1
22543_ACEOF
22544
22545
22546fi
22547
cristy14fefe52012-05-21 00:59:18 +000022548
cristy3ed852e2009-09-05 21:47:34 +000022549if test $ac_cv_header_stdbool_h = yes; then
22550
cristy8b350f62009-11-15 23:12:43 +000022551$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022552
22553fi
22554
cristy8b350f62009-11-15 23:12:43 +000022555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022556$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022557if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022558 $as_echo_n "(cached) " >&6
22559else
cristy8b350f62009-11-15 23:12:43 +000022560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022561/* end confdefs.h. */
22562
22563int
22564main ()
22565{
22566
22567volatile int x;
22568int * volatile y = (int *) 0;
22569return !x && !y;
22570 ;
22571 return 0;
22572}
22573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022574if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022575 ac_cv_c_volatile=yes
22576else
cristy8b350f62009-11-15 23:12:43 +000022577 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022578fi
cristy3ed852e2009-09-05 21:47:34 +000022579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22580fi
cristy8b350f62009-11-15 23:12:43 +000022581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022582$as_echo "$ac_cv_c_volatile" >&6; }
22583if test $ac_cv_c_volatile = no; then
22584
cristy8b350f62009-11-15 23:12:43 +000022585$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022586
22587fi
22588
cristy8b350f62009-11-15 23:12:43 +000022589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022590$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022591if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022592 $as_echo_n "(cached) " >&6
22593else
cristy8b350f62009-11-15 23:12:43 +000022594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022595/* end confdefs.h. */
22596#define x(y) #y
22597
22598char *s = x(teststring);
22599_ACEOF
22600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022601 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022602 ac_cv_c_stringize=no
22603else
22604 ac_cv_c_stringize=yes
22605fi
22606rm -f conftest*
22607
22608fi
cristy8b350f62009-11-15 23:12:43 +000022609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022610$as_echo "$ac_cv_c_stringize" >&6; }
22611if test $ac_cv_c_stringize = yes; then
22612
cristy8b350f62009-11-15 23:12:43 +000022613$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022614
22615fi
22616
cristy8b350f62009-11-15 23:12:43 +000022617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022618$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022619if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022620 $as_echo_n "(cached) " >&6
22621else
cristy8b350f62009-11-15 23:12:43 +000022622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022623/* end confdefs.h. */
22624#include <sys/types.h>
22625#include <sys/stat.h>
22626
22627#if defined S_ISBLK && defined S_IFDIR
22628extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22629#endif
22630
22631#if defined S_ISBLK && defined S_IFCHR
22632extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22633#endif
22634
22635#if defined S_ISLNK && defined S_IFREG
22636extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22637#endif
22638
22639#if defined S_ISSOCK && defined S_IFREG
22640extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22641#endif
22642
22643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022644if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022645 ac_cv_header_stat_broken=no
22646else
cristy8b350f62009-11-15 23:12:43 +000022647 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022648fi
cristy3ed852e2009-09-05 21:47:34 +000022649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22650fi
cristy8b350f62009-11-15 23:12:43 +000022651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022652$as_echo "$ac_cv_header_stat_broken" >&6; }
22653if test $ac_cv_header_stat_broken = yes; then
22654
cristy8b350f62009-11-15 23:12:43 +000022655$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022656
22657fi
22658
cristy8b350f62009-11-15 23:12:43 +000022659{ $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 +000022660$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022661if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022662 $as_echo_n "(cached) " >&6
22663else
cristy8b350f62009-11-15 23:12:43 +000022664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022665/* end confdefs.h. */
22666#include <sys/types.h>
22667#include <sys/time.h>
22668#include <time.h>
22669
22670int
22671main ()
22672{
22673if ((struct tm *) 0)
22674return 0;
22675 ;
22676 return 0;
22677}
22678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022679if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022680 ac_cv_header_time=yes
22681else
cristy8b350f62009-11-15 23:12:43 +000022682 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022683fi
cristy3ed852e2009-09-05 21:47:34 +000022684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22685fi
cristy8b350f62009-11-15 23:12:43 +000022686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022687$as_echo "$ac_cv_header_time" >&6; }
22688if test $ac_cv_header_time = yes; then
22689
cristy8b350f62009-11-15 23:12:43 +000022690$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022691
22692fi
22693
cristy8b350f62009-11-15 23:12:43 +000022694{ $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 +000022695$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022696if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022697 $as_echo_n "(cached) " >&6
22698else
cristy8b350f62009-11-15 23:12:43 +000022699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022700/* end confdefs.h. */
22701#include <sys/types.h>
22702#include <time.h>
22703
22704int
22705main ()
22706{
22707struct tm tm;
22708 int *p = &tm.tm_sec;
22709 return !p;
22710 ;
22711 return 0;
22712}
22713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022714if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022715 ac_cv_struct_tm=time.h
22716else
cristy8b350f62009-11-15 23:12:43 +000022717 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022718fi
cristy3ed852e2009-09-05 21:47:34 +000022719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22720fi
cristy8b350f62009-11-15 23:12:43 +000022721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022722$as_echo "$ac_cv_struct_tm" >&6; }
22723if test $ac_cv_struct_tm = sys/time.h; then
22724
cristy8b350f62009-11-15 23:12:43 +000022725$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022726
22727fi
22728
cristy92703d82010-04-26 00:18:18 +000022729ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22730#include <$ac_cv_struct_tm>
22731
22732"
cristyda16f162011-02-19 23:52:17 +000022733if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022734
22735cat >>confdefs.h <<_ACEOF
22736#define HAVE_STRUCT_TM_TM_ZONE 1
22737_ACEOF
22738
22739
22740fi
22741
22742if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22743
22744$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22745
22746else
22747 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22748"
cristyda16f162011-02-19 23:52:17 +000022749if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022750 ac_have_decl=1
22751else
22752 ac_have_decl=0
22753fi
22754
22755cat >>confdefs.h <<_ACEOF
22756#define HAVE_DECL_TZNAME $ac_have_decl
22757_ACEOF
22758
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22760$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022761if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022762 $as_echo_n "(cached) " >&6
22763else
22764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22765/* end confdefs.h. */
22766#include <time.h>
22767#if !HAVE_DECL_TZNAME
22768extern char *tzname[];
22769#endif
22770
22771int
22772main ()
22773{
22774return tzname[0][0];
22775 ;
22776 return 0;
22777}
22778_ACEOF
22779if ac_fn_c_try_link "$LINENO"; then :
22780 ac_cv_var_tzname=yes
22781else
22782 ac_cv_var_tzname=no
22783fi
22784rm -f core conftest.err conftest.$ac_objext \
22785 conftest$ac_exeext conftest.$ac_ext
22786fi
22787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22788$as_echo "$ac_cv_var_tzname" >&6; }
22789 if test $ac_cv_var_tzname = yes; then
22790
22791$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22792
22793 fi
22794fi
22795
cristy8b350f62009-11-15 23:12:43 +000022796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022797$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022798if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022799 $as_echo_n "(cached) " >&6
22800else
22801 echo '#! /bin/cat
22802exit 69
22803' >conftest
22804chmod u+x conftest
22805(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22806if test $? -ne 69; then
22807 ac_cv_sys_interpreter=yes
22808else
22809 ac_cv_sys_interpreter=no
22810fi
22811rm -f conftest
22812fi
cristy8b350f62009-11-15 23:12:43 +000022813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022814$as_echo "$ac_cv_sys_interpreter" >&6; }
22815interpval=$ac_cv_sys_interpreter
22816
22817
cristy3ed852e2009-09-05 21:47:34 +000022818# If the C compiler supports the keyword inline, do nothing. Otherwise
22819# define inline to __inline__ or __inline if it accepts one of those,
22820# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022822$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022823if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022824 $as_echo_n "(cached) " >&6
22825else
22826 ac_cv_c_inline=no
22827for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022829/* end confdefs.h. */
22830#ifndef __cplusplus
22831typedef int foo_t;
22832static $ac_kw foo_t static_foo () {return 0; }
22833$ac_kw foo_t foo () {return 0; }
22834#endif
22835
22836_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022837if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022838 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022839fi
cristy3ed852e2009-09-05 21:47:34 +000022840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22841 test "$ac_cv_c_inline" != no && break
22842done
22843
22844fi
cristy8b350f62009-11-15 23:12:43 +000022845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022846$as_echo "$ac_cv_c_inline" >&6; }
22847
cristy3ed852e2009-09-05 21:47:34 +000022848case $ac_cv_c_inline in
22849 inline | yes) ;;
22850 *)
22851 case $ac_cv_c_inline in
22852 no) ac_val=;;
22853 *) ac_val=$ac_cv_c_inline;;
22854 esac
22855 cat >>confdefs.h <<_ACEOF
22856#ifndef __cplusplus
22857#define inline $ac_val
22858#endif
22859_ACEOF
22860 ;;
22861esac
22862
22863
22864# If the C compiler supports the keyword restrict, do nothing. Otherwise
22865# define restrict to __restrict__ or __restrict if it accepts one of those,
22866# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022868$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022869if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022870 $as_echo_n "(cached) " >&6
22871else
22872 ac_cv_c_restrict=no
22873 # The order here caters to the fact that C++ does not require restrict.
22874 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022876/* end confdefs.h. */
22877typedef int * int_ptr;
22878 int foo (int_ptr $ac_kw ip) {
22879 return ip[0];
22880 }
22881int
22882main ()
22883{
22884int s[1];
22885 int * $ac_kw t = s;
22886 t[0] = 0;
22887 return foo(t)
22888 ;
22889 return 0;
22890}
22891_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022892if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022893 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022894fi
cristy3ed852e2009-09-05 21:47:34 +000022895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22896 test "$ac_cv_c_restrict" != no && break
22897 done
22898
22899fi
cristy8b350f62009-11-15 23:12:43 +000022900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022901$as_echo "$ac_cv_c_restrict" >&6; }
22902
cristy3ed852e2009-09-05 21:47:34 +000022903 case $ac_cv_c_restrict in
22904 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022905 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022906 ;;
22907 *) cat >>confdefs.h <<_ACEOF
22908#define restrict $ac_cv_c_restrict
22909_ACEOF
22910 ;;
22911 esac
22912
22913
22914# If words are stored with the most significant byte first (like
22915# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022917$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022918if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022919 $as_echo_n "(cached) " >&6
22920else
22921 ac_cv_c_bigendian=unknown
22922 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022924/* end confdefs.h. */
22925#ifndef __APPLE_CC__
22926 not a universal capable compiler
22927 #endif
22928 typedef int dummy;
22929
22930_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022931if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022932
22933 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022934 # there are at least two -arch flags with different values.
22935 ac_arch=
22936 ac_prev=
22937 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22938 if test -n "$ac_prev"; then
22939 case $ac_word in
22940 i?86 | x86_64 | ppc | ppc64)
22941 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22942 ac_arch=$ac_word
22943 else
22944 ac_cv_c_bigendian=universal
22945 break
22946 fi
22947 ;;
22948 esac
22949 ac_prev=
22950 elif test "x$ac_word" = "x-arch"; then
22951 ac_prev=arch
22952 fi
22953 done
cristy3ed852e2009-09-05 21:47:34 +000022954fi
cristy3ed852e2009-09-05 21:47:34 +000022955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956 if test $ac_cv_c_bigendian = unknown; then
22957 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022959/* end confdefs.h. */
22960#include <sys/types.h>
22961 #include <sys/param.h>
22962
22963int
22964main ()
22965{
22966#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22967 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22968 && LITTLE_ENDIAN)
22969 bogus endian macros
22970 #endif
22971
22972 ;
22973 return 0;
22974}
22975_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022976if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022977 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022979/* end confdefs.h. */
22980#include <sys/types.h>
22981 #include <sys/param.h>
22982
22983int
22984main ()
22985{
22986#if BYTE_ORDER != BIG_ENDIAN
22987 not big endian
22988 #endif
22989
22990 ;
22991 return 0;
22992}
22993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022994if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022995 ac_cv_c_bigendian=yes
22996else
cristy8b350f62009-11-15 23:12:43 +000022997 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022998fi
cristy3ed852e2009-09-05 21:47:34 +000022999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023000fi
cristy3ed852e2009-09-05 21:47:34 +000023001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 fi
23003 if test $ac_cv_c_bigendian = unknown; then
23004 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023006/* end confdefs.h. */
23007#include <limits.h>
23008
23009int
23010main ()
23011{
23012#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23013 bogus endian macros
23014 #endif
23015
23016 ;
23017 return 0;
23018}
23019_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023020if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023021 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023023/* end confdefs.h. */
23024#include <limits.h>
23025
23026int
23027main ()
23028{
23029#ifndef _BIG_ENDIAN
23030 not big endian
23031 #endif
23032
23033 ;
23034 return 0;
23035}
23036_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023037if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023038 ac_cv_c_bigendian=yes
23039else
cristy8b350f62009-11-15 23:12:43 +000023040 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023041fi
cristy3ed852e2009-09-05 21:47:34 +000023042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023043fi
cristy3ed852e2009-09-05 21:47:34 +000023044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23045 fi
23046 if test $ac_cv_c_bigendian = unknown; then
23047 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023048 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023049 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023051/* end confdefs.h. */
23052short int ascii_mm[] =
23053 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23054 short int ascii_ii[] =
23055 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23056 int use_ascii (int i) {
23057 return ascii_mm[i] + ascii_ii[i];
23058 }
23059 short int ebcdic_ii[] =
23060 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23061 short int ebcdic_mm[] =
23062 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23063 int use_ebcdic (int i) {
23064 return ebcdic_mm[i] + ebcdic_ii[i];
23065 }
23066 extern int foo;
23067
23068int
23069main ()
23070{
23071return use_ascii (foo) == use_ebcdic (foo);
23072 ;
23073 return 0;
23074}
23075_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023076if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023077 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23078 ac_cv_c_bigendian=yes
23079 fi
23080 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23081 if test "$ac_cv_c_bigendian" = unknown; then
23082 ac_cv_c_bigendian=no
23083 else
23084 # finding both strings is unlikely to happen, but who knows?
23085 ac_cv_c_bigendian=unknown
23086 fi
23087 fi
cristy3ed852e2009-09-05 21:47:34 +000023088fi
cristy3ed852e2009-09-05 21:47:34 +000023089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23090else
cristy8b350f62009-11-15 23:12:43 +000023091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023092/* end confdefs.h. */
23093$ac_includes_default
23094int
23095main ()
23096{
23097
23098 /* Are we little or big endian? From Harbison&Steele. */
23099 union
23100 {
23101 long int l;
23102 char c[sizeof (long int)];
23103 } u;
23104 u.l = 1;
23105 return u.c[sizeof (long int) - 1] == 1;
23106
23107 ;
23108 return 0;
23109}
23110_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023111if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023112 ac_cv_c_bigendian=no
23113else
cristy8b350f62009-11-15 23:12:43 +000023114 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023115fi
cristy8b350f62009-11-15 23:12:43 +000023116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23117 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023118fi
23119
cristy3ed852e2009-09-05 21:47:34 +000023120 fi
23121fi
cristy8b350f62009-11-15 23:12:43 +000023122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023123$as_echo "$ac_cv_c_bigendian" >&6; }
23124 case $ac_cv_c_bigendian in #(
23125 yes)
cristy8b350f62009-11-15 23:12:43 +000023126 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023127;; #(
23128 no)
23129 ;; #(
23130 universal)
23131
cristy8b350f62009-11-15 23:12:43 +000023132$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023133
23134 ;; #(
23135 *)
cristy98dddb52010-11-04 00:30:15 +000023136 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023137 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023138 esac
23139
23140
cristy501c8042011-05-26 17:46:28 +000023141# Define to a suitable type, if standard headers do not define it.
23142ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23143case $ac_cv_c_int8_t in #(
23144 no|yes) ;; #(
23145 *)
cristy3ed852e2009-09-05 21:47:34 +000023146
23147cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023148#define int8_t $ac_cv_c_int8_t
23149_ACEOF
23150;;
23151esac
23152
23153ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23154case $ac_cv_c_int16_t in #(
23155 no|yes) ;; #(
23156 *)
23157
23158cat >>confdefs.h <<_ACEOF
23159#define int16_t $ac_cv_c_int16_t
23160_ACEOF
23161;;
23162esac
23163
23164ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23165case $ac_cv_c_int32_t in #(
23166 no|yes) ;; #(
23167 *)
23168
23169cat >>confdefs.h <<_ACEOF
23170#define int32_t $ac_cv_c_int32_t
23171_ACEOF
23172;;
23173esac
23174
23175ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23176case $ac_cv_c_int64_t in #(
23177 no|yes) ;; #(
23178 *)
23179
23180cat >>confdefs.h <<_ACEOF
23181#define int64_t $ac_cv_c_int64_t
23182_ACEOF
23183;;
23184esac
23185
23186
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23188$as_echo_n "checking for long long int... " >&6; }
23189if ${ac_cv_type_long_long_int+:} false; then :
23190 $as_echo_n "(cached) " >&6
23191else
23192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23193/* end confdefs.h. */
23194
23195 /* For now, do not test the preprocessor; as of 2007 there are too many
23196 implementations with broken preprocessors. Perhaps this can
23197 be revisited in 2012. In the meantime, code should not expect
23198 #if to work with literals wider than 32 bits. */
23199 /* Test literals. */
23200 long long int ll = 9223372036854775807ll;
23201 long long int nll = -9223372036854775807LL;
23202 unsigned long long int ull = 18446744073709551615ULL;
23203 /* Test constant expressions. */
23204 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23205 ? 1 : -1)];
23206 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23207 ? 1 : -1)];
23208 int i = 63;
23209int
23210main ()
23211{
23212/* Test availability of runtime routines for shift and division. */
23213 long long int llmax = 9223372036854775807ll;
23214 unsigned long long int ullmax = 18446744073709551615ull;
23215 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23216 | (llmax / ll) | (llmax % ll)
23217 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23218 | (ullmax / ull) | (ullmax % ull));
23219 ;
23220 return 0;
23221}
23222
23223_ACEOF
23224if ac_fn_c_try_link "$LINENO"; then :
23225 if test "$cross_compiling" = yes; then :
23226 ac_cv_type_long_long_int=yes
23227else
23228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23229/* end confdefs.h. */
23230#include <limits.h>
23231 #ifndef LLONG_MAX
23232 # define HALF \
23233 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23234 # define LLONG_MAX (HALF - 1 + HALF)
23235 #endif
23236int
23237main ()
23238{
23239long long int n = 1;
23240 int i;
23241 for (i = 0; ; i++)
23242 {
23243 long long int m = n << i;
23244 if (m >> i != n)
23245 return 1;
23246 if (LLONG_MAX / 2 < m)
23247 break;
23248 }
23249 return 0;
23250 ;
23251 return 0;
23252}
23253_ACEOF
23254if ac_fn_c_try_run "$LINENO"; then :
23255 ac_cv_type_long_long_int=yes
23256else
23257 ac_cv_type_long_long_int=no
23258fi
23259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23260 conftest.$ac_objext conftest.beam conftest.$ac_ext
23261fi
23262
23263else
23264 ac_cv_type_long_long_int=no
23265fi
23266rm -f core conftest.err conftest.$ac_objext \
23267 conftest$ac_exeext conftest.$ac_ext
23268fi
23269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23270$as_echo "$ac_cv_type_long_long_int" >&6; }
23271 if test $ac_cv_type_long_long_int = yes; then
23272
23273$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23274
23275 fi
23276
23277
23278
23279 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23280if test "x$ac_cv_type_intmax_t" = xyes; then :
23281
23282$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23283
23284else
23285 test $ac_cv_type_long_long_int = yes \
23286 && ac_type='long long int' \
23287 || ac_type='long int'
23288
23289cat >>confdefs.h <<_ACEOF
23290#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023291_ACEOF
23292
23293fi
23294
23295
cristy501c8042011-05-26 17:46:28 +000023296
23297 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23298if test "x$ac_cv_type_intptr_t" = xyes; then :
23299
23300$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023301
cristy3ed852e2009-09-05 21:47:34 +000023302else
cristy501c8042011-05-26 17:46:28 +000023303 for ac_type in 'int' 'long int' 'long long int'; do
23304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23305/* end confdefs.h. */
23306$ac_includes_default
23307int
23308main ()
23309{
23310static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023311test_array [0] = 0;
23312return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023313
23314 ;
23315 return 0;
23316}
23317_ACEOF
23318if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023319
23320cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023321#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023322_ACEOF
23323
cristy501c8042011-05-26 17:46:28 +000023324 ac_type=
23325fi
23326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23327 test -z "$ac_type" && break
23328 done
cristy3ed852e2009-09-05 21:47:34 +000023329fi
23330
23331
cristy3ed852e2009-09-05 21:47:34 +000023332
cristy501c8042011-05-26 17:46:28 +000023333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23334$as_echo_n "checking for long double... " >&6; }
23335if ${ac_cv_type_long_double+:} false; then :
23336 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023337else
cristy501c8042011-05-26 17:46:28 +000023338 if test "$GCC" = yes; then
23339 ac_cv_type_long_double=yes
23340 else
23341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23342/* end confdefs.h. */
23343/* The Stardent Vistra knows sizeof (long double), but does
23344 not support it. */
23345 long double foo = 0.0L;
23346int
23347main ()
23348{
23349static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23350 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023351test_array [0] = 0;
23352return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023353
cristy501c8042011-05-26 17:46:28 +000023354 ;
23355 return 0;
23356}
cristy3ed852e2009-09-05 21:47:34 +000023357_ACEOF
cristy501c8042011-05-26 17:46:28 +000023358if ac_fn_c_try_compile "$LINENO"; then :
23359 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023360else
cristy501c8042011-05-26 17:46:28 +000023361 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023362fi
cristy501c8042011-05-26 17:46:28 +000023363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23364 fi
cristy3ed852e2009-09-05 21:47:34 +000023365fi
cristy501c8042011-05-26 17:46:28 +000023366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23367$as_echo "$ac_cv_type_long_double" >&6; }
23368 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023369
cristy501c8042011-05-26 17:46:28 +000023370$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023371
cristy501c8042011-05-26 17:46:28 +000023372 fi
23373
cristy3ed852e2009-09-05 21:47:34 +000023374
cristy8b350f62009-11-15 23:12:43 +000023375 { $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 +000023376$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023377if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023378 $as_echo_n "(cached) " >&6
23379else
cristy8b350f62009-11-15 23:12:43 +000023380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023381/* end confdefs.h. */
23382#include <float.h>
23383 long double const a[] =
23384 {
23385 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23386 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23387 };
23388 long double
23389 f (long double x)
23390 {
23391 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23392 + (x ? f (x) : 'c'));
23393 }
23394
23395int
23396main ()
23397{
23398static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23399 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23400 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23401 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23402 && (int) LDBL_EPSILON == 0
23403 )];
cristy14fefe52012-05-21 00:59:18 +000023404test_array [0] = 0;
23405return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023406
23407 ;
23408 return 0;
23409}
23410_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023411if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023412 ac_cv_type_long_double_wider=yes
23413else
cristy8b350f62009-11-15 23:12:43 +000023414 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023415fi
cristy3ed852e2009-09-05 21:47:34 +000023416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417fi
cristy8b350f62009-11-15 23:12:43 +000023418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023419$as_echo "$ac_cv_type_long_double_wider" >&6; }
23420 if test $ac_cv_type_long_double_wider = yes; then
23421
cristy8b350f62009-11-15 23:12:43 +000023422$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023423
23424 fi
23425
23426
cristy501c8042011-05-26 17:46:28 +000023427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23428$as_echo_n "checking for long long int... " >&6; }
23429if ${ac_cv_type_long_long_int+:} false; then :
23430 $as_echo_n "(cached) " >&6
23431else
23432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23433/* end confdefs.h. */
23434
23435 /* For now, do not test the preprocessor; as of 2007 there are too many
23436 implementations with broken preprocessors. Perhaps this can
23437 be revisited in 2012. In the meantime, code should not expect
23438 #if to work with literals wider than 32 bits. */
23439 /* Test literals. */
23440 long long int ll = 9223372036854775807ll;
23441 long long int nll = -9223372036854775807LL;
23442 unsigned long long int ull = 18446744073709551615ULL;
23443 /* Test constant expressions. */
23444 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23445 ? 1 : -1)];
23446 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23447 ? 1 : -1)];
23448 int i = 63;
23449int
23450main ()
23451{
23452/* Test availability of runtime routines for shift and division. */
23453 long long int llmax = 9223372036854775807ll;
23454 unsigned long long int ullmax = 18446744073709551615ull;
23455 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23456 | (llmax / ll) | (llmax % ll)
23457 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23458 | (ullmax / ull) | (ullmax % ull));
23459 ;
23460 return 0;
23461}
23462
23463_ACEOF
23464if ac_fn_c_try_link "$LINENO"; then :
23465 if test "$cross_compiling" = yes; then :
23466 ac_cv_type_long_long_int=yes
23467else
23468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23469/* end confdefs.h. */
23470#include <limits.h>
23471 #ifndef LLONG_MAX
23472 # define HALF \
23473 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23474 # define LLONG_MAX (HALF - 1 + HALF)
23475 #endif
23476int
23477main ()
23478{
23479long long int n = 1;
23480 int i;
23481 for (i = 0; ; i++)
23482 {
23483 long long int m = n << i;
23484 if (m >> i != n)
23485 return 1;
23486 if (LLONG_MAX / 2 < m)
23487 break;
23488 }
23489 return 0;
23490 ;
23491 return 0;
23492}
23493_ACEOF
23494if ac_fn_c_try_run "$LINENO"; then :
23495 ac_cv_type_long_long_int=yes
23496else
23497 ac_cv_type_long_long_int=no
23498fi
23499rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23500 conftest.$ac_objext conftest.beam conftest.$ac_ext
23501fi
23502
23503else
23504 ac_cv_type_long_long_int=no
23505fi
23506rm -f core conftest.err conftest.$ac_objext \
23507 conftest$ac_exeext conftest.$ac_ext
23508fi
23509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23510$as_echo "$ac_cv_type_long_long_int" >&6; }
23511 if test $ac_cv_type_long_long_int = yes; then
23512
23513$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23514
23515 fi
23516
23517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23518$as_echo_n "checking for mbstate_t... " >&6; }
23519if ${ac_cv_type_mbstate_t+:} false; then :
23520 $as_echo_n "(cached) " >&6
23521else
23522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23523/* end confdefs.h. */
23524$ac_includes_default
23525# include <wchar.h>
23526int
23527main ()
23528{
23529mbstate_t x; return sizeof x;
23530 ;
23531 return 0;
23532}
23533_ACEOF
23534if ac_fn_c_try_compile "$LINENO"; then :
23535 ac_cv_type_mbstate_t=yes
23536else
23537 ac_cv_type_mbstate_t=no
23538fi
23539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23540fi
23541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23542$as_echo "$ac_cv_type_mbstate_t" >&6; }
23543 if test $ac_cv_type_mbstate_t = yes; then
23544
23545$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23546
23547 else
23548
23549$as_echo "#define mbstate_t int" >>confdefs.h
23550
23551 fi
23552ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23553if test "x$ac_cv_type_mode_t" = xyes; then :
23554
23555else
23556
23557cat >>confdefs.h <<_ACEOF
23558#define mode_t int
23559_ACEOF
23560
23561fi
23562
23563ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23564if test "x$ac_cv_type_off_t" = xyes; then :
23565
23566else
23567
23568cat >>confdefs.h <<_ACEOF
23569#define off_t long int
23570_ACEOF
23571
23572fi
23573
23574ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23575if test "x$ac_cv_type_pid_t" = xyes; then :
23576
23577else
23578
23579cat >>confdefs.h <<_ACEOF
23580#define pid_t int
23581_ACEOF
23582
23583fi
23584
23585ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23586if test "x$ac_cv_type_size_t" = xyes; then :
23587
23588else
23589
23590cat >>confdefs.h <<_ACEOF
23591#define size_t unsigned int
23592_ACEOF
23593
23594fi
23595
23596ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23597if test "x$ac_cv_type_ssize_t" = xyes; then :
23598
23599else
23600
23601cat >>confdefs.h <<_ACEOF
23602#define ssize_t int
23603_ACEOF
23604
23605fi
23606
23607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23608$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23609if ${ac_cv_type_uid_t+:} false; then :
23610 $as_echo_n "(cached) " >&6
23611else
23612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23613/* end confdefs.h. */
23614#include <sys/types.h>
23615
23616_ACEOF
23617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23618 $EGREP "uid_t" >/dev/null 2>&1; then :
23619 ac_cv_type_uid_t=yes
23620else
23621 ac_cv_type_uid_t=no
23622fi
23623rm -f conftest*
23624
23625fi
23626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23627$as_echo "$ac_cv_type_uid_t" >&6; }
23628if test $ac_cv_type_uid_t = no; then
23629
23630$as_echo "#define uid_t int" >>confdefs.h
23631
23632
23633$as_echo "#define gid_t int" >>confdefs.h
23634
23635fi
23636
23637ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23638case $ac_cv_c_uint8_t in #(
23639 no|yes) ;; #(
23640 *)
23641
23642$as_echo "#define _UINT8_T 1" >>confdefs.h
23643
23644
23645cat >>confdefs.h <<_ACEOF
23646#define uint8_t $ac_cv_c_uint8_t
23647_ACEOF
23648;;
23649 esac
23650
23651ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23652case $ac_cv_c_uint16_t in #(
23653 no|yes) ;; #(
23654 *)
23655
23656
23657cat >>confdefs.h <<_ACEOF
23658#define uint16_t $ac_cv_c_uint16_t
23659_ACEOF
23660;;
23661 esac
23662
23663ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23664case $ac_cv_c_uint32_t in #(
23665 no|yes) ;; #(
23666 *)
23667
23668$as_echo "#define _UINT32_T 1" >>confdefs.h
23669
23670
23671cat >>confdefs.h <<_ACEOF
23672#define uint32_t $ac_cv_c_uint32_t
23673_ACEOF
23674;;
23675 esac
23676
23677ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23678case $ac_cv_c_uint64_t in #(
23679 no|yes) ;; #(
23680 *)
23681
23682$as_echo "#define _UINT64_T 1" >>confdefs.h
23683
23684
23685cat >>confdefs.h <<_ACEOF
23686#define uint64_t $ac_cv_c_uint64_t
23687_ACEOF
23688;;
23689 esac
23690
23691
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23693$as_echo_n "checking for unsigned long long int... " >&6; }
23694if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23695 $as_echo_n "(cached) " >&6
23696else
23697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23698/* end confdefs.h. */
23699
23700 /* For now, do not test the preprocessor; as of 2007 there are too many
23701 implementations with broken preprocessors. Perhaps this can
23702 be revisited in 2012. In the meantime, code should not expect
23703 #if to work with literals wider than 32 bits. */
23704 /* Test literals. */
23705 long long int ll = 9223372036854775807ll;
23706 long long int nll = -9223372036854775807LL;
23707 unsigned long long int ull = 18446744073709551615ULL;
23708 /* Test constant expressions. */
23709 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23710 ? 1 : -1)];
23711 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23712 ? 1 : -1)];
23713 int i = 63;
23714int
23715main ()
23716{
23717/* Test availability of runtime routines for shift and division. */
23718 long long int llmax = 9223372036854775807ll;
23719 unsigned long long int ullmax = 18446744073709551615ull;
23720 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23721 | (llmax / ll) | (llmax % ll)
23722 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23723 | (ullmax / ull) | (ullmax % ull));
23724 ;
23725 return 0;
23726}
23727
23728_ACEOF
23729if ac_fn_c_try_link "$LINENO"; then :
23730 ac_cv_type_unsigned_long_long_int=yes
23731else
23732 ac_cv_type_unsigned_long_long_int=no
23733fi
23734rm -f core conftest.err conftest.$ac_objext \
23735 conftest$ac_exeext conftest.$ac_ext
23736fi
23737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23738$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23739 if test $ac_cv_type_unsigned_long_long_int = yes; then
23740
23741$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23742
23743 fi
23744
23745
23746
23747 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23748if test "x$ac_cv_type_uintmax_t" = xyes; then :
23749
23750$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23751
23752else
23753 test $ac_cv_type_unsigned_long_long_int = yes \
23754 && ac_type='unsigned long long int' \
23755 || ac_type='unsigned long int'
23756
23757cat >>confdefs.h <<_ACEOF
23758#define uintmax_t $ac_type
23759_ACEOF
23760
23761fi
23762
23763
23764
23765 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23766if test "x$ac_cv_type_uintptr_t" = xyes; then :
23767
23768$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23769
23770else
23771 for ac_type in 'unsigned int' 'unsigned long int' \
23772 'unsigned long long int'; do
23773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23774/* end confdefs.h. */
23775$ac_includes_default
23776int
23777main ()
23778{
23779static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023780test_array [0] = 0;
23781return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023782
23783 ;
23784 return 0;
23785}
23786_ACEOF
23787if ac_fn_c_try_compile "$LINENO"; then :
23788
23789cat >>confdefs.h <<_ACEOF
23790#define uintptr_t $ac_type
23791_ACEOF
23792
23793 ac_type=
23794fi
23795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23796 test -z "$ac_type" && break
23797 done
23798fi
23799
23800
23801
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23803$as_echo_n "checking for unsigned long long int... " >&6; }
23804if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23805 $as_echo_n "(cached) " >&6
23806else
23807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23808/* end confdefs.h. */
23809
23810 /* For now, do not test the preprocessor; as of 2007 there are too many
23811 implementations with broken preprocessors. Perhaps this can
23812 be revisited in 2012. In the meantime, code should not expect
23813 #if to work with literals wider than 32 bits. */
23814 /* Test literals. */
23815 long long int ll = 9223372036854775807ll;
23816 long long int nll = -9223372036854775807LL;
23817 unsigned long long int ull = 18446744073709551615ULL;
23818 /* Test constant expressions. */
23819 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23820 ? 1 : -1)];
23821 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23822 ? 1 : -1)];
23823 int i = 63;
23824int
23825main ()
23826{
23827/* Test availability of runtime routines for shift and division. */
23828 long long int llmax = 9223372036854775807ll;
23829 unsigned long long int ullmax = 18446744073709551615ull;
23830 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23831 | (llmax / ll) | (llmax % ll)
23832 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23833 | (ullmax / ull) | (ullmax % ull));
23834 ;
23835 return 0;
23836}
23837
23838_ACEOF
23839if ac_fn_c_try_link "$LINENO"; then :
23840 ac_cv_type_unsigned_long_long_int=yes
23841else
23842 ac_cv_type_unsigned_long_long_int=no
23843fi
23844rm -f core conftest.err conftest.$ac_objext \
23845 conftest$ac_exeext conftest.$ac_ext
23846fi
23847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23848$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23849 if test $ac_cv_type_unsigned_long_long_int = yes; then
23850
23851$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23852
23853 fi
23854
23855
cristy3ed852e2009-09-05 21:47:34 +000023856# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23857# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023859$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023860if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023861 $as_echo_n "(cached) " >&6
23862else
cristy8b350f62009-11-15 23:12:43 +000023863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023864/* end confdefs.h. */
23865$ac_includes_default
23866int
23867main ()
23868{
23869static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000023870test_array [0] = 0;
23871return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023872
23873 ;
23874 return 0;
23875}
23876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023877if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023878 ac_cv_c_char_unsigned=no
23879else
cristy8b350f62009-11-15 23:12:43 +000023880 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023881fi
cristy3ed852e2009-09-05 21:47:34 +000023882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883fi
cristy8b350f62009-11-15 23:12:43 +000023884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023885$as_echo "$ac_cv_c_char_unsigned" >&6; }
23886if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023887 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023888
23889fi
23890
23891
23892# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23893# The cast to long int works around a bug in the HP C Compiler
23894# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23895# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23896# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023898$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023899if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023900 $as_echo_n "(cached) " >&6
23901else
cristy8b350f62009-11-15 23:12:43 +000023902 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 +000023903
cristy3ed852e2009-09-05 21:47:34 +000023904else
cristy8b350f62009-11-15 23:12:43 +000023905 if test "$ac_cv_type_signed_short" = yes; then
23906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023908as_fn_error 77 "cannot compute sizeof (signed short)
23909See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023910 else
23911 ac_cv_sizeof_signed_short=0
23912 fi
23913fi
cristy8b350f62009-11-15 23:12:43 +000023914
cristy3ed852e2009-09-05 21:47:34 +000023915fi
cristy8b350f62009-11-15 23:12:43 +000023916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023917$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23918
23919
23920
23921cat >>confdefs.h <<_ACEOF
23922#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23923_ACEOF
23924
23925
23926
23927# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23928# The cast to long int works around a bug in the HP C Compiler
23929# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23930# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23931# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023933$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023934if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023935 $as_echo_n "(cached) " >&6
23936else
cristy8b350f62009-11-15 23:12:43 +000023937 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 +000023938
cristy3ed852e2009-09-05 21:47:34 +000023939else
cristy8b350f62009-11-15 23:12:43 +000023940 if test "$ac_cv_type_unsigned_short" = yes; then
23941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023943as_fn_error 77 "cannot compute sizeof (unsigned short)
23944See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023945 else
23946 ac_cv_sizeof_unsigned_short=0
23947 fi
23948fi
cristy8b350f62009-11-15 23:12:43 +000023949
cristy3ed852e2009-09-05 21:47:34 +000023950fi
cristy8b350f62009-11-15 23:12:43 +000023951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023952$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23953
23954
23955
23956cat >>confdefs.h <<_ACEOF
23957#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23958_ACEOF
23959
23960
23961
23962# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23963# The cast to long int works around a bug in the HP C Compiler
23964# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23965# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23966# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023968$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023969if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023970 $as_echo_n "(cached) " >&6
23971else
cristy8b350f62009-11-15 23:12:43 +000023972 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 +000023973
cristy3ed852e2009-09-05 21:47:34 +000023974else
cristy8b350f62009-11-15 23:12:43 +000023975 if test "$ac_cv_type_signed_int" = yes; then
23976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023978as_fn_error 77 "cannot compute sizeof (signed int)
23979See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023980 else
23981 ac_cv_sizeof_signed_int=0
23982 fi
23983fi
cristy8b350f62009-11-15 23:12:43 +000023984
cristy3ed852e2009-09-05 21:47:34 +000023985fi
cristy8b350f62009-11-15 23:12:43 +000023986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023987$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23988
23989
23990
23991cat >>confdefs.h <<_ACEOF
23992#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23993_ACEOF
23994
23995
23996
23997# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23998# The cast to long int works around a bug in the HP C Compiler
23999# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24000# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24001# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024003$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024004if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024005 $as_echo_n "(cached) " >&6
24006else
cristy8b350f62009-11-15 23:12:43 +000024007 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 +000024008
cristy3ed852e2009-09-05 21:47:34 +000024009else
cristy8b350f62009-11-15 23:12:43 +000024010 if test "$ac_cv_type_unsigned_int" = yes; then
24011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024013as_fn_error 77 "cannot compute sizeof (unsigned int)
24014See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024015 else
24016 ac_cv_sizeof_unsigned_int=0
24017 fi
24018fi
cristy8b350f62009-11-15 23:12:43 +000024019
cristy3ed852e2009-09-05 21:47:34 +000024020fi
cristy8b350f62009-11-15 23:12:43 +000024021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024022$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24023
24024
24025
24026cat >>confdefs.h <<_ACEOF
24027#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24028_ACEOF
24029
24030
24031
24032# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24033# The cast to long int works around a bug in the HP C Compiler
24034# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24035# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24036# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024038$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024039if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024040 $as_echo_n "(cached) " >&6
24041else
cristy8b350f62009-11-15 23:12:43 +000024042 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 +000024043
cristy3ed852e2009-09-05 21:47:34 +000024044else
cristy8b350f62009-11-15 23:12:43 +000024045 if test "$ac_cv_type_signed_long" = yes; then
24046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024048as_fn_error 77 "cannot compute sizeof (signed long)
24049See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024050 else
24051 ac_cv_sizeof_signed_long=0
24052 fi
24053fi
cristy8b350f62009-11-15 23:12:43 +000024054
cristy3ed852e2009-09-05 21:47:34 +000024055fi
cristy8b350f62009-11-15 23:12:43 +000024056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024057$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24058
24059
24060
24061cat >>confdefs.h <<_ACEOF
24062#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24063_ACEOF
24064
24065
24066
24067# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24068# The cast to long int works around a bug in the HP C Compiler
24069# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24070# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24071# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024073$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024074if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024075 $as_echo_n "(cached) " >&6
24076else
cristy8b350f62009-11-15 23:12:43 +000024077 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 +000024078
cristy3ed852e2009-09-05 21:47:34 +000024079else
cristy8b350f62009-11-15 23:12:43 +000024080 if test "$ac_cv_type_unsigned_long" = yes; then
24081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024083as_fn_error 77 "cannot compute sizeof (unsigned long)
24084See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024085 else
24086 ac_cv_sizeof_unsigned_long=0
24087 fi
24088fi
cristy8b350f62009-11-15 23:12:43 +000024089
cristy3ed852e2009-09-05 21:47:34 +000024090fi
cristy8b350f62009-11-15 23:12:43 +000024091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024092$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24093
24094
24095
24096cat >>confdefs.h <<_ACEOF
24097#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24098_ACEOF
24099
24100
24101
24102# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24103# 'signed long long' is not supported then the value defined is zero.
24104# The cast to long int works around a bug in the HP C Compiler
24105# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24106# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24107# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024109$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024110if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024111 $as_echo_n "(cached) " >&6
24112else
cristy8b350f62009-11-15 23:12:43 +000024113 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 +000024114
cristy3ed852e2009-09-05 21:47:34 +000024115else
cristy8b350f62009-11-15 23:12:43 +000024116 if test "$ac_cv_type_signed_long_long" = yes; then
24117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024119as_fn_error 77 "cannot compute sizeof (signed long long)
24120See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024121 else
24122 ac_cv_sizeof_signed_long_long=0
24123 fi
24124fi
cristy8b350f62009-11-15 23:12:43 +000024125
cristy3ed852e2009-09-05 21:47:34 +000024126fi
cristy8b350f62009-11-15 23:12:43 +000024127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024128$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24129
24130
24131
24132cat >>confdefs.h <<_ACEOF
24133#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24134_ACEOF
24135
24136
24137
24138# Obtain size of a 'unsigned long long' and define as
24139# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24140# supported then the value defined is zero.
24141# The cast to long int works around a bug in the HP C Compiler
24142# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24143# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24144# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024146$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024147if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024148 $as_echo_n "(cached) " >&6
24149else
cristy8b350f62009-11-15 23:12:43 +000024150 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 +000024151
cristy3ed852e2009-09-05 21:47:34 +000024152else
cristy8b350f62009-11-15 23:12:43 +000024153 if test "$ac_cv_type_unsigned_long_long" = yes; then
24154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024156as_fn_error 77 "cannot compute sizeof (unsigned long long)
24157See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024158 else
24159 ac_cv_sizeof_unsigned_long_long=0
24160 fi
24161fi
cristy8b350f62009-11-15 23:12:43 +000024162
cristy3ed852e2009-09-05 21:47:34 +000024163fi
cristy8b350f62009-11-15 23:12:43 +000024164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024165$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24166
24167
24168
24169cat >>confdefs.h <<_ACEOF
24170#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24171_ACEOF
24172
24173
24174
24175# Obtain size of off_t and define as SIZEOF_OFF_T
24176# The cast to long int works around a bug in the HP C Compiler
24177# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24178# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24179# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024181$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024182if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024183 $as_echo_n "(cached) " >&6
24184else
cristy8b350f62009-11-15 23:12:43 +000024185 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 +000024186
cristy3ed852e2009-09-05 21:47:34 +000024187else
cristy8b350f62009-11-15 23:12:43 +000024188 if test "$ac_cv_type_off_t" = yes; then
24189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024191as_fn_error 77 "cannot compute sizeof (off_t)
24192See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024193 else
24194 ac_cv_sizeof_off_t=0
24195 fi
24196fi
cristy8b350f62009-11-15 23:12:43 +000024197
cristy3ed852e2009-09-05 21:47:34 +000024198fi
cristy8b350f62009-11-15 23:12:43 +000024199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024200$as_echo "$ac_cv_sizeof_off_t" >&6; }
24201
24202
24203
24204cat >>confdefs.h <<_ACEOF
24205#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24206_ACEOF
24207
24208
24209
24210# Obtain size of size_t and define as SIZEOF_SIZE_T
24211# The cast to long int works around a bug in the HP C Compiler
24212# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24213# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24214# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024216$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024217if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024218 $as_echo_n "(cached) " >&6
24219else
cristy8b350f62009-11-15 23:12:43 +000024220 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 +000024221
cristy3ed852e2009-09-05 21:47:34 +000024222else
cristy8b350f62009-11-15 23:12:43 +000024223 if test "$ac_cv_type_size_t" = yes; then
24224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024226as_fn_error 77 "cannot compute sizeof (size_t)
24227See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024228 else
24229 ac_cv_sizeof_size_t=0
24230 fi
24231fi
cristy8b350f62009-11-15 23:12:43 +000024232
cristy3ed852e2009-09-05 21:47:34 +000024233fi
cristy8b350f62009-11-15 23:12:43 +000024234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024235$as_echo "$ac_cv_sizeof_size_t" >&6; }
24236
24237
24238
24239cat >>confdefs.h <<_ACEOF
24240#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24241_ACEOF
24242
24243
24244
cristy330e9352010-06-01 18:42:49 +000024245# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24246# The cast to long int works around a bug in the HP C Compiler
24247# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24248# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24249# This bug is HP SR number 8606223364.
24250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24251$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024252if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024253 $as_echo_n "(cached) " >&6
24254else
24255 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24256
24257else
24258 if test "$ac_cv_type_ssize_t" = yes; then
24259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024261as_fn_error 77 "cannot compute sizeof (ssize_t)
24262See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024263 else
24264 ac_cv_sizeof_ssize_t=0
24265 fi
24266fi
24267
24268fi
24269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24270$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24271
24272
24273
24274cat >>confdefs.h <<_ACEOF
24275#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24276_ACEOF
24277
24278
24279
cristy3ed852e2009-09-05 21:47:34 +000024280# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24281# The cast to long int works around a bug in the HP C Compiler
24282# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24283# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24284# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024286$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024287if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024288 $as_echo_n "(cached) " >&6
24289else
cristy8b350f62009-11-15 23:12:43 +000024290 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 +000024291
cristy3ed852e2009-09-05 21:47:34 +000024292else
cristy8b350f62009-11-15 23:12:43 +000024293 if test "$ac_cv_type_unsigned_intp" = yes; then
24294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024296as_fn_error 77 "cannot compute sizeof (unsigned int*)
24297See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024298 else
24299 ac_cv_sizeof_unsigned_intp=0
24300 fi
24301fi
cristy8b350f62009-11-15 23:12:43 +000024302
cristy3ed852e2009-09-05 21:47:34 +000024303fi
cristy8b350f62009-11-15 23:12:43 +000024304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024305$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24306
24307
24308
24309cat >>confdefs.h <<_ACEOF
24310#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24311_ACEOF
24312
24313
24314
24315#
24316# Compute sized types for current CPU and compiler options.
24317#
24318
cristy8b350f62009-11-15 23:12:43 +000024319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024320$as_echo_n "checking for signed 8-bit type... " >&6; }
24321INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024322{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24323$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024324
24325
cristy8b350f62009-11-15 23:12:43 +000024326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024327$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24328UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024329{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24330$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024331
24332
cristy8b350f62009-11-15 23:12:43 +000024333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024334$as_echo_n "checking for signed 16-bit type... " >&6; }
24335INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024336{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24337$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024338
24339
cristy8b350f62009-11-15 23:12:43 +000024340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024341$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24342UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024343{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24344$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024345
24346
cristy8b350f62009-11-15 23:12:43 +000024347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024348$as_echo_n "checking for signed 32-bit type... " >&6; }
24349INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024350INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024351if test $ac_cv_sizeof_signed_int -eq 4; then
24352 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024353 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024354elif test $ac_cv_sizeof_signed_long -eq 4; then
24355 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024356 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024357fi
cristy09b53e12011-10-14 12:47:22 +000024358{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24359$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024360
24361
cristy6d5e20f2011-04-25 13:48:54 +000024362
cristy8b350f62009-11-15 23:12:43 +000024363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024364$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24365UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024366UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024367if test $ac_cv_sizeof_unsigned_int -eq 4; then
24368 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024369 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024370elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24371 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024372 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024373fi
cristy09b53e12011-10-14 12:47:22 +000024374{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24375$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024376
24377
cristy6d5e20f2011-04-25 13:48:54 +000024378
cristy8b350f62009-11-15 23:12:43 +000024379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024380$as_echo_n "checking for signed 64-bit type... " >&6; }
24381INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024382INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024383if test $ac_cv_sizeof_signed_long -eq 8; then
24384 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024385 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024386elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24387 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024388 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024389fi
cristy3a99dcf2011-12-17 01:29:40 +000024390case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024391 mingw* )
24392 INT64_F='"I64"'
24393 ;;
24394esac
cristy09b53e12011-10-14 12:47:22 +000024395{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24396$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024397
24398
cristy6d5e20f2011-04-25 13:48:54 +000024399
cristy8b350f62009-11-15 23:12:43 +000024400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024401$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24402UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024403UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024404if test $ac_cv_sizeof_unsigned_long -eq 8; then
24405 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024406 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024407elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24408 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024409 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024410fi
cristy3a99dcf2011-12-17 01:29:40 +000024411case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024412 mingw* )
24413 UINT64_F='"I64"'
24414 ;;
24415esac
cristy09b53e12011-10-14 12:47:22 +000024416{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24417$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024418
24419
cristy6d5e20f2011-04-25 13:48:54 +000024420
cristy8b350f62009-11-15 23:12:43 +000024421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024422$as_echo_n "checking for unsigned maximum type... " >&6; }
24423UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024424UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024425if test "$UINT64_T" != 'none'; then
24426 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024427 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024428elif test "$UINT32_T" != 'none'; then
24429 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024430 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024431fi
cristy09b53e12011-10-14 12:47:22 +000024432{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24433$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024434
24435
cristy6d5e20f2011-04-25 13:48:54 +000024436
cristy8b350f62009-11-15 23:12:43 +000024437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024438$as_echo_n "checking for pointer difference type... " >&6; }
24439UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024440UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024441if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24442 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024443 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024444elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24445 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024446 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024447fi
cristy09b53e12011-10-14 12:47:22 +000024448{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24449$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024450
24451
cristy6d5e20f2011-04-25 13:48:54 +000024452
cristy8b350f62009-11-15 23:12:43 +000024453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024454$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024456/* end confdefs.h. */
24457
24458int
24459main ()
24460{
24461{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24462 ;
24463 return 0;
24464}
24465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024466if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024467 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24468$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024469else
cristy09b53e12011-10-14 12:47:22 +000024470 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24471$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024473$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024475/* end confdefs.h. */
24476
24477int
24478main ()
24479{
24480{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24481 ;
24482 return 0;
24483}
24484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024485if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024486 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24487$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024488
cristy8b350f62009-11-15 23:12:43 +000024489$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024490
24491else
cristy09b53e12011-10-14 12:47:22 +000024492 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24493$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024494
cristy8b350f62009-11-15 23:12:43 +000024495$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024496
24497fi
cristy3ed852e2009-09-05 21:47:34 +000024498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24499fi
cristy3ed852e2009-09-05 21:47:34 +000024500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24501
24502########
24503#
24504# Check for functions
24505#
24506########
cristy73bd4a52010-10-05 11:24:23 +000024507for ac_header in stdlib.h unistd.h
24508do :
24509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24510ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024511if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024512 cat >>confdefs.h <<_ACEOF
24513#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24514_ACEOF
24515
24516fi
24517
24518done
24519
24520for ac_func in getpagesize
24521do :
24522 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024523if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024524 cat >>confdefs.h <<_ACEOF
24525#define HAVE_GETPAGESIZE 1
24526_ACEOF
24527
24528fi
24529done
24530
24531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24532$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024533if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024534 $as_echo_n "(cached) " >&6
24535else
24536 if test "$cross_compiling" = yes; then :
24537 magick_cv_func_mmap_fileio=no
24538else
24539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24540/* end confdefs.h. */
24541$ac_includes_default
24542/* malloc might have been renamed as rpl_malloc. */
24543#undef malloc
24544
24545/*
24546 This test is derived from GNU Autoconf's similar macro.
24547 The purpose of this test is to verify that files may be memory
24548 mapped, and that memory mapping and file I/O are coherent.
24549
24550 The test creates a test file, memory maps the file, updates
24551 the file using the memory map, and then reads the file using
24552 file I/O to verify that the file contains the updates.
24553*/
24554
24555#include <fcntl.h>
24556#include <sys/mman.h>
24557
24558#if !STDC_HEADERS && !HAVE_STDLIB_H
24559char *malloc ();
24560#endif
24561
24562/* This mess was copied from the GNU getpagesize.h. */
24563#if !HAVE_GETPAGESIZE
24564/* Assume that all systems that can run configure have sys/param.h. */
24565# if !HAVE_SYS_PARAM_H
24566# define HAVE_SYS_PARAM_H 1
24567# endif
24568
24569# ifdef _SC_PAGESIZE
24570# define getpagesize() sysconf(_SC_PAGESIZE)
24571# else /* no _SC_PAGESIZE */
24572# if HAVE_SYS_PARAM_H
24573# include <sys/param.h>
24574# ifdef EXEC_PAGESIZE
24575# define getpagesize() EXEC_PAGESIZE
24576# else /* no EXEC_PAGESIZE */
24577# ifdef NBPG
24578# define getpagesize() NBPG * CLSIZE
24579# ifndef CLSIZE
24580# define CLSIZE 1
24581# endif /* no CLSIZE */
24582# else /* no NBPG */
24583# ifdef NBPC
24584# define getpagesize() NBPC
24585# else /* no NBPC */
24586# ifdef PAGESIZE
24587# define getpagesize() PAGESIZE
24588# endif /* PAGESIZE */
24589# endif /* no NBPC */
24590# endif /* no NBPG */
24591# endif /* no EXEC_PAGESIZE */
24592# else /* no HAVE_SYS_PARAM_H */
24593# define getpagesize() 8192 /* punt totally */
24594# endif /* no HAVE_SYS_PARAM_H */
24595# endif /* no _SC_PAGESIZE */
24596
24597#endif /* no HAVE_GETPAGESIZE */
24598
24599int
24600main ()
24601{
24602 char *data, *data2, *data3;
24603 int i, pagesize;
24604 int fd;
24605
24606 pagesize = getpagesize ();
24607
24608 /* First, make a file with some known garbage in it. */
24609 data = (char *) malloc (pagesize);
24610 if (!data)
24611 exit (1);
24612 for (i = 0; i < pagesize; ++i)
24613 *(data + i) = rand ();
24614 umask (0);
24615 fd = creat ("conftest.mmap", 0600);
24616 if (fd < 0)
24617 exit (1);
24618 if (write (fd, data, pagesize) != pagesize)
24619 exit (1);
24620 close (fd);
24621
24622 /* Mmap the file as read/write/shared and verify that we see the
24623 same garbage. */
24624 fd = open ("conftest.mmap", O_RDWR);
24625 if (fd < 0)
24626 exit (1);
24627 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24628 if (data2 == 0)
24629 exit (1);
24630 for (i = 0; i < pagesize; ++i)
24631 if (*(data + i) != *(data2 + i))
24632 exit (1);
24633
24634 /* Finally, make sure that changes to the mapped area
24635 percolate back to the file as seen by read(). */
24636 for (i = 0; i < pagesize; ++i)
24637 *(data2 + i) = *(data2 + i) + 1;
24638 data3 = (char *) malloc (pagesize);
24639 if (!data3)
24640 exit (1);
24641 if (read (fd, data3, pagesize) != pagesize)
24642 exit (1);
24643 for (i = 0; i < pagesize; ++i)
24644 if (*(data2 + i) != *(data3 + i))
24645 exit (1);
24646 close (fd);
24647 exit (0);
24648}
24649_ACEOF
24650if ac_fn_c_try_run "$LINENO"; then :
24651 magick_cv_func_mmap_fileio=yes
24652else
24653 magick_cv_func_mmap_fileio=no
24654fi
24655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24656 conftest.$ac_objext conftest.beam conftest.$ac_ext
24657fi
24658
24659fi
24660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24661$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24662if test $magick_cv_func_mmap_fileio = yes; then
24663
24664$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24665
24666fi
24667rm -f conftest.mmap
24668
cristy8b350f62009-11-15 23:12:43 +000024669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024670$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024671if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024672 $as_echo_n "(cached) " >&6
24673else
cristy8b350f62009-11-15 23:12:43 +000024674 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024675 ac_cv_func_closedir_void=yes
24676else
cristy8b350f62009-11-15 23:12:43 +000024677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024678/* end confdefs.h. */
24679$ac_includes_default
24680#include <$ac_header_dirent>
24681#ifndef __cplusplus
24682int closedir ();
24683#endif
24684
24685int
24686main ()
24687{
24688return closedir (opendir (".")) != 0;
24689 ;
24690 return 0;
24691}
24692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024693if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024694 ac_cv_func_closedir_void=no
24695else
cristy8b350f62009-11-15 23:12:43 +000024696 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024697fi
cristy8b350f62009-11-15 23:12:43 +000024698rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24699 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024700fi
24701
cristy3ed852e2009-09-05 21:47:34 +000024702fi
cristy8b350f62009-11-15 23:12:43 +000024703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024704$as_echo "$ac_cv_func_closedir_void" >&6; }
24705if test $ac_cv_func_closedir_void = yes; then
24706
cristy8b350f62009-11-15 23:12:43 +000024707$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024708
24709fi
24710
cristycd4c5312009-11-22 01:19:08 +000024711
24712
24713
24714 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024715do :
24716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024717ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24718"
cristy98dddb52010-11-04 00:30:15 +000024719if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024720 cat >>confdefs.h <<_ACEOF
24721#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24722_ACEOF
24723
24724fi
24725
24726done
24727
cristycd4c5312009-11-22 01:19:08 +000024728
24729
24730
24731
24732
24733
24734
cristy3ed852e2009-09-05 21:47:34 +000024735for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024736do :
24737 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024738if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024739 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024740#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024741_ACEOF
24742
24743fi
24744done
24745
cristy8b350f62009-11-15 23:12:43 +000024746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024747$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024748if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024749 $as_echo_n "(cached) " >&6
24750else
cristy8b350f62009-11-15 23:12:43 +000024751 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024752 ac_cv_func_mmap_fixed_mapped=no
24753else
cristy8b350f62009-11-15 23:12:43 +000024754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024755/* end confdefs.h. */
24756$ac_includes_default
24757/* malloc might have been renamed as rpl_malloc. */
24758#undef malloc
24759
24760/* Thanks to Mike Haertel and Jim Avera for this test.
24761 Here is a matrix of mmap possibilities:
24762 mmap private not fixed
24763 mmap private fixed at somewhere currently unmapped
24764 mmap private fixed at somewhere already mapped
24765 mmap shared not fixed
24766 mmap shared fixed at somewhere currently unmapped
24767 mmap shared fixed at somewhere already mapped
24768 For private mappings, we should verify that changes cannot be read()
24769 back from the file, nor mmap's back from the file at a different
24770 address. (There have been systems where private was not correctly
24771 implemented like the infamous i386 svr4.0, and systems where the
24772 VM page cache was not coherent with the file system buffer cache
24773 like early versions of FreeBSD and possibly contemporary NetBSD.)
24774 For shared mappings, we should conversely verify that changes get
24775 propagated back to all the places they're supposed to be.
24776
24777 Grep wants private fixed already mapped.
24778 The main things grep needs to know about mmap are:
24779 * does it exist and is it safe to write into the mmap'd area
24780 * how to use it (BSD variants) */
24781
24782#include <fcntl.h>
24783#include <sys/mman.h>
24784
24785#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24786char *malloc ();
24787#endif
24788
24789/* This mess was copied from the GNU getpagesize.h. */
24790#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024791# ifdef _SC_PAGESIZE
24792# define getpagesize() sysconf(_SC_PAGESIZE)
24793# else /* no _SC_PAGESIZE */
24794# ifdef HAVE_SYS_PARAM_H
24795# include <sys/param.h>
24796# ifdef EXEC_PAGESIZE
24797# define getpagesize() EXEC_PAGESIZE
24798# else /* no EXEC_PAGESIZE */
24799# ifdef NBPG
24800# define getpagesize() NBPG * CLSIZE
24801# ifndef CLSIZE
24802# define CLSIZE 1
24803# endif /* no CLSIZE */
24804# else /* no NBPG */
24805# ifdef NBPC
24806# define getpagesize() NBPC
24807# else /* no NBPC */
24808# ifdef PAGESIZE
24809# define getpagesize() PAGESIZE
24810# endif /* PAGESIZE */
24811# endif /* no NBPC */
24812# endif /* no NBPG */
24813# endif /* no EXEC_PAGESIZE */
24814# else /* no HAVE_SYS_PARAM_H */
24815# define getpagesize() 8192 /* punt totally */
24816# endif /* no HAVE_SYS_PARAM_H */
24817# endif /* no _SC_PAGESIZE */
24818
24819#endif /* no HAVE_GETPAGESIZE */
24820
24821int
24822main ()
24823{
24824 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024825 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024826 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024827 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024828
24829 pagesize = getpagesize ();
24830
24831 /* First, make a file with some known garbage in it. */
24832 data = (char *) malloc (pagesize);
24833 if (!data)
24834 return 1;
24835 for (i = 0; i < pagesize; ++i)
24836 *(data + i) = rand ();
24837 umask (0);
24838 fd = creat ("conftest.mmap", 0600);
24839 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024840 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024841 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024842 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024843 close (fd);
24844
cristycd4c5312009-11-22 01:19:08 +000024845 /* Next, check that the tail of a page is zero-filled. File must have
24846 non-zero length, otherwise we risk SIGBUS for entire page. */
24847 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24848 if (fd2 < 0)
24849 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024850 cdata2 = "";
24851 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024852 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024853 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024854 if (data2 == MAP_FAILED)
24855 return 6;
24856 for (i = 0; i < pagesize; ++i)
24857 if (*(data2 + i))
24858 return 7;
24859 close (fd2);
24860 if (munmap (data2, pagesize))
24861 return 8;
24862
cristy3ed852e2009-09-05 21:47:34 +000024863 /* Next, try to mmap the file at a fixed address which already has
24864 something else allocated at it. If we can, also make sure that
24865 we see the same garbage. */
24866 fd = open ("conftest.mmap", O_RDWR);
24867 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024868 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024869 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24870 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024871 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024872 for (i = 0; i < pagesize; ++i)
24873 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024874 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024875
24876 /* Finally, make sure that changes to the mapped area do not
24877 percolate back to the file as seen by read(). (This is a bug on
24878 some variants of i386 svr4.0.) */
24879 for (i = 0; i < pagesize; ++i)
24880 *(data2 + i) = *(data2 + i) + 1;
24881 data3 = (char *) malloc (pagesize);
24882 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024883 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024884 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024885 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024886 for (i = 0; i < pagesize; ++i)
24887 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024888 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024889 close (fd);
24890 return 0;
24891}
24892_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024893if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024894 ac_cv_func_mmap_fixed_mapped=yes
24895else
cristy8b350f62009-11-15 23:12:43 +000024896 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024897fi
cristy8b350f62009-11-15 23:12:43 +000024898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24899 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024900fi
24901
cristy3ed852e2009-09-05 21:47:34 +000024902fi
cristy8b350f62009-11-15 23:12:43 +000024903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024904$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24905if test $ac_cv_func_mmap_fixed_mapped = yes; then
24906
cristy8b350f62009-11-15 23:12:43 +000024907$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024908
24909fi
cristycd4c5312009-11-22 01:19:08 +000024910rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024911
cristy3ed852e2009-09-05 21:47:34 +000024912for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024913do :
24914 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024915if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024916 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024917#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024918_ACEOF
24919
24920fi
24921
24922done
24923
cristy3ed852e2009-09-05 21:47:34 +000024924for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024925do :
24926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24927ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024928if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024929 cat >>confdefs.h <<_ACEOF
24930#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24931_ACEOF
24932
24933fi
24934done
24935
24936if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024938$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024939if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024940 $as_echo_n "(cached) " >&6
24941else
cristy8b350f62009-11-15 23:12:43 +000024942 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024943 ac_cv_func_fork_works=cross
24944else
cristy8b350f62009-11-15 23:12:43 +000024945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024946/* end confdefs.h. */
24947$ac_includes_default
24948int
24949main ()
24950{
24951
24952 /* By Ruediger Kuhlmann. */
24953 return fork () < 0;
24954
24955 ;
24956 return 0;
24957}
24958_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024959if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024960 ac_cv_func_fork_works=yes
24961else
cristy8b350f62009-11-15 23:12:43 +000024962 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024963fi
cristy8b350f62009-11-15 23:12:43 +000024964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24965 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024966fi
24967
cristy3ed852e2009-09-05 21:47:34 +000024968fi
cristy8b350f62009-11-15 23:12:43 +000024969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024970$as_echo "$ac_cv_func_fork_works" >&6; }
24971
24972else
24973 ac_cv_func_fork_works=$ac_cv_func_fork
24974fi
24975if test "x$ac_cv_func_fork_works" = xcross; then
24976 case $host in
24977 *-*-amigaos* | *-*-msdosdjgpp*)
24978 # Override, as these systems have only a dummy fork() stub
24979 ac_cv_func_fork_works=no
24980 ;;
24981 *)
24982 ac_cv_func_fork_works=yes
24983 ;;
24984 esac
cristy8b350f62009-11-15 23:12:43 +000024985 { $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 +000024986$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24987fi
24988ac_cv_func_vfork_works=$ac_cv_func_vfork
24989if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024991$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024992if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024993 $as_echo_n "(cached) " >&6
24994else
cristy8b350f62009-11-15 23:12:43 +000024995 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024996 ac_cv_func_vfork_works=cross
24997else
cristy8b350f62009-11-15 23:12:43 +000024998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024999/* end confdefs.h. */
25000/* Thanks to Paul Eggert for this test. */
25001$ac_includes_default
25002#include <sys/wait.h>
25003#ifdef HAVE_VFORK_H
25004# include <vfork.h>
25005#endif
25006/* On some sparc systems, changes by the child to local and incoming
25007 argument registers are propagated back to the parent. The compiler
25008 is told about this with #include <vfork.h>, but some compilers
25009 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25010 static variable whose address is put into a register that is
25011 clobbered by the vfork. */
25012static void
25013#ifdef __cplusplus
25014sparc_address_test (int arg)
25015# else
25016sparc_address_test (arg) int arg;
25017#endif
25018{
25019 static pid_t child;
25020 if (!child) {
25021 child = vfork ();
25022 if (child < 0) {
25023 perror ("vfork");
25024 _exit(2);
25025 }
25026 if (!child) {
25027 arg = getpid();
25028 write(-1, "", 0);
25029 _exit (arg);
25030 }
25031 }
25032}
25033
25034int
25035main ()
25036{
25037 pid_t parent = getpid ();
25038 pid_t child;
25039
25040 sparc_address_test (0);
25041
25042 child = vfork ();
25043
25044 if (child == 0) {
25045 /* Here is another test for sparc vfork register problems. This
25046 test uses lots of local variables, at least as many local
25047 variables as main has allocated so far including compiler
25048 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25049 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25050 reuse the register of parent for one of the local variables,
25051 since it will think that parent can't possibly be used any more
25052 in this routine. Assigning to the local variable will thus
25053 munge parent in the parent process. */
25054 pid_t
25055 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25056 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25057 /* Convince the compiler that p..p7 are live; otherwise, it might
25058 use the same hardware register for all 8 local variables. */
25059 if (p != p1 || p != p2 || p != p3 || p != p4
25060 || p != p5 || p != p6 || p != p7)
25061 _exit(1);
25062
25063 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25064 from child file descriptors. If the child closes a descriptor
25065 before it execs or exits, this munges the parent's descriptor
25066 as well. Test for this by closing stdout in the child. */
25067 _exit(close(fileno(stdout)) != 0);
25068 } else {
25069 int status;
25070 struct stat st;
25071
25072 while (wait(&status) != child)
25073 ;
25074 return (
25075 /* Was there some problem with vforking? */
25076 child < 0
25077
25078 /* Did the child fail? (This shouldn't happen.) */
25079 || status
25080
25081 /* Did the vfork/compiler bug occur? */
25082 || parent != getpid()
25083
25084 /* Did the file descriptor bug occur? */
25085 || fstat(fileno(stdout), &st) != 0
25086 );
25087 }
25088}
25089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025090if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025091 ac_cv_func_vfork_works=yes
25092else
cristy8b350f62009-11-15 23:12:43 +000025093 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025094fi
cristy8b350f62009-11-15 23:12:43 +000025095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25096 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025097fi
25098
cristy3ed852e2009-09-05 21:47:34 +000025099fi
cristy8b350f62009-11-15 23:12:43 +000025100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025101$as_echo "$ac_cv_func_vfork_works" >&6; }
25102
25103fi;
25104if test "x$ac_cv_func_fork_works" = xcross; then
25105 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025106 { $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 +000025107$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25108fi
25109
25110if test "x$ac_cv_func_vfork_works" = xyes; then
25111
cristy8b350f62009-11-15 23:12:43 +000025112$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025113
25114else
25115
cristy8b350f62009-11-15 23:12:43 +000025116$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025117
25118fi
25119if test "x$ac_cv_func_fork_works" = xyes; then
25120
cristy8b350f62009-11-15 23:12:43 +000025121$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025122
25123fi
25124
cristy8b350f62009-11-15 23:12:43 +000025125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025126$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025127if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025128 $as_echo_n "(cached) " >&6
25129else
cristy8b350f62009-11-15 23:12:43 +000025130 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025131 ac_cv_func_memcmp_working=no
25132else
cristy8b350f62009-11-15 23:12:43 +000025133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025134/* end confdefs.h. */
25135$ac_includes_default
25136int
25137main ()
25138{
25139
25140 /* Some versions of memcmp are not 8-bit clean. */
25141 char c0 = '\100', c1 = '\200', c2 = '\201';
25142 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25143 return 1;
25144
25145 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25146 or more and with at least one buffer not starting on a 4-byte boundary.
25147 William Lewis provided this test program. */
25148 {
25149 char foo[21];
25150 char bar[21];
25151 int i;
25152 for (i = 0; i < 4; i++)
25153 {
25154 char *a = foo + i;
25155 char *b = bar + i;
25156 strcpy (a, "--------01111111");
25157 strcpy (b, "--------10000000");
25158 if (memcmp (a, b, 16) >= 0)
25159 return 1;
25160 }
25161 return 0;
25162 }
25163
25164 ;
25165 return 0;
25166}
25167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025168if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025169 ac_cv_func_memcmp_working=yes
25170else
cristy8b350f62009-11-15 23:12:43 +000025171 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025172fi
cristy8b350f62009-11-15 23:12:43 +000025173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25174 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025175fi
25176
cristy3ed852e2009-09-05 21:47:34 +000025177fi
cristy8b350f62009-11-15 23:12:43 +000025178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025179$as_echo "$ac_cv_func_memcmp_working" >&6; }
25180test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25181 *" memcmp.$ac_objext "* ) ;;
25182 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25183 ;;
25184esac
25185
25186
cristy3ed852e2009-09-05 21:47:34 +000025187for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025188do :
25189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25190ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025191if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025192 cat >>confdefs.h <<_ACEOF
25193#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25194_ACEOF
25195
25196fi
25197
25198done
25199
cristy8b350f62009-11-15 23:12:43 +000025200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025201$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025202if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025203 $as_echo_n "(cached) " >&6
25204else
25205 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25206 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25207 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025209/* end confdefs.h. */
25210$ac_includes_default
25211#ifdef HAVE_SYS_SELECT_H
25212# include <sys/select.h>
25213#endif
25214#ifdef HAVE_SYS_SOCKET_H
25215# include <sys/socket.h>
25216#endif
25217
25218int
25219main ()
25220{
25221extern int select ($ac_arg1,
25222 $ac_arg234, $ac_arg234, $ac_arg234,
25223 $ac_arg5);
25224 ;
25225 return 0;
25226}
25227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025228if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025229 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025230fi
cristy3ed852e2009-09-05 21:47:34 +000025231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25232 done
25233 done
25234done
25235# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025236: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025237
25238fi
cristy8b350f62009-11-15 23:12:43 +000025239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025240$as_echo "$ac_cv_func_select_args" >&6; }
25241ac_save_IFS=$IFS; IFS=','
25242set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25243IFS=$ac_save_IFS
25244shift
25245
25246cat >>confdefs.h <<_ACEOF
25247#define SELECT_TYPE_ARG1 $1
25248_ACEOF
25249
25250
25251cat >>confdefs.h <<_ACEOF
25252#define SELECT_TYPE_ARG234 ($2)
25253_ACEOF
25254
25255
25256cat >>confdefs.h <<_ACEOF
25257#define SELECT_TYPE_ARG5 ($3)
25258_ACEOF
25259
25260rm -f conftest*
25261
cristyda16f162011-02-19 23:52:17 +000025262if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025263 $as_echo_n "(cached) " >&6
25264else
25265 ac_cv_func_setvbuf_reversed=no
25266fi
25267
25268
cristy8b350f62009-11-15 23:12:43 +000025269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025270$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025271if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025272 $as_echo_n "(cached) " >&6
25273else
cristy8b350f62009-11-15 23:12:43 +000025274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025275/* end confdefs.h. */
25276#include <sys/types.h>
25277#include <signal.h>
25278
25279int
25280main ()
25281{
25282return *(signal (0, 0)) (0) == 1;
25283 ;
25284 return 0;
25285}
25286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025287if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025288 ac_cv_type_signal=int
25289else
cristy8b350f62009-11-15 23:12:43 +000025290 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025291fi
cristy3ed852e2009-09-05 21:47:34 +000025292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25293fi
cristy8b350f62009-11-15 23:12:43 +000025294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025295$as_echo "$ac_cv_type_signal" >&6; }
25296
25297cat >>confdefs.h <<_ACEOF
25298#define RETSIGTYPE $ac_cv_type_signal
25299_ACEOF
25300
25301
cristy8b350f62009-11-15 23:12:43 +000025302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025303$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025304if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025305 $as_echo_n "(cached) " >&6
25306else
cristy8b350f62009-11-15 23:12:43 +000025307 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025308 ac_cv_func_strtod=no
25309else
cristy8b350f62009-11-15 23:12:43 +000025310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025311/* end confdefs.h. */
25312
25313$ac_includes_default
25314#ifndef strtod
25315double strtod ();
25316#endif
25317int
25318main()
25319{
25320 {
25321 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25322 char *string = " +69";
25323 char *term;
25324 double value;
25325 value = strtod (string, &term);
25326 if (value != 69 || term != (string + 4))
25327 return 1;
25328 }
25329
25330 {
25331 /* Under Solaris 2.4, strtod returns the wrong value for the
25332 terminating character under some conditions. */
25333 char *string = "NaN";
25334 char *term;
25335 strtod (string, &term);
25336 if (term != string && *(term - 1) == 0)
25337 return 1;
25338 }
25339 return 0;
25340}
25341
25342_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025343if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025344 ac_cv_func_strtod=yes
25345else
cristy8b350f62009-11-15 23:12:43 +000025346 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025347fi
cristy8b350f62009-11-15 23:12:43 +000025348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25349 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025350fi
25351
cristy3ed852e2009-09-05 21:47:34 +000025352fi
cristy8b350f62009-11-15 23:12:43 +000025353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025354$as_echo "$ac_cv_func_strtod" >&6; }
25355if test $ac_cv_func_strtod = no; then
25356 case " $LIBOBJS " in
25357 *" strtod.$ac_objext "* ) ;;
25358 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25359 ;;
25360esac
25361
cristy8b350f62009-11-15 23:12:43 +000025362ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025363if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025364
cristy3ed852e2009-09-05 21:47:34 +000025365fi
25366
cristy3ed852e2009-09-05 21:47:34 +000025367if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025369$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025370if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025371 $as_echo_n "(cached) " >&6
25372else
25373 ac_check_lib_save_LIBS=$LIBS
25374LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025376/* end confdefs.h. */
25377
25378/* Override any GCC internal prototype to avoid an error.
25379 Use char because int might match the return type of a GCC
25380 builtin and then its argument prototype would still apply. */
25381#ifdef __cplusplus
25382extern "C"
25383#endif
25384char pow ();
25385int
25386main ()
25387{
25388return pow ();
25389 ;
25390 return 0;
25391}
25392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025393if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025394 ac_cv_lib_m_pow=yes
25395else
cristy8b350f62009-11-15 23:12:43 +000025396 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025397fi
cristy8b350f62009-11-15 23:12:43 +000025398rm -f core conftest.err conftest.$ac_objext \
25399 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025400LIBS=$ac_check_lib_save_LIBS
25401fi
cristy8b350f62009-11-15 23:12:43 +000025402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025403$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025404if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025405 POW_LIB=-lm
25406else
cristy8b350f62009-11-15 23:12:43 +000025407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025408$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25409fi
25410
25411fi
25412
25413fi
25414
cristy7d4a1d62011-10-13 15:54:12 +000025415ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25416if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25417 ac_have_decl=1
25418else
25419 ac_have_decl=0
25420fi
25421
25422cat >>confdefs.h <<_ACEOF
25423#define HAVE_DECL_STRERROR_R $ac_have_decl
25424_ACEOF
25425
25426for ac_func in strerror_r
25427do :
25428 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25429if test "x$ac_cv_func_strerror_r" = xyes; then :
25430 cat >>confdefs.h <<_ACEOF
25431#define HAVE_STRERROR_R 1
25432_ACEOF
25433
25434fi
25435done
25436
25437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25438$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25439if ${ac_cv_func_strerror_r_char_p+:} false; then :
25440 $as_echo_n "(cached) " >&6
25441else
25442
25443 ac_cv_func_strerror_r_char_p=no
25444 if test $ac_cv_have_decl_strerror_r = yes; then
25445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25446/* end confdefs.h. */
25447$ac_includes_default
25448int
25449main ()
25450{
25451
25452 char buf[100];
25453 char x = *strerror_r (0, buf, sizeof buf);
25454 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025455 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025456
25457 ;
25458 return 0;
25459}
25460_ACEOF
25461if ac_fn_c_try_compile "$LINENO"; then :
25462 ac_cv_func_strerror_r_char_p=yes
25463fi
25464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25465 else
25466 # strerror_r is not declared. Choose between
25467 # systems that have relatively inaccessible declarations for the
25468 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25469 # former has a strerror_r that returns char*, while the latter
25470 # has a strerror_r that returns `int'.
25471 # This test should segfault on the DEC system.
25472 if test "$cross_compiling" = yes; then :
25473 :
25474else
25475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25476/* end confdefs.h. */
25477$ac_includes_default
25478 extern char *strerror_r ();
25479int
25480main ()
25481{
25482char buf[100];
25483 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025484 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025485 ;
25486 return 0;
25487}
25488_ACEOF
25489if ac_fn_c_try_run "$LINENO"; then :
25490 ac_cv_func_strerror_r_char_p=yes
25491fi
25492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25493 conftest.$ac_objext conftest.beam conftest.$ac_ext
25494fi
25495
25496 fi
25497
25498fi
25499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25500$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25501if test $ac_cv_func_strerror_r_char_p = yes; then
25502
25503$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25504
25505fi
25506
cristy3ed852e2009-09-05 21:47:34 +000025507for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025508do :
25509 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025510if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025511 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025512#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025513_ACEOF
25514
cristy8b350f62009-11-15 23:12:43 +000025515ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025516if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025517
cristy8b350f62009-11-15 23:12:43 +000025518$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025519
25520fi
25521
25522fi
25523done
25524
25525
25526
cristy161b9262010-03-20 19:34:32 +000025527#
25528# Find math library
25529#
25530MATH_LIBS=''
25531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25532$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025533if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025534 $as_echo_n "(cached) " >&6
25535else
25536 ac_check_lib_save_LIBS=$LIBS
25537LIBS="-lm $LIBS"
25538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25539/* end confdefs.h. */
25540
25541/* Override any GCC internal prototype to avoid an error.
25542 Use char because int might match the return type of a GCC
25543 builtin and then its argument prototype would still apply. */
25544#ifdef __cplusplus
25545extern "C"
25546#endif
25547char sqrt ();
25548int
25549main ()
25550{
25551return sqrt ();
25552 ;
25553 return 0;
25554}
25555_ACEOF
25556if ac_fn_c_try_link "$LINENO"; then :
25557 ac_cv_lib_m_sqrt=yes
25558else
25559 ac_cv_lib_m_sqrt=no
25560fi
25561rm -f core conftest.err conftest.$ac_objext \
25562 conftest$ac_exeext conftest.$ac_ext
25563LIBS=$ac_check_lib_save_LIBS
25564fi
25565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25566$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025567if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025568 MATH_LIBS="-lm"
25569fi
25570
25571LIBS="$MATH_LIBS $LIBS"
25572
25573
cristy82b20722011-11-05 21:52:36 +000025574for ac_func in acosh 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 +000025575do :
25576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25577ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025578if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025579 cat >>confdefs.h <<_ACEOF
25580#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25581_ACEOF
25582
25583fi
25584done
25585
25586
cristye43a45e2009-09-28 14:49:00 +000025587#
25588# Check for clock_gettime().
25589#
cristy8b350f62009-11-15 23:12:43 +000025590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025591$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025592if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025593 $as_echo_n "(cached) " >&6
25594else
25595 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025597/* end confdefs.h. */
25598
25599/* Override any GCC internal prototype to avoid an error.
25600 Use char because int might match the return type of a GCC
25601 builtin and then its argument prototype would still apply. */
25602#ifdef __cplusplus
25603extern "C"
25604#endif
25605char clock_gettime ();
25606int
25607main ()
25608{
25609return clock_gettime ();
25610 ;
25611 return 0;
25612}
25613_ACEOF
25614for ac_lib in '' rt; do
25615 if test -z "$ac_lib"; then
25616 ac_res="none required"
25617 else
25618 ac_res=-l$ac_lib
25619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25620 fi
cristy8b350f62009-11-15 23:12:43 +000025621 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025622 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025623fi
cristy8b350f62009-11-15 23:12:43 +000025624rm -f core conftest.err conftest.$ac_objext \
25625 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025626 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025627 break
25628fi
25629done
cristyda16f162011-02-19 23:52:17 +000025630if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025631
cristye43a45e2009-09-28 14:49:00 +000025632else
25633 ac_cv_search_clock_gettime=no
25634fi
25635rm conftest.$ac_ext
25636LIBS=$ac_func_search_save_LIBS
25637fi
cristy8b350f62009-11-15 23:12:43 +000025638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025639$as_echo "$ac_cv_search_clock_gettime" >&6; }
25640ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025641if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25643
25644
cristy8b350f62009-11-15 23:12:43 +000025645$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025646
cristy8b350f62009-11-15 23:12:43 +000025647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025648$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025650/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025651
25652 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025653int
25654main ()
25655{
25656clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025657 ;
25658 return 0;
25659}
25660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025661if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025662
cristy09b53e12011-10-14 12:47:22 +000025663 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25664$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025665
cristy8b350f62009-11-15 23:12:43 +000025666$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025667
25668
25669else
cristy09b53e12011-10-14 12:47:22 +000025670 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25671$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025672
25673fi
cristye43a45e2009-09-28 14:49:00 +000025674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25675
25676else
25677
cristy8b350f62009-11-15 23:12:43 +000025678 for ac_func in gettimeofday ftime
25679do :
25680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25681ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025682if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025683 cat >>confdefs.h <<_ACEOF
25684#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25685_ACEOF
25686 break
25687fi
25688done
25689
25690
25691
25692fi
25693
25694
cristy3ed852e2009-09-05 21:47:34 +000025695########
25696#
25697# Check for function prototypes
25698#
25699########
25700
cristy8b350f62009-11-15 23:12:43 +000025701ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025702#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025703"
cristyda16f162011-02-19 23:52:17 +000025704if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025705 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025706else
cristy8b350f62009-11-15 23:12:43 +000025707 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025708fi
25709
cristy3ed852e2009-09-05 21:47:34 +000025710cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025711#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025713ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025714#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025715"
cristyda16f162011-02-19 23:52:17 +000025716if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025717 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025718else
cristy8b350f62009-11-15 23:12:43 +000025719 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025720fi
25721
cristy3ed852e2009-09-05 21:47:34 +000025722cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025723#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025724_ACEOF
25725
25726
cristy8b350f62009-11-15 23:12:43 +000025727ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025728#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025729"
cristyda16f162011-02-19 23:52:17 +000025730if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025731 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025732else
cristy8b350f62009-11-15 23:12:43 +000025733 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025734fi
25735
cristy3ed852e2009-09-05 21:47:34 +000025736cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025737#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025738_ACEOF
25739
25740
cristy8b350f62009-11-15 23:12:43 +000025741ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025742#include <stdio.h>
25743#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025744"
cristyda16f162011-02-19 23:52:17 +000025745if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025746 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025747else
cristy8b350f62009-11-15 23:12:43 +000025748 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025749fi
25750
cristy3ed852e2009-09-05 21:47:34 +000025751cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025752#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025753_ACEOF
25754
25755
cristy3ed852e2009-09-05 21:47:34 +000025756########
25757#
25758# C++ Support Tests (For Magick++)
25759#
25760########
25761have_magick_plus_plus='no'
25762if test "$with_magick_plus_plus" = 'yes'; then
25763 OLIBS="$LIBS"
25764 LIBS=''
25765 ac_ext=cpp
25766ac_cpp='$CXXCPP $CPPFLAGS'
25767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25770
25771
25772 # Full set of headers used...
25773 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25774 # functional iomanip iosfwd iostream iterator list string strstream utility
25775 ac_ext=cpp
25776ac_cpp='$CXXCPP $CPPFLAGS'
25777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25780
25781 ac_ext=cpp
25782ac_cpp='$CXXCPP $CPPFLAGS'
25783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25786if test -z "$CXX"; then
25787 if test -n "$CCC"; then
25788 CXX=$CCC
25789 else
25790 if test -n "$ac_tool_prefix"; then
25791 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25792 do
25793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25794set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025796$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025797if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025798 $as_echo_n "(cached) " >&6
25799else
25800 if test -n "$CXX"; then
25801 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25802else
25803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25804for as_dir in $PATH
25805do
25806 IFS=$as_save_IFS
25807 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025808 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025810 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025812 break 2
25813 fi
25814done
cristy8b350f62009-11-15 23:12:43 +000025815 done
cristy3ed852e2009-09-05 21:47:34 +000025816IFS=$as_save_IFS
25817
25818fi
25819fi
25820CXX=$ac_cv_prog_CXX
25821if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025823$as_echo "$CXX" >&6; }
25824else
cristy8b350f62009-11-15 23:12:43 +000025825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025826$as_echo "no" >&6; }
25827fi
25828
25829
25830 test -n "$CXX" && break
25831 done
25832fi
25833if test -z "$CXX"; then
25834 ac_ct_CXX=$CXX
25835 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25836do
25837 # Extract the first word of "$ac_prog", so it can be a program name with args.
25838set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025841if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025842 $as_echo_n "(cached) " >&6
25843else
25844 if test -n "$ac_ct_CXX"; then
25845 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25846else
25847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25848for as_dir in $PATH
25849do
25850 IFS=$as_save_IFS
25851 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025854 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025856 break 2
25857 fi
25858done
cristy8b350f62009-11-15 23:12:43 +000025859 done
cristy3ed852e2009-09-05 21:47:34 +000025860IFS=$as_save_IFS
25861
25862fi
25863fi
25864ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25865if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025867$as_echo "$ac_ct_CXX" >&6; }
25868else
cristy8b350f62009-11-15 23:12:43 +000025869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025870$as_echo "no" >&6; }
25871fi
25872
25873
25874 test -n "$ac_ct_CXX" && break
25875done
25876
25877 if test "x$ac_ct_CXX" = x; then
25878 CXX="g++"
25879 else
25880 case $cross_compiling:$ac_tool_warned in
25881yes:)
cristy8b350f62009-11-15 23:12:43 +000025882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25884ac_tool_warned=yes ;;
25885esac
25886 CXX=$ac_ct_CXX
25887 fi
25888fi
25889
25890 fi
25891fi
25892# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025893$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025894set X $ac_compile
25895ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025896for ac_option in --version -v -V -qversion; do
25897 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025898case "(($ac_try" in
25899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25900 *) ac_try_echo=$ac_try;;
25901esac
cristy8b350f62009-11-15 23:12:43 +000025902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25903$as_echo "$ac_try_echo"; } >&5
25904 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025905 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025906 if test -s conftest.err; then
25907 sed '10a\
25908... rest of stderr output deleted ...
25909 10q' conftest.err >conftest.er1
25910 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025911 fi
cristycd4c5312009-11-22 01:19:08 +000025912 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25914 test $ac_status = 0; }
25915done
cristy3ed852e2009-09-05 21:47:34 +000025916
cristy8b350f62009-11-15 23:12:43 +000025917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025918$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025919if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025920 $as_echo_n "(cached) " >&6
25921else
cristy8b350f62009-11-15 23:12:43 +000025922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025923/* end confdefs.h. */
25924
25925int
25926main ()
25927{
25928#ifndef __GNUC__
25929 choke me
25930#endif
25931
25932 ;
25933 return 0;
25934}
25935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025936if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025937 ac_compiler_gnu=yes
25938else
cristy8b350f62009-11-15 23:12:43 +000025939 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025940fi
cristy3ed852e2009-09-05 21:47:34 +000025941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25942ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25943
25944fi
cristy8b350f62009-11-15 23:12:43 +000025945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025946$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25947if test $ac_compiler_gnu = yes; then
25948 GXX=yes
25949else
25950 GXX=
25951fi
25952ac_test_CXXFLAGS=${CXXFLAGS+set}
25953ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025955$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025956if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 $as_echo_n "(cached) " >&6
25958else
25959 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25960 ac_cxx_werror_flag=yes
25961 ac_cv_prog_cxx_g=no
25962 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025964/* end confdefs.h. */
25965
25966int
25967main ()
25968{
25969
25970 ;
25971 return 0;
25972}
25973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025974if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025975 ac_cv_prog_cxx_g=yes
25976else
cristy8b350f62009-11-15 23:12:43 +000025977 CXXFLAGS=""
25978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025979/* end confdefs.h. */
25980
25981int
25982main ()
25983{
25984
25985 ;
25986 return 0;
25987}
25988_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025989if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025990
cristy8b350f62009-11-15 23:12:43 +000025991else
25992 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025993 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025995/* end confdefs.h. */
25996
25997int
25998main ()
25999{
26000
26001 ;
26002 return 0;
26003}
26004_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026005if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026006 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026007fi
cristy3ed852e2009-09-05 21:47:34 +000026008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26009fi
cristy3ed852e2009-09-05 21:47:34 +000026010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26011fi
cristy3ed852e2009-09-05 21:47:34 +000026012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26013 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26014fi
cristy8b350f62009-11-15 23:12:43 +000026015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026016$as_echo "$ac_cv_prog_cxx_g" >&6; }
26017if test "$ac_test_CXXFLAGS" = set; then
26018 CXXFLAGS=$ac_save_CXXFLAGS
26019elif test $ac_cv_prog_cxx_g = yes; then
26020 if test "$GXX" = yes; then
26021 CXXFLAGS="-g -O2"
26022 else
26023 CXXFLAGS="-g"
26024 fi
26025else
26026 if test "$GXX" = yes; then
26027 CXXFLAGS="-O2"
26028 else
26029 CXXFLAGS=
26030 fi
26031fi
26032ac_ext=cpp
26033ac_cpp='$CXXCPP $CPPFLAGS'
26034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26037
cristy73bd4a52010-10-05 11:24:23 +000026038depcc="$CXX" am_compiler_list=
26039
26040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26041$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026042if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026043 $as_echo_n "(cached) " >&6
26044else
26045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26046 # We make a subdir and do the tests there. Otherwise we can end up
26047 # making bogus files that we don't know about and never remove. For
26048 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026049 # making a dummy file named 'D' -- because '-MD' means "put the output
26050 # in D".
cristy7247bba2012-02-05 16:37:27 +000026051 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026052 mkdir conftest.dir
26053 # Copy depcomp to subdir because otherwise we won't find it if we're
26054 # using a relative directory.
26055 cp "$am_depcomp" conftest.dir
26056 cd conftest.dir
26057 # We will build objects and dependencies in a subdirectory because
26058 # it helps to detect inapplicable dependency modes. For instance
26059 # both Tru64's cc and ICC support -MD to output dependencies as a
26060 # side effect of compilation, but ICC will put the dependencies in
26061 # the current directory while Tru64 will put them in the object
26062 # directory.
26063 mkdir sub
26064
26065 am_cv_CXX_dependencies_compiler_type=none
26066 if test "$am_compiler_list" = ""; then
26067 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26068 fi
26069 am__universal=false
26070 case " $depcc " in #(
26071 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26072 esac
26073
26074 for depmode in $am_compiler_list; do
26075 # Setup a source with many dependencies, because some compilers
26076 # like to wrap large dependency lists on column 80 (with \), and
26077 # we should not choose a depcomp mode which is confused by this.
26078 #
26079 # We need to recreate these files for each test, as the compiler may
26080 # overwrite some of them when testing with obscure command lines.
26081 # This happens at least with the AIX C compiler.
26082 : > sub/conftest.c
26083 for i in 1 2 3 4 5 6; do
26084 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026085 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26086 # Solaris 10 /bin/sh.
26087 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026088 done
26089 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26090
cristyc0890a62012-07-19 00:18:20 +000026091 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026092 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026093 # handle '-M -o', and we need to detect this. Also, some Intel
26094 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026095 am__obj=sub/conftest.${OBJEXT-o}
26096 am__minus_obj="-o $am__obj"
26097 case $depmode in
26098 gcc)
26099 # This depmode causes a compiler race in universal mode.
26100 test "$am__universal" = false || continue
26101 ;;
26102 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026103 # After this tag, mechanisms are not by side-effect, so they'll
26104 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026105 if test "x$enable_dependency_tracking" = xyes; then
26106 continue
26107 else
26108 break
26109 fi
26110 ;;
cristy7247bba2012-02-05 16:37:27 +000026111 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026112 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026113 # not run yet. These depmodes are late enough in the game, and
26114 # so weak that their functioning should not be impacted.
26115 am__obj=conftest.${OBJEXT-o}
26116 am__minus_obj=
26117 ;;
26118 none) break ;;
26119 esac
26120 if depmode=$depmode \
26121 source=sub/conftest.c object=$am__obj \
26122 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26123 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26124 >/dev/null 2>conftest.err &&
26125 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26126 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26127 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26128 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26129 # icc doesn't choke on unknown options, it will just issue warnings
26130 # or remarks (even with -Werror). So we grep stderr for any message
26131 # that says an option was ignored or not supported.
26132 # When given -MP, icc 7.0 and 7.1 complain thusly:
26133 # icc: Command line warning: ignoring option '-M'; no argument required
26134 # The diagnosis changed in icc 8.0:
26135 # icc: Command line remark: option '-MP' not supported
26136 if (grep 'ignoring option' conftest.err ||
26137 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26138 am_cv_CXX_dependencies_compiler_type=$depmode
26139 break
26140 fi
26141 fi
26142 done
26143
26144 cd ..
26145 rm -rf conftest.dir
26146else
26147 am_cv_CXX_dependencies_compiler_type=none
26148fi
26149
26150fi
26151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26152$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26153CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26154
26155 if
26156 test "x$enable_dependency_tracking" != xno \
26157 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26158 am__fastdepCXX_TRUE=
26159 am__fastdepCXX_FALSE='#'
26160else
26161 am__fastdepCXX_TRUE='#'
26162 am__fastdepCXX_FALSE=
26163fi
26164
26165
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26167$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026168if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026169 $as_echo_n "(cached) " >&6
26170else
26171
26172 ac_ext=cpp
26173ac_cpp='$CXXCPP $CPPFLAGS'
26174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26177
26178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26179/* end confdefs.h. */
26180
26181int f(int x){return 1;}
26182int f(char x){return 1;}
26183int f(bool x){return 1;}
26184
26185int
26186main ()
26187{
26188bool b = true; return f(b);
26189 ;
26190 return 0;
26191}
26192_ACEOF
26193if ac_fn_cxx_try_compile "$LINENO"; then :
26194 ax_cv_cxx_bool=yes
26195else
26196 ax_cv_cxx_bool=no
26197fi
26198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26199 ac_ext=cpp
26200ac_cpp='$CXXCPP $CPPFLAGS'
26201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26204
26205
26206fi
26207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26208$as_echo "$ax_cv_cxx_bool" >&6; }
26209if test "$ax_cv_cxx_bool" = yes; then
26210
26211$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26212
26213fi
26214
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26216$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026217if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026218 $as_echo_n "(cached) " >&6
26219else
26220
26221 ac_ext=cpp
26222ac_cpp='$CXXCPP $CPPFLAGS'
26223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26226
26227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26228/* end confdefs.h. */
26229namespace Outer { namespace Inner { int i = 0; }}
26230int
26231main ()
26232{
26233using namespace Outer::Inner; return i;
26234 ;
26235 return 0;
26236}
26237_ACEOF
26238if ac_fn_cxx_try_compile "$LINENO"; then :
26239 ax_cv_cxx_namespaces=yes
26240else
26241 ax_cv_cxx_namespaces=no
26242fi
26243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26244 ac_ext=cpp
26245ac_cpp='$CXXCPP $CPPFLAGS'
26246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26249
26250
26251fi
26252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26253$as_echo "$ax_cv_cxx_namespaces" >&6; }
26254if test "$ax_cv_cxx_namespaces" = yes; then
26255
26256$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26257
26258fi
26259
26260
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26262$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026263if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026264 $as_echo_n "(cached) " >&6
26265else
26266
26267 ac_ext=cpp
26268ac_cpp='$CXXCPP $CPPFLAGS'
26269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26272
26273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26274/* end confdefs.h. */
26275#include <iostream>
26276 std::istream& is = std::cin;
26277int
26278main ()
26279{
26280
26281 ;
26282 return 0;
26283}
26284_ACEOF
26285if ac_fn_cxx_try_compile "$LINENO"; then :
26286 ax_cv_cxx_have_std_namespace=yes
26287else
26288 ax_cv_cxx_have_std_namespace=no
26289fi
26290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26291 ac_ext=cpp
26292ac_cpp='$CXXCPP $CPPFLAGS'
26293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26296
26297
26298fi
26299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26300$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26301 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26302
26303$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26304
26305 fi
26306
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26308$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026309if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026310 $as_echo_n "(cached) " >&6
26311else
26312
26313
26314 ac_ext=cpp
26315ac_cpp='$CXXCPP $CPPFLAGS'
26316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26319
26320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26321/* end confdefs.h. */
26322#include <iostream>
26323#include <map>
26324#include <iomanip>
26325#include <cmath>
26326#ifdef HAVE_NAMESPACES
26327using namespace std;
26328#endif
26329int
26330main ()
26331{
26332return 0;
26333 ;
26334 return 0;
26335}
26336_ACEOF
26337if ac_fn_cxx_try_compile "$LINENO"; then :
26338 ac_cv_cxx_have_std_libs=yes
26339else
26340 ac_cv_cxx_have_std_libs=no
26341fi
26342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26343 ac_ext=cpp
26344ac_cpp='$CXXCPP $CPPFLAGS'
26345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26348
26349
26350fi
26351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26352$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26353if test "$ac_cv_cxx_have_std_libs" = yes; then
26354
26355$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26356
26357fi
26358
cristy3ed852e2009-09-05 21:47:34 +000026359
26360 OPENMP_CXXFLAGS=
26361 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026362if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026363 enableval=$enable_openmp;
26364fi
26365
26366 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26368$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026369if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026370 $as_echo_n "(cached) " >&6
26371else
cristy8b350f62009-11-15 23:12:43 +000026372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26373/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026374
26375#ifndef _OPENMP
26376 choke me
26377#endif
26378#include <omp.h>
26379int main () { return omp_get_num_threads (); }
26380
26381_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026382if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026383 ac_cv_prog_cxx_openmp='none needed'
26384else
cristy8b350f62009-11-15 23:12:43 +000026385 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026386 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26387 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026388 ac_save_CXXFLAGS=$CXXFLAGS
26389 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26391/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026392
26393#ifndef _OPENMP
26394 choke me
26395#endif
26396#include <omp.h>
26397int main () { return omp_get_num_threads (); }
26398
26399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026400if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026401 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026402fi
cristy8b350f62009-11-15 23:12:43 +000026403rm -f core conftest.err conftest.$ac_objext \
26404 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026405 CXXFLAGS=$ac_save_CXXFLAGS
26406 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26407 break
26408 fi
26409 done
26410fi
cristy8b350f62009-11-15 23:12:43 +000026411rm -f core conftest.err conftest.$ac_objext \
26412 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026413fi
cristy8b350f62009-11-15 23:12:43 +000026414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026415$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26416 case $ac_cv_prog_cxx_openmp in #(
26417 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026418 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026419 *)
cristy8b350f62009-11-15 23:12:43 +000026420 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026421 esac
26422 fi
26423
26424
26425 ac_ext=c
26426ac_cpp='$CPP $CPPFLAGS'
26427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26429ac_compiler_gnu=$ac_cv_c_compiler_gnu
26430
26431
cristy8b350f62009-11-15 23:12:43 +000026432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026433$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26434 if \
cristy964cb7f2010-04-25 23:18:00 +000026435 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026436 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026437 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026438 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026439 have_magick_plus_plus='yes'
26440 else
26441 have_magick_plus_plus='no (failed tests)'
26442 fi
cristy09b53e12011-10-14 12:47:22 +000026443 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26444$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026445 LIBS="$OLIBS"
26446fi
cristy73bd4a52010-10-05 11:24:23 +000026447 if test "$have_magick_plus_plus" = 'yes'; then
26448 WITH_MAGICK_PLUS_PLUS_TRUE=
26449 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26450else
26451 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26452 WITH_MAGICK_PLUS_PLUS_FALSE=
26453fi
26454
cristy3ed852e2009-09-05 21:47:34 +000026455
26456# Only check for delegate libraries in subdirectories if requested.
26457if test "$enable_delegate_build" != 'no'; then
26458 # Check for delegate sub-directories and add -I & -L options as required.
26459 # This presumes that delegates are installed as detailed in the ImageMagick
26460 # README. If delegates are installed in a standard location where the
26461 # compiler will automatically find them then these options should not be
26462 # required.
26463
26464 #
26465 # Most delegates have includes in the same directory as the library, but not all...
26466 #
26467 # Includes
cristy2542fc62011-12-06 17:50:25 +000026468 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 +000026469 if test -d "$builddir/$dir"; then
26470 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26471 else
26472 if test -d "$srcdirfull/$dir"; then
26473 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26474 fi
26475 fi
26476 done
26477
26478 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026479 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 +000026480 if test -d "$builddir/$dir/.libs"; then
26481 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26482 else
26483 if test -d "$srcdirfull/$dir/.libs"; then
26484 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26485 fi
26486 fi
26487 if test -d "$builddir/$dir"; then
26488 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26489 else
26490 if test -d "$srcdirfull/$dir"; then
26491 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26492 fi
26493 fi
26494 done
26495fi
26496
26497# Assume that delegate headers reside under same directory as ImageMagick
26498# installation prefix.
26499MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26500
26501#
26502# Find the X11 RGB database
26503#
cristy8b350f62009-11-15 23:12:43 +000026504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026505$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026506if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026507 $as_echo_n "(cached) " >&6
26508else
26509 # Look for the header file in a standard set of common directories.
26510# Check X11 before X11Rn because it is often a symlink to the current release.
26511 for ac_dir in \
26512 /lib/usr/lib/X11 \
26513 /usr/X11/lib \
26514 /usr/X11R4/lib \
26515 /usr/X11R5/lib \
26516 /usr/X11R6/lib \
26517 /usr/X11R7/lib \
26518 /usr/X386/lib \
26519 /usr/XFree86/lib/X11 \
26520 /usr/athena/lib \
26521 /usr/lib \
26522 /usr/lib/X11 \
26523 /usr/lib/X11R4 \
26524 /usr/lib/X11R5 \
26525 /usr/lib/X11R6 \
26526 /usr/lib/X11R7 \
26527 /usr/local/X11/lib \
26528 /usr/local/X11R4/lib \
26529 /usr/local/X11R5/lib \
26530 /usr/local/X11R6/lib \
26531 /usr/local/lib \
26532 /usr/local/lib/X11 \
26533 /usr/local/lib/X11R4 \
26534 /usr/local/lib/X11R5 \
26535 /usr/local/lib/X11R6 \
26536 /usr/local/lib/X11R7 \
26537 /usr/local/x11r5/lib \
26538 /usr/lpp/Xamples/lib \
26539 /usr/openwin/lib \
26540 /usr/openwin/share/lib \
26541 /usr/unsupported/lib \
26542 /usr/x386/lib \
26543 ; do
26544 if test -f "$ac_dir/X11/rgb.txt"; then
26545 im_cv_x_configure="$ac_dir/X11/"
26546 break
26547 elif test -f "$ac_dir/rgb.txt"; then
26548 im_cv_x_configure="$ac_dir/"
26549 break
26550 fi
26551
26552 done
26553fi
cristy8b350f62009-11-15 23:12:43 +000026554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026555$as_echo "$im_cv_x_configure" >&6; }
26556X11_CONFIGURE_PATH="$im_cv_x_configure"
26557case "${build_os}" in
26558 mingw* )
26559 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26560 ;;
26561esac
26562
26563cat >>confdefs.h <<_ACEOF
26564#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26565_ACEOF
26566
26567
26568#
26569# Find OpenMP library
26570#
26571GOMP_LIBS=''
26572if test "$enable_openmp" != 'no'; then
26573 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026574 # Open64 (passes for GCC but uses different OpenMP implementation)
26575 if test "x$GOMP_LIBS" = x ; then
26576 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26578$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26579if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26580 $as_echo_n "(cached) " >&6
26581else
26582 ac_check_lib_save_LIBS=$LIBS
26583LIBS="-lopenmp $LIBS"
26584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26585/* end confdefs.h. */
26586
26587/* Override any GCC internal prototype to avoid an error.
26588 Use char because int might match the return type of a GCC
26589 builtin and then its argument prototype would still apply. */
26590#ifdef __cplusplus
26591extern "C"
26592#endif
26593char omp_get_num_procs ();
26594int
26595main ()
26596{
26597return omp_get_num_procs ();
26598 ;
26599 return 0;
26600}
26601_ACEOF
26602if ac_fn_c_try_link "$LINENO"; then :
26603 ac_cv_lib_openmp_omp_get_num_procs=yes
26604else
26605 ac_cv_lib_openmp_omp_get_num_procs=no
26606fi
26607rm -f core conftest.err conftest.$ac_objext \
26608 conftest$ac_exeext conftest.$ac_ext
26609LIBS=$ac_check_lib_save_LIBS
26610fi
26611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26612$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26613if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26614 GOMP_LIBS="-lopenmp"
26615fi
26616
26617 fi
26618 fi
26619 # GCC
26620 if test "x$GOMP_LIBS" = x ; then
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026622$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026623if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026624 $as_echo_n "(cached) " >&6
26625else
26626 ac_check_lib_save_LIBS=$LIBS
26627LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026629/* end confdefs.h. */
26630
26631/* Override any GCC internal prototype to avoid an error.
26632 Use char because int might match the return type of a GCC
26633 builtin and then its argument prototype would still apply. */
26634#ifdef __cplusplus
26635extern "C"
26636#endif
26637char GOMP_parallel_start ();
26638int
26639main ()
26640{
26641return GOMP_parallel_start ();
26642 ;
26643 return 0;
26644}
26645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026646if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026647 ac_cv_lib_gomp_GOMP_parallel_start=yes
26648else
cristy8b350f62009-11-15 23:12:43 +000026649 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026650fi
cristy8b350f62009-11-15 23:12:43 +000026651rm -f core conftest.err conftest.$ac_objext \
26652 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026653LIBS=$ac_check_lib_save_LIBS
26654fi
cristy8b350f62009-11-15 23:12:43 +000026655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026656$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026657if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026658 GOMP_LIBS="-lgomp"
26659fi
cristy18307f12011-12-30 01:20:16 +000026660
26661 fi
cristy3ed852e2009-09-05 21:47:34 +000026662 else
cristy18307f12011-12-30 01:20:16 +000026663 # Sun CC
26664 if test "x$GOMP_LIBS" = x ; then
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026666$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026667if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026668 $as_echo_n "(cached) " >&6
26669else
26670 ac_check_lib_save_LIBS=$LIBS
26671LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026673/* end confdefs.h. */
26674
26675/* Override any GCC internal prototype to avoid an error.
26676 Use char because int might match the return type of a GCC
26677 builtin and then its argument prototype would still apply. */
26678#ifdef __cplusplus
26679extern "C"
26680#endif
26681char sunw_mp_register_warn ();
26682int
26683main ()
26684{
26685return sunw_mp_register_warn ();
26686 ;
26687 return 0;
26688}
26689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026690if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026691 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26692else
cristy8b350f62009-11-15 23:12:43 +000026693 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026694fi
cristy8b350f62009-11-15 23:12:43 +000026695rm -f core conftest.err conftest.$ac_objext \
26696 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026697LIBS=$ac_check_lib_save_LIBS
26698fi
cristy8b350f62009-11-15 23:12:43 +000026699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026700$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026701if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026702 GOMP_LIBS="-lmtsk"
26703fi
cristy18307f12011-12-30 01:20:16 +000026704
26705 fi
26706 # AIX xlc
26707 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026709$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026710if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026711 $as_echo_n "(cached) " >&6
26712else
26713 ac_check_lib_save_LIBS=$LIBS
26714LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026716/* end confdefs.h. */
26717
26718/* Override any GCC internal prototype to avoid an error.
26719 Use char because int might match the return type of a GCC
26720 builtin and then its argument prototype would still apply. */
26721#ifdef __cplusplus
26722extern "C"
26723#endif
26724char _xlsmpFlush ();
26725int
26726main ()
26727{
26728return _xlsmpFlush ();
26729 ;
26730 return 0;
26731}
26732_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026733if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026734 ac_cv_lib_xlsmp__xlsmpFlush=yes
26735else
cristy8b350f62009-11-15 23:12:43 +000026736 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026737fi
cristy8b350f62009-11-15 23:12:43 +000026738rm -f core conftest.err conftest.$ac_objext \
26739 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026740LIBS=$ac_check_lib_save_LIBS
26741fi
cristy8b350f62009-11-15 23:12:43 +000026742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026743$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026744if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026745 GOMP_LIBS="-lxlsmp"
26746fi
cristy18307f12011-12-30 01:20:16 +000026747
26748 fi
26749 # SGI IRIX 6.5 MIPSpro C/C++
26750 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026752$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026753if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026754 $as_echo_n "(cached) " >&6
26755else
26756 ac_check_lib_save_LIBS=$LIBS
26757LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026759/* end confdefs.h. */
26760
26761/* Override any GCC internal prototype to avoid an error.
26762 Use char because int might match the return type of a GCC
26763 builtin and then its argument prototype would still apply. */
26764#ifdef __cplusplus
26765extern "C"
26766#endif
26767char mp_destroy ();
26768int
26769main ()
26770{
26771return mp_destroy ();
26772 ;
26773 return 0;
26774}
26775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026776if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026777 ac_cv_lib_mp_mp_destroy=yes
26778else
cristy8b350f62009-11-15 23:12:43 +000026779 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026780fi
cristy8b350f62009-11-15 23:12:43 +000026781rm -f core conftest.err conftest.$ac_objext \
26782 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026783LIBS=$ac_check_lib_save_LIBS
26784fi
cristy8b350f62009-11-15 23:12:43 +000026785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026786$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026787if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026788 GOMP_LIBS="-lmp"
26789fi
cristy18307f12011-12-30 01:20:16 +000026790
26791 fi
cristy3ed852e2009-09-05 21:47:34 +000026792 fi
26793 LIBS="$GOMP_LIBS $LIBS"
26794fi
26795
26796
26797#
26798# Find Posix threads library
26799#
26800THREAD_LIBS=''
26801if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26802
26803 if test "x$PTHREAD_LIBS" = "x"; then
26804 case "${host_cpu}-${host_os}" in
26805 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026806
26807
26808
26809ac_ext=c
26810ac_cpp='$CPP $CPPFLAGS'
26811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26813ac_compiler_gnu=$ac_cv_c_compiler_gnu
26814
26815magick_pthread_lib_ok=no
26816
26817LIB=-lc_r
26818save_LIBS="$LIBS"
26819LIBS="$LIBS $LIB"
26820
26821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26822$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26824/* end confdefs.h. */
26825#include <pthread.h>
26826int
26827main ()
26828{
26829 pthread_t th;
26830 pthread_join(th, 0);
26831 pthread_attr_init(0);
26832 pthread_cleanup_push(0, 0);
26833 pthread_create(0,0,0,0);
26834 pthread_cleanup_pop(0);
26835 ;
26836 return 0;
26837}
26838_ACEOF
26839if ac_fn_c_try_link "$LINENO"; then :
26840 magick_pthread_lib_ok=yes
26841fi
26842rm -f core conftest.err conftest.$ac_objext \
26843 conftest$ac_exeext conftest.$ac_ext
26844
26845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26846$as_echo "${magick_pthread_lib_ok}" >&6; }
26847if test "$magick_pthread_lib_ok" = yes
26848then
26849 PTHREAD_LIBS=-lc_r
26850 :
26851else
26852
26853 :
26854fi
26855
26856LIBS="$save_LIBS"
26857
26858ac_ext=c
26859ac_cpp='$CPP $CPPFLAGS'
26860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26862ac_compiler_gnu=$ac_cv_c_compiler_gnu
26863
26864 ;;
cristy3ed852e2009-09-05 21:47:34 +000026865 esac
26866 fi
26867
26868 for lib in pthread pthreads; do
26869 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026870
26871
26872
26873ac_ext=c
26874ac_cpp='$CPP $CPPFLAGS'
26875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26877ac_compiler_gnu=$ac_cv_c_compiler_gnu
26878
26879magick_pthread_lib_ok=no
26880
26881LIB=-l$lib
26882save_LIBS="$LIBS"
26883LIBS="$LIBS $LIB"
26884
26885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26886$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26888/* end confdefs.h. */
26889#include <pthread.h>
26890int
26891main ()
26892{
26893 pthread_t th;
26894 pthread_join(th, 0);
26895 pthread_attr_init(0);
26896 pthread_cleanup_push(0, 0);
26897 pthread_create(0,0,0,0);
26898 pthread_cleanup_pop(0);
26899 ;
26900 return 0;
26901}
26902_ACEOF
26903if ac_fn_c_try_link "$LINENO"; then :
26904 magick_pthread_lib_ok=yes
26905fi
26906rm -f core conftest.err conftest.$ac_objext \
26907 conftest$ac_exeext conftest.$ac_ext
26908
26909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26910$as_echo "${magick_pthread_lib_ok}" >&6; }
26911if test "$magick_pthread_lib_ok" = yes
26912then
26913 PTHREAD_LIBS=-l$lib
26914 :
26915else
26916
26917 :
26918fi
26919
26920LIBS="$save_LIBS"
26921
26922ac_ext=c
26923ac_cpp='$CPP $CPPFLAGS'
26924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26926ac_compiler_gnu=$ac_cv_c_compiler_gnu
26927
26928
cristy3ed852e2009-09-05 21:47:34 +000026929 fi
26930 done
26931
26932 THREAD_LIBS="$PTHREAD_LIBS"
26933 LIBS="$LIBS $THREAD_LIBS"
26934fi
26935
26936
26937#
26938# Check for umem.
26939#
26940have_umem='no'
26941UMEM_LIBS=''
26942if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026944$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026945 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26946$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026947 failed=0
26948 passed=0
cristy8b350f62009-11-15 23:12:43 +000026949 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026950if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026951 passed=`expr $passed + 1`
26952else
26953 failed=`expr $failed + 1`
26954fi
26955
26956
cristy8b350f62009-11-15 23:12:43 +000026957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026958$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026959if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026960 $as_echo_n "(cached) " >&6
26961else
26962 ac_check_lib_save_LIBS=$LIBS
26963LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026965/* end confdefs.h. */
26966
26967/* Override any GCC internal prototype to avoid an error.
26968 Use char because int might match the return type of a GCC
26969 builtin and then its argument prototype would still apply. */
26970#ifdef __cplusplus
26971extern "C"
26972#endif
26973char umem_alloc ();
26974int
26975main ()
26976{
26977return umem_alloc ();
26978 ;
26979 return 0;
26980}
26981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026982if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026983 ac_cv_lib_umem_umem_alloc=yes
26984else
cristy8b350f62009-11-15 23:12:43 +000026985 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026986fi
cristy8b350f62009-11-15 23:12:43 +000026987rm -f core conftest.err conftest.$ac_objext \
26988 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026989LIBS=$ac_check_lib_save_LIBS
26990fi
cristy8b350f62009-11-15 23:12:43 +000026991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026992$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026993if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026994 passed=`expr $passed + 1`
26995else
26996 failed=`expr $failed + 1`
26997fi
26998
cristy8b350f62009-11-15 23:12:43 +000026999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027000$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027001if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027002 $as_echo_n "(cached) " >&6
27003else
27004 ac_check_lib_save_LIBS=$LIBS
27005LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027007/* end confdefs.h. */
27008
27009/* Override any GCC internal prototype to avoid an error.
27010 Use char because int might match the return type of a GCC
27011 builtin and then its argument prototype would still apply. */
27012#ifdef __cplusplus
27013extern "C"
27014#endif
27015char umem_free ();
27016int
27017main ()
27018{
27019return umem_free ();
27020 ;
27021 return 0;
27022}
27023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027024if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027025 ac_cv_lib_umem_umem_free=yes
27026else
cristy8b350f62009-11-15 23:12:43 +000027027 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027028fi
cristy8b350f62009-11-15 23:12:43 +000027029rm -f core conftest.err conftest.$ac_objext \
27030 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027031LIBS=$ac_check_lib_save_LIBS
27032fi
cristy8b350f62009-11-15 23:12:43 +000027033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027034$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027035if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027036 passed=`expr $passed + 1`
27037else
27038 failed=`expr $failed + 1`
27039fi
27040
cristy8b350f62009-11-15 23:12:43 +000027041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027042$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27043 if test $passed -gt 0; then
27044 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027045 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27046$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027047 have_umem='no (failed tests)'
27048 else
27049 UMEM_LIBS='-lumem'
27050 LIBS="$UMEM_LIBS $LIBS"
27051
cristy8b350f62009-11-15 23:12:43 +000027052$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027053
cristy09b53e12011-10-14 12:47:22 +000027054 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27055$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027056 have_umem='yes'
27057 fi
27058 else
cristy09b53e12011-10-14 12:47:22 +000027059 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27060$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027061 fi
27062fi
cristy73bd4a52010-10-05 11:24:23 +000027063 if test "$have_umem" = 'yes'; then
27064 HasUMEM_TRUE=
27065 HasUMEM_FALSE='#'
27066else
27067 HasUMEM_TRUE='#'
27068 HasUMEM_FALSE=
27069fi
27070
cristy3ed852e2009-09-05 21:47:34 +000027071
27072
27073#
27074# Add support for ccmalloc memory debugging library if requested
27075#
27076have_ccmalloc='no'
27077CCMALLOC_LIBS=''
27078if test "$enable_ccmalloc" = 'yes'; then
27079 # Extract the first word of "ccmalloc", so it can be a program name with args.
27080set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027082$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027083if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027084 $as_echo_n "(cached) " >&6
27085else
27086 case $CCMALLOCDelegate in
27087 [\\/]* | ?:[\\/]*)
27088 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27089 ;;
27090 *)
27091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27092for as_dir in $PATH
27093do
27094 IFS=$as_save_IFS
27095 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027096 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027098 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027100 break 2
27101 fi
27102done
cristy8b350f62009-11-15 23:12:43 +000027103 done
cristy3ed852e2009-09-05 21:47:34 +000027104IFS=$as_save_IFS
27105
27106 ;;
27107esac
27108fi
27109CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27110if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027112$as_echo "$CCMALLOCDelegate" >&6; }
27113else
cristy8b350f62009-11-15 23:12:43 +000027114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027115$as_echo "no" >&6; }
27116fi
27117
27118
27119 if test -n "$CCMALLOCDelegate"; then
27120 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27121 OLIBS="$LIBS"
27122 # Assume that gcc is used with ccmalloc.
27123 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027125$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027126if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027127 $as_echo_n "(cached) " >&6
27128else
27129 ac_check_lib_save_LIBS=$LIBS
27130LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027132/* end confdefs.h. */
27133
27134/* Override any GCC internal prototype to avoid an error.
27135 Use char because int might match the return type of a GCC
27136 builtin and then its argument prototype would still apply. */
27137#ifdef __cplusplus
27138extern "C"
27139#endif
27140char ccmalloc_malloc ();
27141int
27142main ()
27143{
27144return ccmalloc_malloc ();
27145 ;
27146 return 0;
27147}
27148_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027149if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027150 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27151else
cristy8b350f62009-11-15 23:12:43 +000027152 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027153fi
cristy8b350f62009-11-15 23:12:43 +000027154rm -f core conftest.err conftest.$ac_objext \
27155 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027156LIBS=$ac_check_lib_save_LIBS
27157fi
cristy8b350f62009-11-15 23:12:43 +000027158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027159$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027160if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027161 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27162fi
27163
27164 if test -n "$CCMALLOC_LIBS"; then
27165 LIBS="$OLIBS"
27166 LIBS="$LIBS $CCMALLOC_LIBS"
27167 have_ccmalloc='yes'
27168 else
27169 LIBS="$OLIBS"
27170 fi
27171 fi
27172fi
27173
27174#
27175# Add support for efence memory debugging library if requested
27176#
27177if test "$enable_efence" = 'yes'; then
27178 EFENCE_LIBS='-lefence'
27179 LIBS="$EFENCE_LIBS $LIBS"
27180fi
27181
cristy3ed852e2009-09-05 21:47:34 +000027182
27183#
27184# Check for BZLIB
27185#
27186
27187
27188# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027189if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027190 withval=$with_bzlib; with_bzlib=$withval
27191else
27192 with_bzlib='yes'
27193fi
27194
27195
27196if test "$with_bzlib" != 'yes'; then
27197 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27198fi
27199
27200have_bzlib='no'
27201if test "$with_bzlib" != 'no'; then
27202 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027203 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27204$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027206$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027207 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27208$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027209 failed=0
27210 passed=0
27211 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027212 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027213if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027214 passed=`expr $passed + 1`
27215else
27216 failed=`expr $failed + 1`
27217fi
27218
27219
cristy8b350f62009-11-15 23:12:43 +000027220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027221$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027222if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027223 $as_echo_n "(cached) " >&6
27224else
27225 ac_check_lib_save_LIBS=$LIBS
27226LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027228/* end confdefs.h. */
27229
27230/* Override any GCC internal prototype to avoid an error.
27231 Use char because int might match the return type of a GCC
27232 builtin and then its argument prototype would still apply. */
27233#ifdef __cplusplus
27234extern "C"
27235#endif
27236char BZ2_bzDecompress ();
27237int
27238main ()
27239{
27240return BZ2_bzDecompress ();
27241 ;
27242 return 0;
27243}
27244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027245if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027246 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27247else
cristy8b350f62009-11-15 23:12:43 +000027248 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027249fi
cristy8b350f62009-11-15 23:12:43 +000027250rm -f core conftest.err conftest.$ac_objext \
27251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027252LIBS=$ac_check_lib_save_LIBS
27253fi
cristy8b350f62009-11-15 23:12:43 +000027254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027255$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027256if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027257 found_libbz=`expr $found_libbz + 1`
27258fi
27259
27260 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027262$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027263if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027264 $as_echo_n "(cached) " >&6
27265else
27266 ac_check_lib_save_LIBS=$LIBS
27267LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027269/* end confdefs.h. */
27270
27271/* Override any GCC internal prototype to avoid an error.
27272 Use char because int might match the return type of a GCC
27273 builtin and then its argument prototype would still apply. */
27274#ifdef __cplusplus
27275extern "C"
27276#endif
27277char _imp__BZ2_decompress ();
27278int
27279main ()
27280{
27281return _imp__BZ2_decompress ();
27282 ;
27283 return 0;
27284}
27285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027286if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027287 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27288else
cristy8b350f62009-11-15 23:12:43 +000027289 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027290fi
cristy8b350f62009-11-15 23:12:43 +000027291rm -f core conftest.err conftest.$ac_objext \
27292 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027293LIBS=$ac_check_lib_save_LIBS
27294fi
cristy8b350f62009-11-15 23:12:43 +000027295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027296$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027297if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027298 found_libbz=`expr $found_libbz + 1`
27299fi
27300
27301 fi
27302 if test $found_libbz -gt 0; then
27303 passed=`expr $passed + 1`
27304 else
27305 failed=`expr $failed + 1`
27306 fi
cristy8b350f62009-11-15 23:12:43 +000027307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027308$as_echo_n "checking if BZLIB package is complete... " >&6; }
27309 if test $passed -gt 0; then
27310 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027311 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27312$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027313 have_bzlib='no (failed tests)'
27314 else
27315 BZLIB_LIBS='-lbz2'
27316 LIBS="$BZLIB_LIBS $LIBS"
27317
cristy8b350f62009-11-15 23:12:43 +000027318$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027319
cristy09b53e12011-10-14 12:47:22 +000027320 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27321$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027322 have_bzlib='yes'
27323 fi
27324 else
cristy09b53e12011-10-14 12:47:22 +000027325 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27326$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027327 fi
27328fi
cristy73bd4a52010-10-05 11:24:23 +000027329 if test "$have_bzlib" = 'yes'; then
27330 BZLIB_DELEGATE_TRUE=
27331 BZLIB_DELEGATE_FALSE='#'
27332else
27333 BZLIB_DELEGATE_TRUE='#'
27334 BZLIB_DELEGATE_FALSE=
27335fi
27336
cristy3ed852e2009-09-05 21:47:34 +000027337
27338
27339#
27340# Find the X11 include and library directories.
27341#
27342IPC_LIBS=''
27343X11_LIBS=''
27344XEXT_LIBS=''
27345XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027347$as_echo_n "checking for X... " >&6; }
27348
27349
27350# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027351if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027352 withval=$with_x;
27353fi
27354
27355# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27356if test "x$with_x" = xno; then
27357 # The user explicitly disabled X.
27358 have_x=disabled
27359else
27360 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027361 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027362 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027363 $as_echo_n "(cached) " >&6
27364else
27365 # One or both of the vars are not set, and there is no cached value.
27366ac_x_includes=no ac_x_libraries=no
27367rm -f -r conftest.dir
27368if mkdir conftest.dir; then
27369 cd conftest.dir
27370 cat >Imakefile <<'_ACEOF'
27371incroot:
27372 @echo incroot='${INCROOT}'
27373usrlibdir:
27374 @echo usrlibdir='${USRLIBDIR}'
27375libdir:
27376 @echo libdir='${LIBDIR}'
27377_ACEOF
27378 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027379 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027380 for ac_var in incroot usrlibdir libdir; do
27381 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27382 done
27383 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27384 for ac_extension in a so sl dylib la dll; do
27385 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27386 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27387 ac_im_usrlibdir=$ac_im_libdir; break
27388 fi
27389 done
27390 # Screen out bogus values from the imake configuration. They are
27391 # bogus both because they are the default anyway, and because
27392 # using them would break gcc on systems where it needs fixed includes.
27393 case $ac_im_incroot in
27394 /usr/include) ac_x_includes= ;;
27395 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27396 esac
27397 case $ac_im_usrlibdir in
27398 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27399 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27400 esac
27401 fi
27402 cd ..
27403 rm -f -r conftest.dir
27404fi
27405
27406# Standard set of common directories for X headers.
27407# Check X11 before X11Rn because it is often a symlink to the current release.
27408ac_x_header_dirs='
27409/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027410/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027411/usr/X11R6/include
27412/usr/X11R5/include
27413/usr/X11R4/include
27414
27415/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027416/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027417/usr/include/X11R6
27418/usr/include/X11R5
27419/usr/include/X11R4
27420
27421/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027422/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027423/usr/local/X11R6/include
27424/usr/local/X11R5/include
27425/usr/local/X11R4/include
27426
27427/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027428/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027429/usr/local/include/X11R6
27430/usr/local/include/X11R5
27431/usr/local/include/X11R4
27432
27433/usr/X386/include
27434/usr/x386/include
27435/usr/XFree86/include/X11
27436
27437/usr/include
27438/usr/local/include
27439/usr/unsupported/include
27440/usr/athena/include
27441/usr/local/x11r5/include
27442/usr/lpp/Xamples/include
27443
27444/usr/openwin/include
27445/usr/openwin/share/include'
27446
27447if test "$ac_x_includes" = no; then
27448 # Guess where to find include files, by looking for Xlib.h.
27449 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027451/* end confdefs.h. */
27452#include <X11/Xlib.h>
27453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027454if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027455 # We can compile using X headers with no special include directory.
27456ac_x_includes=
27457else
cristyc7083c12009-10-14 03:16:55 +000027458 for ac_dir in $ac_x_header_dirs; do
27459 if test -r "$ac_dir/X11/Xlib.h"; then
27460 ac_x_includes=$ac_dir
27461 break
27462 fi
27463done
27464fi
cristyda16f162011-02-19 23:52:17 +000027465rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027466fi # $ac_x_includes = no
27467
27468if test "$ac_x_libraries" = no; then
27469 # Check for the libraries.
27470 # See if we find them without any special options.
27471 # Don't add to $LIBS permanently.
27472 ac_save_LIBS=$LIBS
27473 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027475/* end confdefs.h. */
27476#include <X11/Xlib.h>
27477int
27478main ()
27479{
27480XrmInitialize ()
27481 ;
27482 return 0;
27483}
27484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027485if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027486 LIBS=$ac_save_LIBS
27487# We can link X programs with no special library path.
27488ac_x_libraries=
27489else
cristy8b350f62009-11-15 23:12:43 +000027490 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027491for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27492do
27493 # Don't even attempt the hair of trying to link an X program!
27494 for ac_extension in a so sl dylib la dll; do
27495 if test -r "$ac_dir/libX11.$ac_extension"; then
27496 ac_x_libraries=$ac_dir
27497 break 2
27498 fi
27499 done
27500done
27501fi
cristy8b350f62009-11-15 23:12:43 +000027502rm -f core conftest.err conftest.$ac_objext \
27503 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027504fi # $ac_x_libraries = no
27505
27506case $ac_x_includes,$ac_x_libraries in #(
27507 no,* | *,no | *\'*)
27508 # Didn't find X, or a directory has "'" in its name.
27509 ac_cv_have_x="have_x=no";; #(
27510 *)
27511 # Record where we found X for the cache.
27512 ac_cv_have_x="have_x=yes\
27513 ac_x_includes='$ac_x_includes'\
27514 ac_x_libraries='$ac_x_libraries'"
27515esac
27516fi
27517;; #(
27518 *) have_x=yes;;
27519 esac
27520 eval "$ac_cv_have_x"
27521fi # $with_x != no
27522
27523if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027525$as_echo "$have_x" >&6; }
27526 no_x=yes
27527else
27528 # If each of the values was on the command line, it overrides each guess.
27529 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27530 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27531 # Update the cache value to reflect the command line values.
27532 ac_cv_have_x="have_x=yes\
27533 ac_x_includes='$x_includes'\
27534 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027536$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27537fi
27538
cristy3ed852e2009-09-05 21:47:34 +000027539if test "$no_x" = yes; then
27540 # Not all programs may use this symbol, but it does not hurt to define it.
27541
cristy8b350f62009-11-15 23:12:43 +000027542$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027543
27544 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27545else
27546 if test -n "$x_includes"; then
27547 X_CFLAGS="$X_CFLAGS -I$x_includes"
27548 fi
27549
27550 # It would also be nice to do this for all -L options, not just this one.
27551 if test -n "$x_libraries"; then
27552 X_LIBS="$X_LIBS -L$x_libraries"
27553 # For Solaris; some versions of Sun CC require a space after -R and
27554 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027556$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27557 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27558 ac_xsave_c_werror_flag=$ac_c_werror_flag
27559 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027561/* end confdefs.h. */
27562
27563int
27564main ()
27565{
27566
27567 ;
27568 return 0;
27569}
27570_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027571if ac_fn_c_try_link "$LINENO"; then :
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027573$as_echo "no" >&6; }
27574 X_LIBS="$X_LIBS -R$x_libraries"
27575else
cristy8b350f62009-11-15 23:12:43 +000027576 LIBS="$ac_xsave_LIBS -R $x_libraries"
27577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027578/* end confdefs.h. */
27579
27580int
27581main ()
27582{
27583
27584 ;
27585 return 0;
27586}
27587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027588if ac_fn_c_try_link "$LINENO"; then :
27589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027590$as_echo "yes" >&6; }
27591 X_LIBS="$X_LIBS -R $x_libraries"
27592else
cristy8b350f62009-11-15 23:12:43 +000027593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027594$as_echo "neither works" >&6; }
27595fi
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 +000027598fi
cristy8b350f62009-11-15 23:12:43 +000027599rm -f core conftest.err conftest.$ac_objext \
27600 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027601 ac_c_werror_flag=$ac_xsave_c_werror_flag
27602 LIBS=$ac_xsave_LIBS
27603 fi
27604
27605 # Check for system-dependent libraries X programs must link with.
27606 # Do this before checking for the system-independent R6 libraries
27607 # (-lICE), since we may need -lsocket or whatever for X linking.
27608
27609 if test "$ISC" = yes; then
27610 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27611 else
27612 # Martyn Johnson says this is needed for Ultrix, if the X
27613 # libraries were built with DECnet support. And Karl Berry says
27614 # the Alpha needs dnet_stub (dnet does not exist).
27615 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027617/* end confdefs.h. */
27618
27619/* Override any GCC internal prototype to avoid an error.
27620 Use char because int might match the return type of a GCC
27621 builtin and then its argument prototype would still apply. */
27622#ifdef __cplusplus
27623extern "C"
27624#endif
27625char XOpenDisplay ();
27626int
27627main ()
27628{
27629return XOpenDisplay ();
27630 ;
27631 return 0;
27632}
27633_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027634if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027635
cristy8b350f62009-11-15 23:12:43 +000027636else
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027638$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027639if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027640 $as_echo_n "(cached) " >&6
27641else
27642 ac_check_lib_save_LIBS=$LIBS
27643LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027645/* end confdefs.h. */
27646
27647/* Override any GCC internal prototype to avoid an error.
27648 Use char because int might match the return type of a GCC
27649 builtin and then its argument prototype would still apply. */
27650#ifdef __cplusplus
27651extern "C"
27652#endif
27653char dnet_ntoa ();
27654int
27655main ()
27656{
27657return dnet_ntoa ();
27658 ;
27659 return 0;
27660}
27661_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027662if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027663 ac_cv_lib_dnet_dnet_ntoa=yes
27664else
cristy8b350f62009-11-15 23:12:43 +000027665 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027666fi
cristy8b350f62009-11-15 23:12:43 +000027667rm -f core conftest.err conftest.$ac_objext \
27668 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027669LIBS=$ac_check_lib_save_LIBS
27670fi
cristy8b350f62009-11-15 23:12:43 +000027671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027672$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027673if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027674 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27675fi
27676
27677 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027679$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027680if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027681 $as_echo_n "(cached) " >&6
27682else
27683 ac_check_lib_save_LIBS=$LIBS
27684LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027686/* end confdefs.h. */
27687
27688/* Override any GCC internal prototype to avoid an error.
27689 Use char because int might match the return type of a GCC
27690 builtin and then its argument prototype would still apply. */
27691#ifdef __cplusplus
27692extern "C"
27693#endif
27694char dnet_ntoa ();
27695int
27696main ()
27697{
27698return dnet_ntoa ();
27699 ;
27700 return 0;
27701}
27702_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027703if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027704 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27705else
cristy8b350f62009-11-15 23:12:43 +000027706 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027707fi
cristy8b350f62009-11-15 23:12:43 +000027708rm -f core conftest.err conftest.$ac_objext \
27709 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027710LIBS=$ac_check_lib_save_LIBS
27711fi
cristy8b350f62009-11-15 23:12:43 +000027712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027713$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027714if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027715 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27716fi
27717
27718 fi
27719fi
cristy8b350f62009-11-15 23:12:43 +000027720rm -f core conftest.err conftest.$ac_objext \
27721 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027722 LIBS="$ac_xsave_LIBS"
27723
27724 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27725 # to get the SysV transport functions.
27726 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27727 # needs -lnsl.
27728 # The nsl library prevents programs from opening the X display
27729 # on Irix 5.2, according to T.E. Dickey.
27730 # The functions gethostbyname, getservbyname, and inet_addr are
27731 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027732 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027733if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027734
cristy3ed852e2009-09-05 21:47:34 +000027735fi
27736
cristy3ed852e2009-09-05 21:47:34 +000027737 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027739$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027740if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027741 $as_echo_n "(cached) " >&6
27742else
27743 ac_check_lib_save_LIBS=$LIBS
27744LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027746/* end confdefs.h. */
27747
27748/* Override any GCC internal prototype to avoid an error.
27749 Use char because int might match the return type of a GCC
27750 builtin and then its argument prototype would still apply. */
27751#ifdef __cplusplus
27752extern "C"
27753#endif
27754char gethostbyname ();
27755int
27756main ()
27757{
27758return gethostbyname ();
27759 ;
27760 return 0;
27761}
27762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027763if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027764 ac_cv_lib_nsl_gethostbyname=yes
27765else
cristy8b350f62009-11-15 23:12:43 +000027766 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027767fi
cristy8b350f62009-11-15 23:12:43 +000027768rm -f core conftest.err conftest.$ac_objext \
27769 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027770LIBS=$ac_check_lib_save_LIBS
27771fi
cristy8b350f62009-11-15 23:12:43 +000027772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027773$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027774if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027775 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27776fi
27777
27778 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027780$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027781if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027782 $as_echo_n "(cached) " >&6
27783else
27784 ac_check_lib_save_LIBS=$LIBS
27785LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027787/* end confdefs.h. */
27788
27789/* Override any GCC internal prototype to avoid an error.
27790 Use char because int might match the return type of a GCC
27791 builtin and then its argument prototype would still apply. */
27792#ifdef __cplusplus
27793extern "C"
27794#endif
27795char gethostbyname ();
27796int
27797main ()
27798{
27799return gethostbyname ();
27800 ;
27801 return 0;
27802}
27803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027804if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027805 ac_cv_lib_bsd_gethostbyname=yes
27806else
cristy8b350f62009-11-15 23:12:43 +000027807 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027808fi
cristy8b350f62009-11-15 23:12:43 +000027809rm -f core conftest.err conftest.$ac_objext \
27810 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027811LIBS=$ac_check_lib_save_LIBS
27812fi
cristy8b350f62009-11-15 23:12:43 +000027813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027814$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027815if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027816 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27817fi
27818
27819 fi
27820 fi
27821
27822 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27823 # socket/setsockopt and other routines are undefined under SCO ODT
27824 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27825 # on later versions), says Simon Leinen: it contains gethostby*
27826 # variants that don't use the name server (or something). -lsocket
27827 # must be given before -lnsl if both are needed. We assume that
27828 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027829 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027830if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027831
cristy3ed852e2009-09-05 21:47:34 +000027832fi
27833
cristy3ed852e2009-09-05 21:47:34 +000027834 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027836$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027837if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027838 $as_echo_n "(cached) " >&6
27839else
27840 ac_check_lib_save_LIBS=$LIBS
27841LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027843/* end confdefs.h. */
27844
27845/* Override any GCC internal prototype to avoid an error.
27846 Use char because int might match the return type of a GCC
27847 builtin and then its argument prototype would still apply. */
27848#ifdef __cplusplus
27849extern "C"
27850#endif
27851char connect ();
27852int
27853main ()
27854{
27855return connect ();
27856 ;
27857 return 0;
27858}
27859_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027860if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027861 ac_cv_lib_socket_connect=yes
27862else
cristy8b350f62009-11-15 23:12:43 +000027863 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027864fi
cristy8b350f62009-11-15 23:12:43 +000027865rm -f core conftest.err conftest.$ac_objext \
27866 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027867LIBS=$ac_check_lib_save_LIBS
27868fi
cristy8b350f62009-11-15 23:12:43 +000027869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027870$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027871if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027872 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27873fi
27874
27875 fi
27876
27877 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027878 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027879if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027880
cristy3ed852e2009-09-05 21:47:34 +000027881fi
27882
cristy3ed852e2009-09-05 21:47:34 +000027883 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027885$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027886if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027887 $as_echo_n "(cached) " >&6
27888else
27889 ac_check_lib_save_LIBS=$LIBS
27890LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027892/* end confdefs.h. */
27893
27894/* Override any GCC internal prototype to avoid an error.
27895 Use char because int might match the return type of a GCC
27896 builtin and then its argument prototype would still apply. */
27897#ifdef __cplusplus
27898extern "C"
27899#endif
27900char remove ();
27901int
27902main ()
27903{
27904return remove ();
27905 ;
27906 return 0;
27907}
27908_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027909if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027910 ac_cv_lib_posix_remove=yes
27911else
cristy8b350f62009-11-15 23:12:43 +000027912 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027913fi
cristy8b350f62009-11-15 23:12:43 +000027914rm -f core conftest.err conftest.$ac_objext \
27915 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027916LIBS=$ac_check_lib_save_LIBS
27917fi
cristy8b350f62009-11-15 23:12:43 +000027918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027919$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027920if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027921 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27922fi
27923
27924 fi
27925
27926 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027927 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027928if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027929
cristy3ed852e2009-09-05 21:47:34 +000027930fi
27931
cristy3ed852e2009-09-05 21:47:34 +000027932 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027934$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027935if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027936 $as_echo_n "(cached) " >&6
27937else
27938 ac_check_lib_save_LIBS=$LIBS
27939LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027941/* end confdefs.h. */
27942
27943/* Override any GCC internal prototype to avoid an error.
27944 Use char because int might match the return type of a GCC
27945 builtin and then its argument prototype would still apply. */
27946#ifdef __cplusplus
27947extern "C"
27948#endif
27949char shmat ();
27950int
27951main ()
27952{
27953return shmat ();
27954 ;
27955 return 0;
27956}
27957_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027958if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027959 ac_cv_lib_ipc_shmat=yes
27960else
cristy8b350f62009-11-15 23:12:43 +000027961 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027962fi
cristy8b350f62009-11-15 23:12:43 +000027963rm -f core conftest.err conftest.$ac_objext \
27964 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027965LIBS=$ac_check_lib_save_LIBS
27966fi
cristy8b350f62009-11-15 23:12:43 +000027967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027968$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027969if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027970 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27971fi
27972
27973 fi
27974 fi
27975
27976 # Check for libraries that X11R6 Xt/Xaw programs need.
27977 ac_save_LDFLAGS=$LDFLAGS
27978 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27979 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27980 # check for ICE first), but we must link in the order -lSM -lICE or
27981 # we get undefined symbols. So assume we have SM if we have ICE.
27982 # These have to be linked with before -lX11, unlike the other
27983 # libraries we check for below, so use a different variable.
27984 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027986$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027987if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027988 $as_echo_n "(cached) " >&6
27989else
27990 ac_check_lib_save_LIBS=$LIBS
27991LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027993/* end confdefs.h. */
27994
27995/* Override any GCC internal prototype to avoid an error.
27996 Use char because int might match the return type of a GCC
27997 builtin and then its argument prototype would still apply. */
27998#ifdef __cplusplus
27999extern "C"
28000#endif
28001char IceConnectionNumber ();
28002int
28003main ()
28004{
28005return IceConnectionNumber ();
28006 ;
28007 return 0;
28008}
28009_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028010if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028011 ac_cv_lib_ICE_IceConnectionNumber=yes
28012else
cristy8b350f62009-11-15 23:12:43 +000028013 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028014fi
cristy8b350f62009-11-15 23:12:43 +000028015rm -f core conftest.err conftest.$ac_objext \
28016 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028017LIBS=$ac_check_lib_save_LIBS
28018fi
cristy8b350f62009-11-15 23:12:43 +000028019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028020$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028021if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028022 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28023fi
28024
28025 LDFLAGS=$ac_save_LDFLAGS
28026
28027fi
28028
28029if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000028030 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28031$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028033$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028034 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28035$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028036 LDFLAGS="$LDFLAGS $X_LIBS"
28037 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28038 LIBS="$X11_LIBS $LIBS"
28039 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28040
28041
cristy8b350f62009-11-15 23:12:43 +000028042$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028043
28044 #
28045 # Check for X11 shared memory extension
28046 #
28047 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028048 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028049if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028050 have_shmctl='yes'
28051fi
28052
28053 if test "$have_shmctl" != 'yes'; then
28054 PERSIST_LIBS=$LIBS
28055 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028057/* end confdefs.h. */
28058
28059/* Override any GCC internal prototype to avoid an error.
28060 Use char because int might match the return type of a GCC
28061 builtin and then its argument prototype would still apply. */
28062#ifdef __cplusplus
28063extern "C"
28064#endif
28065char shmctl ();
28066int
28067main ()
28068{
28069return shmctl ();
28070 ;
28071 return 0;
28072}
28073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028074if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028075 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028076fi
cristy8b350f62009-11-15 23:12:43 +000028077rm -f core conftest.err conftest.$ac_objext \
28078 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028079 LIBS=$PERSIST_LIBS
28080 fi
28081
28082 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028084$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028085if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028086 $as_echo_n "(cached) " >&6
28087else
28088 ac_check_lib_save_LIBS=$LIBS
28089LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028091/* end confdefs.h. */
28092
28093/* Override any GCC internal prototype to avoid an error.
28094 Use char because int might match the return type of a GCC
28095 builtin and then its argument prototype would still apply. */
28096#ifdef __cplusplus
28097extern "C"
28098#endif
28099char XShmAttach ();
28100int
28101main ()
28102{
28103return XShmAttach ();
28104 ;
28105 return 0;
28106}
28107_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028108if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028109 ac_cv_lib_Xext_XShmAttach=yes
28110else
cristy8b350f62009-11-15 23:12:43 +000028111 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028112fi
cristy8b350f62009-11-15 23:12:43 +000028113rm -f core conftest.err conftest.$ac_objext \
28114 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028115LIBS=$ac_check_lib_save_LIBS
28116fi
cristy8b350f62009-11-15 23:12:43 +000028117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028118$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028119if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028120 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028121$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028122
28123fi
28124
28125 fi
28126
28127 #
28128 # Check for X11 shape extension
28129 #
cristy8b350f62009-11-15 23:12:43 +000028130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028131$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028132if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028133 $as_echo_n "(cached) " >&6
28134else
28135 ac_check_lib_save_LIBS=$LIBS
28136LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028138/* end confdefs.h. */
28139
28140/* Override any GCC internal prototype to avoid an error.
28141 Use char because int might match the return type of a GCC
28142 builtin and then its argument prototype would still apply. */
28143#ifdef __cplusplus
28144extern "C"
28145#endif
28146char XShapeCombineMask ();
28147int
28148main ()
28149{
28150return XShapeCombineMask ();
28151 ;
28152 return 0;
28153}
28154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028155if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028156 ac_cv_lib_Xext_XShapeCombineMask=yes
28157else
cristy8b350f62009-11-15 23:12:43 +000028158 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028159fi
cristy8b350f62009-11-15 23:12:43 +000028160rm -f core conftest.err conftest.$ac_objext \
28161 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028162LIBS=$ac_check_lib_save_LIBS
28163fi
cristy8b350f62009-11-15 23:12:43 +000028164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028165$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028166if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028167 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028168$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028169
28170fi
28171
cristy8b350f62009-11-15 23:12:43 +000028172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028173$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028174if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028175 $as_echo_n "(cached) " >&6
28176else
28177 ac_check_lib_save_LIBS=$LIBS
28178LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028180/* end confdefs.h. */
28181
28182/* Override any GCC internal prototype to avoid an error.
28183 Use char because int might match the return type of a GCC
28184 builtin and then its argument prototype would still apply. */
28185#ifdef __cplusplus
28186extern "C"
28187#endif
28188char XtSetEventDispatcher ();
28189int
28190main ()
28191{
28192return XtSetEventDispatcher ();
28193 ;
28194 return 0;
28195}
28196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028197if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028198 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28199else
cristy8b350f62009-11-15 23:12:43 +000028200 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028201fi
cristy8b350f62009-11-15 23:12:43 +000028202rm -f core conftest.err conftest.$ac_objext \
28203 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028204LIBS=$ac_check_lib_save_LIBS
28205fi
cristy8b350f62009-11-15 23:12:43 +000028206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028207$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028208if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028209 XT_LIBS='-lXt'
28210fi
28211
28212 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28213fi
28214if test "$no_x" != 'yes'; then
28215 have_x='yes'
28216else
28217 have_x='no'
28218fi
cristy73bd4a52010-10-05 11:24:23 +000028219 if test "$have_x" = 'yes'; then
28220 X11_DELEGATE_TRUE=
28221 X11_DELEGATE_FALSE='#'
28222else
28223 X11_DELEGATE_TRUE='#'
28224 X11_DELEGATE_FALSE=
28225fi
28226
cristy3ed852e2009-09-05 21:47:34 +000028227
28228
28229
28230
28231#
28232# Check for ZLIB
28233#
28234
28235# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028236if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028237 withval=$with_zlib; with_zlib=$withval
28238else
28239 with_zlib='yes'
28240fi
28241
28242
28243if test "$with_zlib" != 'yes'; then
28244 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28245fi
28246
28247have_zlib='no'
28248ZLIB_LIBS=''
28249if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028250 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28251$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028253$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028254 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28255$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028256 ZLIB_LIBS=''
28257 failed=0
28258 passed=0
cristy8b350f62009-11-15 23:12:43 +000028259 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028260if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028261 passed=`expr $passed + 1`
28262else
28263 failed=`expr $failed + 1`
28264fi
28265
28266
cristy8b350f62009-11-15 23:12:43 +000028267 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028268if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028269 passed=`expr $passed + 1`
28270else
28271 failed=`expr $failed + 1`
28272fi
28273
28274
cristy8b350f62009-11-15 23:12:43 +000028275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028276$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028277if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028278 $as_echo_n "(cached) " >&6
28279else
28280 ac_check_lib_save_LIBS=$LIBS
28281LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028283/* end confdefs.h. */
28284
28285/* Override any GCC internal prototype to avoid an error.
28286 Use char because int might match the return type of a GCC
28287 builtin and then its argument prototype would still apply. */
28288#ifdef __cplusplus
28289extern "C"
28290#endif
28291char compress ();
28292int
28293main ()
28294{
28295return compress ();
28296 ;
28297 return 0;
28298}
28299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028300if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028301 ac_cv_lib_z_compress=yes
28302else
cristy8b350f62009-11-15 23:12:43 +000028303 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028304fi
cristy8b350f62009-11-15 23:12:43 +000028305rm -f core conftest.err conftest.$ac_objext \
28306 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028307LIBS=$ac_check_lib_save_LIBS
28308fi
cristy8b350f62009-11-15 23:12:43 +000028309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028310$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028311if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028312 passed=`expr $passed + 1`
28313else
28314 failed=`expr $failed + 1`
28315fi
28316
cristy8b350f62009-11-15 23:12:43 +000028317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028318$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028319if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028320 $as_echo_n "(cached) " >&6
28321else
28322 ac_check_lib_save_LIBS=$LIBS
28323LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028325/* end confdefs.h. */
28326
28327/* Override any GCC internal prototype to avoid an error.
28328 Use char because int might match the return type of a GCC
28329 builtin and then its argument prototype would still apply. */
28330#ifdef __cplusplus
28331extern "C"
28332#endif
28333char uncompress ();
28334int
28335main ()
28336{
28337return uncompress ();
28338 ;
28339 return 0;
28340}
28341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028342if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028343 ac_cv_lib_z_uncompress=yes
28344else
cristy8b350f62009-11-15 23:12:43 +000028345 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028346fi
cristy8b350f62009-11-15 23:12:43 +000028347rm -f core conftest.err conftest.$ac_objext \
28348 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028349LIBS=$ac_check_lib_save_LIBS
28350fi
cristy8b350f62009-11-15 23:12:43 +000028351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028352$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028353if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028354 passed=`expr $passed + 1`
28355else
28356 failed=`expr $failed + 1`
28357fi
28358
cristy8b350f62009-11-15 23:12:43 +000028359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028360$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028361if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028362 $as_echo_n "(cached) " >&6
28363else
28364 ac_check_lib_save_LIBS=$LIBS
28365LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028367/* end confdefs.h. */
28368
28369/* Override any GCC internal prototype to avoid an error.
28370 Use char because int might match the return type of a GCC
28371 builtin and then its argument prototype would still apply. */
28372#ifdef __cplusplus
28373extern "C"
28374#endif
28375char deflate ();
28376int
28377main ()
28378{
28379return deflate ();
28380 ;
28381 return 0;
28382}
28383_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028384if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028385 ac_cv_lib_z_deflate=yes
28386else
cristy8b350f62009-11-15 23:12:43 +000028387 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028388fi
cristy8b350f62009-11-15 23:12:43 +000028389rm -f core conftest.err conftest.$ac_objext \
28390 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028391LIBS=$ac_check_lib_save_LIBS
28392fi
cristy8b350f62009-11-15 23:12:43 +000028393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028394$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028395if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028396 passed=`expr $passed + 1`
28397else
28398 failed=`expr $failed + 1`
28399fi
28400
cristy8b350f62009-11-15 23:12:43 +000028401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028402$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028403if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028404 $as_echo_n "(cached) " >&6
28405else
28406 ac_check_lib_save_LIBS=$LIBS
28407LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028409/* end confdefs.h. */
28410
28411/* Override any GCC internal prototype to avoid an error.
28412 Use char because int might match the return type of a GCC
28413 builtin and then its argument prototype would still apply. */
28414#ifdef __cplusplus
28415extern "C"
28416#endif
28417char inflate ();
28418int
28419main ()
28420{
28421return inflate ();
28422 ;
28423 return 0;
28424}
28425_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028426if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028427 ac_cv_lib_z_inflate=yes
28428else
cristy8b350f62009-11-15 23:12:43 +000028429 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028430fi
cristy8b350f62009-11-15 23:12:43 +000028431rm -f core conftest.err conftest.$ac_objext \
28432 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028433LIBS=$ac_check_lib_save_LIBS
28434fi
cristy8b350f62009-11-15 23:12:43 +000028435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028436$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028437if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028438 passed=`expr $passed + 1`
28439else
28440 failed=`expr $failed + 1`
28441fi
28442
cristy8b350f62009-11-15 23:12:43 +000028443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028444$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028445if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028446 $as_echo_n "(cached) " >&6
28447else
28448 ac_check_lib_save_LIBS=$LIBS
28449LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028451/* end confdefs.h. */
28452
28453/* Override any GCC internal prototype to avoid an error.
28454 Use char because int might match the return type of a GCC
28455 builtin and then its argument prototype would still apply. */
28456#ifdef __cplusplus
28457extern "C"
28458#endif
28459char gzseek ();
28460int
28461main ()
28462{
28463return gzseek ();
28464 ;
28465 return 0;
28466}
28467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028468if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028469 ac_cv_lib_z_gzseek=yes
28470else
cristy8b350f62009-11-15 23:12:43 +000028471 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028472fi
cristy8b350f62009-11-15 23:12:43 +000028473rm -f core conftest.err conftest.$ac_objext \
28474 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028475LIBS=$ac_check_lib_save_LIBS
28476fi
cristy8b350f62009-11-15 23:12:43 +000028477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028478$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028479if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028480 passed=`expr $passed + 1`
28481else
28482 failed=`expr $failed + 1`
28483fi
28484
cristy8b350f62009-11-15 23:12:43 +000028485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028486$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028487if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028488 $as_echo_n "(cached) " >&6
28489else
28490 ac_check_lib_save_LIBS=$LIBS
28491LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028493/* end confdefs.h. */
28494
28495/* Override any GCC internal prototype to avoid an error.
28496 Use char because int might match the return type of a GCC
28497 builtin and then its argument prototype would still apply. */
28498#ifdef __cplusplus
28499extern "C"
28500#endif
28501char gztell ();
28502int
28503main ()
28504{
28505return gztell ();
28506 ;
28507 return 0;
28508}
28509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028510if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028511 ac_cv_lib_z_gztell=yes
28512else
cristy8b350f62009-11-15 23:12:43 +000028513 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028514fi
cristy8b350f62009-11-15 23:12:43 +000028515rm -f core conftest.err conftest.$ac_objext \
28516 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028517LIBS=$ac_check_lib_save_LIBS
28518fi
cristy8b350f62009-11-15 23:12:43 +000028519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028520$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028521if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028522 passed=`expr $passed + 1`
28523else
28524 failed=`expr $failed + 1`
28525fi
28526
cristy8b350f62009-11-15 23:12:43 +000028527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028528$as_echo_n "checking if ZLIB package is complete... " >&6; }
28529 if test $passed -gt 0; then
28530 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028531 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28532$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028533 have_zlib='no (failed tests)'
28534 else
28535 ZLIB_LIBS='-lz'
28536 LIBS="$ZLIB_LIBS $LIBS"
28537
cristy8b350f62009-11-15 23:12:43 +000028538$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028539
cristy09b53e12011-10-14 12:47:22 +000028540 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28541$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028542 have_zlib='yes'
28543 fi
28544 else
cristy09b53e12011-10-14 12:47:22 +000028545 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28546$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028547 fi
28548fi
cristy73bd4a52010-10-05 11:24:23 +000028549 if test "$have_zlib" = 'yes'; then
28550 ZLIB_DELEGATE_TRUE=
28551 ZLIB_DELEGATE_FALSE='#'
28552else
28553 ZLIB_DELEGATE_TRUE='#'
28554 ZLIB_DELEGATE_FALSE=
28555fi
28556
cristy3ed852e2009-09-05 21:47:34 +000028557
28558
28559#
28560# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28561#
28562LIB_DL=''
28563if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028565$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028566if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028567 $as_echo_n "(cached) " >&6
28568else
28569 ac_check_lib_save_LIBS=$LIBS
28570LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028572/* end confdefs.h. */
28573
28574/* Override any GCC internal prototype to avoid an error.
28575 Use char because int might match the return type of a GCC
28576 builtin and then its argument prototype would still apply. */
28577#ifdef __cplusplus
28578extern "C"
28579#endif
28580char dlopen ();
28581int
28582main ()
28583{
28584return dlopen ();
28585 ;
28586 return 0;
28587}
28588_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028589if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028590 ac_cv_lib_dl_dlopen=yes
28591else
cristy8b350f62009-11-15 23:12:43 +000028592 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028593fi
cristy8b350f62009-11-15 23:12:43 +000028594rm -f core conftest.err conftest.$ac_objext \
28595 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028596LIBS=$ac_check_lib_save_LIBS
28597fi
cristy8b350f62009-11-15 23:12:43 +000028598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028599$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028600if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028601 LIB_DL='-ldl'
28602fi
28603
28604 LIBS="$LIB_DL $LIBS"
28605fi
28606
28607
28608
28609#
28610# Check for Autotrace delegate library.
28611#
28612
28613# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028614if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028615 withval=$with_autotrace; with_autotrace=$withval
28616else
28617 with_autotrace='no'
28618fi
28619
28620
28621if test "$with_autotrace" != 'yes'; then
28622 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28623fi
28624
28625have_autotrace='no'
28626AUTOTRACE_CFLAGS=""
28627AUTOTRACE_LIBS=""
28628AUTOTRACE_PKG=""
28629if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028630 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28631$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028632
28633pkg_failed=no
28634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28635$as_echo_n "checking for AUTOTRACE... " >&6; }
28636
28637if test -n "$AUTOTRACE_CFLAGS"; then
28638 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28639 elif test -n "$PKG_CONFIG"; then
28640 if test -n "$PKG_CONFIG" && \
28641 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28642 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28643 ac_status=$?
28644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28645 test $ac_status = 0; }; then
28646 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28647else
28648 pkg_failed=yes
28649fi
28650 else
28651 pkg_failed=untried
28652fi
28653if test -n "$AUTOTRACE_LIBS"; then
28654 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28655 elif test -n "$PKG_CONFIG"; then
28656 if test -n "$PKG_CONFIG" && \
28657 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28658 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28659 ac_status=$?
28660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28661 test $ac_status = 0; }; then
28662 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28663else
28664 pkg_failed=yes
28665fi
28666 else
28667 pkg_failed=untried
28668fi
28669
28670
28671
28672if test $pkg_failed = yes; then
28673
28674if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28675 _pkg_short_errors_supported=yes
28676else
28677 _pkg_short_errors_supported=no
28678fi
28679 if test $_pkg_short_errors_supported = yes; then
28680 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28681 else
28682 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28683 fi
28684 # Put the nasty error message in config.log where it belongs
28685 echo "$AUTOTRACE_PKG_ERRORS" >&5
28686
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28688$as_echo "no" >&6; }
28689 have_autotrace=no
28690elif test $pkg_failed = untried; then
28691 have_autotrace=no
28692else
28693 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28694 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28696$as_echo "yes" >&6; }
28697 have_autotrace=yes
28698fi
cristy09b53e12011-10-14 12:47:22 +000028699 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28700$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028701fi
28702
28703if test "$have_autotrace" = 'yes'; then
28704 failed=0
28705
cristy8b350f62009-11-15 23:12:43 +000028706$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028707
28708 if test "$with_modules" = 'no'; then
28709 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28710 fi
28711fi
28712
cristy73bd4a52010-10-05 11:24:23 +000028713 if test "$have_autotrace" = 'yes'; then
28714 AUTOTRACE_DELEGATE_TRUE=
28715 AUTOTRACE_DELEGATE_FALSE='#'
28716else
28717 AUTOTRACE_DELEGATE_TRUE='#'
28718 AUTOTRACE_DELEGATE_FALSE=
28719fi
28720
cristy3ed852e2009-09-05 21:47:34 +000028721
28722
28723
28724
28725#
28726# Check for Display Postscript delegate library.
28727#
28728
28729# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028730if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028731 withval=$with_dps; with_dps=$withval
28732else
28733 with_dps='yes'
28734fi
28735
28736
28737if test "$with_dps" != 'yes'; then
28738 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28739fi
28740
28741have_dps='no'
28742DPS_LIBS=''
28743if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028744 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28745$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028747$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028748 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28749$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028750 failed=0
28751 passed=0
28752 PERSIST_CPPFLAGS="$CPPFLAGS"
28753 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028754 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 +000028755if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028756 passed=`expr $passed + 1`
28757else
28758 failed=`expr $failed + 1`
28759fi
28760
28761
28762 # DPS issues:
28763 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28764 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28765 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28766 # ImageMagick itself doesn't use -lXt.
28767 have_libdps='no'
28768 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028770$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028771if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028772 $as_echo_n "(cached) " >&6
28773else
28774 ac_check_lib_save_LIBS=$LIBS
28775LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028777/* end confdefs.h. */
28778
28779/* Override any GCC internal prototype to avoid an error.
28780 Use char because int might match the return type of a GCC
28781 builtin and then its argument prototype would still apply. */
28782#ifdef __cplusplus
28783extern "C"
28784#endif
28785char DPSInitialize ();
28786int
28787main ()
28788{
28789return DPSInitialize ();
28790 ;
28791 return 0;
28792}
28793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028794if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028795 ac_cv_lib_dps_DPSInitialize=yes
28796else
cristy8b350f62009-11-15 23:12:43 +000028797 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028798fi
cristy8b350f62009-11-15 23:12:43 +000028799rm -f core conftest.err conftest.$ac_objext \
28800 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028801LIBS=$ac_check_lib_save_LIBS
28802fi
cristy8b350f62009-11-15 23:12:43 +000028803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028804$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028805if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028806 have_libdps='yes'
28807else
28808 have_libdps='no'
28809fi
28810
28811 if test "$have_libdps" != 'yes'; then
28812 # Unset cache variable so we can try again.
28813 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028815$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028816if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028817 $as_echo_n "(cached) " >&6
28818else
28819 ac_check_lib_save_LIBS=$LIBS
28820LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028822/* end confdefs.h. */
28823
28824/* Override any GCC internal prototype to avoid an error.
28825 Use char because int might match the return type of a GCC
28826 builtin and then its argument prototype would still apply. */
28827#ifdef __cplusplus
28828extern "C"
28829#endif
28830char DPSInitialize ();
28831int
28832main ()
28833{
28834return DPSInitialize ();
28835 ;
28836 return 0;
28837}
28838_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028839if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028840 ac_cv_lib_dps_DPSInitialize=yes
28841else
cristy8b350f62009-11-15 23:12:43 +000028842 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028843fi
cristy8b350f62009-11-15 23:12:43 +000028844rm -f core conftest.err conftest.$ac_objext \
28845 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028846LIBS=$ac_check_lib_save_LIBS
28847fi
cristy8b350f62009-11-15 23:12:43 +000028848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028849$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028850if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028851 have_libdps='yes'
28852else
28853 have_libdps='no'
28854fi
28855
28856 if test "$have_libdps" = 'yes'; then
28857 LIBDPS_XT='-lXt'
28858 fi
28859 fi
28860 if test "$have_libdps" = 'yes'; then
28861 passed=`expr $passed + 1`
28862 else
28863 failed=`expr $failed + 1`
28864 fi
cristy8b350f62009-11-15 23:12:43 +000028865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028866$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028867if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028868 $as_echo_n "(cached) " >&6
28869else
28870 ac_check_lib_save_LIBS=$LIBS
28871LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028873/* end confdefs.h. */
28874
28875/* Override any GCC internal prototype to avoid an error.
28876 Use char because int might match the return type of a GCC
28877 builtin and then its argument prototype would still apply. */
28878#ifdef __cplusplus
28879extern "C"
28880#endif
28881char XDPSPixelsPerPoint ();
28882int
28883main ()
28884{
28885return XDPSPixelsPerPoint ();
28886 ;
28887 return 0;
28888}
28889_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028890if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028891 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28892else
cristy8b350f62009-11-15 23:12:43 +000028893 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028894fi
cristy8b350f62009-11-15 23:12:43 +000028895rm -f core conftest.err conftest.$ac_objext \
28896 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028897LIBS=$ac_check_lib_save_LIBS
28898fi
cristy8b350f62009-11-15 23:12:43 +000028899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028900$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028901if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028902 passed=`expr $passed + 1`
28903else
28904 failed=`expr $failed + 1`
28905fi
28906
cristy8b350f62009-11-15 23:12:43 +000028907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028908$as_echo_n "checking if DPS package is complete... " >&6; }
28909 if test $passed -gt 0; then
28910 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028911 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28912$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028913 have_dps='no (failed tests)'
28914 CPPFLAGS="$PERSIST_CPPFLAGS"
28915 else
28916 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28917 LIBS="$DPS_LIBS $LIBS"
28918
cristy8b350f62009-11-15 23:12:43 +000028919$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028920
cristy09b53e12011-10-14 12:47:22 +000028921 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28922$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028923 have_dps='yes'
28924 fi
28925 else
cristy09b53e12011-10-14 12:47:22 +000028926 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28927$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028928 CPPFLAGS=$PERSIST_CPPFLAGS
28929 fi
28930fi
cristy73bd4a52010-10-05 11:24:23 +000028931 if test "$have_dps" = 'yes'; then
28932 DPS_DELEGATE_TRUE=
28933 DPS_DELEGATE_FALSE='#'
28934else
28935 DPS_DELEGATE_TRUE='#'
28936 DPS_DELEGATE_FALSE=
28937fi
28938
cristy3ed852e2009-09-05 21:47:34 +000028939
28940
28941
28942#
28943# Check for DJVU delegate library.
28944#
28945
28946# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028947if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028948 withval=$with_djvu; with_djvu=$withval
28949else
28950 with_djvu='yes'
28951fi
28952
28953
28954if test "$with_djvu" != 'yes'; then
28955 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28956fi
28957
28958have_djvu='no'
28959DJVU_LIBS=''
28960if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028961 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28962$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028964$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028965 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28966$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028967 failed=0
28968 passed=0
cristy8b350f62009-11-15 23:12:43 +000028969 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 +000028970if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028971 passed=`expr $passed + 1`
28972else
28973 failed=`expr $failed + 1`
28974fi
28975
28976
cristy8b350f62009-11-15 23:12:43 +000028977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028978$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028979if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028980 $as_echo_n "(cached) " >&6
28981else
28982 ac_check_lib_save_LIBS=$LIBS
28983LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028985/* end confdefs.h. */
28986
28987/* Override any GCC internal prototype to avoid an error.
28988 Use char because int might match the return type of a GCC
28989 builtin and then its argument prototype would still apply. */
28990#ifdef __cplusplus
28991extern "C"
28992#endif
28993char ddjvu_context_create ();
28994int
28995main ()
28996{
28997return ddjvu_context_create ();
28998 ;
28999 return 0;
29000}
29001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029002if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029003 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29004else
cristy8b350f62009-11-15 23:12:43 +000029005 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000029006fi
cristy8b350f62009-11-15 23:12:43 +000029007rm -f core conftest.err conftest.$ac_objext \
29008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029009LIBS=$ac_check_lib_save_LIBS
29010fi
cristy8b350f62009-11-15 23:12:43 +000029011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000029012$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000029013if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029014 passed=`expr $passed + 1`
29015else
29016 failed=`expr $failed + 1`
29017fi
29018
cristy8b350f62009-11-15 23:12:43 +000029019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029020$as_echo_n "checking if DJVU package is complete... " >&6; }
29021 if test $passed -gt 0; then
29022 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029023 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29024$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029025 have_djvu='no (failed tests)'
29026 else
29027 DJVU_LIBS='-ldjvulibre'
29028 LIBS="$DJVU_LIBS $LIBS"
29029
cristy8b350f62009-11-15 23:12:43 +000029030$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029031
cristy09b53e12011-10-14 12:47:22 +000029032 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29033$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029034 have_djvu='yes'
29035 fi
29036 else
cristy09b53e12011-10-14 12:47:22 +000029037 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29038$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029039 fi
29040fi
cristy73bd4a52010-10-05 11:24:23 +000029041 if test "$have_djvu" = 'yes'; then
29042 DJVU_DELEGATE_TRUE=
29043 DJVU_DELEGATE_FALSE='#'
29044else
29045 DJVU_DELEGATE_TRUE='#'
29046 DJVU_DELEGATE_FALSE=
29047fi
29048
cristy3ed852e2009-09-05 21:47:34 +000029049
29050
29051
29052#
cristy430a7312010-01-21 20:44:04 +000029053# Set DejaVu font directory.
29054#
29055
29056# Check whether --with-dejavu-font-dir was given.
29057if test "${with_dejavu_font_dir+set}" = set; then :
29058 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29059else
29060 with_dejavu_font_dir='default'
29061fi
29062
29063
29064if test "$with_dejavu_font_dir" != 'default'; then
29065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29066fi
29067
29068
29069#
cristy3ed852e2009-09-05 21:47:34 +000029070# Check for FFTW delegate library.
29071#
29072
29073# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029074if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029075 withval=$with_fftw; with_fftw=$withval
29076else
29077 with_fftw='yes'
29078fi
29079
29080
29081if test "$with_fftw" != 'yes'; then
29082 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29083fi
29084
cristy81beccd2011-10-03 18:17:24 +000029085have_fftw='no'
29086FFTW_LIBS=''
29087if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029088 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29089$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29091$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029092 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29093$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029094 failed=0
29095 passed=0
29096 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29097if test "x$ac_cv_header_fftw3_h" = xyes; then :
29098 passed=`expr $passed + 1`
29099else
29100 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029101fi
29102
cristy81beccd2011-10-03 18:17:24 +000029103
29104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29105$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29106if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29107 $as_echo_n "(cached) " >&6
29108else
29109 ac_check_lib_save_LIBS=$LIBS
29110LIBS="-lfftw3 $LIBS"
29111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29112/* end confdefs.h. */
29113
29114/* Override any GCC internal prototype to avoid an error.
29115 Use char because int might match the return type of a GCC
29116 builtin and then its argument prototype would still apply. */
29117#ifdef __cplusplus
29118extern "C"
29119#endif
29120char fftw_execute ();
29121int
29122main ()
29123{
29124return fftw_execute ();
29125 ;
29126 return 0;
29127}
29128_ACEOF
29129if ac_fn_c_try_link "$LINENO"; then :
29130 ac_cv_lib_fftw3_fftw_execute=yes
29131else
29132 ac_cv_lib_fftw3_fftw_execute=no
29133fi
29134rm -f core conftest.err conftest.$ac_objext \
29135 conftest$ac_exeext conftest.$ac_ext
29136LIBS=$ac_check_lib_save_LIBS
29137fi
29138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29139$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29140if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29141 passed=`expr $passed + 1`
29142else
29143 failed=`expr $failed + 1`
29144fi
29145
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29147$as_echo_n "checking if FFTW package is complete... " >&6; }
29148 if test $passed -gt 0; then
29149 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029150 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29151$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029152 have_fftw='no (failed tests)'
29153 else
29154 FFTW_LIBS='-lfftw3'
29155 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029156
cristy8b350f62009-11-15 23:12:43 +000029157$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029158
cristy09b53e12011-10-14 12:47:22 +000029159 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29160$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029161 have_fftw='yes'
29162 fi
29163 else
cristy09b53e12011-10-14 12:47:22 +000029164 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29165$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029166 fi
29167fi
cristy73bd4a52010-10-05 11:24:23 +000029168 if test "$have_fftw" = 'yes'; then
29169 FFTW_DELEGATE_TRUE=
29170 FFTW_DELEGATE_FALSE='#'
29171else
29172 FFTW_DELEGATE_TRUE='#'
29173 FFTW_DELEGATE_FALSE=
29174fi
29175
cristy3ed852e2009-09-05 21:47:34 +000029176
29177
29178
29179#
29180# Check for FlashPIX delegate library.
29181#
29182
29183# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029184if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029185 withval=$with_fpx; with_fpx=$withval
29186else
29187 with_fpx='yes'
29188fi
29189
29190
29191if test "$with_fpx" != 'yes'; then
29192 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29193fi
29194
29195have_fpx='no'
29196FPX_LIBS=''
29197if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029198 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29199$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029201$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029202 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29203$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029204 failed=0
29205 passed=0
29206 ac_ext=cpp
29207ac_cpp='$CXXCPP $CPPFLAGS'
29208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29211
29212
cristy8b350f62009-11-15 23:12:43 +000029213ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029214if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029215 passed=`expr $passed + 1`
29216else
29217 failed=`expr $failed + 1`
29218fi
29219
29220
cristy8b350f62009-11-15 23:12:43 +000029221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029222$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029223if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029224 $as_echo_n "(cached) " >&6
29225else
29226 ac_check_lib_save_LIBS=$LIBS
29227LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029229/* end confdefs.h. */
29230
29231/* Override any GCC internal prototype to avoid an error.
29232 Use char because int might match the return type of a GCC
29233 builtin and then its argument prototype would still apply. */
29234#ifdef __cplusplus
29235extern "C"
29236#endif
29237char FPX_OpenImageByFilename ();
29238int
29239main ()
29240{
29241return FPX_OpenImageByFilename ();
29242 ;
29243 return 0;
29244}
29245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029246if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029247 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29248else
cristy8b350f62009-11-15 23:12:43 +000029249 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029250fi
cristy8b350f62009-11-15 23:12:43 +000029251rm -f core conftest.err conftest.$ac_objext \
29252 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029253LIBS=$ac_check_lib_save_LIBS
29254fi
cristy8b350f62009-11-15 23:12:43 +000029255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029256$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029257if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029258 passed=`expr $passed + 1`
29259else
29260 failed=`expr $failed + 1`
29261fi
29262
29263 ac_ext=c
29264ac_cpp='$CPP $CPPFLAGS'
29265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29267ac_compiler_gnu=$ac_cv_c_compiler_gnu
29268
cristy8b350f62009-11-15 23:12:43 +000029269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029270$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29271 if test $passed -gt 0; then
29272 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029273 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29274$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029275 have_fpx='no (failed tests)'
29276 else
29277 FPX_LIBS='-lfpx'
29278
cristy8b350f62009-11-15 23:12:43 +000029279$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029280
cristy09b53e12011-10-14 12:47:22 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29282$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029283 have_fpx='yes'
29284 PERLMAINCC="$CXX"
29285 fi
29286 else
cristy09b53e12011-10-14 12:47:22 +000029287 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29288$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029289 fi
29290fi
cristy73bd4a52010-10-05 11:24:23 +000029291 if test "$have_fpx" = 'yes'; then
29292 FPX_DELEGATE_TRUE=
29293 FPX_DELEGATE_FALSE='#'
29294else
29295 FPX_DELEGATE_TRUE='#'
29296 FPX_DELEGATE_FALSE=
29297fi
29298
cristy3ed852e2009-09-05 21:47:34 +000029299
29300
29301
29302#
29303# Check for fontconfig delegate library.
29304#
29305
29306# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029307if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029308 withval=$with_fontconfig; with_fontconfig=$withval
29309else
cristyfc3d0222012-02-07 15:05:57 +000029310 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029311fi
29312
29313
29314if test "$with_fontconfig" != 'yes'; then
29315 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29316fi
29317
29318have_fontconfig='no'
29319FONTCONFIG_CFLAGS=""
29320FONTCONFIG_LIBS=""
29321FONTCONFIG_PKG=""
29322if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029323 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29324$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029325
29326pkg_failed=no
29327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29328$as_echo_n "checking for FONTCONFIG... " >&6; }
29329
29330if test -n "$FONTCONFIG_CFLAGS"; then
29331 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29332 elif test -n "$PKG_CONFIG"; then
29333 if test -n "$PKG_CONFIG" && \
29334 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29335 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29336 ac_status=$?
29337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29338 test $ac_status = 0; }; then
29339 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29340else
29341 pkg_failed=yes
29342fi
29343 else
29344 pkg_failed=untried
29345fi
29346if test -n "$FONTCONFIG_LIBS"; then
29347 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29348 elif test -n "$PKG_CONFIG"; then
29349 if test -n "$PKG_CONFIG" && \
29350 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29351 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29352 ac_status=$?
29353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29354 test $ac_status = 0; }; then
29355 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29356else
29357 pkg_failed=yes
29358fi
29359 else
29360 pkg_failed=untried
29361fi
29362
29363
29364
29365if test $pkg_failed = yes; then
29366
29367if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29368 _pkg_short_errors_supported=yes
29369else
29370 _pkg_short_errors_supported=no
29371fi
29372 if test $_pkg_short_errors_supported = yes; then
29373 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29374 else
29375 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29376 fi
29377 # Put the nasty error message in config.log where it belongs
29378 echo "$FONTCONFIG_PKG_ERRORS" >&5
29379
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29381$as_echo "no" >&6; }
29382 have_fontconfig=no
29383elif test $pkg_failed = untried; then
29384 have_fontconfig=no
29385else
29386 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29387 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29389$as_echo "yes" >&6; }
29390 have_fontconfig=yes
29391fi
cristy09b53e12011-10-14 12:47:22 +000029392 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29393$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029394fi
29395
29396if test "$have_fontconfig" = 'yes'; then
29397
cristy8b350f62009-11-15 23:12:43 +000029398$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029399
cristyd09bcf92010-03-25 03:04:45 +000029400 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029401 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029402 fi
cristy3ed852e2009-09-05 21:47:34 +000029403fi
29404
cristy73bd4a52010-10-05 11:24:23 +000029405 if test "$have_fontconfig" = 'yes'; then
29406 FONTCONFIG_DELEGATE_TRUE=
29407 FONTCONFIG_DELEGATE_FALSE='#'
29408else
29409 FONTCONFIG_DELEGATE_TRUE='#'
29410 FONTCONFIG_DELEGATE_FALSE=
29411fi
29412
cristy3ed852e2009-09-05 21:47:34 +000029413
29414
29415
29416
29417#
cristy81beccd2011-10-03 18:17:24 +000029418# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029419#
29420
29421# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029422if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029423 withval=$with_freetype; with_freetype=$withval
29424else
29425 with_freetype='yes'
29426fi
29427
29428
cristy81beccd2011-10-03 18:17:24 +000029429
cristy3ed852e2009-09-05 21:47:34 +000029430if test "$with_freetype" != 'yes'; then
29431 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29432fi
29433
cristy81beccd2011-10-03 18:17:24 +000029434have_freetype='no'
29435FREETYPE_LIBS=''
29436if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029437 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29438$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29440$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029441 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29442$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029443 failed=0
29444 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029445 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029446 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029447 freetype_config=''
29448 # Allow the user to specify the location of freetype.
29449 if test "$with_freetype" != 'yes'; then
29450 if test -x "${with_freetype}/bin/freetype-config"; then
29451 freetype_config="${with_freetype}/bin/freetype-config"
29452 elif test -x "${with_freetype}"; then
29453 freetype_config=${with_freetype}
29454 fi
29455 fi
29456 if test -z "$freetype_config"; then
29457 # Extract the first word of "freetype-config", so it can be a program name with args.
29458set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29460$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029461if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029462 $as_echo_n "(cached) " >&6
29463else
cristy98ca0f52011-10-08 23:19:10 +000029464 case $freetype_config in
29465 [\\/]* | ?:[\\/]*)
29466 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29467 ;;
29468 *)
29469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029470for as_dir in $PATH
29471do
29472 IFS=$as_save_IFS
29473 test -z "$as_dir" && as_dir=.
29474 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029476 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29478 break 2
29479 fi
29480done
29481 done
29482IFS=$as_save_IFS
29483
cristy98ca0f52011-10-08 23:19:10 +000029484 ;;
29485esac
cristy81beccd2011-10-03 18:17:24 +000029486fi
cristy98ca0f52011-10-08 23:19:10 +000029487freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029488if test -n "$freetype_config"; then
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29490$as_echo "$freetype_config" >&6; }
29491else
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29493$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029494fi
29495
cristy98ca0f52011-10-08 23:19:10 +000029496 fi
29497 if test -n "$freetype_config"; then
29498 freetype_prefix=`${freetype_config} --prefix`
29499 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29500 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29501 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029502 fi
29503
29504 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029506$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29507if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29508 $as_echo_n "(cached) " >&6
29509else
29510 ac_check_lib_save_LIBS=$LIBS
29511LIBS="-lfreetype $LIBS"
29512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29513/* end confdefs.h. */
29514
29515/* Override any GCC internal prototype to avoid an error.
29516 Use char because int might match the return type of a GCC
29517 builtin and then its argument prototype would still apply. */
29518#ifdef __cplusplus
29519extern "C"
29520#endif
29521char FT_Init_FreeType ();
29522int
29523main ()
29524{
29525return FT_Init_FreeType ();
29526 ;
29527 return 0;
29528}
29529_ACEOF
29530if ac_fn_c_try_link "$LINENO"; then :
29531 ac_cv_lib_freetype_FT_Init_FreeType=yes
29532else
29533 ac_cv_lib_freetype_FT_Init_FreeType=no
29534fi
29535rm -f core conftest.err conftest.$ac_objext \
29536 conftest$ac_exeext conftest.$ac_ext
29537LIBS=$ac_check_lib_save_LIBS
29538fi
29539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29540$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29541if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29542 FREETYPE_LIBS='-lfreetype'
29543fi
29544
cristy98ca0f52011-10-08 23:19:10 +000029545 if test "$FREETYPE_LIBS" != ''; then
29546 passed=`expr $passed + 1`
29547 else
29548 failed=`expr $failed + 1`
29549 LDFLAGS="$PERSIST_LDFLAGS"
29550 fi
cristy81beccd2011-10-03 18:17:24 +000029551 fi
29552
29553 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29554if test "x$ac_cv_header_ft2build_h" = xyes; then :
29555 FT2BUILD_H='#include <ft2build.h>'
29556else
29557 ft2build=''
29558fi
29559
29560
29561 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29562"
29563if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29564 have_freetype_h='yes'
29565else
29566 have_freetype_h='no'
29567fi
29568
29569
cristy98ca0f52011-10-08 23:19:10 +000029570 if test "$have_freetype_h" = 'yes'; then
29571 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029572 else
cristy98ca0f52011-10-08 23:19:10 +000029573 failed=`expr $failed + 1`
29574 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029575 fi
29576
29577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29578$as_echo_n "checking if FreeType package is complete... " >&6; }
29579 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029580 if test $failed -gt 0; then
29581 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029582 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29583$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029584 have_freetype='no (failed tests)'
29585 else
29586 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029587
cristy8b350f62009-11-15 23:12:43 +000029588$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029589
cristy98ca0f52011-10-08 23:19:10 +000029590 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029591
29592$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29593
cristy81beccd2011-10-03 18:17:24 +000029594 fi
cristy09b53e12011-10-14 12:47:22 +000029595 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29596$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029597 have_freetype='yes'
29598 fi
cristy81beccd2011-10-03 18:17:24 +000029599 else
cristy09b53e12011-10-14 12:47:22 +000029600 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29601$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029602 fi
29603fi
cristy73bd4a52010-10-05 11:24:23 +000029604 if test "$have_freetype" = 'yes'; then
29605 FREETYPE_DELEGATE_TRUE=
29606 FREETYPE_DELEGATE_FALSE='#'
29607else
29608 FREETYPE_DELEGATE_TRUE='#'
29609 FREETYPE_DELEGATE_FALSE=
29610fi
29611
cristy3ed852e2009-09-05 21:47:34 +000029612
29613
29614
cristy3ed852e2009-09-05 21:47:34 +000029615#
29616# Check for Ghostscript library or framework.
29617#
29618# Test for iapi.h & test for gsapi_new_instance in -lgs
29619# or -framework Ghostscript
29620
29621
29622# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029623if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029624 withval=$with_gslib; with_gslib=$withval
29625else
29626 with_gslib='no'
29627fi
29628
29629
cristyb7931f12009-09-25 10:22:21 +000029630gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029631if test "$with_gslib" != 'yes'; then
29632 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29633fi
29634
29635have_gslib='no'
29636GS_LIBS=''
29637if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029638 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29639$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029641$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029642 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29643$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029644 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029645 failed=0
29646 passed=0
cristy8b350f62009-11-15 23:12:43 +000029647 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 +000029648if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029649 passed=`expr $passed + 1`
29650else
29651 failed=`expr $failed + 1`
29652fi
29653
29654
cristy8b350f62009-11-15 23:12:43 +000029655 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 +000029656if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029657 passed=`expr $passed + 1`
29658else
29659 failed=`expr $failed + 1`
29660fi
29661
29662
cristy73bd4a52010-10-05 11:24:23 +000029663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29664$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029665if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029666 $as_echo_n "(cached) " >&6
29667else
29668 ac_check_framework_save_LIBS=$LIBS
29669LIBS="-framework Ghostscript $LIBS"
29670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29671/* end confdefs.h. */
29672
29673/* Override any GCC internal prototype to avoid an error.
29674 Use char because int might match the return type of a GCC
29675 builtin and then its argument prototype would still apply. */
29676#ifdef __cplusplus
29677extern "C"
29678#endif
29679char gsapi_new_instance ();
29680int
29681main ()
29682{
29683return gsapi_new_instance ();
29684 ;
29685 return 0;
29686}
29687_ACEOF
29688if ac_fn_c_try_link "$LINENO"; then :
29689 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29690else
29691 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29692fi
29693rm -f core conftest.err conftest.$ac_objext \
29694 conftest$ac_exeext conftest.$ac_ext
29695LIBS=$ac_check_framework_save_LIBS
29696fi
29697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29698$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29699if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29700 framework=`expr $framework + 1`
29701else
29702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029703$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029704if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029705 $as_echo_n "(cached) " >&6
29706else
29707 ac_check_lib_save_LIBS=$LIBS
29708LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029710/* end confdefs.h. */
29711
29712/* Override any GCC internal prototype to avoid an error.
29713 Use char because int might match the return type of a GCC
29714 builtin and then its argument prototype would still apply. */
29715#ifdef __cplusplus
29716extern "C"
29717#endif
29718char gsapi_new_instance ();
29719int
29720main ()
29721{
29722return gsapi_new_instance ();
29723 ;
29724 return 0;
29725}
29726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029727if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029728 ac_cv_lib_gs_gsapi_new_instance=yes
29729else
cristy8b350f62009-11-15 23:12:43 +000029730 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029731fi
cristy8b350f62009-11-15 23:12:43 +000029732rm -f core conftest.err conftest.$ac_objext \
29733 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029734LIBS=$ac_check_lib_save_LIBS
29735fi
cristy8b350f62009-11-15 23:12:43 +000029736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029737$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029738if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029739 passed=`expr $passed + 1`
29740else
29741 failed=`expr $failed + 1`
29742fi
cristy73bd4a52010-10-05 11:24:23 +000029743
29744fi
cristy8b350f62009-11-15 23:12:43 +000029745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029746$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29747 if test $passed -gt 0; then
29748 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029749 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29750$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029751 have_gslib='no (failed tests)'
29752 else
29753 if test $framework -gt 0; then
29754 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029755 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029756 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29757$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029758 else
cristy09b53e12011-10-14 12:47:22 +000029759 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29760$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029761 GS_LIBS='-lgs'
29762 fi
29763 LIBS="$GS_LIBS $LIBS"
29764
cristy8b350f62009-11-15 23:12:43 +000029765$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029766
29767 have_gslib='yes'
29768 fi
29769 else
cristy09b53e12011-10-14 12:47:22 +000029770 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29771$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029772 fi
29773fi
cristy73bd4a52010-10-05 11:24:23 +000029774 if test "$have_gslib" = 'yes'; then
29775 GS_DELEGATE_TRUE=
29776 GS_DELEGATE_FALSE='#'
29777else
29778 GS_DELEGATE_TRUE='#'
29779 GS_DELEGATE_FALSE=
29780fi
29781
cristy3ed852e2009-09-05 21:47:34 +000029782
29783
29784# Set default font search path
29785
29786# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029787if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029788 withval=$with_fontpath; with_fontpath=$withval
29789else
29790 with_fontpath=''
29791fi
29792
29793
29794if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29795 with_fontpath=''
29796else
29797
29798cat >>confdefs.h <<_ACEOF
29799#define MAGICK_FONT_PATH "$with_fontpath"
29800_ACEOF
29801
29802fi
29803if test "$with_fontpath=" != ''; then
29804 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29805fi
29806
29807# Set Ghostscript font directory
29808
29809# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029810if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029811 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29812else
29813 with_gs_font_dir='default'
29814fi
29815
29816
29817if test "$with_gs_font_dir" != 'default'; then
29818 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29819fi
29820
29821
29822#
29823# Check for GVC delegate library.
29824#
29825
29826# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029827if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029828 withval=$with_gvc; with_gvc=$withval
29829else
cristy1b70dc82012-07-01 23:15:05 +000029830 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029831fi
29832
29833
29834if test "$with_gvc" != 'yes'; then
29835 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29836fi
29837
29838GVC_PKG=""
29839if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029840 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29841$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029842
29843pkg_failed=no
29844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29845$as_echo_n "checking for GVC... " >&6; }
29846
29847if test -n "$GVC_CFLAGS"; then
29848 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29849 elif test -n "$PKG_CONFIG"; then
29850 if test -n "$PKG_CONFIG" && \
29851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29852 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29853 ac_status=$?
29854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29855 test $ac_status = 0; }; then
29856 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29857else
29858 pkg_failed=yes
29859fi
29860 else
29861 pkg_failed=untried
29862fi
29863if test -n "$GVC_LIBS"; then
29864 pkg_cv_GVC_LIBS="$GVC_LIBS"
29865 elif test -n "$PKG_CONFIG"; then
29866 if test -n "$PKG_CONFIG" && \
29867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29868 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29869 ac_status=$?
29870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29871 test $ac_status = 0; }; then
29872 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29873else
29874 pkg_failed=yes
29875fi
29876 else
29877 pkg_failed=untried
29878fi
29879
29880
29881
29882if test $pkg_failed = yes; then
29883
29884if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29885 _pkg_short_errors_supported=yes
29886else
29887 _pkg_short_errors_supported=no
29888fi
29889 if test $_pkg_short_errors_supported = yes; then
29890 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29891 else
29892 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29893 fi
29894 # Put the nasty error message in config.log where it belongs
29895 echo "$GVC_PKG_ERRORS" >&5
29896
29897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29898$as_echo "no" >&6; }
29899 have_gvc=no
29900elif test $pkg_failed = untried; then
29901 have_gvc=no
29902else
29903 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29904 GVC_LIBS=$pkg_cv_GVC_LIBS
29905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29906$as_echo "yes" >&6; }
29907 have_gvc=yes
29908fi
cristy09b53e12011-10-14 12:47:22 +000029909 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29910$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029911fi
29912
29913if test "$have_gvc" = 'yes'; then
29914
cristy8b350f62009-11-15 23:12:43 +000029915$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029916
29917 if test "$with_modules" = 'no'; then
29918 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29919 fi
29920fi
29921
cristy73bd4a52010-10-05 11:24:23 +000029922 if test "$have_gvc" = 'yes'; then
29923 GVC_DELEGATE_TRUE=
29924 GVC_DELEGATE_FALSE='#'
29925else
29926 GVC_DELEGATE_TRUE='#'
29927 GVC_DELEGATE_FALSE=
29928fi
29929
cristy3ed852e2009-09-05 21:47:34 +000029930
29931
29932
29933
29934#
29935# Check for JBIG delegate library.
29936#
29937
29938
29939# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029940if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029941 withval=$with_jbig; with_jbig=$withval
29942else
29943 with_jbig='yes'
29944fi
29945
29946
29947have_jbig='no'
29948JBIG_LIBS=''
29949if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029950 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29951$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029953$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029954 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29955$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029956 failed=0
29957 passed=0
cristy8b350f62009-11-15 23:12:43 +000029958 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029959if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029960 passed=`expr $passed + 1`
29961else
29962 failed=`expr $failed + 1`
29963fi
29964
29965
cristy8b350f62009-11-15 23:12:43 +000029966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029967$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029968if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029969 $as_echo_n "(cached) " >&6
29970else
29971 ac_check_lib_save_LIBS=$LIBS
29972LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029974/* end confdefs.h. */
29975
29976/* Override any GCC internal prototype to avoid an error.
29977 Use char because int might match the return type of a GCC
29978 builtin and then its argument prototype would still apply. */
29979#ifdef __cplusplus
29980extern "C"
29981#endif
29982char jbg_dec_init ();
29983int
29984main ()
29985{
29986return jbg_dec_init ();
29987 ;
29988 return 0;
29989}
29990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029991if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029992 ac_cv_lib_jbig_jbg_dec_init=yes
29993else
cristy8b350f62009-11-15 23:12:43 +000029994 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029995fi
cristy8b350f62009-11-15 23:12:43 +000029996rm -f core conftest.err conftest.$ac_objext \
29997 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029998LIBS=$ac_check_lib_save_LIBS
29999fi
cristy8b350f62009-11-15 23:12:43 +000030000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030001$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030002if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030003 passed=`expr $passed + 1`
30004else
30005 failed=`expr $failed + 1`
30006fi
30007
cristy8b350f62009-11-15 23:12:43 +000030008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030009$as_echo_n "checking if JBIG package is complete... " >&6; }
30010 if test $passed -gt 0; then
30011 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030012 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30013$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030014 have_jbig='no (failed tests)'
30015 else
30016 JBIG_LIBS='-ljbig'
30017 LIBS="$JBIG_LIBS $LIBS"
30018
cristy8b350f62009-11-15 23:12:43 +000030019$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030020
cristy09b53e12011-10-14 12:47:22 +000030021 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30022$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030023 have_jbig='yes'
30024 fi
30025 else
cristy09b53e12011-10-14 12:47:22 +000030026 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30027$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030028 fi
30029fi
cristy73bd4a52010-10-05 11:24:23 +000030030 if test "$have_jbig" = 'yes'; then
30031 JBIG_DELEGATE_TRUE=
30032 JBIG_DELEGATE_FALSE='#'
30033else
30034 JBIG_DELEGATE_TRUE='#'
30035 JBIG_DELEGATE_FALSE=
30036fi
30037
cristy3ed852e2009-09-05 21:47:34 +000030038
30039
30040
30041#
30042# Check for JPEG delegate library.
30043#
30044
30045# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030046if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030047 withval=$with_jpeg; with_jpeg=$withval
30048else
30049 with_jpeg='yes'
30050fi
30051
30052
30053if test "$with_jpeg" != 'yes'; then
30054 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30055fi
30056
30057have_jpeg='no'
30058JPEG_LIBS=''
30059if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30061$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030063$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030064 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30065$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030066 failed=0
30067 passed=0
cristy8b350f62009-11-15 23:12:43 +000030068 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030069if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030070 passed=`expr $passed + 1`
30071else
30072 failed=`expr $failed + 1`
30073fi
30074
30075
cristy8b350f62009-11-15 23:12:43 +000030076 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030077if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030078 passed=`expr $passed + 1`
30079else
30080 failed=`expr $failed + 1`
30081fi
30082
30083
cristy8b350f62009-11-15 23:12:43 +000030084 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030085if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030086 passed=`expr $passed + 1`
30087else
30088 failed=`expr $failed + 1`
30089fi
30090
30091
cristy8b350f62009-11-15 23:12:43 +000030092 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030093if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030094 passed=`expr $passed + 1`
30095else
30096 failed=`expr $failed + 1`
30097fi
30098
30099
cristy8b350f62009-11-15 23:12:43 +000030100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030101$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030102if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030103 $as_echo_n "(cached) " >&6
30104else
30105 ac_check_lib_save_LIBS=$LIBS
30106LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030108/* end confdefs.h. */
30109
30110/* Override any GCC internal prototype to avoid an error.
30111 Use char because int might match the return type of a GCC
30112 builtin and then its argument prototype would still apply. */
30113#ifdef __cplusplus
30114extern "C"
30115#endif
30116char jpeg_read_header ();
30117int
30118main ()
30119{
30120return jpeg_read_header ();
30121 ;
30122 return 0;
30123}
30124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030125if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030126 ac_cv_lib_jpeg_jpeg_read_header=yes
30127else
cristy8b350f62009-11-15 23:12:43 +000030128 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030129fi
cristy8b350f62009-11-15 23:12:43 +000030130rm -f core conftest.err conftest.$ac_objext \
30131 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030132LIBS=$ac_check_lib_save_LIBS
30133fi
cristy8b350f62009-11-15 23:12:43 +000030134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030135$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030136if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030137 passed=`expr $passed + 1`
30138else
30139 failed=`expr $failed + 1`
30140fi
30141
30142
30143# Test for compatible JPEG library
30144if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030146$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030147if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030148 $as_echo_n "(cached) " >&6
30149else
cristy8b350f62009-11-15 23:12:43 +000030150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030151/* end confdefs.h. */
30152#include <stdio.h>
30153#include <stdlib.h>
30154#include <jpeglib.h>
30155
30156int
30157main ()
30158{
30159
30160#if JPEG_LIB_VERSION < 62
30161#error IJG JPEG library must be version 6b or newer!
30162#endif
30163return 0;
30164
30165 ;
30166 return 0;
30167}
30168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030169if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030170 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30171else
cristy8b350f62009-11-15 23:12:43 +000030172 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030173fi
cristy3ed852e2009-09-05 21:47:34 +000030174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30175fi
cristy8b350f62009-11-15 23:12:43 +000030176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030177$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30178fi
cristy8b350f62009-11-15 23:12:43 +000030179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030180$as_echo_n "checking if JPEG package is complete... " >&6; }
30181 if test $passed -gt 0; then
30182 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030183 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30184$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030185 have_jpeg='no (failed tests)'
30186 else
30187 JPEG_LIBS='-ljpeg'
30188 LIBS="$JPEG_LIBS $LIBS"
30189
cristy8b350f62009-11-15 23:12:43 +000030190$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030191
cristy09b53e12011-10-14 12:47:22 +000030192 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30193$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030194 have_jpeg='yes'
30195 fi
30196 else
cristy09b53e12011-10-14 12:47:22 +000030197 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30198$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030199 fi
30200fi
cristy73bd4a52010-10-05 11:24:23 +000030201 if test "$have_jpeg" = 'yes'; then
30202 JPEG_DELEGATE_TRUE=
30203 JPEG_DELEGATE_FALSE='#'
30204else
30205 JPEG_DELEGATE_TRUE='#'
30206 JPEG_DELEGATE_FALSE=
30207fi
30208
cristy3ed852e2009-09-05 21:47:34 +000030209
30210
30211
30212#
30213# Check for JPEG Version 2 delegate library.
30214#
30215
30216# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030217if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030218 withval=$with_jp2; with_jp2=$withval
30219else
30220 with_jp2='yes'
30221fi
30222
30223
30224if test "$with_jp2" != 'yes'; then
30225 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30226fi
30227
30228have_jp2='no'
30229JP2_LIBS=''
30230if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030231 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30232$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030234$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030235 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30236$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030237 failed=0
30238 passed=0
cristy8b350f62009-11-15 23:12:43 +000030239 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 +000030240if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030241 passed=`expr $passed + 1`
30242else
30243 failed=`expr $failed + 1`
30244fi
30245
30246
cristy8b350f62009-11-15 23:12:43 +000030247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030248$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030249if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030250 $as_echo_n "(cached) " >&6
30251else
30252 ac_check_lib_save_LIBS=$LIBS
30253LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030255/* end confdefs.h. */
30256
30257/* Override any GCC internal prototype to avoid an error.
30258 Use char because int might match the return type of a GCC
30259 builtin and then its argument prototype would still apply. */
30260#ifdef __cplusplus
30261extern "C"
30262#endif
30263char jas_stream_fopen ();
30264int
30265main ()
30266{
30267return jas_stream_fopen ();
30268 ;
30269 return 0;
30270}
30271_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030272if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030273 ac_cv_lib_jasper_jas_stream_fopen=yes
30274else
cristy8b350f62009-11-15 23:12:43 +000030275 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030276fi
cristy8b350f62009-11-15 23:12:43 +000030277rm -f core conftest.err conftest.$ac_objext \
30278 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030279LIBS=$ac_check_lib_save_LIBS
30280fi
cristy8b350f62009-11-15 23:12:43 +000030281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030282$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030283if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030284 passed=`expr $passed + 1`
30285else
30286 failed=`expr $failed + 1`
30287fi
30288
cristy8b350f62009-11-15 23:12:43 +000030289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030290$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30291 if test $passed -gt 0; then
30292 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030293 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30294$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030295 have_jp2='no (failed tests)'
30296 else
30297 JP2_LIBS='-ljasper'
30298 LIBS="$JP2_LIBS $LIBS"
30299
cristy8b350f62009-11-15 23:12:43 +000030300$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030301
cristy09b53e12011-10-14 12:47:22 +000030302 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30303$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030304 have_jp2='yes'
30305 fi
30306 else
cristy09b53e12011-10-14 12:47:22 +000030307 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30308$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030309 fi
30310fi
cristy73bd4a52010-10-05 11:24:23 +000030311 if test "$have_jp2" = 'yes'; then
30312 JP2_DELEGATE_TRUE=
30313 JP2_DELEGATE_FALSE='#'
30314else
30315 JP2_DELEGATE_TRUE='#'
30316 JP2_DELEGATE_FALSE=
30317fi
30318
cristy3ed852e2009-09-05 21:47:34 +000030319
30320
30321
30322#
30323# Check for LCMS delegate library.
30324#
cristy71203402010-06-18 13:12:03 +000030325# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030326
30327# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030328if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030329 withval=$with_lcms; with_lcms=$withval
30330else
30331 with_lcms='yes'
30332fi
30333
cristy71203402010-06-18 13:12:03 +000030334if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030335 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30336fi
30337
cristy71203402010-06-18 13:12:03 +000030338# Disable LCMS2.
30339
30340# Check whether --with-lcms2 was given.
30341if test "${with_lcms2+set}" = set; then :
30342 withval=$with_lcms2; with_lcms2=$withval
30343else
30344 with_lcms2='yes'
30345fi
30346
30347if test "$with_lcms2" != 'yes' ; then
30348 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30349fi
30350
30351have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030352LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030353if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030354 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30355$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30357$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030358 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30359$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030360 failed=0
30361 passed=0
30362 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030363
30364 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030365 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030366if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030367 have_lcms_header='yes'
30368fi
30369
30370
30371 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030372
30373$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30374
cristy71203402010-06-18 13:12:03 +000030375 passed=`expr $passed + 1`
30376 fi
30377
30378 # Check for <lcms2/lcms2.h)
30379 if test "$have_lcms_header" != 'yes'; then
30380 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 +000030381if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030382 have_lcms_header='yes'
30383fi
30384
30385
cristy71203402010-06-18 13:12:03 +000030386 if test "$have_lcms_header" = 'yes'; then
30387 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030388
cristy71203402010-06-18 13:12:03 +000030389$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030390
cristy71203402010-06-18 13:12:03 +000030391 fi
cristyd09bcf92010-03-25 03:04:45 +000030392 fi
cristy71203402010-06-18 13:12:03 +000030393
30394 # Failed to find lcms header?
30395 if test "$have_lcms_header" != 'yes'; then
30396 failed=`expr $failed + 1`
30397 fi
30398
30399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30400$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030401if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030402 $as_echo_n "(cached) " >&6
30403else
30404 ac_check_lib_save_LIBS=$LIBS
30405LIBS="-llcms2 $LIBS"
30406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30407/* end confdefs.h. */
30408
30409/* Override any GCC internal prototype to avoid an error.
30410 Use char because int might match the return type of a GCC
30411 builtin and then its argument prototype would still apply. */
30412#ifdef __cplusplus
30413extern "C"
30414#endif
cristy71203402010-06-18 13:12:03 +000030415char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030416int
30417main ()
30418{
cristy71203402010-06-18 13:12:03 +000030419return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030420 ;
30421 return 0;
30422}
30423_ACEOF
30424if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030425 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030426else
cristy71203402010-06-18 13:12:03 +000030427 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030428fi
30429rm -f core conftest.err conftest.$ac_objext \
30430 conftest$ac_exeext conftest.$ac_ext
30431LIBS=$ac_check_lib_save_LIBS
30432fi
cristy71203402010-06-18 13:12:03 +000030433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30434$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030435if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030436 passed=`expr $passed + 1`
30437else
30438 failed=`expr $failed + 1`
30439fi
30440
cristy71203402010-06-18 13:12:03 +000030441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30442$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030443 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030444 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030445 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30446$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030447 have_lcms2='no (failed tests)'
30448 else
30449 LCMS_LIBS='-llcms2'
30450 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030451 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30452$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030453 have_lcms2='yes'
30454 fi
cristyd09bcf92010-03-25 03:04:45 +000030455 else
cristy09b53e12011-10-14 12:47:22 +000030456 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30457$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030458 fi
30459fi
30460
cristy71203402010-06-18 13:12:03 +000030461#
30462# Check for LCMS v1 (1.11 or later)
30463#
30464if test $have_lcms2 = 'yes'; then
30465 with_lcms='no'
30466fi
30467
30468have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030469if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030470 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30471$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30473$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030474 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30475$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030476 failed=0
30477 passed=0
30478 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030479
30480 # Check for <lcms.h>
30481 if test "$have_lcms_header" != 'yes'; then
30482 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030483if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030484 have_lcms_header='yes'
30485fi
30486
30487
cristy71203402010-06-18 13:12:03 +000030488 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030489 passed=`expr $passed + 1`
30490
cristy8b350f62009-11-15 23:12:43 +000030491$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030492
cristy71203402010-06-18 13:12:03 +000030493 fi
30494 fi
30495
30496 # Check for <lcms/lcms.h>
30497 if test "$have_lcms_header" != 'yes'; then
30498 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 +000030499if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030500 have_lcms_header='yes'
30501fi
30502
30503
cristy71203402010-06-18 13:12:03 +000030504 if test "$have_lcms_header" = 'yes'; then
30505 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030506
cristy8b350f62009-11-15 23:12:43 +000030507$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030508
cristy71203402010-06-18 13:12:03 +000030509 fi
cristy3ed852e2009-09-05 21:47:34 +000030510 fi
cristy71203402010-06-18 13:12:03 +000030511
30512 # Failed to find lcms header?
30513 if test "$have_lcms_header" != 'yes'; then
30514 failed=`expr $failed + 1`
30515 fi
30516
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30518$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030519if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030520 $as_echo_n "(cached) " >&6
30521else
30522 ac_check_lib_save_LIBS=$LIBS
30523LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030525/* end confdefs.h. */
30526
30527/* Override any GCC internal prototype to avoid an error.
30528 Use char because int might match the return type of a GCC
30529 builtin and then its argument prototype would still apply. */
30530#ifdef __cplusplus
30531extern "C"
30532#endif
cristy71203402010-06-18 13:12:03 +000030533char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030534int
30535main ()
30536{
cristy71203402010-06-18 13:12:03 +000030537return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030538 ;
30539 return 0;
30540}
30541_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030542if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030543 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030544else
cristy71203402010-06-18 13:12:03 +000030545 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030546fi
cristy8b350f62009-11-15 23:12:43 +000030547rm -f core conftest.err conftest.$ac_objext \
30548 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030549LIBS=$ac_check_lib_save_LIBS
30550fi
cristy71203402010-06-18 13:12:03 +000030551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30552$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030553if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030554 passed=`expr $passed + 1`
30555else
30556 failed=`expr $failed + 1`
30557fi
30558
cristy8b350f62009-11-15 23:12:43 +000030559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030560$as_echo_n "checking if LCMS package is complete... " >&6; }
30561 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030562 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030563 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30564$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030565 have_lcms='no (failed tests)'
30566 else
30567 LCMS_LIBS='-llcms'
30568 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030569 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30570$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030571 have_lcms='yes'
30572 fi
cristy3ed852e2009-09-05 21:47:34 +000030573 else
cristy09b53e12011-10-14 12:47:22 +000030574 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30575$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030576 fi
30577fi
cristy71203402010-06-18 13:12:03 +000030578
cristy73bd4a52010-10-05 11:24:23 +000030579 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30580 LCMS_DELEGATE_TRUE=
30581 LCMS_DELEGATE_FALSE='#'
30582else
30583 LCMS_DELEGATE_TRUE='#'
30584 LCMS_DELEGATE_FALSE=
30585fi
30586
cristy71203402010-06-18 13:12:03 +000030587if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30588
30589$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30590
30591fi
30592
cristy3ed852e2009-09-05 21:47:34 +000030593
30594
30595
30596#
30597# Check for the LQR (Liquid Rescale) delegate library.
30598#
30599
30600# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030601if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030602 withval=$with_lqr; with_lqr=$withval
30603else
30604 with_lqr='yes'
30605fi
30606
30607
30608if test "$with_lqr" != 'yes'; then
30609 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30610fi
30611
30612have_lqr='no'
30613LQR_CFLAGS=""
30614LQR_LIBS=""
30615LQR_PKG=""
30616if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030617 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30618$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030619
30620pkg_failed=no
30621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30622$as_echo_n "checking for LQR... " >&6; }
30623
30624if test -n "$LQR_CFLAGS"; then
30625 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30626 elif test -n "$PKG_CONFIG"; then
30627 if test -n "$PKG_CONFIG" && \
30628 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30629 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30630 ac_status=$?
30631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30632 test $ac_status = 0; }; then
30633 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30634else
30635 pkg_failed=yes
30636fi
30637 else
30638 pkg_failed=untried
30639fi
30640if test -n "$LQR_LIBS"; then
30641 pkg_cv_LQR_LIBS="$LQR_LIBS"
30642 elif test -n "$PKG_CONFIG"; then
30643 if test -n "$PKG_CONFIG" && \
30644 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30645 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30646 ac_status=$?
30647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30648 test $ac_status = 0; }; then
30649 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30650else
30651 pkg_failed=yes
30652fi
30653 else
30654 pkg_failed=untried
30655fi
30656
30657
30658
30659if test $pkg_failed = yes; then
30660
30661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30662 _pkg_short_errors_supported=yes
30663else
30664 _pkg_short_errors_supported=no
30665fi
30666 if test $_pkg_short_errors_supported = yes; then
30667 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30668 else
30669 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30670 fi
30671 # Put the nasty error message in config.log where it belongs
30672 echo "$LQR_PKG_ERRORS" >&5
30673
30674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30675$as_echo "no" >&6; }
30676 have_lqr=no
30677elif test $pkg_failed = untried; then
30678 have_lqr=no
30679else
30680 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30681 LQR_LIBS=$pkg_cv_LQR_LIBS
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30683$as_echo "yes" >&6; }
30684 have_lqr=yes
30685fi
cristy09b53e12011-10-14 12:47:22 +000030686 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30687$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030688fi
30689
30690if test "$have_lqr" = 'yes'; then
30691
cristy8b350f62009-11-15 23:12:43 +000030692$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030693
30694 CFLAGS="$LQR_CFLAGS $CFLAGS"
30695fi
30696
cristy73bd4a52010-10-05 11:24:23 +000030697 if test "$have_lqr" = 'yes'; then
30698 LQR_DELEGATE_TRUE=
30699 LQR_DELEGATE_FALSE='#'
30700else
30701 LQR_DELEGATE_TRUE='#'
30702 LQR_DELEGATE_FALSE=
30703fi
30704
cristy3ed852e2009-09-05 21:47:34 +000030705
30706
30707
30708
cristy81beccd2011-10-03 18:17:24 +000030709# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030710
30711# Check whether --with-lzma was given.
30712if test "${with_lzma+set}" = set; then :
30713 withval=$with_lzma; with_lzma=$withval
30714else
30715 with_lzma='yes'
30716fi
30717
cristy81beccd2011-10-03 18:17:24 +000030718if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030719 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30720fi
30721
cristyb94e5002011-11-14 13:20:10 +000030722LZMA_PKG=""
30723if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030724 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30725$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030726
30727pkg_failed=no
30728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030729$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030730
30731if test -n "$LZMA_CFLAGS"; then
30732 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30733 elif test -n "$PKG_CONFIG"; then
30734 if test -n "$PKG_CONFIG" && \
30735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30736 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30737 ac_status=$?
30738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30739 test $ac_status = 0; }; then
30740 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30741else
30742 pkg_failed=yes
30743fi
30744 else
30745 pkg_failed=untried
30746fi
30747if test -n "$LZMA_LIBS"; then
30748 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30749 elif test -n "$PKG_CONFIG"; then
30750 if test -n "$PKG_CONFIG" && \
30751 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30752 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30753 ac_status=$?
30754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30755 test $ac_status = 0; }; then
30756 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30757else
30758 pkg_failed=yes
30759fi
30760 else
30761 pkg_failed=untried
30762fi
30763
30764
30765
30766if test $pkg_failed = yes; then
30767
30768if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30769 _pkg_short_errors_supported=yes
30770else
30771 _pkg_short_errors_supported=no
30772fi
30773 if test $_pkg_short_errors_supported = yes; then
30774 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30775 else
30776 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30777 fi
30778 # Put the nasty error message in config.log where it belongs
30779 echo "$LZMA_PKG_ERRORS" >&5
30780
30781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30782$as_echo "no" >&6; }
30783 have_lzma=no
30784elif test $pkg_failed = untried; then
30785 have_lzma=no
30786else
30787 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30788 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30790$as_echo "yes" >&6; }
30791 have_lzma=yes
30792fi
30793 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030794$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030795fi
30796
cristyb94e5002011-11-14 13:20:10 +000030797if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030798
30799$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30800
cristyb94e5002011-11-14 13:20:10 +000030801 if test "$with_modules" = 'no'; then
30802 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030803 fi
cristyfbb0ef02010-12-19 02:32:11 +000030804fi
cristyb94e5002011-11-14 13:20:10 +000030805
cristyfbb0ef02010-12-19 02:32:11 +000030806 if test "$have_lzma" = 'yes'; then
30807 LZMA_DELEGATE_TRUE=
30808 LZMA_DELEGATE_FALSE='#'
30809else
30810 LZMA_DELEGATE_TRUE='#'
30811 LZMA_DELEGATE_FALSE=
30812fi
30813
30814
30815
30816
cristyb94e5002011-11-14 13:20:10 +000030817
cristy3ed852e2009-09-05 21:47:34 +000030818#
30819# Check for the OpenEXR delegate library.
30820#
30821
30822# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030823if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030824 withval=$with_openexr; with_openexr=$withval
30825else
30826 with_openexr='yes'
30827fi
30828
30829
30830if test "$with_openexr" != 'yes'; then
30831 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30832fi
30833
30834have_openexr='no'
30835OPENEXR_CFLAGS=""
30836OPENEXR_LIBS=""
30837OPENEXR_PKG=""
30838if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030839 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30840$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030841
30842pkg_failed=no
30843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30844$as_echo_n "checking for OPENEXR... " >&6; }
30845
30846if test -n "$OPENEXR_CFLAGS"; then
30847 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30848 elif test -n "$PKG_CONFIG"; then
30849 if test -n "$PKG_CONFIG" && \
30850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30851 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30852 ac_status=$?
30853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30854 test $ac_status = 0; }; then
30855 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30856else
30857 pkg_failed=yes
30858fi
30859 else
30860 pkg_failed=untried
30861fi
30862if test -n "$OPENEXR_LIBS"; then
30863 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30864 elif test -n "$PKG_CONFIG"; then
30865 if test -n "$PKG_CONFIG" && \
30866 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30867 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30868 ac_status=$?
30869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30870 test $ac_status = 0; }; then
30871 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30872else
30873 pkg_failed=yes
30874fi
30875 else
30876 pkg_failed=untried
30877fi
30878
30879
30880
30881if test $pkg_failed = yes; then
30882
30883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30884 _pkg_short_errors_supported=yes
30885else
30886 _pkg_short_errors_supported=no
30887fi
30888 if test $_pkg_short_errors_supported = yes; then
30889 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30890 else
30891 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30892 fi
30893 # Put the nasty error message in config.log where it belongs
30894 echo "$OPENEXR_PKG_ERRORS" >&5
30895
30896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30897$as_echo "no" >&6; }
30898 have_openexr=no
30899elif test $pkg_failed = untried; then
30900 have_openexr=no
30901else
30902 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30903 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30905$as_echo "yes" >&6; }
30906 have_openexr=yes
30907fi
cristy09b53e12011-10-14 12:47:22 +000030908 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30909$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030910fi
30911
30912if test "$have_openexr" = 'yes'; then
30913
cristy8b350f62009-11-15 23:12:43 +000030914$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030915
30916 if test "$with_modules" = 'no'; then
30917 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30918 fi
30919fi
30920
cristy73bd4a52010-10-05 11:24:23 +000030921 if test "$have_openexr" = 'yes'; then
30922 OPENEXR_DELEGATE_TRUE=
30923 OPENEXR_DELEGATE_FALSE='#'
30924else
30925 OPENEXR_DELEGATE_TRUE='#'
30926 OPENEXR_DELEGATE_FALSE=
30927fi
30928
cristy3ed852e2009-09-05 21:47:34 +000030929
30930
30931
30932
30933#
cristy41cbe8a2011-10-27 01:35:18 +000030934# Check for PANGO delegate library.
30935#
30936
30937# Check whether --with-pango was given.
30938if test "${with_pango+set}" = set; then :
30939 withval=$with_pango; with_pango=$withval
30940else
cristyfc3d0222012-02-07 15:05:57 +000030941 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030942fi
30943
30944
30945if test "$with_pango" != 'yes'; then
30946 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30947fi
30948
30949have_pango='no'
cristya054b762012-03-26 23:16:00 +000030950have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030951PANGO_CFLAGS=""
30952PANGO_LIBS=""
30953PANGO_PKG=""
30954if test "x$with_pango" = "xyes"; then
30955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30956$as_echo "-------------------------------------------------------------" >&6; }
30957
30958pkg_failed=no
30959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30960$as_echo_n "checking for PANGO... " >&6; }
30961
30962if test -n "$PANGO_CFLAGS"; then
30963 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30964 elif test -n "$PKG_CONFIG"; then
30965 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030966 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30967 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030968 ac_status=$?
30969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30970 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030971 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030972else
30973 pkg_failed=yes
30974fi
30975 else
30976 pkg_failed=untried
30977fi
30978if test -n "$PANGO_LIBS"; then
30979 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30980 elif test -n "$PKG_CONFIG"; then
30981 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30983 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030984 ac_status=$?
30985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30986 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030987 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030988else
30989 pkg_failed=yes
30990fi
30991 else
30992 pkg_failed=untried
30993fi
30994
30995
30996
30997if test $pkg_failed = yes; then
30998
30999if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31000 _pkg_short_errors_supported=yes
31001else
31002 _pkg_short_errors_supported=no
31003fi
31004 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031005 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031006 else
cristya054b762012-03-26 23:16:00 +000031007 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031008 fi
31009 # Put the nasty error message in config.log where it belongs
31010 echo "$PANGO_PKG_ERRORS" >&5
31011
31012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31013$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031014 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031015elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031016 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031017else
31018 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31019 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31021$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031022 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031023fi
31024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31025$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031026
31027pkg_failed=no
31028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31029$as_echo_n "checking for PANGO... " >&6; }
31030
31031if test -n "$PANGO_CFLAGS"; then
31032 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31033 elif test -n "$PKG_CONFIG"; then
31034 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31036 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031037 ac_status=$?
31038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31039 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031040 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031041else
31042 pkg_failed=yes
31043fi
31044 else
31045 pkg_failed=untried
31046fi
31047if test -n "$PANGO_LIBS"; then
31048 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31049 elif test -n "$PKG_CONFIG"; then
31050 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31052 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031053 ac_status=$?
31054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31055 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031056 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031057else
31058 pkg_failed=yes
31059fi
31060 else
31061 pkg_failed=untried
31062fi
31063
31064
31065
31066if test $pkg_failed = yes; then
31067
31068if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31069 _pkg_short_errors_supported=yes
31070else
31071 _pkg_short_errors_supported=no
31072fi
31073 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031074 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031075 else
cristy2542fc62011-12-06 17:50:25 +000031076 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031077 fi
31078 # Put the nasty error message in config.log where it belongs
31079 echo "$PANGO_PKG_ERRORS" >&5
31080
31081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31082$as_echo "no" >&6; }
31083 have_pango=no
31084elif test $pkg_failed = untried; then
31085 have_pango=no
31086else
31087 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31088 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31090$as_echo "yes" >&6; }
31091 have_pango=yes
31092fi
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31094$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031095fi
31096
31097if test "$have_pango" = 'yes'; then
31098
31099$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31100
31101 if test "$with_modules" = 'no'; then
31102 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31103 fi
31104fi
31105
cristya054b762012-03-26 23:16:00 +000031106if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031107
cristya054b762012-03-26 23:16:00 +000031108$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031109
31110 if test "$with_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031111 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031112 fi
31113fi
31114
31115 if test "$have_pango" = 'yes'; then
31116 PANGO_DELEGATE_TRUE=
31117 PANGO_DELEGATE_FALSE='#'
31118else
31119 PANGO_DELEGATE_TRUE='#'
31120 PANGO_DELEGATE_FALSE=
31121fi
31122
cristya054b762012-03-26 23:16:00 +000031123 if test "$have_pangocairo" = 'yes'; then
31124 PANGOCAIRO_DELEGATE_TRUE=
31125 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031126else
cristya054b762012-03-26 23:16:00 +000031127 PANGOCAIRO_DELEGATE_TRUE='#'
31128 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031129fi
31130
31131
31132
31133
31134
31135#
cristy3ed852e2009-09-05 21:47:34 +000031136# Check for PNG delegate library.
31137#
31138
31139# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031140if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031141 withval=$with_png; with_png=$withval
31142else
31143 with_png='yes'
31144fi
31145
31146
31147if test "$with_png" != 'yes'; then
31148 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31149fi
31150
cristy81beccd2011-10-03 18:17:24 +000031151have_png='no'
31152PNG_LIBS=''
31153
31154if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031155 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31156$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31158$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031159 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31160$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031161 failed=0
31162 passed=0
31163 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31164if test "x$ac_cv_header_png_h" = xyes; then :
31165 passed=`expr $passed + 1`
31166else
31167 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031168fi
31169
cristy81beccd2011-10-03 18:17:24 +000031170
31171
31172 if test $passed -gt 0; then
31173 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031174 if test "$have_png" = 'no' ; then
31175 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031176 pnglib='png'
31177 else
31178 pnglib="png1${var}"
31179 fi
31180
31181# Test for compatible LIBPNG library
31182 failed=0
31183 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031184 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031185 if test "${pnglib}" != 'png' ; then
31186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31187$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31189/* end confdefs.h. */
31190#include <stdio.h>
31191#include <stdlib.h>
31192#include <png.h>
31193
31194int
31195main ()
31196{
31197
31198#if PNG_LIBPNG_VER_MINOR != ${var}
31199#error LIBPNG library must be version 1${var}!
31200Kaboom, Kaboom
31201#endif
31202return 0;
31203
31204 ;
31205 return 0;
31206}
31207_ACEOF
31208if ac_fn_c_try_compile "$LINENO"; then :
31209 ac_cv_libpng_ok='yes'
31210else
31211 ac_cv_libpng_ok='no'
31212fi
31213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31214 if test "$ac_cv_libpng_ok" = 'yes' ; then
31215 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031216 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31217$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031218 else
31219 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031220 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31221$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031222 fi
31223 else
31224 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031225 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31226$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031227 fi
31228 fi
31229
31230 if test $passed -gt 0 -a $failed -le 0; then
31231 if test "1${var}" = '15' ; then
31232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31233$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31234if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31235 $as_echo_n "(cached) " >&6
31236else
31237 ac_check_lib_save_LIBS=$LIBS
31238LIBS="-lpng15 $LIBS"
31239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31240/* end confdefs.h. */
31241
31242/* Override any GCC internal prototype to avoid an error.
31243 Use char because int might match the return type of a GCC
31244 builtin and then its argument prototype would still apply. */
31245#ifdef __cplusplus
31246extern "C"
31247#endif
31248char png_get_io_ptr ();
31249int
31250main ()
31251{
31252return png_get_io_ptr ();
31253 ;
31254 return 0;
31255}
31256_ACEOF
31257if ac_fn_c_try_link "$LINENO"; then :
31258 ac_cv_lib_png15_png_get_io_ptr=yes
31259else
31260 ac_cv_lib_png15_png_get_io_ptr=no
31261fi
31262rm -f core conftest.err conftest.$ac_objext \
31263 conftest$ac_exeext conftest.$ac_ext
31264LIBS=$ac_check_lib_save_LIBS
31265fi
31266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31267$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31268if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31269 passed=`expr $passed + 1`
31270else
31271 failed=`expr $failed + 1`
31272fi
31273
31274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31275$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31276if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31277 $as_echo_n "(cached) " >&6
31278else
31279 ac_check_lib_save_LIBS=$LIBS
31280LIBS="-lpng15 $LIBS"
31281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31282/* end confdefs.h. */
31283
31284/* Override any GCC internal prototype to avoid an error.
31285 Use char because int might match the return type of a GCC
31286 builtin and then its argument prototype would still apply. */
31287#ifdef __cplusplus
31288extern "C"
31289#endif
31290char png_longjmp ();
31291int
31292main ()
31293{
31294return png_longjmp ();
31295 ;
31296 return 0;
31297}
31298_ACEOF
31299if ac_fn_c_try_link "$LINENO"; then :
31300 ac_cv_lib_png15_png_longjmp=yes
31301else
31302 ac_cv_lib_png15_png_longjmp=no
31303fi
31304rm -f core conftest.err conftest.$ac_objext \
31305 conftest$ac_exeext conftest.$ac_ext
31306LIBS=$ac_check_lib_save_LIBS
31307fi
31308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31309$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31310if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31311 passed=`expr $passed + 1`
31312else
31313 failed=`expr $failed + 1`
31314fi
31315
31316 fi
31317 if test "1${var}" = '14' ; then
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31319$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31320if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31321 $as_echo_n "(cached) " >&6
31322else
31323 ac_check_lib_save_LIBS=$LIBS
31324LIBS="-lpng14 $LIBS"
31325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31326/* end confdefs.h. */
31327
31328/* Override any GCC internal prototype to avoid an error.
31329 Use char because int might match the return type of a GCC
31330 builtin and then its argument prototype would still apply. */
31331#ifdef __cplusplus
31332extern "C"
31333#endif
31334char png_get_io_ptr ();
31335int
31336main ()
31337{
31338return png_get_io_ptr ();
31339 ;
31340 return 0;
31341}
31342_ACEOF
31343if ac_fn_c_try_link "$LINENO"; then :
31344 ac_cv_lib_png14_png_get_io_ptr=yes
31345else
31346 ac_cv_lib_png14_png_get_io_ptr=no
31347fi
31348rm -f core conftest.err conftest.$ac_objext \
31349 conftest$ac_exeext conftest.$ac_ext
31350LIBS=$ac_check_lib_save_LIBS
31351fi
31352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31353$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31354if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31355 passed=`expr $passed + 1`
31356else
31357 failed=`expr $failed + 1`
31358fi
31359
31360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31361$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31362if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31363 $as_echo_n "(cached) " >&6
31364else
31365 ac_check_lib_save_LIBS=$LIBS
31366LIBS="-lpng14 $LIBS"
31367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31368/* end confdefs.h. */
31369
31370/* Override any GCC internal prototype to avoid an error.
31371 Use char because int might match the return type of a GCC
31372 builtin and then its argument prototype would still apply. */
31373#ifdef __cplusplus
31374extern "C"
31375#endif
31376char png_get_io_state ();
31377int
31378main ()
31379{
31380return png_get_io_state ();
31381 ;
31382 return 0;
31383}
31384_ACEOF
31385if ac_fn_c_try_link "$LINENO"; then :
31386 ac_cv_lib_png14_png_get_io_state=yes
31387else
31388 ac_cv_lib_png14_png_get_io_state=no
31389fi
31390rm -f core conftest.err conftest.$ac_objext \
31391 conftest$ac_exeext conftest.$ac_ext
31392LIBS=$ac_check_lib_save_LIBS
31393fi
31394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31395$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31396if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31397 passed=`expr $passed + 1`
31398else
31399 failed=`expr $failed + 1`
31400fi
31401
31402 fi
31403 if test "1${var}" = '12' ; then
31404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31405$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31406if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31407 $as_echo_n "(cached) " >&6
31408else
31409 ac_check_lib_save_LIBS=$LIBS
31410LIBS="-lpng12 $LIBS"
31411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31412/* end confdefs.h. */
31413
31414/* Override any GCC internal prototype to avoid an error.
31415 Use char because int might match the return type of a GCC
31416 builtin and then its argument prototype would still apply. */
31417#ifdef __cplusplus
31418extern "C"
31419#endif
31420char png_get_io_ptr ();
31421int
31422main ()
31423{
31424return png_get_io_ptr ();
31425 ;
31426 return 0;
31427}
31428_ACEOF
31429if ac_fn_c_try_link "$LINENO"; then :
31430 ac_cv_lib_png12_png_get_io_ptr=yes
31431else
31432 ac_cv_lib_png12_png_get_io_ptr=no
31433fi
31434rm -f core conftest.err conftest.$ac_objext \
31435 conftest$ac_exeext conftest.$ac_ext
31436LIBS=$ac_check_lib_save_LIBS
31437fi
31438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31439$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31440if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31441 passed=`expr $passed + 1`
31442else
31443 failed=`expr $failed + 1`
31444fi
31445
31446 fi
31447 if test "1${var}" = '1' ; then
31448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31449$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31450if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31451 $as_echo_n "(cached) " >&6
31452else
31453 ac_check_lib_save_LIBS=$LIBS
31454LIBS="-lpng $LIBS"
31455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31456/* end confdefs.h. */
31457
31458/* Override any GCC internal prototype to avoid an error.
31459 Use char because int might match the return type of a GCC
31460 builtin and then its argument prototype would still apply. */
31461#ifdef __cplusplus
31462extern "C"
31463#endif
31464char png_get_io_ptr ();
31465int
31466main ()
31467{
31468return png_get_io_ptr ();
31469 ;
31470 return 0;
31471}
31472_ACEOF
31473if ac_fn_c_try_link "$LINENO"; then :
31474 ac_cv_lib_png_png_get_io_ptr=yes
31475else
31476 ac_cv_lib_png_png_get_io_ptr=no
31477fi
31478rm -f core conftest.err conftest.$ac_objext \
31479 conftest$ac_exeext conftest.$ac_ext
31480LIBS=$ac_check_lib_save_LIBS
31481fi
31482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31483$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31484if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31485 passed=`expr $passed + 1`
31486else
31487 failed=`expr $failed + 1`
31488fi
31489
31490 fi
31491 if test $passed -gt 0 -a $failed -le 0 ; then
31492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31493$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31494 if test $passed -gt 0 ; then
31495 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031496 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31497$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031498 have_png='no (failed tests)'
31499 else
31500 PNG_LIBS="-l${pnglib}"
31501 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031502
cristy8b350f62009-11-15 23:12:43 +000031503$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031504
cristy09b53e12011-10-14 12:47:22 +000031505 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31506$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031507 have_png='yes'
31508 fi
31509 fi
31510 fi
31511 fi
31512 fi
31513 done
31514 fi
cristy3ed852e2009-09-05 21:47:34 +000031515fi
cristy64877302011-08-23 19:10:31 +000031516
cristy73bd4a52010-10-05 11:24:23 +000031517 if test "$have_png" = 'yes'; then
31518 PNG_DELEGATE_TRUE=
31519 PNG_DELEGATE_FALSE='#'
31520else
31521 PNG_DELEGATE_TRUE='#'
31522 PNG_DELEGATE_FALSE=
31523fi
31524
cristy3ed852e2009-09-05 21:47:34 +000031525
cristy50d3f5c2011-09-10 20:09:06 +000031526
cristy3ed852e2009-09-05 21:47:34 +000031527
31528
31529#
31530# Check for RSVG delegate library.
31531#
31532
31533# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031534if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031535 withval=$with_rsvg; with_rsvg=$withval
31536else
cristyfc3d0222012-02-07 15:05:57 +000031537 with_rsvg='yes'
cristy3ed852e2009-09-05 21:47:34 +000031538fi
31539
31540
31541if test "$with_rsvg" != 'yes'; then
31542 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31543fi
31544
31545have_rsvg='no'
31546have_cairo='no'
31547RSVG_CFLAGS=""
31548RSVG_LIBS=""
31549RSVG_PKG=""
31550if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031551 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31552$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031553
31554pkg_failed=no
31555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31556$as_echo_n "checking for RSVG... " >&6; }
31557
31558if test -n "$RSVG_CFLAGS"; then
31559 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31560 elif test -n "$PKG_CONFIG"; then
31561 if test -n "$PKG_CONFIG" && \
31562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31563 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31564 ac_status=$?
31565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31566 test $ac_status = 0; }; then
31567 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31568else
31569 pkg_failed=yes
31570fi
31571 else
31572 pkg_failed=untried
31573fi
31574if test -n "$RSVG_LIBS"; then
31575 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31576 elif test -n "$PKG_CONFIG"; then
31577 if test -n "$PKG_CONFIG" && \
31578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31579 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31580 ac_status=$?
31581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31582 test $ac_status = 0; }; then
31583 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31584else
31585 pkg_failed=yes
31586fi
31587 else
31588 pkg_failed=untried
31589fi
31590
31591
31592
31593if test $pkg_failed = yes; then
31594
31595if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31596 _pkg_short_errors_supported=yes
31597else
31598 _pkg_short_errors_supported=no
31599fi
31600 if test $_pkg_short_errors_supported = yes; then
31601 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31602 else
31603 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31604 fi
31605 # Put the nasty error message in config.log where it belongs
31606 echo "$RSVG_PKG_ERRORS" >&5
31607
31608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31609$as_echo "no" >&6; }
31610 have_rsvg=no
31611elif test $pkg_failed = untried; then
31612 have_rsvg=no
31613else
31614 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31615 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31617$as_echo "yes" >&6; }
31618 have_rsvg=yes
31619fi
cristy09b53e12011-10-14 12:47:22 +000031620 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31621$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031622
31623pkg_failed=no
31624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31625$as_echo_n "checking for CAIRO_SVG... " >&6; }
31626
31627if test -n "$CAIRO_SVG_CFLAGS"; then
31628 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31629 elif test -n "$PKG_CONFIG"; then
31630 if test -n "$PKG_CONFIG" && \
31631 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31632 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31633 ac_status=$?
31634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31635 test $ac_status = 0; }; then
31636 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31637else
31638 pkg_failed=yes
31639fi
31640 else
31641 pkg_failed=untried
31642fi
31643if test -n "$CAIRO_SVG_LIBS"; then
31644 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31645 elif test -n "$PKG_CONFIG"; then
31646 if test -n "$PKG_CONFIG" && \
31647 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31648 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31649 ac_status=$?
31650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31651 test $ac_status = 0; }; then
31652 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31653else
31654 pkg_failed=yes
31655fi
31656 else
31657 pkg_failed=untried
31658fi
31659
31660
31661
31662if test $pkg_failed = yes; then
31663
31664if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31665 _pkg_short_errors_supported=yes
31666else
31667 _pkg_short_errors_supported=no
31668fi
31669 if test $_pkg_short_errors_supported = yes; then
31670 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31671 else
31672 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31673 fi
31674 # Put the nasty error message in config.log where it belongs
31675 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31676
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31678$as_echo "no" >&6; }
31679 have_cairo=no
31680elif test $pkg_failed = untried; then
31681 have_cairo=no
31682else
31683 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31684 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31686$as_echo "yes" >&6; }
31687 have_cairo=yes
31688fi
cristy09b53e12011-10-14 12:47:22 +000031689 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31690$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031691fi
31692
31693if test "$have_rsvg" = 'yes'; then
31694
cristy8b350f62009-11-15 23:12:43 +000031695$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031696
31697 if test "$with_modules" = 'no'; then
31698 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31699 fi
31700fi
31701
31702if test "$have_cairo" = 'yes'; then
31703
cristy8b350f62009-11-15 23:12:43 +000031704$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031705
31706 if test "$with_modules" = 'no'; then
31707 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31708 fi
31709fi
31710
cristy73bd4a52010-10-05 11:24:23 +000031711 if test "$have_rsvg" = 'yes'; then
31712 RSVG_DELEGATE_TRUE=
31713 RSVG_DELEGATE_FALSE='#'
31714else
31715 RSVG_DELEGATE_TRUE='#'
31716 RSVG_DELEGATE_FALSE=
31717fi
31718
31719 if test "$have_cairo" = 'yes'; then
31720 CAIRO_DELEGATE_TRUE=
31721 CAIRO_DELEGATE_FALSE='#'
31722else
31723 CAIRO_DELEGATE_TRUE='#'
31724 CAIRO_DELEGATE_FALSE=
31725fi
31726
cristy3ed852e2009-09-05 21:47:34 +000031727
31728
31729
31730
31731#
31732# Check for TIFF delegate library.
31733#
31734
31735# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031736if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031737 withval=$with_tiff; with_tiff=$withval
31738else
31739 with_tiff='yes'
31740fi
31741
31742
31743if test "$with_tiff" != 'yes'; then
31744 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31745fi
31746
31747have_tiff='no'
31748TIFF_LIBS=''
31749if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031750 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31751$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031753$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031754 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31755$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031756 failed=0
31757 passed=0
cristy8b350f62009-11-15 23:12:43 +000031758 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031759if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031760 passed=`expr $passed + 1`
31761else
31762 failed=`expr $failed + 1`
31763fi
31764
31765
cristy8b350f62009-11-15 23:12:43 +000031766 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031767if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031768 passed=`expr $passed + 1`
31769else
31770 failed=`expr $failed + 1`
31771fi
31772
31773
cristy8b350f62009-11-15 23:12:43 +000031774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031775$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031776if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031777 $as_echo_n "(cached) " >&6
31778else
31779 ac_check_lib_save_LIBS=$LIBS
31780LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031782/* end confdefs.h. */
31783
31784/* Override any GCC internal prototype to avoid an error.
31785 Use char because int might match the return type of a GCC
31786 builtin and then its argument prototype would still apply. */
31787#ifdef __cplusplus
31788extern "C"
31789#endif
31790char TIFFOpen ();
31791int
31792main ()
31793{
31794return TIFFOpen ();
31795 ;
31796 return 0;
31797}
31798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031799if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031800 ac_cv_lib_tiff_TIFFOpen=yes
31801else
cristy8b350f62009-11-15 23:12:43 +000031802 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031803fi
cristy8b350f62009-11-15 23:12:43 +000031804rm -f core conftest.err conftest.$ac_objext \
31805 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031806LIBS=$ac_check_lib_save_LIBS
31807fi
cristy8b350f62009-11-15 23:12:43 +000031808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031809$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031810if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031811 passed=`expr $passed + 1`
31812else
31813 failed=`expr $failed + 1`
31814fi
31815
cristy8b350f62009-11-15 23:12:43 +000031816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031817$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031818if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031819 $as_echo_n "(cached) " >&6
31820else
31821 ac_check_lib_save_LIBS=$LIBS
31822LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031824/* end confdefs.h. */
31825
31826/* Override any GCC internal prototype to avoid an error.
31827 Use char because int might match the return type of a GCC
31828 builtin and then its argument prototype would still apply. */
31829#ifdef __cplusplus
31830extern "C"
31831#endif
31832char TIFFClientOpen ();
31833int
31834main ()
31835{
31836return TIFFClientOpen ();
31837 ;
31838 return 0;
31839}
31840_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031841if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031842 ac_cv_lib_tiff_TIFFClientOpen=yes
31843else
cristy8b350f62009-11-15 23:12:43 +000031844 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031845fi
cristy8b350f62009-11-15 23:12:43 +000031846rm -f core conftest.err conftest.$ac_objext \
31847 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031848LIBS=$ac_check_lib_save_LIBS
31849fi
cristy8b350f62009-11-15 23:12:43 +000031850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031851$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031852if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031853 passed=`expr $passed + 1`
31854else
31855 failed=`expr $failed + 1`
31856fi
31857
cristy8b350f62009-11-15 23:12:43 +000031858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031859$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031860if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031861 $as_echo_n "(cached) " >&6
31862else
31863 ac_check_lib_save_LIBS=$LIBS
31864LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031866/* end confdefs.h. */
31867
31868/* Override any GCC internal prototype to avoid an error.
31869 Use char because int might match the return type of a GCC
31870 builtin and then its argument prototype would still apply. */
31871#ifdef __cplusplus
31872extern "C"
31873#endif
31874char TIFFIsByteSwapped ();
31875int
31876main ()
31877{
31878return TIFFIsByteSwapped ();
31879 ;
31880 return 0;
31881}
31882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031883if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031884 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31885else
cristy8b350f62009-11-15 23:12:43 +000031886 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031887fi
cristy8b350f62009-11-15 23:12:43 +000031888rm -f core conftest.err conftest.$ac_objext \
31889 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031890LIBS=$ac_check_lib_save_LIBS
31891fi
cristy8b350f62009-11-15 23:12:43 +000031892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031893$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031894if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031895 passed=`expr $passed + 1`
31896else
31897 failed=`expr $failed + 1`
31898fi
31899
cristy8b350f62009-11-15 23:12:43 +000031900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031901$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031902if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031903 $as_echo_n "(cached) " >&6
31904else
31905 ac_check_lib_save_LIBS=$LIBS
31906LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031908/* end confdefs.h. */
31909
31910/* Override any GCC internal prototype to avoid an error.
31911 Use char because int might match the return type of a GCC
31912 builtin and then its argument prototype would still apply. */
31913#ifdef __cplusplus
31914extern "C"
31915#endif
31916char TIFFReadRGBATile ();
31917int
31918main ()
31919{
31920return TIFFReadRGBATile ();
31921 ;
31922 return 0;
31923}
31924_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031925if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031926 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31927else
cristy8b350f62009-11-15 23:12:43 +000031928 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031929fi
cristy8b350f62009-11-15 23:12:43 +000031930rm -f core conftest.err conftest.$ac_objext \
31931 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031932LIBS=$ac_check_lib_save_LIBS
31933fi
cristy8b350f62009-11-15 23:12:43 +000031934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031935$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031936if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031937 passed=`expr $passed + 1`
31938else
31939 failed=`expr $failed + 1`
31940fi
31941
cristy8b350f62009-11-15 23:12:43 +000031942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031943$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031944if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031945 $as_echo_n "(cached) " >&6
31946else
31947 ac_check_lib_save_LIBS=$LIBS
31948LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031950/* end confdefs.h. */
31951
31952/* Override any GCC internal prototype to avoid an error.
31953 Use char because int might match the return type of a GCC
31954 builtin and then its argument prototype would still apply. */
31955#ifdef __cplusplus
31956extern "C"
31957#endif
31958char TIFFReadRGBAStrip ();
31959int
31960main ()
31961{
31962return TIFFReadRGBAStrip ();
31963 ;
31964 return 0;
31965}
31966_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031967if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031968 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31969else
cristy8b350f62009-11-15 23:12:43 +000031970 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031971fi
cristy8b350f62009-11-15 23:12:43 +000031972rm -f core conftest.err conftest.$ac_objext \
31973 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031974LIBS=$ac_check_lib_save_LIBS
31975fi
cristy8b350f62009-11-15 23:12:43 +000031976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031977$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031978if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031979 passed=`expr $passed + 1`
31980else
31981 failed=`expr $failed + 1`
31982fi
31983
cristy8b350f62009-11-15 23:12:43 +000031984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031985$as_echo_n "checking if TIFF package is complete... " >&6; }
31986 if test $passed -gt 0; then
31987 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031988 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31989$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031990 have_tiff='no (failed tests)'
31991 else
31992 TIFF_LIBS='-ltiff'
31993 LIBS="$TIFF_LIBS $LIBS"
31994
cristy8b350f62009-11-15 23:12:43 +000031995$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031996
cristy09b53e12011-10-14 12:47:22 +000031997 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31998$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031999 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032000 for ac_header in tiffconf.h
32001do :
32002 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032003if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032004 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032005#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032006_ACEOF
32007
32008fi
32009
32010done
32011
cristy8b350f62009-11-15 23:12:43 +000032012 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032013 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32014 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32015 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032016do :
32017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32018ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032019if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032020 cat >>confdefs.h <<_ACEOF
32021#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32022_ACEOF
32023
32024fi
32025done
32026
32027 fi
32028 else
cristy09b53e12011-10-14 12:47:22 +000032029 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32030$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032031 fi
32032fi
cristy73bd4a52010-10-05 11:24:23 +000032033 if test "$have_tiff" = 'yes'; then
32034 TIFF_DELEGATE_TRUE=
32035 TIFF_DELEGATE_FALSE='#'
32036else
32037 TIFF_DELEGATE_TRUE='#'
32038 TIFF_DELEGATE_FALSE=
32039fi
32040
cristy3ed852e2009-09-05 21:47:34 +000032041
32042
32043
32044#
cristyb1860752011-03-14 00:27:46 +000032045# Check for WEBP delegate library.
32046#
32047
32048# Check whether --with-webp was given.
32049if test "${with_webp+set}" = set; then :
32050 withval=$with_webp; with_webp=$withval
32051else
32052 with_webp='yes'
32053fi
32054
32055
32056if test "$with_webp" != 'yes'; then
32057 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32058fi
32059
32060have_webp='no'
32061WEBP_LIBS=''
32062if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032063 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32064$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32066$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032067 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32068$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032069 failed=0
32070 passed=0
32071 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32072if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32073 passed=`expr $passed + 1`
32074else
32075 failed=`expr $failed + 1`
32076fi
32077
32078
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32080$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32081if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32082 $as_echo_n "(cached) " >&6
32083else
32084 ac_check_lib_save_LIBS=$LIBS
32085LIBS="-lwebp $LIBS"
32086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32087/* end confdefs.h. */
32088
32089/* Override any GCC internal prototype to avoid an error.
32090 Use char because int might match the return type of a GCC
32091 builtin and then its argument prototype would still apply. */
32092#ifdef __cplusplus
32093extern "C"
32094#endif
32095char WebPDecodeRGB ();
32096int
32097main ()
32098{
32099return WebPDecodeRGB ();
32100 ;
32101 return 0;
32102}
32103_ACEOF
32104if ac_fn_c_try_link "$LINENO"; then :
32105 ac_cv_lib_webp_WebPDecodeRGB=yes
32106else
32107 ac_cv_lib_webp_WebPDecodeRGB=no
32108fi
32109rm -f core conftest.err conftest.$ac_objext \
32110 conftest$ac_exeext conftest.$ac_ext
32111LIBS=$ac_check_lib_save_LIBS
32112fi
32113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32114$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32115if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32116 passed=`expr $passed + 1`
32117else
32118 failed=`expr $failed + 1`
32119fi
32120
32121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32122$as_echo_n "checking if WEBP package is complete... " >&6; }
32123 if test $passed -gt 0; then
32124 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032125 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32126$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032127 have_webp='no (failed tests)'
32128 else
32129 WEBP_LIBS='-lwebp'
32130 LIBS="$WEBP_LIBS $LIBS"
32131
32132$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32133
cristy09b53e12011-10-14 12:47:22 +000032134 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32135$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032136 have_webp='yes'
32137 fi
32138 else
cristy09b53e12011-10-14 12:47:22 +000032139 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32140$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032141 fi
32142fi
32143 if test "$have_webp" = 'yes'; then
32144 WEBP_DELEGATE_TRUE=
32145 WEBP_DELEGATE_FALSE='#'
32146else
32147 WEBP_DELEGATE_TRUE='#'
32148 WEBP_DELEGATE_FALSE=
32149fi
32150
32151
32152
32153
32154#
cristy3ed852e2009-09-05 21:47:34 +000032155# Set Windows font directory.
32156#
32157
32158# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032159if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032160 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32161else
32162 with_windows_font_dir=''
32163fi
32164
32165if test "$with_windows_font_dir" != '' ; then
32166 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32167fi
32168
32169
32170#
32171# Check for WMF delegate library.
32172#
32173
32174# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032175if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032176 withval=$with_wmf; with_wmf=$withval
32177else
cristyfc3d0222012-02-07 15:05:57 +000032178 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032179fi
32180
32181
32182if test "$with_wmf" != 'yes'; then
32183 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32184fi
32185
32186have_wmf='no'
32187WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032188WMF_LIBS_DEPS=''
32189OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032190if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32192$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032194$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32196$as_echo "" >&6; }
32197 have_libwmf='no'
32198 have_libwmflite='no'
32199 have_libwmf_ipa_h='no'
32200
32201 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32202"
32203if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32204 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032205fi
32206
32207
cristy03f7cf92011-12-15 01:40:41 +000032208 if test "$have_libwmf_ipa_h" = 'yes'; then
32209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32210$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32211if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032212 $as_echo_n "(cached) " >&6
32213else
32214 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032215LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032217/* end confdefs.h. */
32218
32219/* Override any GCC internal prototype to avoid an error.
32220 Use char because int might match the return type of a GCC
32221 builtin and then its argument prototype would still apply. */
32222#ifdef __cplusplus
32223extern "C"
32224#endif
cristy03f7cf92011-12-15 01:40:41 +000032225char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032226int
32227main ()
32228{
cristy03f7cf92011-12-15 01:40:41 +000032229return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032230 ;
32231 return 0;
32232}
32233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032234if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032235 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032236else
cristy03f7cf92011-12-15 01:40:41 +000032237 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032238fi
cristy8b350f62009-11-15 23:12:43 +000032239rm -f core conftest.err conftest.$ac_objext \
32240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032241LIBS=$ac_check_lib_save_LIBS
32242fi
cristy03f7cf92011-12-15 01:40:41 +000032243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32244$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32245if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32246 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032247fi
32248
cristy03f7cf92011-12-15 01:40:41 +000032249 if test "$have_libwmflite" = 'yes'; then
32250
32251$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32252
32253 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032254 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032255 have_wmf='yes'
32256 else
32257 WMF_LIBS_DEPS=''
32258 WMF_CONFIG_LIBS=`libwmf-config --libs`
32259 for lib in xml2 expat freetype jpeg png z; do
32260 testlib="-l${lib}"
32261 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32262 done
32263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32264$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32265if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32266 $as_echo_n "(cached) " >&6
32267else
32268 ac_check_lib_save_LIBS=$LIBS
32269LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32271/* end confdefs.h. */
32272
32273/* Override any GCC internal prototype to avoid an error.
32274 Use char because int might match the return type of a GCC
32275 builtin and then its argument prototype would still apply. */
32276#ifdef __cplusplus
32277extern "C"
32278#endif
32279char wmf_api_create ();
32280int
32281main ()
32282{
32283return wmf_api_create ();
32284 ;
32285 return 0;
32286}
32287_ACEOF
32288if ac_fn_c_try_link "$LINENO"; then :
32289 ac_cv_lib_wmf_wmf_api_create=yes
32290else
32291 ac_cv_lib_wmf_wmf_api_create=no
32292fi
32293rm -f core conftest.err conftest.$ac_objext \
32294 conftest$ac_exeext conftest.$ac_ext
32295LIBS=$ac_check_lib_save_LIBS
32296fi
32297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32298$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32299if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32300 have_libwmf='yes'
32301fi
32302
32303 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032304
cristy8b350f62009-11-15 23:12:43 +000032305$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032306
cristy03f7cf92011-12-15 01:40:41 +000032307 WMF_LIBS='-lwmf'
32308 LIBS="$WMF_LIBS $LIBS"
32309 have_wmf='yes'
32310 else
32311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32312$as_echo "no -- some components failed test" >&6; }
32313 have_wmf='no (failed tests)'
32314 have_wmflite='no (failed tests)'
32315 LIBS="$OLIBS"
32316 WMF_LIBS=''
32317 fi
glennrp33e524b2011-08-24 17:41:57 +000032318 fi
cristy03f7cf92011-12-15 01:40:41 +000032319 fi
32320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32321$as_echo_n "checking if WMF package is complete... " >&6; }
32322 if test "$have_wmf" = 'yes'; then
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32324$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032325 else
cristy03f7cf92011-12-15 01:40:41 +000032326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32327$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032328 fi
cristy3ed852e2009-09-05 21:47:34 +000032329fi
cristy73bd4a52010-10-05 11:24:23 +000032330 if test "$have_wmf" = 'yes'; then
32331 WMF_DELEGATE_TRUE=
32332 WMF_DELEGATE_FALSE='#'
32333else
32334 WMF_DELEGATE_TRUE='#'
32335 WMF_DELEGATE_FALSE=
32336fi
32337
cristy3ed852e2009-09-05 21:47:34 +000032338
32339
32340
cristy81beccd2011-10-03 18:17:24 +000032341
32342
cristy3ed852e2009-09-05 21:47:34 +000032343#
32344# Check for XML delegate library.
32345#
32346
32347# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032348if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032349 withval=$with_xml; with_xml=$withval
32350else
cristyfc3d0222012-02-07 15:05:57 +000032351 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032352fi
32353
32354
cristy81beccd2011-10-03 18:17:24 +000032355if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032356 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32357fi
32358
cristy81beccd2011-10-03 18:17:24 +000032359have_xml='no'
32360XML_LIBS=''
32361if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032362 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32363$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32365$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032366 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32367$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032368 PERSIST_LDFLAGS=$LDFLAGS
32369 PERSIST_CPPFLAGS=$CPPFLAGS
32370 xml2_config=''
32371 # Extract the first word of "xml2-config", so it can be a program name with args.
32372set dummy xml2-config; ac_word=$2
32373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32374$as_echo_n "checking for $ac_word... " >&6; }
32375if ${ac_cv_path_xml2_config+:} false; then :
32376 $as_echo_n "(cached) " >&6
32377else
32378 case $xml2_config in
32379 [\\/]* | ?:[\\/]*)
32380 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32381 ;;
32382 *)
32383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32384for as_dir in $PATH
32385do
32386 IFS=$as_save_IFS
32387 test -z "$as_dir" && as_dir=.
32388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032390 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32392 break 2
32393 fi
32394done
32395 done
32396IFS=$as_save_IFS
32397
32398 ;;
32399esac
32400fi
32401xml2_config=$ac_cv_path_xml2_config
32402if test -n "$xml2_config"; then
32403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32404$as_echo "$xml2_config" >&6; }
32405else
32406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32407$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032408fi
32409
cristy81beccd2011-10-03 18:17:24 +000032410 if test -n "$xml2_config"; then
32411 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32412 # the shared library installed under /usr/lib, whereas the package
32413 # installs itself under $prefix/libxml and $prefix/lib.
32414 xml2_prefix=`xml2-config --prefix`
32415 if test -d "${xml2_prefix}/include/libxml2"; then
32416 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32417 fi
32418 if test "${xml2_prefix}" != '/usr'; then
32419 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32420 fi
32421 fi
32422 failed=0
32423 passed=0
32424 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32425if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32426 passed=`expr $passed + 1`
32427else
32428 failed=`expr $failed + 1`
32429fi
32430
32431
32432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32433$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32434if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32435 $as_echo_n "(cached) " >&6
32436else
32437 ac_check_lib_save_LIBS=$LIBS
32438LIBS="-lxml2 $LIBS"
32439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32440/* end confdefs.h. */
32441
32442/* Override any GCC internal prototype to avoid an error.
32443 Use char because int might match the return type of a GCC
32444 builtin and then its argument prototype would still apply. */
32445#ifdef __cplusplus
32446extern "C"
32447#endif
32448char xmlSAXVersion ();
32449int
32450main ()
32451{
32452return xmlSAXVersion ();
32453 ;
32454 return 0;
32455}
32456_ACEOF
32457if ac_fn_c_try_link "$LINENO"; then :
32458 ac_cv_lib_xml2_xmlSAXVersion=yes
32459else
32460 ac_cv_lib_xml2_xmlSAXVersion=no
32461fi
32462rm -f core conftest.err conftest.$ac_objext \
32463 conftest$ac_exeext conftest.$ac_ext
32464LIBS=$ac_check_lib_save_LIBS
32465fi
32466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32467$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32468if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32469 passed=`expr $passed + 1`
32470else
32471 failed=`expr $failed + 1`
32472fi
32473
32474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32475$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32476if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32477 $as_echo_n "(cached) " >&6
32478else
32479 ac_check_lib_save_LIBS=$LIBS
32480LIBS="-lxml2 $LIBS"
32481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32482/* end confdefs.h. */
32483
32484/* Override any GCC internal prototype to avoid an error.
32485 Use char because int might match the return type of a GCC
32486 builtin and then its argument prototype would still apply. */
32487#ifdef __cplusplus
32488extern "C"
32489#endif
32490char xmlParseChunk ();
32491int
32492main ()
32493{
32494return xmlParseChunk ();
32495 ;
32496 return 0;
32497}
32498_ACEOF
32499if ac_fn_c_try_link "$LINENO"; then :
32500 ac_cv_lib_xml2_xmlParseChunk=yes
32501else
32502 ac_cv_lib_xml2_xmlParseChunk=no
32503fi
32504rm -f core conftest.err conftest.$ac_objext \
32505 conftest$ac_exeext conftest.$ac_ext
32506LIBS=$ac_check_lib_save_LIBS
32507fi
32508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32509$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32510if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32511 passed=`expr $passed + 1`
32512else
32513 failed=`expr $failed + 1`
32514fi
32515
32516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32517$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32518if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32519 $as_echo_n "(cached) " >&6
32520else
32521 ac_check_lib_save_LIBS=$LIBS
32522LIBS="-lxml2 $LIBS"
32523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32524/* end confdefs.h. */
32525
32526/* Override any GCC internal prototype to avoid an error.
32527 Use char because int might match the return type of a GCC
32528 builtin and then its argument prototype would still apply. */
32529#ifdef __cplusplus
32530extern "C"
32531#endif
32532char xmlCreatePushParserCtxt ();
32533int
32534main ()
32535{
32536return xmlCreatePushParserCtxt ();
32537 ;
32538 return 0;
32539}
32540_ACEOF
32541if ac_fn_c_try_link "$LINENO"; then :
32542 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32543else
32544 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32545fi
32546rm -f core conftest.err conftest.$ac_objext \
32547 conftest$ac_exeext conftest.$ac_ext
32548LIBS=$ac_check_lib_save_LIBS
32549fi
32550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32551$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32552if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32553 passed=`expr $passed + 1`
32554else
32555 failed=`expr $failed + 1`
32556fi
32557
32558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32559$as_echo_n "checking if XML package is complete... " >&6; }
32560 if test $passed -gt 0; then
32561 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032562 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32563$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032564 have_xml='no (failed tests)'
32565 LDFLAGS="$PERSIST_LDFLAGS"
32566 CPPFLAGS="$PERSIST_CPPFLAGS"
32567 else
32568 XML_LIBS='-lxml2'
32569 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032570
cristy8b350f62009-11-15 23:12:43 +000032571$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032572
cristy09b53e12011-10-14 12:47:22 +000032573 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32574$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032575 have_xml='yes'
32576 fi
32577 else
cristy09b53e12011-10-14 12:47:22 +000032578 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32579$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032580 fi
32581fi
cristy73bd4a52010-10-05 11:24:23 +000032582 if test "$have_xml" = 'yes'; then
32583 XML_DELEGATE_TRUE=
32584 XML_DELEGATE_FALSE='#'
32585else
32586 XML_DELEGATE_TRUE='#'
32587 XML_DELEGATE_FALSE=
32588fi
32589
cristy3ed852e2009-09-05 21:47:34 +000032590
32591
32592
32593# Substitute compiler name to build/link PerlMagick
32594#
32595
32596
32597#
32598# Configure install Paths
32599#
cristy7def36a2011-10-28 19:04:41 +000032600
cristy2a11bef2011-10-28 18:33:11 +000032601# Path to ImageMagick header files
32602INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032603INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32604DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032605case "${build_os}" in
32606 mingw* )
32607 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32608 ;;
32609esac
32610
32611cat >>confdefs.h <<_ACEOF
32612#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32613_ACEOF
32614
32615
cristy3ed852e2009-09-05 21:47:34 +000032616
32617# Subdirectory under lib to place ImageMagick lib files
32618LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32619
32620cat >>confdefs.h <<_ACEOF
32621#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32622_ACEOF
32623
32624
32625# Path to ImageMagick bin directory
32626EXECUTABLE_PATH="${BIN_DIR}"
32627DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32628case "${build_os}" in
32629 mingw* )
32630 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32631 ;;
32632esac
32633
32634cat >>confdefs.h <<_ACEOF
32635#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32636_ACEOF
32637
32638
32639
32640# Path to ImageMagick lib
32641LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32642DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32643case "${build_os}" in
32644 mingw* )
32645 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32646 ;;
32647esac
32648
32649cat >>confdefs.h <<_ACEOF
32650#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32651_ACEOF
32652
32653
32654
cristy3ed852e2009-09-05 21:47:34 +000032655#
32656# Subdirectory under lib to place ImageMagick coder module files
32657CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32658
32659cat >>confdefs.h <<_ACEOF
32660#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32661_ACEOF
32662
32663CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32664DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32665case "${build_os}" in
32666 mingw* )
32667 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32668 ;;
32669esac
32670
32671cat >>confdefs.h <<_ACEOF
32672#define CODER_PATH "$DEFINE_CODER_PATH"
32673_ACEOF
32674
32675
32676
32677#
32678# Subdirectory under lib to place ImageMagick filter module files
32679FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32680
32681cat >>confdefs.h <<_ACEOF
32682#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32683_ACEOF
32684
32685FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32686DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32687case "${build_os}" in
32688 mingw* )
32689 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32690 ;;
32691esac
32692
32693cat >>confdefs.h <<_ACEOF
32694#define FILTER_PATH "$DEFINE_FILTER_PATH"
32695_ACEOF
32696
32697
32698
32699#
32700# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032701DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032702DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32703DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032704case "${build_os}" in
32705 mingw* )
32706 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32707 ;;
32708esac
32709
32710cat >>confdefs.h <<_ACEOF
32711#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32712_ACEOF
32713
32714
32715
cristy2a11bef2011-10-28 18:33:11 +000032716# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032717CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032718
32719cat >>confdefs.h <<_ACEOF
32720#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32721_ACEOF
32722
cristy7def36a2011-10-28 19:04:41 +000032723CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032724DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32725case "${build_os}" in
32726 mingw* )
32727 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32728 ;;
32729esac
32730
32731cat >>confdefs.h <<_ACEOF
32732#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32733_ACEOF
32734
32735
32736
cristy2a11bef2011-10-28 18:33:11 +000032737# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032738SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032739
32740cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032741#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032742_ACEOF
32743
cristy670aa3c2011-11-03 00:54:00 +000032744SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032745DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032746case "${build_os}" in
32747 mingw* )
cristy4f820712011-04-01 12:35:43 +000032748 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032749 ;;
32750esac
32751
32752cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032753#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032754_ACEOF
32755
32756
32757
cristy408ebcd2011-11-14 01:36:57 +000032758# Subdirectory to place architecture-dependent configuration files
32759SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032760
32761cat >>confdefs.h <<_ACEOF
32762#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32763_ACEOF
32764
cristy408ebcd2011-11-14 01:36:57 +000032765SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32766DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032767case "${build_os}" in
32768 mingw* )
32769 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32770 ;;
32771esac
32772
32773cat >>confdefs.h <<_ACEOF
32774#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32775_ACEOF
32776
32777
32778
cristy3ed852e2009-09-05 21:47:34 +000032779#
32780# program_transform_name is formed for use in a Makefile, so create a
32781# modified version for use in a shell script.
32782configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32783
32784# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032785{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32786$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032788$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032789{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32790$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032791AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032792BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032793BZIPDelegateDefault='bzip2'
32794BrowseDelegateDefault='xdg-open'
32795CGMDecodeDelegateDefault='ralcgm'
32796CatDelegateDefault='cat'
32797DNGDecodeDelegateDefault='ufraw-batch'
32798GVCDecodeDelegateDefault='dot'
32799DVIDecodeDelegateDefault='dvips'
32800EchoDelegateDefault='echo'
32801EditorDelegateDefault='xterm'
32802FIGDecodeDelegateDefault='fig2dev'
32803ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32804DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32805MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32806GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032807HPGLDecodeDelegateDefault='hp2xx'
32808HTMLDecodeDelegateDefault='html2ps'
32809ILBMDecodeDelegateDefault='ilbmtoppm'
32810ILBMEncodeDelegateDefault='ppmtoilbm'
32811LPDelegateDefault='lp'
32812LPRDelegateDefault='lpr'
32813LZWDecodeDelegateDefault='uncompress'
32814LZWEncodeDelegateDefault='compress'
32815LaunchDelegateDefault='gimp'
32816MANDelegateDefault='groff'
32817MPEGDecodeDelegateDefault='ffmpeg'
32818MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032819MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032820MVDelegateDefault='mv'
32821PCLDelegateDefault='pcl6'
32822PGPDecodeDelegateDefault='pgpv'
32823POVDelegateDefault='povray'
32824if test "$native_win32_build" = 'yes'; then
32825 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032826elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032827 PSDelegateDefault='gsc'
32828else
32829 PSDelegateDefault='gs'
32830fi
32831RLEEncodeDelegateDefault='rawtorle'
32832RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032833RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032834SCANDecodeDelegateDefault='scanimage'
32835TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032836UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032837WMFDecodeDelegateDefault='wmf2eps'
32838WWWDecodeDelegateDefault='curl'
32839XPSDelegateDefault='gxps'
32840ZipDelegateDefault='gzip'
32841
32842# Search for delegates
32843# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32844set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032846$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032847if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032848 $as_echo_n "(cached) " >&6
32849else
32850 case $AutotraceDecodeDelegate in
32851 [\\/]* | ?:[\\/]*)
32852 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32853 ;;
32854 *)
32855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32856for as_dir in $PATH
32857do
32858 IFS=$as_save_IFS
32859 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032860 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032862 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032864 break 2
32865 fi
32866done
cristy8b350f62009-11-15 23:12:43 +000032867 done
cristy3ed852e2009-09-05 21:47:34 +000032868IFS=$as_save_IFS
32869
32870 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32871 ;;
32872esac
32873fi
32874AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32875if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032877$as_echo "$AutotraceDecodeDelegate" >&6; }
32878else
cristy8b350f62009-11-15 23:12:43 +000032879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032880$as_echo "no" >&6; }
32881fi
32882
32883
cristy3ed852e2009-09-05 21:47:34 +000032884# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32885set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032887$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032888if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032889 $as_echo_n "(cached) " >&6
32890else
32891 case $BlenderDecodeDelegate in
32892 [\\/]* | ?:[\\/]*)
32893 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32894 ;;
32895 *)
32896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32897for as_dir in $PATH
32898do
32899 IFS=$as_save_IFS
32900 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032901 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032903 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032905 break 2
32906 fi
32907done
cristy8b350f62009-11-15 23:12:43 +000032908 done
cristy3ed852e2009-09-05 21:47:34 +000032909IFS=$as_save_IFS
32910
32911 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32912 ;;
32913esac
32914fi
32915BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32916if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032918$as_echo "$BlenderDecodeDelegate" >&6; }
32919else
cristy8b350f62009-11-15 23:12:43 +000032920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032921$as_echo "no" >&6; }
32922fi
32923
32924
32925# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32926set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032928$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032929if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032930 $as_echo_n "(cached) " >&6
32931else
32932 case $BZIPDelegate in
32933 [\\/]* | ?:[\\/]*)
32934 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32935 ;;
32936 *)
32937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32938for as_dir in $PATH
32939do
32940 IFS=$as_save_IFS
32941 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032944 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032946 break 2
32947 fi
32948done
cristy8b350f62009-11-15 23:12:43 +000032949 done
cristy3ed852e2009-09-05 21:47:34 +000032950IFS=$as_save_IFS
32951
32952 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32953 ;;
32954esac
32955fi
32956BZIPDelegate=$ac_cv_path_BZIPDelegate
32957if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032959$as_echo "$BZIPDelegate" >&6; }
32960else
cristy8b350f62009-11-15 23:12:43 +000032961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032962$as_echo "no" >&6; }
32963fi
32964
32965
32966# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32967set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032969$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032970if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032971 $as_echo_n "(cached) " >&6
32972else
32973 case $BrowseDelegate in
32974 [\\/]* | ?:[\\/]*)
32975 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32976 ;;
32977 *)
32978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32979for as_dir in $PATH
32980do
32981 IFS=$as_save_IFS
32982 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032983 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032985 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032987 break 2
32988 fi
32989done
cristy8b350f62009-11-15 23:12:43 +000032990 done
cristy3ed852e2009-09-05 21:47:34 +000032991IFS=$as_save_IFS
32992
32993 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32994 ;;
32995esac
32996fi
32997BrowseDelegate=$ac_cv_path_BrowseDelegate
32998if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033000$as_echo "$BrowseDelegate" >&6; }
33001else
cristy8b350f62009-11-15 23:12:43 +000033002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033003$as_echo "no" >&6; }
33004fi
33005
33006
33007# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
33008set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033010$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033011if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033012 $as_echo_n "(cached) " >&6
33013else
33014 case $CGMDecodeDelegate in
33015 [\\/]* | ?:[\\/]*)
33016 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
33017 ;;
33018 *)
33019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33020for as_dir in $PATH
33021do
33022 IFS=$as_save_IFS
33023 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033024 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033026 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033028 break 2
33029 fi
33030done
cristy8b350f62009-11-15 23:12:43 +000033031 done
cristy3ed852e2009-09-05 21:47:34 +000033032IFS=$as_save_IFS
33033
33034 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33035 ;;
33036esac
33037fi
33038CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33039if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033041$as_echo "$CGMDecodeDelegate" >&6; }
33042else
cristy8b350f62009-11-15 23:12:43 +000033043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033044$as_echo "no" >&6; }
33045fi
33046
33047
33048# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33049set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033051$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033052if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033053 $as_echo_n "(cached) " >&6
33054else
33055 case $CatDelegate in
33056 [\\/]* | ?:[\\/]*)
33057 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33058 ;;
33059 *)
33060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33061for as_dir in $PATH
33062do
33063 IFS=$as_save_IFS
33064 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033065 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033067 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033069 break 2
33070 fi
33071done
cristy8b350f62009-11-15 23:12:43 +000033072 done
cristy3ed852e2009-09-05 21:47:34 +000033073IFS=$as_save_IFS
33074
33075 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33076 ;;
33077esac
33078fi
33079CatDelegate=$ac_cv_path_CatDelegate
33080if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033082$as_echo "$CatDelegate" >&6; }
33083else
cristy8b350f62009-11-15 23:12:43 +000033084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033085$as_echo "no" >&6; }
33086fi
33087
33088
33089# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33090set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033092$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033093if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033094 $as_echo_n "(cached) " >&6
33095else
33096 case $DNGDecodeDelegate in
33097 [\\/]* | ?:[\\/]*)
33098 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33099 ;;
33100 *)
33101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33102for as_dir in $PATH
33103do
33104 IFS=$as_save_IFS
33105 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033106 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033108 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033110 break 2
33111 fi
33112done
cristy8b350f62009-11-15 23:12:43 +000033113 done
cristy3ed852e2009-09-05 21:47:34 +000033114IFS=$as_save_IFS
33115
33116 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33117 ;;
33118esac
33119fi
33120DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33121if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033123$as_echo "$DNGDecodeDelegate" >&6; }
33124else
cristy8b350f62009-11-15 23:12:43 +000033125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033126$as_echo "no" >&6; }
33127fi
33128
33129
33130# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33131set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033133$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033134if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033135 $as_echo_n "(cached) " >&6
33136else
33137 case $GVCDecodeDelegate in
33138 [\\/]* | ?:[\\/]*)
33139 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33140 ;;
33141 *)
33142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33143for as_dir in $PATH
33144do
33145 IFS=$as_save_IFS
33146 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033147 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033149 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033151 break 2
33152 fi
33153done
cristy8b350f62009-11-15 23:12:43 +000033154 done
cristy3ed852e2009-09-05 21:47:34 +000033155IFS=$as_save_IFS
33156
33157 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33158 ;;
33159esac
33160fi
33161GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33162if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033164$as_echo "$GVCDecodeDelegate" >&6; }
33165else
cristy8b350f62009-11-15 23:12:43 +000033166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033167$as_echo "no" >&6; }
33168fi
33169
33170
33171# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33172set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033175if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033176 $as_echo_n "(cached) " >&6
33177else
33178 case $DVIDecodeDelegate in
33179 [\\/]* | ?:[\\/]*)
33180 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33181 ;;
33182 *)
33183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33184for as_dir in $PATH
33185do
33186 IFS=$as_save_IFS
33187 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033190 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033192 break 2
33193 fi
33194done
cristy8b350f62009-11-15 23:12:43 +000033195 done
cristy3ed852e2009-09-05 21:47:34 +000033196IFS=$as_save_IFS
33197
33198 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33199 ;;
33200esac
33201fi
33202DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33203if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033205$as_echo "$DVIDecodeDelegate" >&6; }
33206else
cristy8b350f62009-11-15 23:12:43 +000033207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033208$as_echo "no" >&6; }
33209fi
33210
33211
33212# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33213set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033215$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033216if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033217 $as_echo_n "(cached) " >&6
33218else
33219 case $EchoDelegate in
33220 [\\/]* | ?:[\\/]*)
33221 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33222 ;;
33223 *)
33224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33225for as_dir in $PATH
33226do
33227 IFS=$as_save_IFS
33228 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033229 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033231 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033233 break 2
33234 fi
33235done
cristy8b350f62009-11-15 23:12:43 +000033236 done
cristy3ed852e2009-09-05 21:47:34 +000033237IFS=$as_save_IFS
33238
33239 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33240 ;;
33241esac
33242fi
33243EchoDelegate=$ac_cv_path_EchoDelegate
33244if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033246$as_echo "$EchoDelegate" >&6; }
33247else
cristy8b350f62009-11-15 23:12:43 +000033248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033249$as_echo "no" >&6; }
33250fi
33251
33252
33253# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33254set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033256$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033257if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033258 $as_echo_n "(cached) " >&6
33259else
33260 case $EditorDelegate in
33261 [\\/]* | ?:[\\/]*)
33262 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33263 ;;
33264 *)
33265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33266for as_dir in $PATH
33267do
33268 IFS=$as_save_IFS
33269 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033270 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033272 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033274 break 2
33275 fi
33276done
cristy8b350f62009-11-15 23:12:43 +000033277 done
cristy3ed852e2009-09-05 21:47:34 +000033278IFS=$as_save_IFS
33279
33280 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33281 ;;
33282esac
33283fi
33284EditorDelegate=$ac_cv_path_EditorDelegate
33285if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033287$as_echo "$EditorDelegate" >&6; }
33288else
cristy8b350f62009-11-15 23:12:43 +000033289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033290$as_echo "no" >&6; }
33291fi
33292
33293
33294# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33295set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033298if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033299 $as_echo_n "(cached) " >&6
33300else
33301 case $FIGDecodeDelegate in
33302 [\\/]* | ?:[\\/]*)
33303 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33304 ;;
33305 *)
33306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33307for as_dir in $PATH
33308do
33309 IFS=$as_save_IFS
33310 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033313 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033315 break 2
33316 fi
33317done
cristy8b350f62009-11-15 23:12:43 +000033318 done
cristy3ed852e2009-09-05 21:47:34 +000033319IFS=$as_save_IFS
33320
33321 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33322 ;;
33323esac
33324fi
33325FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33326if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033328$as_echo "$FIGDecodeDelegate" >&6; }
33329else
cristy8b350f62009-11-15 23:12:43 +000033330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033331$as_echo "no" >&6; }
33332fi
33333
33334
33335# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33336set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033338$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033339if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033340 $as_echo_n "(cached) " >&6
33341else
33342 case $ConvertDelegate in
33343 [\\/]* | ?:[\\/]*)
33344 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33345 ;;
33346 *)
33347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33348for as_dir in $PATH
33349do
33350 IFS=$as_save_IFS
33351 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033352 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033354 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033356 break 2
33357 fi
33358done
cristy8b350f62009-11-15 23:12:43 +000033359 done
cristy3ed852e2009-09-05 21:47:34 +000033360IFS=$as_save_IFS
33361
33362 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33363 ;;
33364esac
33365fi
33366ConvertDelegate=$ac_cv_path_ConvertDelegate
33367if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033369$as_echo "$ConvertDelegate" >&6; }
33370else
cristy8b350f62009-11-15 23:12:43 +000033371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033372$as_echo "no" >&6; }
33373fi
33374
33375
33376# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33377set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033380if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033381 $as_echo_n "(cached) " >&6
33382else
33383 case $DisplayDelegate in
33384 [\\/]* | ?:[\\/]*)
33385 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33386 ;;
33387 *)
33388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33389for as_dir in $PATH
33390do
33391 IFS=$as_save_IFS
33392 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033395 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033397 break 2
33398 fi
33399done
cristy8b350f62009-11-15 23:12:43 +000033400 done
cristy3ed852e2009-09-05 21:47:34 +000033401IFS=$as_save_IFS
33402
33403 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33404 ;;
33405esac
33406fi
33407DisplayDelegate=$ac_cv_path_DisplayDelegate
33408if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033410$as_echo "$DisplayDelegate" >&6; }
33411else
cristy8b350f62009-11-15 23:12:43 +000033412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033413$as_echo "no" >&6; }
33414fi
33415
33416
33417# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33418set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033420$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033421if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033422 $as_echo_n "(cached) " >&6
33423else
33424 case $MogrifyDelegate in
33425 [\\/]* | ?:[\\/]*)
33426 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33427 ;;
33428 *)
33429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33430for as_dir in $PATH
33431do
33432 IFS=$as_save_IFS
33433 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033434 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033436 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033438 break 2
33439 fi
33440done
cristy8b350f62009-11-15 23:12:43 +000033441 done
cristy3ed852e2009-09-05 21:47:34 +000033442IFS=$as_save_IFS
33443
33444 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33445 ;;
33446esac
33447fi
33448MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33449if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033451$as_echo "$MogrifyDelegate" >&6; }
33452else
cristy8b350f62009-11-15 23:12:43 +000033453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033454$as_echo "no" >&6; }
33455fi
33456
33457
33458# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33459set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033462if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033463 $as_echo_n "(cached) " >&6
33464else
33465 case $GnuplotDecodeDelegate in
33466 [\\/]* | ?:[\\/]*)
33467 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33468 ;;
33469 *)
33470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33471for as_dir in $PATH
33472do
33473 IFS=$as_save_IFS
33474 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033477 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033479 break 2
33480 fi
33481done
cristy8b350f62009-11-15 23:12:43 +000033482 done
cristy3ed852e2009-09-05 21:47:34 +000033483IFS=$as_save_IFS
33484
33485 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33486 ;;
33487esac
33488fi
33489GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33490if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033492$as_echo "$GnuplotDecodeDelegate" >&6; }
33493else
cristy8b350f62009-11-15 23:12:43 +000033494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033495$as_echo "no" >&6; }
33496fi
33497
33498
cristy3ed852e2009-09-05 21:47:34 +000033499# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33500set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033503if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033504 $as_echo_n "(cached) " >&6
33505else
33506 case $HPGLDecodeDelegate in
33507 [\\/]* | ?:[\\/]*)
33508 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33509 ;;
33510 *)
33511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33512for as_dir in $PATH
33513do
33514 IFS=$as_save_IFS
33515 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033518 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033520 break 2
33521 fi
33522done
cristy8b350f62009-11-15 23:12:43 +000033523 done
cristy3ed852e2009-09-05 21:47:34 +000033524IFS=$as_save_IFS
33525
33526 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33527 ;;
33528esac
33529fi
33530HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33531if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033533$as_echo "$HPGLDecodeDelegate" >&6; }
33534else
cristy8b350f62009-11-15 23:12:43 +000033535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033536$as_echo "no" >&6; }
33537fi
33538
33539
33540# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33541set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033544if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033545 $as_echo_n "(cached) " >&6
33546else
33547 case $HTMLDecodeDelegate in
33548 [\\/]* | ?:[\\/]*)
33549 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33550 ;;
33551 *)
33552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33553for as_dir in $PATH
33554do
33555 IFS=$as_save_IFS
33556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033559 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033561 break 2
33562 fi
33563done
cristy8b350f62009-11-15 23:12:43 +000033564 done
cristy3ed852e2009-09-05 21:47:34 +000033565IFS=$as_save_IFS
33566
33567 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33568 ;;
33569esac
33570fi
33571HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33572if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033574$as_echo "$HTMLDecodeDelegate" >&6; }
33575else
cristy8b350f62009-11-15 23:12:43 +000033576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033577$as_echo "no" >&6; }
33578fi
33579
33580
33581# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33582set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033585if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033586 $as_echo_n "(cached) " >&6
33587else
33588 case $ILBMDecodeDelegate in
33589 [\\/]* | ?:[\\/]*)
33590 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33591 ;;
33592 *)
33593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33594for as_dir in $PATH
33595do
33596 IFS=$as_save_IFS
33597 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033600 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033602 break 2
33603 fi
33604done
cristy8b350f62009-11-15 23:12:43 +000033605 done
cristy3ed852e2009-09-05 21:47:34 +000033606IFS=$as_save_IFS
33607
33608 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33609 ;;
33610esac
33611fi
33612ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33613if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033615$as_echo "$ILBMDecodeDelegate" >&6; }
33616else
cristy8b350f62009-11-15 23:12:43 +000033617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033618$as_echo "no" >&6; }
33619fi
33620
33621
33622# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33623set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033625$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033626if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033627 $as_echo_n "(cached) " >&6
33628else
33629 case $ILBMEncodeDelegate in
33630 [\\/]* | ?:[\\/]*)
33631 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33632 ;;
33633 *)
33634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33635for as_dir in $PATH
33636do
33637 IFS=$as_save_IFS
33638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033641 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033643 break 2
33644 fi
33645done
cristy8b350f62009-11-15 23:12:43 +000033646 done
cristy3ed852e2009-09-05 21:47:34 +000033647IFS=$as_save_IFS
33648
33649 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33650 ;;
33651esac
33652fi
33653ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33654if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033656$as_echo "$ILBMEncodeDelegate" >&6; }
33657else
cristy8b350f62009-11-15 23:12:43 +000033658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033659$as_echo "no" >&6; }
33660fi
33661
33662
33663# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33664set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033666$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033667if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033668 $as_echo_n "(cached) " >&6
33669else
33670 case $LPDelegate in
33671 [\\/]* | ?:[\\/]*)
33672 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33673 ;;
33674 *)
33675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33676for as_dir in $PATH
33677do
33678 IFS=$as_save_IFS
33679 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033680 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033682 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033684 break 2
33685 fi
33686done
cristy8b350f62009-11-15 23:12:43 +000033687 done
cristy3ed852e2009-09-05 21:47:34 +000033688IFS=$as_save_IFS
33689
33690 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33691 ;;
33692esac
33693fi
33694LPDelegate=$ac_cv_path_LPDelegate
33695if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033697$as_echo "$LPDelegate" >&6; }
33698else
cristy8b350f62009-11-15 23:12:43 +000033699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033700$as_echo "no" >&6; }
33701fi
33702
33703
33704# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33705set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033707$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033708if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033709 $as_echo_n "(cached) " >&6
33710else
33711 case $LPRDelegate in
33712 [\\/]* | ?:[\\/]*)
33713 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33714 ;;
33715 *)
33716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33717for as_dir in $PATH
33718do
33719 IFS=$as_save_IFS
33720 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033721 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033723 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033725 break 2
33726 fi
33727done
cristy8b350f62009-11-15 23:12:43 +000033728 done
cristy3ed852e2009-09-05 21:47:34 +000033729IFS=$as_save_IFS
33730
33731 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33732 ;;
33733esac
33734fi
33735LPRDelegate=$ac_cv_path_LPRDelegate
33736if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033738$as_echo "$LPRDelegate" >&6; }
33739else
cristy8b350f62009-11-15 23:12:43 +000033740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033741$as_echo "no" >&6; }
33742fi
33743
33744
33745# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33746set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033748$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033749if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033750 $as_echo_n "(cached) " >&6
33751else
33752 case $LZWDecodeDelegate in
33753 [\\/]* | ?:[\\/]*)
33754 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33755 ;;
33756 *)
33757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33758for as_dir in $PATH
33759do
33760 IFS=$as_save_IFS
33761 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033764 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033766 break 2
33767 fi
33768done
cristy8b350f62009-11-15 23:12:43 +000033769 done
cristy3ed852e2009-09-05 21:47:34 +000033770IFS=$as_save_IFS
33771
33772 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33773 ;;
33774esac
33775fi
33776LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33777if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033779$as_echo "$LZWDecodeDelegate" >&6; }
33780else
cristy8b350f62009-11-15 23:12:43 +000033781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033782$as_echo "no" >&6; }
33783fi
33784
33785
33786# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33787set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033789$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033790if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033791 $as_echo_n "(cached) " >&6
33792else
33793 case $LZWEncodeDelegate in
33794 [\\/]* | ?:[\\/]*)
33795 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33796 ;;
33797 *)
33798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33799for as_dir in $PATH
33800do
33801 IFS=$as_save_IFS
33802 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033803 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033805 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033807 break 2
33808 fi
33809done
cristy8b350f62009-11-15 23:12:43 +000033810 done
cristy3ed852e2009-09-05 21:47:34 +000033811IFS=$as_save_IFS
33812
33813 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33814 ;;
33815esac
33816fi
33817LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33818if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033820$as_echo "$LZWEncodeDelegate" >&6; }
33821else
cristy8b350f62009-11-15 23:12:43 +000033822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033823$as_echo "no" >&6; }
33824fi
33825
33826
33827# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33828set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033830$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033831if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033832 $as_echo_n "(cached) " >&6
33833else
33834 case $LaunchDelegate in
33835 [\\/]* | ?:[\\/]*)
33836 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33837 ;;
33838 *)
33839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33840for as_dir in $PATH
33841do
33842 IFS=$as_save_IFS
33843 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033844 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033846 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033848 break 2
33849 fi
33850done
cristy8b350f62009-11-15 23:12:43 +000033851 done
cristy3ed852e2009-09-05 21:47:34 +000033852IFS=$as_save_IFS
33853
33854 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33855 ;;
33856esac
33857fi
33858LaunchDelegate=$ac_cv_path_LaunchDelegate
33859if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033861$as_echo "$LaunchDelegate" >&6; }
33862else
cristy8b350f62009-11-15 23:12:43 +000033863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033864$as_echo "no" >&6; }
33865fi
33866
33867
33868# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33869set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033872if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033873 $as_echo_n "(cached) " >&6
33874else
33875 case $MANDelegate in
33876 [\\/]* | ?:[\\/]*)
33877 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33878 ;;
33879 *)
33880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33881for as_dir in $PATH
33882do
33883 IFS=$as_save_IFS
33884 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033885 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033887 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033889 break 2
33890 fi
33891done
cristy8b350f62009-11-15 23:12:43 +000033892 done
cristy3ed852e2009-09-05 21:47:34 +000033893IFS=$as_save_IFS
33894
33895 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33896 ;;
33897esac
33898fi
33899MANDelegate=$ac_cv_path_MANDelegate
33900if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033902$as_echo "$MANDelegate" >&6; }
33903else
cristy8b350f62009-11-15 23:12:43 +000033904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033905$as_echo "no" >&6; }
33906fi
33907
33908
33909# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33910set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033912$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033913if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033914 $as_echo_n "(cached) " >&6
33915else
33916 case $MPEGDecodeDelegate in
33917 [\\/]* | ?:[\\/]*)
33918 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33919 ;;
33920 *)
33921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33922for as_dir in $PATH
33923do
33924 IFS=$as_save_IFS
33925 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033926 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033928 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033930 break 2
33931 fi
33932done
cristy8b350f62009-11-15 23:12:43 +000033933 done
cristy3ed852e2009-09-05 21:47:34 +000033934IFS=$as_save_IFS
33935
33936 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33937 ;;
33938esac
33939fi
33940MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33941if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033943$as_echo "$MPEGDecodeDelegate" >&6; }
33944else
cristy8b350f62009-11-15 23:12:43 +000033945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033946$as_echo "no" >&6; }
33947fi
33948
33949
33950# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33951set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033953$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033954if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033955 $as_echo_n "(cached) " >&6
33956else
33957 case $MPEGEncodeDelegate in
33958 [\\/]* | ?:[\\/]*)
33959 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33960 ;;
33961 *)
33962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33963for as_dir in $PATH
33964do
33965 IFS=$as_save_IFS
33966 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033967 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033969 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033971 break 2
33972 fi
33973done
cristy8b350f62009-11-15 23:12:43 +000033974 done
cristy3ed852e2009-09-05 21:47:34 +000033975IFS=$as_save_IFS
33976
33977 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33978 ;;
33979esac
33980fi
33981MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33982if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033984$as_echo "$MPEGEncodeDelegate" >&6; }
33985else
cristy8b350f62009-11-15 23:12:43 +000033986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033987$as_echo "no" >&6; }
33988fi
33989
33990
cristy935c86e2010-06-05 23:50:07 +000033991# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33992set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33994$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033995if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033996 $as_echo_n "(cached) " >&6
33997else
33998 case $MrSIDDecodeDelegate in
33999 [\\/]* | ?:[\\/]*)
34000 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34001 ;;
34002 *)
34003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34004for as_dir in $PATH
34005do
34006 IFS=$as_save_IFS
34007 test -z "$as_dir" && as_dir=.
34008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034010 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34012 break 2
34013 fi
34014done
34015 done
34016IFS=$as_save_IFS
34017
34018 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34019 ;;
34020esac
34021fi
34022MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34023if test -n "$MrSIDDecodeDelegate"; then
34024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34025$as_echo "$MrSIDDecodeDelegate" >&6; }
34026else
34027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34028$as_echo "no" >&6; }
34029fi
34030
34031
cristy3ed852e2009-09-05 21:47:34 +000034032# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34033set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034036if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034037 $as_echo_n "(cached) " >&6
34038else
34039 case $MVDelegate in
34040 [\\/]* | ?:[\\/]*)
34041 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34042 ;;
34043 *)
34044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34045for as_dir in $PATH
34046do
34047 IFS=$as_save_IFS
34048 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034049 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034051 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034053 break 2
34054 fi
34055done
cristy8b350f62009-11-15 23:12:43 +000034056 done
cristy3ed852e2009-09-05 21:47:34 +000034057IFS=$as_save_IFS
34058
34059 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34060 ;;
34061esac
34062fi
34063MVDelegate=$ac_cv_path_MVDelegate
34064if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034066$as_echo "$MVDelegate" >&6; }
34067else
cristy8b350f62009-11-15 23:12:43 +000034068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034069$as_echo "no" >&6; }
34070fi
34071
34072
34073# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34074set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034076$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034077if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034078 $as_echo_n "(cached) " >&6
34079else
34080 case $PCLDelegate in
34081 [\\/]* | ?:[\\/]*)
34082 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34083 ;;
34084 *)
34085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34086for as_dir in $PATH
34087do
34088 IFS=$as_save_IFS
34089 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034090 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034092 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034094 break 2
34095 fi
34096done
cristy8b350f62009-11-15 23:12:43 +000034097 done
cristy3ed852e2009-09-05 21:47:34 +000034098IFS=$as_save_IFS
34099
34100 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34101 ;;
34102esac
34103fi
34104PCLDelegate=$ac_cv_path_PCLDelegate
34105if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034107$as_echo "$PCLDelegate" >&6; }
34108else
cristy8b350f62009-11-15 23:12:43 +000034109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034110$as_echo "no" >&6; }
34111fi
34112
34113
34114# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34115set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034117$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034118if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034119 $as_echo_n "(cached) " >&6
34120else
34121 case $PGPDecodeDelegate in
34122 [\\/]* | ?:[\\/]*)
34123 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34124 ;;
34125 *)
34126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34127for as_dir in $PATH
34128do
34129 IFS=$as_save_IFS
34130 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034133 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034135 break 2
34136 fi
34137done
cristy8b350f62009-11-15 23:12:43 +000034138 done
cristy3ed852e2009-09-05 21:47:34 +000034139IFS=$as_save_IFS
34140
34141 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34142 ;;
34143esac
34144fi
34145PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34146if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034148$as_echo "$PGPDecodeDelegate" >&6; }
34149else
cristy8b350f62009-11-15 23:12:43 +000034150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034151$as_echo "no" >&6; }
34152fi
34153
34154
34155# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34156set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034158$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034159if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034160 $as_echo_n "(cached) " >&6
34161else
34162 case $POVDelegate in
34163 [\\/]* | ?:[\\/]*)
34164 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34165 ;;
34166 *)
34167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34168for as_dir in $PATH
34169do
34170 IFS=$as_save_IFS
34171 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034172 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034174 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034176 break 2
34177 fi
34178done
cristy8b350f62009-11-15 23:12:43 +000034179 done
cristy3ed852e2009-09-05 21:47:34 +000034180IFS=$as_save_IFS
34181
34182 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34183 ;;
34184esac
34185fi
34186POVDelegate=$ac_cv_path_POVDelegate
34187if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034189$as_echo "$POVDelegate" >&6; }
34190else
cristy8b350f62009-11-15 23:12:43 +000034191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034192$as_echo "no" >&6; }
34193fi
34194
34195
34196for ac_prog in gsx gsc "$PSDelegateDefault"
34197do
34198 # Extract the first word of "$ac_prog", so it can be a program name with args.
34199set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034201$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034202if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034203 $as_echo_n "(cached) " >&6
34204else
34205 case $PSDelegate in
34206 [\\/]* | ?:[\\/]*)
34207 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34208 ;;
34209 *)
34210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34211for as_dir in $PATH
34212do
34213 IFS=$as_save_IFS
34214 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034215 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034217 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034219 break 2
34220 fi
34221done
cristy8b350f62009-11-15 23:12:43 +000034222 done
cristy3ed852e2009-09-05 21:47:34 +000034223IFS=$as_save_IFS
34224
34225 ;;
34226esac
34227fi
34228PSDelegate=$ac_cv_path_PSDelegate
34229if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034231$as_echo "$PSDelegate" >&6; }
34232else
cristy8b350f62009-11-15 23:12:43 +000034233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034234$as_echo "no" >&6; }
34235fi
34236
34237
34238 test -n "$PSDelegate" && break
34239done
34240test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34241
34242# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34243set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034245$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034246if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034247 $as_echo_n "(cached) " >&6
34248else
34249 case $RLEEncodeDelegate in
34250 [\\/]* | ?:[\\/]*)
34251 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34252 ;;
34253 *)
34254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34255for as_dir in $PATH
34256do
34257 IFS=$as_save_IFS
34258 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034259 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034261 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034263 break 2
34264 fi
34265done
cristy8b350f62009-11-15 23:12:43 +000034266 done
cristy3ed852e2009-09-05 21:47:34 +000034267IFS=$as_save_IFS
34268
34269 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34270 ;;
34271esac
34272fi
34273RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34274if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034276$as_echo "$RLEEncodeDelegate" >&6; }
34277else
cristy8b350f62009-11-15 23:12:43 +000034278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034279$as_echo "no" >&6; }
34280fi
34281
34282
34283# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34284set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034286$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034287if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034288 $as_echo_n "(cached) " >&6
34289else
34290 case $RMDelegate in
34291 [\\/]* | ?:[\\/]*)
34292 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34293 ;;
34294 *)
34295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34296for as_dir in $PATH
34297do
34298 IFS=$as_save_IFS
34299 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034300 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034302 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034304 break 2
34305 fi
34306done
cristy8b350f62009-11-15 23:12:43 +000034307 done
cristy3ed852e2009-09-05 21:47:34 +000034308IFS=$as_save_IFS
34309
34310 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34311 ;;
34312esac
34313fi
34314RMDelegate=$ac_cv_path_RMDelegate
34315if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034317$as_echo "$RMDelegate" >&6; }
34318else
cristy8b350f62009-11-15 23:12:43 +000034319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034320$as_echo "no" >&6; }
34321fi
34322
34323
cristy4689cf02010-02-17 21:15:45 +000034324# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34325set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34327$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034328if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034329 $as_echo_n "(cached) " >&6
34330else
34331 case $RSVGDecodeDelegate in
34332 [\\/]* | ?:[\\/]*)
34333 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34334 ;;
34335 *)
34336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34337for as_dir in $PATH
34338do
34339 IFS=$as_save_IFS
34340 test -z "$as_dir" && as_dir=.
34341 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034343 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34345 break 2
34346 fi
34347done
34348 done
34349IFS=$as_save_IFS
34350
34351 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34352 ;;
34353esac
34354fi
34355RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34356if test -n "$RSVGDecodeDelegate"; then
34357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34358$as_echo "$RSVGDecodeDelegate" >&6; }
34359else
34360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34361$as_echo "no" >&6; }
34362fi
34363
34364
cristy3ed852e2009-09-05 21:47:34 +000034365# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34366set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034368$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034369if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034370 $as_echo_n "(cached) " >&6
34371else
34372 case $SCANDecodeDelegate in
34373 [\\/]* | ?:[\\/]*)
34374 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34375 ;;
34376 *)
34377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34378for as_dir in $PATH
34379do
34380 IFS=$as_save_IFS
34381 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034382 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034384 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034386 break 2
34387 fi
34388done
cristy8b350f62009-11-15 23:12:43 +000034389 done
cristy3ed852e2009-09-05 21:47:34 +000034390IFS=$as_save_IFS
34391
34392 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34393 ;;
34394esac
34395fi
34396SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34397if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034399$as_echo "$SCANDecodeDelegate" >&6; }
34400else
cristy8b350f62009-11-15 23:12:43 +000034401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034402$as_echo "no" >&6; }
34403fi
34404
34405
34406# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34407set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034409$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034410if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034411 $as_echo_n "(cached) " >&6
34412else
34413 case $TXTDelegate in
34414 [\\/]* | ?:[\\/]*)
34415 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34416 ;;
34417 *)
34418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34419for as_dir in $PATH
34420do
34421 IFS=$as_save_IFS
34422 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034423 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034425 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034427 break 2
34428 fi
34429done
cristy8b350f62009-11-15 23:12:43 +000034430 done
cristy3ed852e2009-09-05 21:47:34 +000034431IFS=$as_save_IFS
34432
34433 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34434 ;;
34435esac
34436fi
34437TXTDelegate=$ac_cv_path_TXTDelegate
34438if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034440$as_echo "$TXTDelegate" >&6; }
34441else
cristy8b350f62009-11-15 23:12:43 +000034442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034443$as_echo "no" >&6; }
34444fi
34445
34446
cristy5ac9ac82010-07-29 13:24:24 +000034447# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34448set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34450$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034451if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034452 $as_echo_n "(cached) " >&6
34453else
34454 case $UniconvertorDelegate in
34455 [\\/]* | ?:[\\/]*)
34456 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34457 ;;
34458 *)
34459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34460for as_dir in $PATH
34461do
34462 IFS=$as_save_IFS
34463 test -z "$as_dir" && as_dir=.
34464 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034466 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34468 break 2
34469 fi
34470done
34471 done
34472IFS=$as_save_IFS
34473
34474 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34475 ;;
34476esac
34477fi
34478UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34479if test -n "$UniconvertorDelegate"; then
34480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34481$as_echo "$UniconvertorDelegate" >&6; }
34482else
34483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34484$as_echo "no" >&6; }
34485fi
34486
34487
cristy3ed852e2009-09-05 21:47:34 +000034488# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34489set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034491$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034492if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034493 $as_echo_n "(cached) " >&6
34494else
34495 case $WMFDecodeDelegate in
34496 [\\/]* | ?:[\\/]*)
34497 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34498 ;;
34499 *)
34500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34501for as_dir in $PATH
34502do
34503 IFS=$as_save_IFS
34504 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034505 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034507 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034509 break 2
34510 fi
34511done
cristy8b350f62009-11-15 23:12:43 +000034512 done
cristy3ed852e2009-09-05 21:47:34 +000034513IFS=$as_save_IFS
34514
34515 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34516 ;;
34517esac
34518fi
34519WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34520if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034522$as_echo "$WMFDecodeDelegate" >&6; }
34523else
cristy8b350f62009-11-15 23:12:43 +000034524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034525$as_echo "no" >&6; }
34526fi
34527
34528
34529# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34530set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034532$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034533if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034534 $as_echo_n "(cached) " >&6
34535else
34536 case $WWWDecodeDelegate in
34537 [\\/]* | ?:[\\/]*)
34538 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34539 ;;
34540 *)
34541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34542for as_dir in $PATH
34543do
34544 IFS=$as_save_IFS
34545 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034546 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034548 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034550 break 2
34551 fi
34552done
cristy8b350f62009-11-15 23:12:43 +000034553 done
cristy3ed852e2009-09-05 21:47:34 +000034554IFS=$as_save_IFS
34555
34556 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34557 ;;
34558esac
34559fi
34560WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34561if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034563$as_echo "$WWWDecodeDelegate" >&6; }
34564else
cristy8b350f62009-11-15 23:12:43 +000034565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034566$as_echo "no" >&6; }
34567fi
34568
34569
34570# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34571set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034573$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034574if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034575 $as_echo_n "(cached) " >&6
34576else
34577 case $XPSDelegate in
34578 [\\/]* | ?:[\\/]*)
34579 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34580 ;;
34581 *)
34582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34583for as_dir in $PATH
34584do
34585 IFS=$as_save_IFS
34586 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034587 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034589 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034591 break 2
34592 fi
34593done
cristy8b350f62009-11-15 23:12:43 +000034594 done
cristy3ed852e2009-09-05 21:47:34 +000034595IFS=$as_save_IFS
34596
34597 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34598 ;;
34599esac
34600fi
34601XPSDelegate=$ac_cv_path_XPSDelegate
34602if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034604$as_echo "$XPSDelegate" >&6; }
34605else
cristy8b350f62009-11-15 23:12:43 +000034606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034607$as_echo "no" >&6; }
34608fi
34609
34610
34611# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34612set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034614$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034615if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034616 $as_echo_n "(cached) " >&6
34617else
34618 case $ZipDelegate in
34619 [\\/]* | ?:[\\/]*)
34620 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34621 ;;
34622 *)
34623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34624for as_dir in $PATH
34625do
34626 IFS=$as_save_IFS
34627 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034628 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034630 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034632 break 2
34633 fi
34634done
cristy8b350f62009-11-15 23:12:43 +000034635 done
cristy3ed852e2009-09-05 21:47:34 +000034636IFS=$as_save_IFS
34637
34638 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34639 ;;
34640esac
34641fi
34642ZipDelegate=$ac_cv_path_ZipDelegate
34643if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034645$as_echo "$ZipDelegate" >&6; }
34646else
cristy8b350f62009-11-15 23:12:43 +000034647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034648$as_echo "no" >&6; }
34649fi
34650
34651
34652
34653# Prefer lpr to lp; lp needs options tacked on.
34654if test "$LPRDelegate" != no; then
34655 PrintDelegate="$LPRDelegate"
34656else
34657 PrintDelegate="$LPDelegate -c -s"
34658fi
34659
34660
34661# Installed ImageMagick utiltity paths
34662ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34663DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34664MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34665
34666# Set delegate booleans
34667have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34668have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34669have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34670have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34671have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034672have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034673have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34674have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034675have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34676have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34677
34678#
34679# Test for font directories
34680#
34681type_include_files=''
34682
cristy430a7312010-01-21 20:44:04 +000034683# Dejavu fonts.
34684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34685$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34686dejavu_font_dir=''
34687if test "${with_dejavu_font_dir}" != 'default'; then
34688 dejavu_font_dir="${with_dejavu_font_dir}/"
34689else
34690 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34691 if test -f "${font_dir}DejaVuSerif.ttf"; then
34692 dejavu_font_dir="${font_dir}"
34693 break 1
34694 fi
34695 done
34696fi
34697if test "${dejavu_font_dir}x" != 'x'; then
34698 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034699 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34700$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034701else
cristy09b53e12011-10-14 12:47:22 +000034702 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34703$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034704fi
34705
34706
cristy3ed852e2009-09-05 21:47:34 +000034707# Windows
34708windows_font_dir=''
34709if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34710 windows_font_dir="${with_windows_font_dir}/"
34711fi
cristy430a7312010-01-21 20:44:04 +000034712if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034713 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34714 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34715 fi
34716 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34717 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34718 fi
34719 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34720 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34721 fi
34722fi
cristy430a7312010-01-21 20:44:04 +000034723if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034724 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34725fi
34726
34727
34728# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034730$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34731ghostscript_font_dir=''
34732if test "${with_gs_font_dir}" != 'default'; then
34733 ghostscript_font_dir="${with_gs_font_dir}/"
34734else
34735 if test "${native_win32_build}" = 'yes'; then
34736 # Native Windows Build
34737 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34738 if test -f "${font_dir}a010013l.pfb"; then
34739 ghostscript_font_dir="$font_dir"
34740 break 1
34741 fi
34742 done
34743 if test "${PSDelegate}" != 'gswin32c'; then
34744 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34745 fi
34746 else
34747 # Linux / Mac OS X / Unix Build
34748 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
34749 if test -f "${font_dir}a010013l.pfb"; then
34750 ghostscript_font_dir="${font_dir}"
34751 break 1
34752 fi
34753 done
34754 if test "${ghostscript_font_dir}x" = 'x'; then
34755 if test "$PSDelegate" != 'gs'; then
34756 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34757 fi
34758 fi
34759 fi
34760fi
34761if test "${ghostscript_font_dir}x" != 'x'; then
34762 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034763 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34764$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034765else
cristy09b53e12011-10-14 12:47:22 +000034766 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34767$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034768fi
34769
34770case "${build_os}" in
34771 mingw* )
34772 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34773 ;;
34774esac
34775
34776
34777
34778#
34779# Handle case where user doesn't want frozen paths
34780#
34781if test "$with_frozenpaths" != 'yes'; then
34782 # Re-set delegate definitions to default (no paths)
34783 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034784 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34785 BZIPDelegate="$BZIPDelegateDefault"
34786 BrowseDelegate="$BrowseDelegateDefault"
34787 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34788 CatDelegate="$CatDelegateDefault"
34789 ConvertDelegate="$ConvertDelegateDefault"
34790 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34791 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34792 EchoDelegate="$EchoDelegateDefault"
34793 EditorDelegate="$EditorDelegateDefault"
34794 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34795 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34796 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34797 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34798 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34799 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34800 LPDelegate="$LPDelegateDefault"
34801 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34802 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34803 LaunchDelegate="$LaunchDelegateDefault"
34804 MANDelegate="$MANDelegateDefault"
34805 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34806 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034807 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034808 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34809 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034810 PCLDelegate="$PCLDelegateDefault"
34811 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34812 POVDelegate="$POVDelegateDefault"
34813 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034814 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34815 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034816 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034817 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34818 ShowImageDelegate="$ShowImageDelegateDefault"
34819 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034820 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034821 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34822 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34823 XPSDelegate="$XPSDelegateDefault"
34824 ZipDelegate="$ZipDelegateDefault"
34825fi
34826
34827# Delegate substitutions
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
34869
34870#
34871# RPM support.
34872#
34873RPM=''
34874for ac_prog in gnutar gtar tar
34875do
34876 # Extract the first word of "$ac_prog", so it can be a program name with args.
34877set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034879$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034880if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034881 $as_echo_n "(cached) " >&6
34882else
34883 if test -n "$TAR"; then
34884 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34885else
34886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34887for as_dir in $PATH
34888do
34889 IFS=$as_save_IFS
34890 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034891 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034893 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034895 break 2
34896 fi
34897done
cristy8b350f62009-11-15 23:12:43 +000034898 done
cristy3ed852e2009-09-05 21:47:34 +000034899IFS=$as_save_IFS
34900
34901fi
34902fi
34903TAR=$ac_cv_prog_TAR
34904if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034906$as_echo "$TAR" >&6; }
34907else
cristy8b350f62009-11-15 23:12:43 +000034908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034909$as_echo "no" >&6; }
34910fi
34911
34912
34913 test -n "$TAR" && break
34914done
34915
34916for ac_prog in perl
34917do
34918 # Extract the first word of "$ac_prog", so it can be a program name with args.
34919set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034922if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034923 $as_echo_n "(cached) " >&6
34924else
34925 if test -n "$PERL"; then
34926 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34927else
34928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34929for as_dir in $PATH
34930do
34931 IFS=$as_save_IFS
34932 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034935 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034937 break 2
34938 fi
34939done
cristy8b350f62009-11-15 23:12:43 +000034940 done
cristy3ed852e2009-09-05 21:47:34 +000034941IFS=$as_save_IFS
34942
34943fi
34944fi
34945PERL=$ac_cv_prog_PERL
34946if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034948$as_echo "$PERL" >&6; }
34949else
cristy8b350f62009-11-15 23:12:43 +000034950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034951$as_echo "no" >&6; }
34952fi
34953
34954
34955 test -n "$PERL" && break
34956done
34957
34958for ac_prog in rpmbuild rpm
34959do
34960 # Extract the first word of "$ac_prog", so it can be a program name with args.
34961set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034964if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034965 $as_echo_n "(cached) " >&6
34966else
34967 if test -n "$RPM"; then
34968 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34969else
34970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34971for as_dir in $PATH
34972do
34973 IFS=$as_save_IFS
34974 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034977 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034979 break 2
34980 fi
34981done
cristy8b350f62009-11-15 23:12:43 +000034982 done
cristy3ed852e2009-09-05 21:47:34 +000034983IFS=$as_save_IFS
34984
34985fi
34986fi
34987RPM=$ac_cv_prog_RPM
34988if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034990$as_echo "$RPM" >&6; }
34991else
cristy8b350f62009-11-15 23:12:43 +000034992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034993$as_echo "no" >&6; }
34994fi
34995
34996
34997 test -n "$RPM" && break
34998done
34999
35000
cristy73bd4a52010-10-05 11:24:23 +000035001ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35002
35003
35004AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35005
35006
35007AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35008
35009
35010AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35011
35012
35013 if test "x$RPM" != "x" ; then
35014 RPM_DELEGATE_TRUE=
35015 RPM_DELEGATE_FALSE='#'
35016else
35017 RPM_DELEGATE_TRUE='#'
35018 RPM_DELEGATE_FALSE=
35019fi
35020
cristy3ed852e2009-09-05 21:47:34 +000035021
35022#
35023# 7ZIP support (http://p7zip.sourceforge.net/)
35024#
35025P7ZIP=''
35026for ac_prog in 7za
35027do
35028 # Extract the first word of "$ac_prog", so it can be a program name with args.
35029set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035031$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035032if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035033 $as_echo_n "(cached) " >&6
35034else
35035 if test -n "$P7ZIP"; then
35036 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35037else
35038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35039for as_dir in $PATH
35040do
35041 IFS=$as_save_IFS
35042 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035043 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035045 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035047 break 2
35048 fi
35049done
cristy8b350f62009-11-15 23:12:43 +000035050 done
cristy3ed852e2009-09-05 21:47:34 +000035051IFS=$as_save_IFS
35052
35053fi
35054fi
35055P7ZIP=$ac_cv_prog_P7ZIP
35056if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035058$as_echo "$P7ZIP" >&6; }
35059else
cristy8b350f62009-11-15 23:12:43 +000035060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035061$as_echo "no" >&6; }
35062fi
35063
35064
35065 test -n "$P7ZIP" && break
35066done
35067
35068
cristy73bd4a52010-10-05 11:24:23 +000035069 if test "x$P7ZIP" != "x" ; then
35070 P7ZIP_DELEGATE_TRUE=
35071 P7ZIP_DELEGATE_FALSE='#'
35072else
35073 P7ZIP_DELEGATE_TRUE='#'
35074 P7ZIP_DELEGATE_FALSE=
35075fi
35076
cristy3ed852e2009-09-05 21:47:34 +000035077
35078#
35079# ZIP support (http://www.info-zip.org/Zip.html)
35080#
35081ZIP=''
35082for ac_prog in zip
35083do
35084 # Extract the first word of "$ac_prog", so it can be a program name with args.
35085set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035088if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035089 $as_echo_n "(cached) " >&6
35090else
35091 if test -n "$ZIP"; then
35092 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35093else
35094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35095for as_dir in $PATH
35096do
35097 IFS=$as_save_IFS
35098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035101 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035103 break 2
35104 fi
35105done
cristy8b350f62009-11-15 23:12:43 +000035106 done
cristy3ed852e2009-09-05 21:47:34 +000035107IFS=$as_save_IFS
35108
35109fi
35110fi
35111ZIP=$ac_cv_prog_ZIP
35112if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035114$as_echo "$ZIP" >&6; }
35115else
cristy8b350f62009-11-15 23:12:43 +000035116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035117$as_echo "no" >&6; }
35118fi
35119
35120
35121 test -n "$ZIP" && break
35122done
35123
35124
cristy73bd4a52010-10-05 11:24:23 +000035125 if test "x$ZIP" != "x" ; then
35126 ZIP_DELEGATE_TRUE=
35127 ZIP_DELEGATE_FALSE='#'
35128else
35129 ZIP_DELEGATE_TRUE='#'
35130 ZIP_DELEGATE_FALSE=
35131fi
35132
cristy3ed852e2009-09-05 21:47:34 +000035133
35134#
35135# GhostPCL related configuration.
35136#
35137PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035138PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035139PCLMonoDevice=pbmraw
35140if test -z "$PCLVersion"; then
35141 PCLVersion='unknown'
35142fi
35143if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035144 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35145$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035147$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035148 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35149$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035150 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035152$as_echo_n "checking for pcl color device... " >&6; }
35153 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35154 :
35155 else
35156 PCLColorDevice=ppmraw
35157 fi
cristy09b53e12011-10-14 12:47:22 +000035158 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35159$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035160
35161 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035163$as_echo_n "checking for pcl CMYK device... " >&6; }
35164 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35165 :
35166 else
35167 PCLCMYKDevice=$PCLColorDevice
35168 fi
cristy09b53e12011-10-14 12:47:22 +000035169 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35170$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035171
35172 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035174$as_echo_n "checking for pcl mono device... " >&6; }
35175 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35176 :
35177 else
35178 PCLMonoDevice=$PCLColorDevice
35179 fi
cristy09b53e12011-10-14 12:47:22 +000035180 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35181$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035182fi
35183
35184
35185
35186
35187
35188
35189#
35190# GhostXPS related configuration.
35191#
35192XPSColorDevice=ppmraw
35193XPSCMYKDevice=bmpsep8
35194XPSMonoDevice=pbmraw
35195if test -z "$XPSVersion"; then
35196 XPSVersion='unknown'
35197fi
35198if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035199 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35200$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035202$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035203 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35204$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035205 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035207$as_echo_n "checking for xps color device... " >&6; }
35208 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35209 :
35210 else
35211 XPSColorDevice=ppmraw
35212 fi
cristy09b53e12011-10-14 12:47:22 +000035213 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35214$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035215
35216 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035218$as_echo_n "checking for xps CMYK device... " >&6; }
35219 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35220 :
35221 else
35222 XPSCMYKDevice=$XPSColorDevice
35223 fi
cristy09b53e12011-10-14 12:47:22 +000035224 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35225$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035226
35227 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035229$as_echo_n "checking for xps mono device... " >&6; }
35230 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35231 :
35232 else
35233 XPSMonoDevice=$XPSColorDevice
35234 fi
cristy09b53e12011-10-14 12:47:22 +000035235 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35236$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035237fi
35238
35239
35240
35241
35242
35243
35244#
35245# Ghostscript related configuration.
35246#
cristya97426c2011-02-04 01:41:27 +000035247GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035248GSColorDevice=pnmraw
35249GSCMYKDevice=pam
35250GSMonoDevice=pbmraw
35251GSPDFDevice=pdfwrite
35252GSPSDevice=pswrite
35253GSEPSDevice=epswrite
35254GSVersion='unknown'
35255if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035256 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35257$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035259$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035260 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35261$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035263$as_echo_n "checking for Ghostscript version... " >&6; }
35264 if GSVersion=`$PSDelegate --version`; then
35265 :
35266 else
35267 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35268 fi
cristy09b53e12011-10-14 12:47:22 +000035269 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35270$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035271
35272 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035274$as_echo_n "checking for gs alpha device... " >&6; }
35275 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35276 :
35277 else
35278 GSAlphaDevice=pnmraw
35279 fi
cristy09b53e12011-10-14 12:47:22 +000035280 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35281$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035282
35283 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035285$as_echo_n "checking for gs color device... " >&6; }
35286 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35287 :
35288 else
35289 GSColorDevice=pnmraw
35290 fi
cristy09b53e12011-10-14 12:47:22 +000035291 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35292$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035293
35294 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035296$as_echo_n "checking for gs CMYK device... " >&6; }
35297 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35298 :
35299 else
35300 GSCMYKDevice=bmpsep8
35301 fi
cristy09b53e12011-10-14 12:47:22 +000035302 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35303$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035304
35305 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035307$as_echo_n "checking for gs mono device... " >&6; }
35308 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35309 :
35310 else
35311 GSMonoDevice=$GSColorDevice
35312 fi
cristy09b53e12011-10-14 12:47:22 +000035313 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35314$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035315
35316 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035318$as_echo_n "checking for gs PDF writing device... " >&6; }
35319 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35320 :
35321 else
35322 GSPDFDevice=nodevice
35323 fi
cristy09b53e12011-10-14 12:47:22 +000035324 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35325$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035326
35327 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035329$as_echo_n "checking for gs PS writing device... " >&6; }
35330 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35331 :
35332 else
35333 GSPSDevice=nodevice
35334 fi
cristy09b53e12011-10-14 12:47:22 +000035335 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35336$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035337
35338 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035340$as_echo_n "checking for gs EPS writing device... " >&6; }
35341 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35342 :
35343 else
35344 GSEPSDevice=nodevice
35345 fi
cristy09b53e12011-10-14 12:47:22 +000035346 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35347$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035348fi
35349
35350
35351
35352
35353
35354
35355
35356
35357
35358
35359#
35360# PerlMagick-related configuration
35361#
35362
35363# Look for PERL if PerlMagick requested
35364# If name/path of desired PERL interpreter is specified, look for that one first
35365have_perl='no'
35366if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035367 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35368$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035370$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035371 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35372$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035373 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035375$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035376if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035377 $as_echo_n "(cached) " >&6
35378else
35379 ac_cv_path_PERL="$with_perl"
35380fi
cristy8b350f62009-11-15 23:12:43 +000035381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035382$as_echo "$ac_cv_path_PERL" >&6; };
35383 PERL=$ac_cv_path_PERL
35384 have_perl="$ac_cv_path_PERL"
35385 else
35386 for ac_prog in perl perl5
35387do
35388 # Extract the first word of "$ac_prog", so it can be a program name with args.
35389set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035392if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035393 $as_echo_n "(cached) " >&6
35394else
35395 case $PERL in
35396 [\\/]* | ?:[\\/]*)
35397 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35398 ;;
35399 *)
35400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35401for as_dir in $PATH
35402do
35403 IFS=$as_save_IFS
35404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035407 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035409 break 2
35410 fi
35411done
cristy8b350f62009-11-15 23:12:43 +000035412 done
cristy3ed852e2009-09-05 21:47:34 +000035413IFS=$as_save_IFS
35414
35415 ;;
35416esac
35417fi
35418PERL=$ac_cv_path_PERL
35419if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035421$as_echo "$PERL" >&6; }
35422else
cristy8b350f62009-11-15 23:12:43 +000035423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035424$as_echo "no" >&6; }
35425fi
35426
35427
35428 test -n "$PERL" && break
35429done
35430 if test "$ac_cv_path_PERL"; then
35431 have_perl="$ac_cv_path_PERL"
35432 fi
35433 fi
35434fi
35435
cristy949301e2010-01-06 01:38:40 +000035436if test "$with_perl" != 'yes' ; then
35437 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35438fi
35439
35440PERL_SUPPORTS_DESTDIR='no'
35441
cristy3ed852e2009-09-05 21:47:34 +000035442with_perl_static='no'
35443with_perl_dynamic='no'
35444if test "$have_perl" != 'no'; then
35445 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35446 with_perl_static='yes'
35447 fi
35448 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35449 with_perl_dynamic='yes'
35450 fi
35451 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035452
35453
35454
35455
35456 if test -n "$PERL"; then :
35457
35458 ax_perl_version="5.8.1"
35459
35460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35461$as_echo_n "checking for perl version... " >&6; }
35462
35463 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35464
35465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35466$as_echo "$perl_version" >&6; }
35467
35468 PERL_VERSION=$perl_version
35469
35470
35471
35472
35473
35474 # Used to indicate true or false condition
35475 ax_compare_version=false
35476
35477 # Convert the two version strings to be compared into a format that
35478 # allows a simple string comparison. The end result is that a version
35479 # string of the form 1.12.5-r617 will be converted to the form
35480 # 0001001200050617. In other words, each number is zero padded to four
35481 # digits, and non digits are removed.
35482
35483 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35484 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35485 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35486 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35487 -e 's/[^0-9]//g'`
35488
35489
35490 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35491 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35492 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35493 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35494 -e 's/[^0-9]//g'`
35495
35496
35497 ax_compare_version=`echo "x$ax_compare_version_A
35498x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35499
35500
35501
35502 if test "$ax_compare_version" = "true" ; then
35503
35504 :
35505 PERL_SUPPORTS_DESTDIR='yes'
35506
35507 else
35508 :
35509 PERL_SUPPORTS_DESTDIR='no'
35510
35511 fi
35512
35513
35514else
35515
35516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35517$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35518 PERL_SUPPORTS_DESTDIR='no'
35519
cristy3ed852e2009-09-05 21:47:34 +000035520fi
cristy73bd4a52010-10-05 11:24:23 +000035521
35522fi
35523 if test "$have_perl" != 'no'; then
35524 WITH_PERL_TRUE=
35525 WITH_PERL_FALSE='#'
35526else
35527 WITH_PERL_TRUE='#'
35528 WITH_PERL_FALSE=
35529fi
35530
35531 if test $with_perl_static = 'yes'; then
35532 WITH_PERL_STATIC_TRUE=
35533 WITH_PERL_STATIC_FALSE='#'
35534else
35535 WITH_PERL_STATIC_TRUE='#'
35536 WITH_PERL_STATIC_FALSE=
35537fi
35538
35539 if test $with_perl_dynamic = 'yes'; then
35540 WITH_PERL_DYNAMIC_TRUE=
35541 WITH_PERL_DYNAMIC_FALSE='#'
35542else
35543 WITH_PERL_DYNAMIC_TRUE='#'
35544 WITH_PERL_DYNAMIC_FALSE=
35545fi
35546
cristy3ed852e2009-09-05 21:47:34 +000035547
35548
35549# Determine path to pick up MagickCore library from for use with building PerlMagick
35550MAGICKCORE_PATH="${LIB_DIR}"
35551if test $with_perl_static = 'yes'; then
35552 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35553 libtool_objdir=$objdir
35554
35555 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035556 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035557fi
35558
35559
35560# Create a simple string containing format names for all delegate libraries
35561DELEGATES=''
35562if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35563if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35564if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35565if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35566if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35567if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35568if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35569if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35570if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35571if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35572if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35573if test "$have_jpeg" = 'yes'; then
35574 DELEGATES="$DELEGATES jpeg";
35575 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35576fi
35577if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035578if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035579if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35580if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035581if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035582if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35583if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035584if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035585if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35586if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35587if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35588if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35589if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35590if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35591if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35592
35593
35594
35595#
35596# Handle special compiler flags
35597#
35598
35599# Add '-p' if prof source profiling support enabled
35600if test "$enable_prof" = 'yes'; then
35601 CFLAGS="-p $CFLAGS"
35602 CXXFLAGS="-p $CXXFLAGS"
35603 LDFLAGS="-p $LDFLAGS"
35604fi
35605
35606# Add '-pg' if gprof source profiling support enabled
35607if test "$enable_gprof" = 'yes'; then
35608 CFLAGS="-pg $CFLAGS"
35609 CXXFLAGS="-pg $CXXFLAGS"
35610 LDFLAGS="-pg $LDFLAGS"
35611fi
35612
35613# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35614# This is a gcc-specific feature
35615if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035617$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035618if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035619 $as_echo_n "(cached) " >&6
35620else
35621 ac_check_lib_save_LIBS=$LIBS
35622LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035624/* end confdefs.h. */
35625
35626/* Override any GCC internal prototype to avoid an error.
35627 Use char because int might match the return type of a GCC
35628 builtin and then its argument prototype would still apply. */
35629#ifdef __cplusplus
35630extern "C"
35631#endif
35632char _gcov_init ();
35633int
35634main ()
35635{
35636return _gcov_init ();
35637 ;
35638 return 0;
35639}
35640_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035641if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035642 ac_cv_lib_gcov__gcov_init=yes
35643else
cristy8b350f62009-11-15 23:12:43 +000035644 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035645fi
cristy8b350f62009-11-15 23:12:43 +000035646rm -f core conftest.err conftest.$ac_objext \
35647 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035648LIBS=$ac_check_lib_save_LIBS
35649fi
cristy8b350f62009-11-15 23:12:43 +000035650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035651$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035652if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035653 cat >>confdefs.h <<_ACEOF
35654#define HAVE_LIBGCOV 1
35655_ACEOF
35656
35657 LIBS="-lgcov $LIBS"
35658
35659fi
35660
cristy8b350f62009-11-15 23:12:43 +000035661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035662$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035663if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035664 $as_echo_n "(cached) " >&6
35665else
35666 ac_check_lib_save_LIBS=$LIBS
35667LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035669/* end confdefs.h. */
35670
35671/* Override any GCC internal prototype to avoid an error.
35672 Use char because int might match the return type of a GCC
35673 builtin and then its argument prototype would still apply. */
35674#ifdef __cplusplus
35675extern "C"
35676#endif
35677char __gcov_init ();
35678int
35679main ()
35680{
35681return __gcov_init ();
35682 ;
35683 return 0;
35684}
35685_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035686if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035687 ac_cv_lib_gcov___gcov_init=yes
35688else
cristy8b350f62009-11-15 23:12:43 +000035689 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035690fi
cristy8b350f62009-11-15 23:12:43 +000035691rm -f core conftest.err conftest.$ac_objext \
35692 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035693LIBS=$ac_check_lib_save_LIBS
35694fi
cristy8b350f62009-11-15 23:12:43 +000035695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035696$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035697if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035698 cat >>confdefs.h <<_ACEOF
35699#define HAVE_LIBGCOV 1
35700_ACEOF
35701
35702 LIBS="-lgcov $LIBS"
35703
35704fi
35705
35706 case "$target_os" in
35707 darwin*)
35708 OSX_GCOV_LDFLAG="-Wl,-single_module"
35709 ;;
35710 *)
35711 OSX_GCOV_LDFLAG=""
35712 ;;
35713 esac
35714
35715 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35716 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35717 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35718fi
35719
35720#
35721# Build library dependency list for libMagickCore
35722#
35723
35724MAGICK_LIBLTDL='' # Libltdl for build
35725MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35726MAGICK_LTDLDEPS='' # extra libltdl dependencies
35727if test "$with_ltdl" != 'no'
35728then
35729 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35730 MAGICK_API_LIBLTDL='-lltdl'
35731 fi
35732 MAGICK_LIBLTDL=${LIBLTDL}
35733 MAGICK_LTDLDEPS=${LTDLDEPS}
35734fi
35735
35736
35737
35738if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035739 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 +000035740else
cristy41cbe8a2011-10-27 01:35:18 +000035741 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 +000035742fi
35743
35744
35745#
35746# Remove extraneous spaces from output variables (asthetic)
35747#
35748X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35749X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35750X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35751X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35752
35753CC=`echo $CC | sed -e 's/ */ /g'`
35754CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35755CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35756CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35757DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35758DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35759LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35760TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35761MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35762#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35763
35764# Pass only user-provided LIBS as "global" libraries
35765LIBS=$USER_LIBS
35766
35767#AC_SUBST(CPPFLAGS)
35768
35769#AC_SUBST(LDFLAGS)
35770#AC_SUBST(X_PRE_LIBS)
35771#AC_SUBST(X_LIBS)
35772#AC_SUBST(X_EXTRA_LIBS)
35773
35774MAGICK_CFLAGS=$CFLAGS
35775MAGICK_CXXFLAGS="$CXXFLAGS"
35776MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35777MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35778MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35779MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35780
35781
35782
35783
35784
35785
35786
35787
cristyfd9dcd42010-08-08 18:07:02 +000035788
cristy3ed852e2009-09-05 21:47:34 +000035789# Set configured scripts to executable.
35790ac_config_commands="$ac_config_commands default"
35791
35792ac_config_commands="$ac_config_commands MagickCore-config.in"
35793
cristy3ed852e2009-09-05 21:47:34 +000035794ac_config_commands="$ac_config_commands MagickWand-config.in"
35795
cristy3ed852e2009-09-05 21:47:34 +000035796ac_config_commands="$ac_config_commands Magick++-config.in"
35797
35798ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35799
35800
cristy09b53e12011-10-14 12:47:22 +000035801{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35802$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35803{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35804$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035805cat >confcache <<\_ACEOF
35806# This file is a shell script that caches the results of configure
35807# tests run on this system so they can be shared between configure
35808# scripts and configure runs, see configure's option --config-cache.
35809# It is not useful on other systems. If it contains results you don't
35810# want to keep, you may remove or edit it.
35811#
35812# config.status only pays attention to the cache file if you give it
35813# the --recheck option to rerun configure.
35814#
35815# `ac_cv_env_foo' variables (set or unset) will be overridden when
35816# loading this file, other *unset* `ac_cv_foo' will be assigned the
35817# following values.
35818
35819_ACEOF
35820
35821# The following way of writing the cache mishandles newlines in values,
35822# but we know of no workaround that is simple, portable, and efficient.
35823# So, we kill variables containing newlines.
35824# Ultrix sh set writes to stderr and can't be redirected directly,
35825# and sets the high bit in the cache file unless we assign to the vars.
35826(
35827 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35828 eval ac_val=\$$ac_var
35829 case $ac_val in #(
35830 *${as_nl}*)
35831 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035832 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035833$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35834 esac
35835 case $ac_var in #(
35836 _ | IFS | as_nl) ;; #(
35837 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035838 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035839 esac ;;
35840 esac
35841 done
35842
35843 (set) 2>&1 |
35844 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35845 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035846 # `set' does not quote correctly, so add quotes: double-quote
35847 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035848 sed -n \
35849 "s/'/'\\\\''/g;
35850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35851 ;; #(
35852 *)
35853 # `set' quotes correctly as required by POSIX, so do not add quotes.
35854 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35855 ;;
35856 esac |
35857 sort
35858) |
35859 sed '
35860 /^ac_cv_env_/b end
35861 t clear
35862 :clear
35863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35864 t end
35865 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35866 :end' >>confcache
35867if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35868 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035869 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035870 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035871$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035872 if test ! -f "$cache_file" || test -h "$cache_file"; then
35873 cat confcache >"$cache_file"
35874 else
35875 case $cache_file in #(
35876 */* | ?:*)
35877 mv -f confcache "$cache_file"$$ &&
35878 mv -f "$cache_file"$$ "$cache_file" ;; #(
35879 *)
35880 mv -f confcache "$cache_file" ;;
35881 esac
35882 fi
35883 fi
cristy3ed852e2009-09-05 21:47:34 +000035884 else
cristy8b350f62009-11-15 23:12:43 +000035885 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035886$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35887 fi
35888fi
35889rm -f confcache
35890
35891test "x$prefix" = xNONE && prefix=$ac_default_prefix
35892# Let make expand exec_prefix.
35893test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35894
35895DEFS=-DHAVE_CONFIG_H
35896
35897ac_libobjs=
35898ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035899U=
cristy3ed852e2009-09-05 21:47:34 +000035900for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35901 # 1. Remove the extension, and $U if already installed.
35902 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35903 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35904 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35905 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035906 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35907 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035908done
35909LIBOBJS=$ac_libobjs
35910
35911LTLIBOBJS=$ac_ltlibobjs
35912
35913
cristyc0890a62012-07-19 00:18:20 +000035914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35915$as_echo_n "checking that generated files are newer than configure... " >&6; }
35916 if test -n "$am_sleep_pid"; then
35917 # Hide warnings about reused PIDs.
35918 wait $am_sleep_pid 2>/dev/null
35919 fi
35920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35921$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035922 if test -n "$EXEEXT"; then
35923 am__EXEEXT_TRUE=
35924 am__EXEEXT_FALSE='#'
35925else
35926 am__EXEEXT_TRUE='#'
35927 am__EXEEXT_FALSE=
35928fi
cristy3ed852e2009-09-05 21:47:34 +000035929
cristy73bd4a52010-10-05 11:24:23 +000035930if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035931 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035932Usually this means the macro was only invoked conditionally." "$LINENO" 5
35933fi
35934if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035935 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035936Usually this means the macro was only invoked conditionally." "$LINENO" 5
35937fi
35938if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035939 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035940Usually this means the macro was only invoked conditionally." "$LINENO" 5
35941fi
35942if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035943 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035944Usually this means the macro was only invoked conditionally." "$LINENO" 5
35945fi
35946if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035947 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035948Usually this means the macro was only invoked conditionally." "$LINENO" 5
35949fi
35950if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035951 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035952Usually this means the macro was only invoked conditionally." "$LINENO" 5
35953fi
35954if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035955 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035956Usually this means the macro was only invoked conditionally." "$LINENO" 5
35957fi
35958if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035959 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035960Usually this means the macro was only invoked conditionally." "$LINENO" 5
35961fi
cristy73bd4a52010-10-05 11:24:23 +000035962if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035963 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035964Usually this means the macro was only invoked conditionally." "$LINENO" 5
35965fi
35966if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035967 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035968Usually this means the macro was only invoked conditionally." "$LINENO" 5
35969fi
35970LT_CONFIG_H=config/config.h
35971
35972 _ltdl_libobjs=
35973 _ltdl_ltlibobjs=
35974 if test -n "$_LT_LIBOBJS"; then
35975 # Remove the extension.
35976 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35977 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35978 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35979 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35980 done
35981 fi
35982 ltdl_LIBOBJS=$_ltdl_libobjs
35983
35984 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35985
35986
35987if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035988 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035989Usually this means the macro was only invoked conditionally." "$LINENO" 5
35990fi
35991if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035992 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035993Usually this means the macro was only invoked conditionally." "$LINENO" 5
35994fi
35995if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035996 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035997Usually this means the macro was only invoked conditionally." "$LINENO" 5
35998fi
35999if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036000 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036001Usually this means the macro was only invoked conditionally." "$LINENO" 5
36002fi
cristy71d8c202012-03-20 17:05:01 +000036003if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36004 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36005Usually this means the macro was only invoked conditionally." "$LINENO" 5
36006fi
cristy73bd4a52010-10-05 11:24:23 +000036007
36008if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036009 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036010Usually this means the macro was only invoked conditionally." "$LINENO" 5
36011fi
36012if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036013 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036014Usually this means the macro was only invoked conditionally." "$LINENO" 5
36015fi
36016if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036017 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036018Usually this means the macro was only invoked conditionally." "$LINENO" 5
36019fi
36020if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036021 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036022Usually this means the macro was only invoked conditionally." "$LINENO" 5
36023fi
36024if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036025 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036026Usually this means the macro was only invoked conditionally." "$LINENO" 5
36027fi
36028if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036029 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036030Usually this means the macro was only invoked conditionally." "$LINENO" 5
36031fi
36032if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036033 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036034Usually this means the macro was only invoked conditionally." "$LINENO" 5
36035fi
36036if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036037 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036038Usually this means the macro was only invoked conditionally." "$LINENO" 5
36039fi
36040if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036041 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036042Usually this means the macro was only invoked conditionally." "$LINENO" 5
36043fi
36044if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036045 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036046Usually this means the macro was only invoked conditionally." "$LINENO" 5
36047fi
36048if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036049 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036050Usually this means the macro was only invoked conditionally." "$LINENO" 5
36051fi
36052if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036053 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036054Usually this means the macro was only invoked conditionally." "$LINENO" 5
36055fi
36056if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036057 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036058Usually this means the macro was only invoked conditionally." "$LINENO" 5
36059fi
36060if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036061 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036062Usually this means the macro was only invoked conditionally." "$LINENO" 5
36063fi
36064if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036065 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036066Usually this means the macro was only invoked conditionally." "$LINENO" 5
36067fi
36068if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036069 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036070Usually this means the macro was only invoked conditionally." "$LINENO" 5
36071fi
36072if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036073 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036074Usually this means the macro was only invoked conditionally." "$LINENO" 5
36075fi
36076if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036077 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036078Usually this means the macro was only invoked conditionally." "$LINENO" 5
36079fi
36080if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036081 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036082Usually this means the macro was only invoked conditionally." "$LINENO" 5
36083fi
36084if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036085 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036086Usually this means the macro was only invoked conditionally." "$LINENO" 5
36087fi
cristyfbb0ef02010-12-19 02:32:11 +000036088if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36089 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36090Usually this means the macro was only invoked conditionally." "$LINENO" 5
36091fi
cristy73bd4a52010-10-05 11:24:23 +000036092if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036093 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036094Usually this means the macro was only invoked conditionally." "$LINENO" 5
36095fi
cristy41cbe8a2011-10-27 01:35:18 +000036096if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36097 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36098Usually this means the macro was only invoked conditionally." "$LINENO" 5
36099fi
cristya054b762012-03-26 23:16:00 +000036100if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36101 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036102Usually this means the macro was only invoked conditionally." "$LINENO" 5
36103fi
cristy73bd4a52010-10-05 11:24:23 +000036104if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036105 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036106Usually this means the macro was only invoked conditionally." "$LINENO" 5
36107fi
36108if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036109 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036110Usually this means the macro was only invoked conditionally." "$LINENO" 5
36111fi
36112if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036113 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036114Usually this means the macro was only invoked conditionally." "$LINENO" 5
36115fi
36116if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036117 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036118Usually this means the macro was only invoked conditionally." "$LINENO" 5
36119fi
cristyb1860752011-03-14 00:27:46 +000036120if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36121 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36122Usually this means the macro was only invoked conditionally." "$LINENO" 5
36123fi
cristy73bd4a52010-10-05 11:24:23 +000036124if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036125 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036126Usually this means the macro was only invoked conditionally." "$LINENO" 5
36127fi
36128if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036129 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036130Usually this means the macro was only invoked conditionally." "$LINENO" 5
36131fi
36132if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036133 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036134Usually this means the macro was only invoked conditionally." "$LINENO" 5
36135fi
36136if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036137 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036138Usually this means the macro was only invoked conditionally." "$LINENO" 5
36139fi
36140if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036141 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036142Usually this means the macro was only invoked conditionally." "$LINENO" 5
36143fi
36144if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036145 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036146Usually this means the macro was only invoked conditionally." "$LINENO" 5
36147fi
36148if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036149 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036150Usually this means the macro was only invoked conditionally." "$LINENO" 5
36151fi
36152if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036153 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036154Usually this means the macro was only invoked conditionally." "$LINENO" 5
36155fi
cristy3ed852e2009-09-05 21:47:34 +000036156
cristyda16f162011-02-19 23:52:17 +000036157: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036158ac_write_fail=0
36159ac_clean_files_save=$ac_clean_files
36160ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036161{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036162$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036163as_write_fail=0
36164cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036165#! $SHELL
36166# Generated by $as_me.
36167# Run this file to recreate the current configuration.
36168# Compiler output produced by configure, useful for debugging
36169# configure, is in config.log if it exists.
36170
36171debug=false
36172ac_cs_recheck=false
36173ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036174
cristy8b350f62009-11-15 23:12:43 +000036175SHELL=\${CONFIG_SHELL-$SHELL}
36176export SHELL
36177_ASEOF
36178cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36179## -------------------- ##
36180## M4sh Initialization. ##
36181## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036182
36183# Be more Bourne compatible
36184DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036185if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036186 emulate sh
36187 NULLCMD=:
36188 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36189 # is contrary to our usage. Disable this feature.
36190 alias -g '${1+"$@"}'='"$@"'
36191 setopt NO_GLOB_SUBST
36192else
cristy8b350f62009-11-15 23:12:43 +000036193 case `(set -o) 2>/dev/null` in #(
36194 *posix*) :
36195 set -o posix ;; #(
36196 *) :
36197 ;;
cristy3ed852e2009-09-05 21:47:34 +000036198esac
cristy3ed852e2009-09-05 21:47:34 +000036199fi
36200
36201
cristy3ed852e2009-09-05 21:47:34 +000036202as_nl='
36203'
36204export as_nl
36205# Printing a long string crashes Solaris 7 /usr/bin/printf.
36206as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36207as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36208as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036209# Prefer a ksh shell builtin over an external printf program on Solaris,
36210# but without wasting forks for bash or zsh.
36211if test -z "$BASH_VERSION$ZSH_VERSION" \
36212 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36213 as_echo='print -r --'
36214 as_echo_n='print -rn --'
36215elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036216 as_echo='printf %s\n'
36217 as_echo_n='printf %s'
36218else
36219 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36220 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36221 as_echo_n='/usr/ucb/echo -n'
36222 else
36223 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36224 as_echo_n_body='eval
36225 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036226 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036227 *"$as_nl"*)
36228 expr "X$arg" : "X\\(.*\\)$as_nl";
36229 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36230 esac;
36231 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36232 '
36233 export as_echo_n_body
36234 as_echo_n='sh -c $as_echo_n_body as_echo'
36235 fi
36236 export as_echo_body
36237 as_echo='sh -c $as_echo_body as_echo'
36238fi
36239
36240# The user is always right.
36241if test "${PATH_SEPARATOR+set}" != set; then
36242 PATH_SEPARATOR=:
36243 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36244 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36245 PATH_SEPARATOR=';'
36246 }
36247fi
36248
cristy3ed852e2009-09-05 21:47:34 +000036249
36250# IFS
36251# We need space, tab and new line, in precisely that order. Quoting is
36252# there to prevent editors from complaining about space-tab.
36253# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36254# splitting by setting IFS to empty value.)
36255IFS=" "" $as_nl"
36256
36257# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036258as_myself=
cristy8b350f62009-11-15 23:12:43 +000036259case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036260 *[\\/]* ) as_myself=$0 ;;
36261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36262for as_dir in $PATH
36263do
36264 IFS=$as_save_IFS
36265 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036266 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36267 done
cristy3ed852e2009-09-05 21:47:34 +000036268IFS=$as_save_IFS
36269
36270 ;;
36271esac
36272# We did not find ourselves, most probably we were run as `sh COMMAND'
36273# in which case we are not to be found in the path.
36274if test "x$as_myself" = x; then
36275 as_myself=$0
36276fi
36277if test ! -f "$as_myself"; then
36278 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036279 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036280fi
36281
cristy8b350f62009-11-15 23:12:43 +000036282# Unset variables that we do not need and which cause bugs (e.g. in
36283# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36284# suppresses any "Segmentation fault" message there. '((' could
36285# trigger a bug in pdksh 5.2.14.
36286for as_var in BASH_ENV ENV MAIL MAILPATH
36287do eval test x\${$as_var+set} = xset \
36288 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036289done
36290PS1='$ '
36291PS2='> '
36292PS4='+ '
36293
36294# NLS nuisances.
36295LC_ALL=C
36296export LC_ALL
36297LANGUAGE=C
36298export LANGUAGE
36299
cristy8b350f62009-11-15 23:12:43 +000036300# CDPATH.
36301(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36302
36303
cristy98dddb52010-11-04 00:30:15 +000036304# as_fn_error STATUS ERROR [LINENO LOG_FD]
36305# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036306# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36307# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036308# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036309as_fn_error ()
36310{
cristy98dddb52010-11-04 00:30:15 +000036311 as_status=$1; test $as_status -eq 0 && as_status=1
36312 if test "$4"; then
36313 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36314 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036315 fi
cristy98dddb52010-11-04 00:30:15 +000036316 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036317 as_fn_exit $as_status
36318} # as_fn_error
36319
36320
36321# as_fn_set_status STATUS
36322# -----------------------
36323# Set $? to STATUS, without forking.
36324as_fn_set_status ()
36325{
36326 return $1
36327} # as_fn_set_status
36328
36329# as_fn_exit STATUS
36330# -----------------
36331# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36332as_fn_exit ()
36333{
36334 set +e
36335 as_fn_set_status $1
36336 exit $1
36337} # as_fn_exit
36338
36339# as_fn_unset VAR
36340# ---------------
36341# Portably unset VAR.
36342as_fn_unset ()
36343{
36344 { eval $1=; unset $1;}
36345}
36346as_unset=as_fn_unset
36347# as_fn_append VAR VALUE
36348# ----------------------
36349# Append the text in VALUE to the end of the definition contained in VAR. Take
36350# advantage of any shell optimizations that allow amortized linear growth over
36351# repeated appends, instead of the typical quadratic growth present in naive
36352# implementations.
36353if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36354 eval 'as_fn_append ()
36355 {
36356 eval $1+=\$2
36357 }'
36358else
36359 as_fn_append ()
36360 {
36361 eval $1=\$$1\$2
36362 }
36363fi # as_fn_append
36364
36365# as_fn_arith ARG...
36366# ------------------
36367# Perform arithmetic evaluation on the ARGs, and store the result in the
36368# global $as_val. Take advantage of shells that can avoid forks. The arguments
36369# must be portable across $(()) and expr.
36370if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36371 eval 'as_fn_arith ()
36372 {
36373 as_val=$(( $* ))
36374 }'
36375else
36376 as_fn_arith ()
36377 {
36378 as_val=`expr "$@" || test $? -eq 1`
36379 }
36380fi # as_fn_arith
36381
36382
cristy3ed852e2009-09-05 21:47:34 +000036383if expr a : '\(a\)' >/dev/null 2>&1 &&
36384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36385 as_expr=expr
36386else
36387 as_expr=false
36388fi
36389
36390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36391 as_basename=basename
36392else
36393 as_basename=false
36394fi
36395
cristy8b350f62009-11-15 23:12:43 +000036396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36397 as_dirname=dirname
36398else
36399 as_dirname=false
36400fi
cristy3ed852e2009-09-05 21:47:34 +000036401
cristy3ed852e2009-09-05 21:47:34 +000036402as_me=`$as_basename -- "$0" ||
36403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36404 X"$0" : 'X\(//\)$' \| \
36405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36406$as_echo X/"$0" |
36407 sed '/^.*\/\([^/][^/]*\)\/*$/{
36408 s//\1/
36409 q
36410 }
36411 /^X\/\(\/\/\)$/{
36412 s//\1/
36413 q
36414 }
36415 /^X\/\(\/\).*/{
36416 s//\1/
36417 q
36418 }
36419 s/.*/./; q'`
36420
cristy8b350f62009-11-15 23:12:43 +000036421# Avoid depending upon Character Ranges.
36422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36425as_cr_digits='0123456789'
36426as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036427
36428ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036429case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036430-n*)
cristy8b350f62009-11-15 23:12:43 +000036431 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036432 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036433 xy) ECHO_C='\c';;
36434 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36435 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036436 esac;;
36437*)
36438 ECHO_N='-n';;
36439esac
cristy3ed852e2009-09-05 21:47:34 +000036440
36441rm -f conf$$ conf$$.exe conf$$.file
36442if test -d conf$$.dir; then
36443 rm -f conf$$.dir/conf$$.file
36444else
36445 rm -f conf$$.dir
36446 mkdir conf$$.dir 2>/dev/null
36447fi
36448if (echo >conf$$.file) 2>/dev/null; then
36449 if ln -s conf$$.file conf$$ 2>/dev/null; then
36450 as_ln_s='ln -s'
36451 # ... but there are two gotchas:
36452 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36453 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036454 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036455 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036456 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036457 elif ln conf$$.file conf$$ 2>/dev/null; then
36458 as_ln_s=ln
36459 else
cristy14fefe52012-05-21 00:59:18 +000036460 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036461 fi
36462else
cristy14fefe52012-05-21 00:59:18 +000036463 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036464fi
36465rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36466rmdir conf$$.dir 2>/dev/null
36467
cristy8b350f62009-11-15 23:12:43 +000036468
36469# as_fn_mkdir_p
36470# -------------
36471# Create "$as_dir" as a directory, including parents if necessary.
36472as_fn_mkdir_p ()
36473{
36474
36475 case $as_dir in #(
36476 -*) as_dir=./$as_dir;;
36477 esac
36478 test -d "$as_dir" || eval $as_mkdir_p || {
36479 as_dirs=
36480 while :; do
36481 case $as_dir in #(
36482 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36483 *) as_qdir=$as_dir;;
36484 esac
36485 as_dirs="'$as_qdir' $as_dirs"
36486 as_dir=`$as_dirname -- "$as_dir" ||
36487$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36488 X"$as_dir" : 'X\(//\)[^/]' \| \
36489 X"$as_dir" : 'X\(//\)$' \| \
36490 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36491$as_echo X"$as_dir" |
36492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36493 s//\1/
36494 q
36495 }
36496 /^X\(\/\/\)[^/].*/{
36497 s//\1/
36498 q
36499 }
36500 /^X\(\/\/\)$/{
36501 s//\1/
36502 q
36503 }
36504 /^X\(\/\).*/{
36505 s//\1/
36506 q
36507 }
36508 s/.*/./; q'`
36509 test -d "$as_dir" && break
36510 done
36511 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036512 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036513
36514
36515} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036516if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036517 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036518else
36519 test -d ./-p && rmdir ./-p
36520 as_mkdir_p=false
36521fi
36522
cristy14fefe52012-05-21 00:59:18 +000036523
36524# as_fn_executable_p FILE
36525# -----------------------
36526# Test if FILE is an executable regular file.
36527as_fn_executable_p ()
36528{
36529 test -f "$1" && test -x "$1"
36530} # as_fn_executable_p
36531as_test_x='test -x'
36532as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036533
36534# Sed expression to map a string onto a valid CPP name.
36535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36536
36537# Sed expression to map a string onto a valid variable name.
36538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36539
36540
36541exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036542## ----------------------------------- ##
36543## Main body of $CONFIG_STATUS script. ##
36544## ----------------------------------- ##
36545_ASEOF
36546test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036547
cristy8b350f62009-11-15 23:12:43 +000036548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36549# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036550# report actual input values of CONFIG_FILES etc. instead of their
36551# values after options handling.
36552ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036553This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036554generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036555
36556 CONFIG_FILES = $CONFIG_FILES
36557 CONFIG_HEADERS = $CONFIG_HEADERS
36558 CONFIG_LINKS = $CONFIG_LINKS
36559 CONFIG_COMMANDS = $CONFIG_COMMANDS
36560 $ $0 $@
36561
36562on `(hostname || uname -n) 2>/dev/null | sed 1q`
36563"
36564
36565_ACEOF
36566
36567case $ac_config_files in *"
36568"*) set x $ac_config_files; shift; ac_config_files=$*;;
36569esac
36570
36571case $ac_config_headers in *"
36572"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36573esac
36574
36575
36576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36577# Files that config.status was made for.
36578config_files="$ac_config_files"
36579config_headers="$ac_config_headers"
36580config_commands="$ac_config_commands"
36581
36582_ACEOF
36583
36584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36585ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036586\`$as_me' instantiates files and other configuration actions
36587from templates according to the current configuration. Unless the files
36588and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036589
cristy8b350f62009-11-15 23:12:43 +000036590Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036591
36592 -h, --help print this help, then exit
36593 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036594 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036595 -q, --quiet, --silent
36596 do not print progress messages
36597 -d, --debug don't remove temporary files
36598 --recheck update $as_me by reconfiguring in the same conditions
36599 --file=FILE[:TEMPLATE]
36600 instantiate the configuration file FILE
36601 --header=FILE[:TEMPLATE]
36602 instantiate the configuration header FILE
36603
36604Configuration files:
36605$config_files
36606
36607Configuration headers:
36608$config_headers
36609
36610Configuration commands:
36611$config_commands
36612
cristy8b350f62009-11-15 23:12:43 +000036613Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036614
36615_ACEOF
36616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036617ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036618ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036619ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036620configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036621 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036622
cristy14fefe52012-05-21 00:59:18 +000036623Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036624This config.status script is free software; the Free Software Foundation
36625gives unlimited permission to copy, distribute and modify it."
36626
36627ac_pwd='$ac_pwd'
36628srcdir='$srcdir'
36629INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036630MKDIR_P='$MKDIR_P'
36631AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036632test -n "\$AWK" || AWK=awk
36633_ACEOF
36634
36635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36636# The default lists apply if the user does not specify any file.
36637ac_need_defaults=:
36638while test $# != 0
36639do
36640 case $1 in
cristyda16f162011-02-19 23:52:17 +000036641 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036642 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36643 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36644 ac_shift=:
36645 ;;
cristyda16f162011-02-19 23:52:17 +000036646 --*=)
36647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36648 ac_optarg=
36649 ac_shift=:
36650 ;;
cristy3ed852e2009-09-05 21:47:34 +000036651 *)
36652 ac_option=$1
36653 ac_optarg=$2
36654 ac_shift=shift
36655 ;;
36656 esac
36657
36658 case $ac_option in
36659 # Handling of the options.
36660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36661 ac_cs_recheck=: ;;
36662 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36663 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036664 --config | --confi | --conf | --con | --co | --c )
36665 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036666 --debug | --debu | --deb | --de | --d | -d )
36667 debug=: ;;
36668 --file | --fil | --fi | --f )
36669 $ac_shift
36670 case $ac_optarg in
36671 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036672 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036673 esac
cristy8b350f62009-11-15 23:12:43 +000036674 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036675 ac_need_defaults=false;;
36676 --header | --heade | --head | --hea )
36677 $ac_shift
36678 case $ac_optarg in
36679 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36680 esac
cristy8b350f62009-11-15 23:12:43 +000036681 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036682 ac_need_defaults=false;;
36683 --he | --h)
36684 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036685 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036686Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036687 --help | --hel | -h )
36688 $as_echo "$ac_cs_usage"; exit ;;
36689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36690 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36691 ac_cs_silent=: ;;
36692
36693 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036694 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036695Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036696
cristy8b350f62009-11-15 23:12:43 +000036697 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036698 ac_need_defaults=false ;;
36699
36700 esac
36701 shift
36702done
36703
36704ac_configure_extra_args=
36705
36706if $ac_cs_silent; then
36707 exec 6>/dev/null
36708 ac_configure_extra_args="$ac_configure_extra_args --silent"
36709fi
36710
36711_ACEOF
36712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36713if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036714 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036715 shift
36716 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36717 CONFIG_SHELL='$SHELL'
36718 export CONFIG_SHELL
36719 exec "\$@"
36720fi
36721
36722_ACEOF
36723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36724exec 5>>config.log
36725{
36726 echo
36727 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36728## Running $as_me. ##
36729_ASBOX
36730 $as_echo "$ac_log"
36731} >&5
36732
36733_ACEOF
36734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036735#
36736# INIT-COMMANDS
36737#
36738PACKAGE="$PACKAGE"
36739AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36740
36741
36742# The HP-UX ksh and POSIX shell print the target directory to stdout
36743# if CDPATH is set.
36744(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36745
36746sed_quote_subst='$sed_quote_subst'
36747double_quote_subst='$double_quote_subst'
36748delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036749SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36750Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36751GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36752EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36753FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36754SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36755ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36756LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36757macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36758macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36759AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36760DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36761OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36762enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36763enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36764pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36765enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036766PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036767host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36768host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36769host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36770build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36771build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36772build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36773NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36774LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36775max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36776ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36777exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36778lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36779lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36780lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036781lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36782lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036783reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36784reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36785deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36786file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036787file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36788want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36789sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036790AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36791AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036792archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036793STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36794RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36795old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36796old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36797old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36798lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36799CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36800CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36801compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36802GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36803lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36804lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36805lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36806lt_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 +000036807nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36808lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036809objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36810MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36811lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036812lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036813lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036814lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36815lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36816need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036817MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036818DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36819NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36820LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36821OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36822OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36823libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36824shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36825extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36826archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36827enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36828export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36829whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36830compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36831old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36832old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36833archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36834archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36835module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36836module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36837with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36838allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36839no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36840hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036841hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36842hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36843hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36844hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36845hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36846hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36847inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36848link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036849always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36850export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36851exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36852include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36853prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036854postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036855file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36856variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36857need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36858need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36859version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36860runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36861shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36862shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36863libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36864library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36865soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36866install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36867postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36868postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36869finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36870finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36871hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36872sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36873sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36874hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36875enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36876enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36877enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36878old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36879striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36880compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36881predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36882postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36883predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36884postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36885compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36886LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36887reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36888reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36889old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36890compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36891GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36892lt_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 +000036893lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036894lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036895lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36896lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36897archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36898enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36899export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36900whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36901compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36902old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36903old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36904archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36905archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36906module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36907module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36908with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36909allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36910no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36911hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036912hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36913hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36914hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36915hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36916hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36917hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36918inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36919link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036920always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36921export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36922exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36923include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36924prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036925postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036926file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36927hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36928compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36929predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36930postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36931predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36932postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36933compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036934
36935LTCC='$LTCC'
36936LTCFLAGS='$LTCFLAGS'
36937compiler='$compiler_DEFAULT'
36938
cristy0c60a692010-11-04 01:09:47 +000036939# A function that is used when there is no print builtin or printf.
36940func_fallback_echo ()
36941{
36942 eval 'cat <<_LTECHO_EOF
36943\$1
36944_LTECHO_EOF'
36945}
36946
cristy73bd4a52010-10-05 11:24:23 +000036947# Quote evaled strings.
36948for var in SED \
36949GREP \
36950EGREP \
36951FGREP \
cristy0c60a692010-11-04 01:09:47 +000036952SHELL \
36953ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036954LD \
cristy0c60a692010-11-04 01:09:47 +000036955AS \
36956DLLTOOL \
36957OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036958PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036959NM \
36960LN_S \
36961lt_SP2NL \
36962lt_NL2SP \
36963reload_flag \
36964deplibs_check_method \
36965file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036966file_magic_glob \
36967want_nocaseglob \
36968sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036969AR \
36970AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036971archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036972STRIP \
36973RANLIB \
36974CC \
36975CFLAGS \
36976compiler \
36977lt_cv_sys_global_symbol_pipe \
36978lt_cv_sys_global_symbol_to_cdecl \
36979lt_cv_sys_global_symbol_to_c_name_address \
36980lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036981nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036982lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036983lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036984lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036985lt_prog_compiler_static \
36986lt_cv_prog_compiler_c_o \
36987need_locks \
cristyda16f162011-02-19 23:52:17 +000036988MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036989DSYMUTIL \
36990NMEDIT \
36991LIPO \
36992OTOOL \
36993OTOOL64 \
36994shrext_cmds \
36995export_dynamic_flag_spec \
36996whole_archive_flag_spec \
36997compiler_needs_object \
36998with_gnu_ld \
36999allow_undefined_flag \
37000no_undefined_flag \
37001hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037002hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037003exclude_expsyms \
37004include_expsyms \
37005file_list_spec \
37006variables_saved_for_relink \
37007libname_spec \
37008library_names_spec \
37009soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037010install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037011finish_eval \
37012old_striplib \
37013striplib \
37014compiler_lib_search_dirs \
37015predep_objects \
37016postdep_objects \
37017predeps \
37018postdeps \
37019compiler_lib_search_path \
37020LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037021reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037022compiler_CXX \
37023lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037024lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037025lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037026lt_prog_compiler_static_CXX \
37027lt_cv_prog_compiler_c_o_CXX \
37028export_dynamic_flag_spec_CXX \
37029whole_archive_flag_spec_CXX \
37030compiler_needs_object_CXX \
37031with_gnu_ld_CXX \
37032allow_undefined_flag_CXX \
37033no_undefined_flag_CXX \
37034hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037035hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037036exclude_expsyms_CXX \
37037include_expsyms_CXX \
37038file_list_spec_CXX \
37039compiler_lib_search_dirs_CXX \
37040predep_objects_CXX \
37041postdep_objects_CXX \
37042predeps_CXX \
37043postdeps_CXX \
37044compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037045 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037046 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037047 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037048 ;;
37049 *)
37050 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37051 ;;
37052 esac
37053done
37054
37055# Double-quote double-evaled strings.
37056for var in reload_cmds \
37057old_postinstall_cmds \
37058old_postuninstall_cmds \
37059old_archive_cmds \
37060extract_expsyms_cmds \
37061old_archive_from_new_cmds \
37062old_archive_from_expsyms_cmds \
37063archive_cmds \
37064archive_expsym_cmds \
37065module_cmds \
37066module_expsym_cmds \
37067export_symbols_cmds \
37068prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037069postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037070postinstall_cmds \
37071postuninstall_cmds \
37072finish_cmds \
37073sys_lib_search_path_spec \
37074sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037075reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037076old_archive_cmds_CXX \
37077old_archive_from_new_cmds_CXX \
37078old_archive_from_expsyms_cmds_CXX \
37079archive_cmds_CXX \
37080archive_expsym_cmds_CXX \
37081module_cmds_CXX \
37082module_expsym_cmds_CXX \
37083export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037084prelink_cmds_CXX \
37085postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037086 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037087 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037088 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037089 ;;
37090 *)
37091 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37092 ;;
37093 esac
37094done
37095
cristy73bd4a52010-10-05 11:24:23 +000037096ac_aux_dir='$ac_aux_dir'
37097xsi_shell='$xsi_shell'
37098lt_shell_append='$lt_shell_append'
37099
37100# See if we are running on zsh, and set the options which allow our
37101# commands through without removal of \ escapes INIT.
37102if test -n "\${ZSH_VERSION+set}" ; then
37103 setopt NO_GLOB_SUBST
37104fi
37105
37106
37107 PACKAGE='$PACKAGE'
37108 VERSION='$VERSION'
37109 TIMESTAMP='$TIMESTAMP'
37110 RM='$RM'
37111 ofile='$ofile'
37112
37113
37114
37115
37116
37117
cristy3ed852e2009-09-05 21:47:34 +000037118_ACEOF
37119
37120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37121
37122# Handling of arguments.
37123for ac_config_target in $ac_config_targets
37124do
37125 case $ac_config_target in
37126 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037127 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037128 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37129 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37130 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37131 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37132 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037133 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037134 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37135 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37136 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37137 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37138 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037139 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037140 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37141 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037142 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37143 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37144 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037145 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37146 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37147 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37148 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37149 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37150 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37151 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37152 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37153 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37154 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37155 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37156 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37157 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37158 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37159 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37160 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37161 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037162 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37163 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037164 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37165 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037166 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37167 "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 ;;
cristy4c08aed2011-07-01 19:47:50 +000038749 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038750 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038751 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38752 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38753
38754 esac
38755done # for ac_tag
38756
38757
cristy8b350f62009-11-15 23:12:43 +000038758as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038759_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038760ac_clean_files=$ac_clean_files_save
38761
38762test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038763 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038764
38765
38766# configure is writing to config.log, and then calls config.status.
38767# config.status does its own redirection, appending to config.log.
38768# Unfortunately, on DOS this fails, as config.log is still kept open
38769# by configure, so config.status won't be able to write to it; its
38770# output is simply discarded. So we exec the FD to /dev/null,
38771# effectively closing config.log, so it can be properly (re)opened and
38772# appended to by config.status. When coming back to configure, we
38773# need to make the FD available again.
38774if test "$no_create" != yes; then
38775 ac_cs_success=:
38776 ac_config_status_args=
38777 test "$silent" = yes &&
38778 ac_config_status_args="$ac_config_status_args --quiet"
38779 exec 5>/dev/null
38780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38781 exec 5>>config.log
38782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38783 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038784 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038785fi
38786if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038788$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38789fi
38790
38791
38792rm -f magick-version
38793
cristy430a7312010-01-21 20:44:04 +000038794result_dejavu_font_dir='none'
38795if test "${dejavu_font_dir}x" != 'x'; then
38796 result_dejavu_font_dir=$dejavu_font_dir
38797fi
38798
cristy3ed852e2009-09-05 21:47:34 +000038799result_ghostscript_font_dir='none'
38800if test "${ghostscript_font_dir}x" != 'x'; then
38801 result_ghostscript_font_dir=$ghostscript_font_dir
38802fi
38803
38804result_windows_font_dir='none'
38805if test "${windows_font_dir}x" != 'x'; then
38806 result_windows_font_dir=${windows_font_dir}
38807fi
38808
cristy09b53e12011-10-14 12:47:22 +000038809{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038810ImageMagick is configured as follows. Please verify that this configuration
38811matches your expectations.
38812
38813Host system type: $host
38814Build system type: $build
38815
38816 Option Value
38817-------------------------------------------------------------------------------
38818Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38819Static libraries --enable-static=$enable_static $libtool_build_static_libs
38820Module support --with-modules=$with_modules $with_modules
38821GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38822Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38823High Dynamic Range Imagery
38824 --enable-hdri=$enable_hdri $enable_hdri
38825
38826Delegate Configuration:
38827BZLIB --with-bzlib=$with_bzlib $have_bzlib
38828Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038829Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038830DJVU --with-djvu=$with_djvu $have_djvu
38831DPS --with-dps=$with_dps $have_dps
38832FFTW --with-fftw=$with_fftw $have_fftw
38833FlashPIX --with-fpx=$with_fpx $have_fpx
38834FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38835FreeType --with-freetype=$with_freetype $have_freetype
38836GhostPCL None $PCLDelegate ($PCLVersion)
38837GhostXPS None $XPSDelegate ($XPSVersion)
38838Ghostscript None $PSDelegate ($GSVersion)
38839Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38840Ghostscript lib --with-gslib=$with_gslib $have_gslib
38841Graphviz --with-gvc=$with_gvc $have_gvc
38842JBIG --with-jbig=$with_jbig $have_jbig
38843JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38844JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038845LCMS v1 --with-lcms=$with_lcms $have_lcms
38846LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038847LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038848LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038849Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38850OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038851PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038852PERL --with-perl=$with_perl $have_perl
38853PNG --with-png=$with_png $have_png
38854RSVG --with-rsvg=$with_rsvg $have_rsvg
38855TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038856WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038857Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38858WMF --with-wmf=$with_wmf $have_wmf
38859X11 --with-x=$with_x $have_x
38860XML --with-xml=$with_xml $have_xml
38861ZLIB --with-zlib=$with_zlib $have_zlib
38862
38863X11 Configuration:
38864 X_CFLAGS = $X_CFLAGS
38865 X_PRE_LIBS = $X_PRE_LIBS
38866 X_LIBS = $X_LIBS
38867 X_EXTRA_LIBS = $X_EXTRA_LIBS
38868
38869Options used to compile and link:
38870 PREFIX = $PREFIX_DIR
38871 EXEC-PREFIX = $EXEC_PREFIX_DIR
38872 VERSION = $PACKAGE_VERSION
38873 CC = $CC
38874 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038875 CPPFLAGS = $MAGICK_CPPFLAGS
38876 PCFLAGS = $MAGICK_PCFLAGS
38877 DEFS = $DEFS
38878 LDFLAGS = $LDFLAGS
38879 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38880 LIBS = $MAGICK_LIBS
38881 CXX = $CXX
38882 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038883 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038884" >&5
cristy09b53e12011-10-14 12:47:22 +000038885$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038886ImageMagick is configured as follows. Please verify that this configuration
38887matches your expectations.
38888
38889Host system type: $host
38890Build system type: $build
38891
38892 Option Value
38893-------------------------------------------------------------------------------
38894Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38895Static libraries --enable-static=$enable_static $libtool_build_static_libs
38896Module support --with-modules=$with_modules $with_modules
38897GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38898Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38899High Dynamic Range Imagery
38900 --enable-hdri=$enable_hdri $enable_hdri
38901
38902Delegate Configuration:
38903BZLIB --with-bzlib=$with_bzlib $have_bzlib
38904Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038905Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038906DJVU --with-djvu=$with_djvu $have_djvu
38907DPS --with-dps=$with_dps $have_dps
38908FFTW --with-fftw=$with_fftw $have_fftw
38909FlashPIX --with-fpx=$with_fpx $have_fpx
38910FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38911FreeType --with-freetype=$with_freetype $have_freetype
38912GhostPCL None $PCLDelegate ($PCLVersion)
38913GhostXPS None $XPSDelegate ($XPSVersion)
38914Ghostscript None $PSDelegate ($GSVersion)
38915Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38916Ghostscript lib --with-gslib=$with_gslib $have_gslib
38917Graphviz --with-gvc=$with_gvc $have_gvc
38918JBIG --with-jbig=$with_jbig $have_jbig
38919JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38920JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038921LCMS v1 --with-lcms=$with_lcms $have_lcms
38922LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038923LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038924LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038925Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38926OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038927PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038928PERL --with-perl=$with_perl $have_perl
38929PNG --with-png=$with_png $have_png
38930RSVG --with-rsvg=$with_rsvg $have_rsvg
38931TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038932WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038933Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38934WMF --with-wmf=$with_wmf $have_wmf
38935X11 --with-x=$with_x $have_x
38936XML --with-xml=$with_xml $have_xml
38937ZLIB --with-zlib=$with_zlib $have_zlib
38938
38939X11 Configuration:
38940 X_CFLAGS = $X_CFLAGS
38941 X_PRE_LIBS = $X_PRE_LIBS
38942 X_LIBS = $X_LIBS
38943 X_EXTRA_LIBS = $X_EXTRA_LIBS
38944
38945Options used to compile and link:
38946 PREFIX = $PREFIX_DIR
38947 EXEC-PREFIX = $EXEC_PREFIX_DIR
38948 VERSION = $PACKAGE_VERSION
38949 CC = $CC
38950 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038951 CPPFLAGS = $MAGICK_CPPFLAGS
38952 PCFLAGS = $MAGICK_PCFLAGS
38953 DEFS = $DEFS
38954 LDFLAGS = $LDFLAGS
38955 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38956 LIBS = $MAGICK_LIBS
38957 CXX = $CXX
38958 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038959 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038960" >&6;}