blob: 35777eef886d71ec0319f1bae26b33d08a68a0ec [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
647DELEGATES
648MAGICKCORE_PATH
649PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000650WITH_PERL_DYNAMIC_FALSE
651WITH_PERL_DYNAMIC_TRUE
652WITH_PERL_STATIC_FALSE
653WITH_PERL_STATIC_TRUE
654WITH_PERL_FALSE
655WITH_PERL_TRUE
656PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000657GSVersion
658GSPSDevice
659GSPDFDevice
660GSMonoDevice
661GSEPSDevice
662GSColorDevice
663GSCMYKDevice
664GSAlphaDevice
665XPSVersion
666XPSCMYKDevice
667XPSColorDevice
668XPSMonoDevice
669PCLVersion
670PCLCMYKDevice
671PCLColorDevice
672PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000673ZIP_DELEGATE_FALSE
674ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000675ZIP
cristy73bd4a52010-10-05 11:24:23 +0000676P7ZIP_DELEGATE_FALSE
677P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000678P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000679RPM_DELEGATE_FALSE
680RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000681RPM
682PERL
683TAR
684ShowImageDelegate
685type_include_files
686ghostscript_font_dir
687windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000688dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000689PrintDelegate
690ZipDelegate
691XPSDelegate
692WWWDecodeDelegate
693WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000694UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000695TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000696SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000697SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000698RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000699RMDelegate
700RLEEncodeDelegate
701PSDelegate
702POVDelegate
703PGPDecodeDelegate
704PCLDelegate
705MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000706MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000707MPEGEncodeDelegate
708MPEGDecodeDelegate
709MANDelegate
710LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000711LPRDelegate
712LPDelegate
713ILBMEncodeDelegate
714ILBMDecodeDelegate
715HTMLDecodeDelegate
716HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000717GnuplotDecodeDelegate
718MogrifyDelegate
719DisplayDelegate
720ConvertDelegate
721FIGDecodeDelegate
722EditorDelegate
723EchoDelegate
724DVIDecodeDelegate
725GVCDecodeDelegate
726DNGDecodeDelegate
727CatDelegate
728CGMDecodeDelegate
729BrowseDelegate
730BZIPDelegate
731BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000733SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000734SHAREARCH_RELATIVE_PATH
735SHAREARCH_DIRNAME
736SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000737SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000738CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000739DOCUMENTATION_PATH
740FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000741FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000742CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000743CODER_DIRNAME
744MODULES_PATH
745MODULES_RELATIVE_PATH
746MODULES_DIRNAME
747MODULES_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000748LIBRARY_PATH
749EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000750INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000751PERLMAINCC
752XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000753XML_DELEGATE_FALSE
754XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000755xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000756WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000757WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000758WMF_DELEGATE_FALSE
759WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000760WEBP_LIBS
761WEBP_DELEGATE_FALSE
762WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000763TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000764TIFF_DELEGATE_FALSE
765TIFF_DELEGATE_TRUE
766CAIRO_DELEGATE_FALSE
767CAIRO_DELEGATE_TRUE
768RSVG_DELEGATE_FALSE
769RSVG_DELEGATE_TRUE
770CAIRO_SVG_LIBS
771CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000772RSVG_LIBS
773RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000774PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000775PNG_DELEGATE_FALSE
776PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000777PANGOCAIRO_DELEGATE_FALSE
778PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000779PANGO_DELEGATE_FALSE
780PANGO_DELEGATE_TRUE
781PANGO_LIBS
782PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000783OPENEXR_DELEGATE_FALSE
784OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000785OPENEXR_LIBS
786OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000787LZMA_DELEGATE_FALSE
788LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000789LZMA_LIBS
790LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000791LQR_DELEGATE_FALSE
792LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793LQR_LIBS
794LQR_CFLAGS
795LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000796LCMS_DELEGATE_FALSE
797LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000798JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000799JP2_DELEGATE_FALSE
800JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000801JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000802JPEG_DELEGATE_FALSE
803JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805JBIG_DELEGATE_FALSE
806JBIG_DELEGATE_TRUE
807GVC_DELEGATE_FALSE
808GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809GVC_LIBS
810GVC_CFLAGS
811GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812GS_DELEGATE_FALSE
813GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000815FREETYPE_DELEGATE_FALSE
816FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000817freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000818FONTCONFIG_DELEGATE_FALSE
819FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000820FONTCONFIG_LIBS
821FONTCONFIG_CFLAGS
822FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000823FPX_DELEGATE_FALSE
824FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000825FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000826FFTW_DELEGATE_FALSE
827FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000829DJVU_DELEGATE_FALSE
830DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000831DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832DPS_DELEGATE_FALSE
833DPS_DELEGATE_TRUE
834AUTOTRACE_DELEGATE_FALSE
835AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836AUTOTRACE_LIBS
837AUTOTRACE_CFLAGS
838LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000839WITH_LTDL_FALSE
840WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000841ZLIB_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
cristy3a75f062012-09-08 23:29:40 +0000888MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000889MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000890QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000891LEGACY_SUPPORT_FALSE
892LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000893MAINT
894MAINTAINER_MODE_FALSE
895MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000896MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000897WITH_MODULES_FALSE
898WITH_MODULES_TRUE
899WITH_SHARED_LIBS_FALSE
900WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000901LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000902CXXCPP
903OTOOL64
904OTOOL
905LIPO
906NMEDIT
907DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000908MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000909RANLIB
cristyda16f162011-02-19 23:52:17 +0000910ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000911AR
912NM
913ac_ct_DUMPBIN
914DUMPBIN
915LIBTOOL
916OBJDUMP
917DLLTOOL
918AS
cristy3ed852e2009-09-05 21:47:34 +0000919LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000920CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000921CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000922OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000923PTHREAD_CFLAGS
924PTHREAD_LIBS
925PTHREAD_CC
926ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000927SHAREARCH_DIR
928INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000929WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000930USING_CL_FALSE
931USING_CL_TRUE
932CYGWIN_BUILD_FALSE
933CYGWIN_BUILD_TRUE
934WIN32_NATIVE_BUILD_FALSE
935WIN32_NATIVE_BUILD_TRUE
936WINGDI32_DELEGATE_FALSE
937WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000938GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000939HAVE_LD_VERSION_SCRIPT_FALSE
940HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000941PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000942PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000943LN_S
cristy3ed852e2009-09-05 21:47:34 +0000944LD
cristy73bd4a52010-10-05 11:24:23 +0000945FGREP
946SED
947am__fastdepCXX_FALSE
948am__fastdepCXX_TRUE
949CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000950ac_ct_CXX
951CXXFLAGS
952CXX
cristya0b81c32010-01-22 02:54:33 +0000953EGREP
954GREP
955CPP
cristy73bd4a52010-10-05 11:24:23 +0000956am__fastdepCC_FALSE
957am__fastdepCC_TRUE
958CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000959am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000960AMDEPBACKSLASH
961AMDEP_FALSE
962AMDEP_TRUE
963am__quote
964am__include
965DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000966OBJEXT
967EXEEXT
968ac_ct_CC
969CPPFLAGS
970LDFLAGS
971CFLAGS
972CC
973DIRSEP
974MAGICK_FILTER_MODULE_PATH
975MAGICK_CONFIGURE_BUILD_PATH
976MAGICK_CONFIGURE_SRC_PATH
977MAGICK_CODER_MODULE_PATH
978MAN_DIR
979INFO_DIR
980PERSISTINCLUDE_DIR
981INCLUDE_DIR
982LIB_DIR
983LOCALSTATE_DIR
984SHAREDSTATE_DIR
985SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000986DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000987DATA_DIR
988LIBEXEC_DIR
989SBIN_DIR
990BIN_DIR
991EXEC_PREFIX_DIR
992PREFIX_DIR
993CONFIG_STATUS_DEPENDENCIES
994MAGICK_LIB_VERSION_NUMBER
995MAGICK_LIB_VERSION_TEXT
996MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000997AM_BACKSLASH
998AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +0000999AM_DEFAULT_V
1000AM_V
cristy73bd4a52010-10-05 11:24:23 +00001001am__untar
1002am__tar
1003AMTAR
1004am__leading_dot
1005SET_MAKE
1006AWK
1007mkdir_p
1008MKDIR_P
1009INSTALL_STRIP_PROGRAM
1010STRIP
1011install_sh
1012MAKEINFO
1013AUTOHEADER
1014AUTOMAKE
1015AUTOCONF
1016ACLOCAL
1017VERSION
1018PACKAGE
1019CYGPATH_W
1020am__isrc
1021INSTALL_DATA
1022INSTALL_SCRIPT
1023INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001024PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001025PACKAGE_RELEASE_DATE
1026PACKAGE_LIB_VERSION_NUMBER
1027PACKAGE_LIB_VERSION
1028PACKAGE_CHANGE_DATE
1029PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001030PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001031MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001032MAGICK_LIBRARY_VERSION_INFO
1033MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001034MAGICK_LIBRARY_AGE
1035MAGICK_LIBRARY_REVISION
1036MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001037MAGICK_TARGET_OS
1038MAGICK_TARGET_VENDOR
1039MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001040target_os
1041target_vendor
1042target_cpu
1043target
1044host_os
1045host_vendor
1046host_cpu
1047host
1048build_os
1049build_vendor
1050build_cpu
1051build
1052CONFIGURE_ARGS
1053DISTCHECK_CONFIG_FLAGS
1054target_alias
1055host_alias
1056build_alias
1057LIBS
1058ECHO_T
1059ECHO_N
1060ECHO_C
1061DEFS
1062mandir
1063localedir
1064libdir
1065psdir
1066pdfdir
1067dvidir
1068htmldir
1069infodir
1070docdir
1071oldincludedir
1072includedir
1073localstatedir
1074sharedstatedir
1075sysconfdir
1076datadir
1077datarootdir
1078libexecdir
1079sbindir
1080bindir
1081program_transform_name
1082prefix
1083exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001084PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001085PACKAGE_BUGREPORT
1086PACKAGE_STRING
1087PACKAGE_VERSION
1088PACKAGE_TARNAME
1089PACKAGE_NAME
1090PATH_SEPARATOR
1091SHELL'
1092ac_subst_files=''
1093ac_user_opts='
1094enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001095enable_silent_rules
1096enable_dependency_tracking
1097with_gnu_ld
1098with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001099with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001100enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001101enable_bounds_checking
1102enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001103with_includearch_dir
1104with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001105with_threads
1106enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001107enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001108enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001109enable_shared
1110enable_static
1111with_pic
1112enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001113with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001114enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001115with_modules
1116enable_delegate_build
1117enable_deprecated
1118enable_installed
1119enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001120enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001121enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001122enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001123enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001124enable_ccmalloc
1125enable_efence
1126enable_prof
1127enable_gprof
1128enable_gcov
1129with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001130enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001131with_quantum_depth
1132with_cache
1133with_frozenpaths
1134with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001135with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001136with_perl
1137with_perl_options
1138with_umem
1139with_libstdc
1140with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001141with_x
cristy3ed852e2009-09-05 21:47:34 +00001142with_zlib
1143with_autotrace
1144with_dps
1145with_djvu
cristy430a7312010-01-21 20:44:04 +00001146with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001147with_fftw
1148with_fpx
1149with_fontconfig
1150with_freetype
1151with_gslib
1152with_fontpath
1153with_gs_font_dir
1154with_gvc
1155with_jbig
1156with_jpeg
1157with_jp2
1158with_lcms
cristy71203402010-06-18 13:12:03 +00001159with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001160with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001161with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001162with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001163with_pango
cristy3ed852e2009-09-05 21:47:34 +00001164with_png
1165with_rsvg
1166with_tiff
cristyb1860752011-03-14 00:27:46 +00001167with_webp
cristy3ed852e2009-09-05 21:47:34 +00001168with_windows_font_dir
1169with_wmf
1170with_xml
1171'
1172 ac_precious_vars='build_alias
1173host_alias
1174target_alias
1175CC
1176CFLAGS
1177LDFLAGS
1178LIBS
1179CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001180CPP
cristy3ed852e2009-09-05 21:47:34 +00001181CXX
1182CXXFLAGS
1183CCC
cristy73bd4a52010-10-05 11:24:23 +00001184PKG_CONFIG
1185CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001186XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001187AUTOTRACE_CFLAGS
1188AUTOTRACE_LIBS
1189FONTCONFIG_CFLAGS
1190FONTCONFIG_LIBS
1191GVC_CFLAGS
1192GVC_LIBS
1193LQR_CFLAGS
1194LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001195LZMA_CFLAGS
1196LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001197OPENEXR_CFLAGS
1198OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001199PANGO_CFLAGS
1200PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001201RSVG_CFLAGS
1202RSVG_LIBS
1203CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001204CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001205
1206
1207# Initialize some variables set by options.
1208ac_init_help=
1209ac_init_version=false
1210ac_unrecognized_opts=
1211ac_unrecognized_sep=
1212# The variables have the same names as the options, with
1213# dashes changed to underlines.
1214cache_file=/dev/null
1215exec_prefix=NONE
1216no_create=
1217no_recursion=
1218prefix=NONE
1219program_prefix=NONE
1220program_suffix=NONE
1221program_transform_name=s,x,x,
1222silent=
1223site=
1224srcdir=
1225verbose=
1226x_includes=NONE
1227x_libraries=NONE
1228
1229# Installation directory options.
1230# These are left unexpanded so users can "make install exec_prefix=/foo"
1231# and all the variables that are supposed to be based on exec_prefix
1232# by default will actually change.
1233# Use braces instead of parens because sh, perl, etc. also accept them.
1234# (The list follows the same order as the GNU Coding Standards.)
1235bindir='${exec_prefix}/bin'
1236sbindir='${exec_prefix}/sbin'
1237libexecdir='${exec_prefix}/libexec'
1238datarootdir='${prefix}/share'
1239datadir='${datarootdir}'
1240sysconfdir='${prefix}/etc'
1241sharedstatedir='${prefix}/com'
1242localstatedir='${prefix}/var'
1243includedir='${prefix}/include'
1244oldincludedir='/usr/include'
1245docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1246infodir='${datarootdir}/info'
1247htmldir='${docdir}'
1248dvidir='${docdir}'
1249pdfdir='${docdir}'
1250psdir='${docdir}'
1251libdir='${exec_prefix}/lib'
1252localedir='${datarootdir}/locale'
1253mandir='${datarootdir}/man'
1254
1255ac_prev=
1256ac_dashdash=
1257for ac_option
1258do
1259 # If the previous option needs an argument, assign it.
1260 if test -n "$ac_prev"; then
1261 eval $ac_prev=\$ac_option
1262 ac_prev=
1263 continue
1264 fi
1265
1266 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001267 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1268 *=) ac_optarg= ;;
1269 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001270 esac
1271
1272 # Accept the important Cygnus configure options, so we can diagnose typos.
1273
1274 case $ac_dashdash$ac_option in
1275 --)
1276 ac_dashdash=yes ;;
1277
1278 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1279 ac_prev=bindir ;;
1280 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1281 bindir=$ac_optarg ;;
1282
1283 -build | --build | --buil | --bui | --bu)
1284 ac_prev=build_alias ;;
1285 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1286 build_alias=$ac_optarg ;;
1287
1288 -cache-file | --cache-file | --cache-fil | --cache-fi \
1289 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1290 ac_prev=cache_file ;;
1291 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1292 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1293 cache_file=$ac_optarg ;;
1294
1295 --config-cache | -C)
1296 cache_file=config.cache ;;
1297
1298 -datadir | --datadir | --datadi | --datad)
1299 ac_prev=datadir ;;
1300 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1301 datadir=$ac_optarg ;;
1302
1303 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1304 | --dataroo | --dataro | --datar)
1305 ac_prev=datarootdir ;;
1306 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1307 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1308 datarootdir=$ac_optarg ;;
1309
1310 -disable-* | --disable-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001314 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1318 *"
1319"enable_$ac_useropt"
1320"*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval enable_$ac_useropt=no ;;
1325
1326 -docdir | --docdir | --docdi | --doc | --do)
1327 ac_prev=docdir ;;
1328 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1329 docdir=$ac_optarg ;;
1330
1331 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1332 ac_prev=dvidir ;;
1333 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1334 dvidir=$ac_optarg ;;
1335
1336 -enable-* | --enable-*)
1337 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001340 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001341 ac_useropt_orig=$ac_useropt
1342 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343 case $ac_user_opts in
1344 *"
1345"enable_$ac_useropt"
1346"*) ;;
1347 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1348 ac_unrecognized_sep=', ';;
1349 esac
1350 eval enable_$ac_useropt=\$ac_optarg ;;
1351
1352 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1353 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1354 | --exec | --exe | --ex)
1355 ac_prev=exec_prefix ;;
1356 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1357 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1358 | --exec=* | --exe=* | --ex=*)
1359 exec_prefix=$ac_optarg ;;
1360
1361 -gas | --gas | --ga | --g)
1362 # Obsolete; use --with-gas.
1363 with_gas=yes ;;
1364
1365 -help | --help | --hel | --he | -h)
1366 ac_init_help=long ;;
1367 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1368 ac_init_help=recursive ;;
1369 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1370 ac_init_help=short ;;
1371
1372 -host | --host | --hos | --ho)
1373 ac_prev=host_alias ;;
1374 -host=* | --host=* | --hos=* | --ho=*)
1375 host_alias=$ac_optarg ;;
1376
1377 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1378 ac_prev=htmldir ;;
1379 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1380 | --ht=*)
1381 htmldir=$ac_optarg ;;
1382
1383 -includedir | --includedir | --includedi | --included | --include \
1384 | --includ | --inclu | --incl | --inc)
1385 ac_prev=includedir ;;
1386 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1387 | --includ=* | --inclu=* | --incl=* | --inc=*)
1388 includedir=$ac_optarg ;;
1389
1390 -infodir | --infodir | --infodi | --infod | --info | --inf)
1391 ac_prev=infodir ;;
1392 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1393 infodir=$ac_optarg ;;
1394
1395 -libdir | --libdir | --libdi | --libd)
1396 ac_prev=libdir ;;
1397 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1398 libdir=$ac_optarg ;;
1399
1400 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1401 | --libexe | --libex | --libe)
1402 ac_prev=libexecdir ;;
1403 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1404 | --libexe=* | --libex=* | --libe=*)
1405 libexecdir=$ac_optarg ;;
1406
1407 -localedir | --localedir | --localedi | --localed | --locale)
1408 ac_prev=localedir ;;
1409 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1410 localedir=$ac_optarg ;;
1411
1412 -localstatedir | --localstatedir | --localstatedi | --localstated \
1413 | --localstate | --localstat | --localsta | --localst | --locals)
1414 ac_prev=localstatedir ;;
1415 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1416 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1417 localstatedir=$ac_optarg ;;
1418
1419 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1420 ac_prev=mandir ;;
1421 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1422 mandir=$ac_optarg ;;
1423
1424 -nfp | --nfp | --nf)
1425 # Obsolete; use --without-fp.
1426 with_fp=no ;;
1427
1428 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1429 | --no-cr | --no-c | -n)
1430 no_create=yes ;;
1431
1432 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1433 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1434 no_recursion=yes ;;
1435
1436 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1437 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1438 | --oldin | --oldi | --old | --ol | --o)
1439 ac_prev=oldincludedir ;;
1440 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1441 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1442 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1443 oldincludedir=$ac_optarg ;;
1444
1445 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1446 ac_prev=prefix ;;
1447 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1448 prefix=$ac_optarg ;;
1449
1450 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1451 | --program-pre | --program-pr | --program-p)
1452 ac_prev=program_prefix ;;
1453 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1454 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1455 program_prefix=$ac_optarg ;;
1456
1457 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1458 | --program-suf | --program-su | --program-s)
1459 ac_prev=program_suffix ;;
1460 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1461 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1462 program_suffix=$ac_optarg ;;
1463
1464 -program-transform-name | --program-transform-name \
1465 | --program-transform-nam | --program-transform-na \
1466 | --program-transform-n | --program-transform- \
1467 | --program-transform | --program-transfor \
1468 | --program-transfo | --program-transf \
1469 | --program-trans | --program-tran \
1470 | --progr-tra | --program-tr | --program-t)
1471 ac_prev=program_transform_name ;;
1472 -program-transform-name=* | --program-transform-name=* \
1473 | --program-transform-nam=* | --program-transform-na=* \
1474 | --program-transform-n=* | --program-transform-=* \
1475 | --program-transform=* | --program-transfor=* \
1476 | --program-transfo=* | --program-transf=* \
1477 | --program-trans=* | --program-tran=* \
1478 | --progr-tra=* | --program-tr=* | --program-t=*)
1479 program_transform_name=$ac_optarg ;;
1480
1481 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1482 ac_prev=pdfdir ;;
1483 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1484 pdfdir=$ac_optarg ;;
1485
1486 -psdir | --psdir | --psdi | --psd | --ps)
1487 ac_prev=psdir ;;
1488 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1489 psdir=$ac_optarg ;;
1490
1491 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1492 | -silent | --silent | --silen | --sile | --sil)
1493 silent=yes ;;
1494
1495 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1496 ac_prev=sbindir ;;
1497 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1498 | --sbi=* | --sb=*)
1499 sbindir=$ac_optarg ;;
1500
1501 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1502 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1503 | --sharedst | --shareds | --shared | --share | --shar \
1504 | --sha | --sh)
1505 ac_prev=sharedstatedir ;;
1506 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1507 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1508 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1509 | --sha=* | --sh=*)
1510 sharedstatedir=$ac_optarg ;;
1511
1512 -site | --site | --sit)
1513 ac_prev=site ;;
1514 -site=* | --site=* | --sit=*)
1515 site=$ac_optarg ;;
1516
1517 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1518 ac_prev=srcdir ;;
1519 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1520 srcdir=$ac_optarg ;;
1521
1522 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1523 | --syscon | --sysco | --sysc | --sys | --sy)
1524 ac_prev=sysconfdir ;;
1525 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1526 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1527 sysconfdir=$ac_optarg ;;
1528
1529 -target | --target | --targe | --targ | --tar | --ta | --t)
1530 ac_prev=target_alias ;;
1531 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1532 target_alias=$ac_optarg ;;
1533
1534 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1535 verbose=yes ;;
1536
1537 -version | --version | --versio | --versi | --vers | -V)
1538 ac_init_version=: ;;
1539
1540 -with-* | --with-*)
1541 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1542 # Reject names that are not valid shell variable names.
1543 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001544 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001545 ac_useropt_orig=$ac_useropt
1546 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1547 case $ac_user_opts in
1548 *"
1549"with_$ac_useropt"
1550"*) ;;
1551 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1552 ac_unrecognized_sep=', ';;
1553 esac
1554 eval with_$ac_useropt=\$ac_optarg ;;
1555
1556 -without-* | --without-*)
1557 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1558 # Reject names that are not valid shell variable names.
1559 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001560 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001561 ac_useropt_orig=$ac_useropt
1562 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1563 case $ac_user_opts in
1564 *"
1565"with_$ac_useropt"
1566"*) ;;
1567 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1568 ac_unrecognized_sep=', ';;
1569 esac
1570 eval with_$ac_useropt=no ;;
1571
1572 --x)
1573 # Obsolete; use --with-x.
1574 with_x=yes ;;
1575
1576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1577 | --x-incl | --x-inc | --x-in | --x-i)
1578 ac_prev=x_includes ;;
1579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1581 x_includes=$ac_optarg ;;
1582
1583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1585 ac_prev=x_libraries ;;
1586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1588 x_libraries=$ac_optarg ;;
1589
cristy98dddb52010-11-04 00:30:15 +00001590 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1591Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001592 ;;
1593
1594 *=*)
1595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1596 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001597 case $ac_envvar in #(
1598 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001599 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001600 esac
cristy3ed852e2009-09-05 21:47:34 +00001601 eval $ac_envvar=\$ac_optarg
1602 export $ac_envvar ;;
1603
1604 *)
1605 # FIXME: should be removed in autoconf 3.0.
1606 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1608 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001609 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001610 ;;
1611
1612 esac
1613done
1614
1615if test -n "$ac_prev"; then
1616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001617 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001618fi
1619
1620if test -n "$ac_unrecognized_opts"; then
1621 case $enable_option_checking in
1622 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001623 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001624 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1625 esac
1626fi
1627
1628# Check all directory arguments for consistency.
1629for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1630 datadir sysconfdir sharedstatedir localstatedir includedir \
1631 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1632 libdir localedir mandir
1633do
1634 eval ac_val=\$$ac_var
1635 # Remove trailing slashes.
1636 case $ac_val in
1637 */ )
1638 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1639 eval $ac_var=\$ac_val;;
1640 esac
1641 # Be sure to have absolute directory names.
1642 case $ac_val in
1643 [\\/$]* | ?:[\\/]* ) continue;;
1644 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1645 esac
cristy98dddb52010-11-04 00:30:15 +00001646 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001647done
1648
1649# There might be people who depend on the old broken behavior: `$host'
1650# used to hold the argument of --host etc.
1651# FIXME: To remove some day.
1652build=$build_alias
1653host=$host_alias
1654target=$target_alias
1655
1656# FIXME: To remove some day.
1657if test "x$host_alias" != x; then
1658 if test "x$build_alias" = x; then
1659 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001660 elif test "x$build_alias" != "x$host_alias"; then
1661 cross_compiling=yes
1662 fi
1663fi
1664
1665ac_tool_prefix=
1666test -n "$host_alias" && ac_tool_prefix=$host_alias-
1667
1668test "$silent" = yes && exec 6>/dev/null
1669
1670
1671ac_pwd=`pwd` && test -n "$ac_pwd" &&
1672ac_ls_di=`ls -di .` &&
1673ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001674 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001675test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001676 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001677
1678
1679# Find the source files, if location was not specified.
1680if test -z "$srcdir"; then
1681 ac_srcdir_defaulted=yes
1682 # Try the directory containing this script, then the parent directory.
1683 ac_confdir=`$as_dirname -- "$as_myself" ||
1684$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1685 X"$as_myself" : 'X\(//\)[^/]' \| \
1686 X"$as_myself" : 'X\(//\)$' \| \
1687 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1688$as_echo X"$as_myself" |
1689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1690 s//\1/
1691 q
1692 }
1693 /^X\(\/\/\)[^/].*/{
1694 s//\1/
1695 q
1696 }
1697 /^X\(\/\/\)$/{
1698 s//\1/
1699 q
1700 }
1701 /^X\(\/\).*/{
1702 s//\1/
1703 q
1704 }
1705 s/.*/./; q'`
1706 srcdir=$ac_confdir
1707 if test ! -r "$srcdir/$ac_unique_file"; then
1708 srcdir=..
1709 fi
1710else
1711 ac_srcdir_defaulted=no
1712fi
1713if test ! -r "$srcdir/$ac_unique_file"; then
1714 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001715 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001716fi
1717ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1718ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001719 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001720 pwd)`
1721# When building in place, set srcdir=.
1722if test "$ac_abs_confdir" = "$ac_pwd"; then
1723 srcdir=.
1724fi
1725# Remove unnecessary trailing slashes from srcdir.
1726# Double slashes in file names in object file debugging info
1727# mess up M-x gdb in Emacs.
1728case $srcdir in
1729*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1730esac
1731for ac_var in $ac_precious_vars; do
1732 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1733 eval ac_env_${ac_var}_value=\$${ac_var}
1734 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1735 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1736done
1737
1738#
1739# Report the --help message.
1740#
1741if test "$ac_init_help" = "long"; then
1742 # Omit some internal or obsolete options to make the list less imposing.
1743 # This message is too long to be a string in the A/UX 3.1 sh.
1744 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001745\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001746
1747Usage: $0 [OPTION]... [VAR=VALUE]...
1748
1749To assign environment variables (e.g., CC, CFLAGS...), specify them as
1750VAR=VALUE. See below for descriptions of some of the useful variables.
1751
1752Defaults for the options are specified in brackets.
1753
1754Configuration:
1755 -h, --help display this help and exit
1756 --help=short display options specific to this package
1757 --help=recursive display the short help of all the included packages
1758 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001759 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001760 --cache-file=FILE cache test results in FILE [disabled]
1761 -C, --config-cache alias for \`--cache-file=config.cache'
1762 -n, --no-create do not create output files
1763 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1764
1765Installation directories:
1766 --prefix=PREFIX install architecture-independent files in PREFIX
1767 [$ac_default_prefix]
1768 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1769 [PREFIX]
1770
1771By default, \`make install' will install all the files in
1772\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1773an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1774for instance \`--prefix=\$HOME'.
1775
1776For better control, use the options below.
1777
1778Fine tuning of the installation directories:
1779 --bindir=DIR user executables [EPREFIX/bin]
1780 --sbindir=DIR system admin executables [EPREFIX/sbin]
1781 --libexecdir=DIR program executables [EPREFIX/libexec]
1782 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1783 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1784 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1785 --libdir=DIR object code libraries [EPREFIX/lib]
1786 --includedir=DIR C header files [PREFIX/include]
1787 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1788 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1789 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1790 --infodir=DIR info documentation [DATAROOTDIR/info]
1791 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1792 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001793 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001794 --htmldir=DIR html documentation [DOCDIR]
1795 --dvidir=DIR dvi documentation [DOCDIR]
1796 --pdfdir=DIR pdf documentation [DOCDIR]
1797 --psdir=DIR ps documentation [DOCDIR]
1798_ACEOF
1799
1800 cat <<\_ACEOF
1801
cristy73bd4a52010-10-05 11:24:23 +00001802Program names:
1803 --program-prefix=PREFIX prepend PREFIX to installed program names
1804 --program-suffix=SUFFIX append SUFFIX to installed program names
1805 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1806
cristy3ed852e2009-09-05 21:47:34 +00001807X features:
1808 --x-includes=DIR X include files are in DIR
1809 --x-libraries=DIR X library files are in DIR
1810
1811System types:
1812 --build=BUILD configure for building on BUILD [guessed]
1813 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1814 --target=TARGET configure for building compilers for TARGET [HOST]
1815_ACEOF
1816fi
1817
1818if test -n "$ac_init_help"; then
1819 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001820 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001821 esac
1822 cat <<\_ACEOF
1823
1824Optional Features:
1825 --disable-option-checking ignore unrecognized --enable/--with options
1826 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1827 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001828 --enable-silent-rules less verbose build output (undo: "make V=1")
1829 --disable-silent-rules verbose build output (undo: "make V=0")
1830 --enable-dependency-tracking
1831 do not reject slow dependency extractors
1832 --disable-dependency-tracking
1833 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001834 --enable-ld-version-script
1835 enable linker version script (default is enabled
1836 when possible)
cristya3824692012-03-30 17:22:07 +00001837 --enable-bounds-checking
1838 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001839 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001840 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001841 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001842 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001843 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001844 --enable-shared[=PKGS] build shared libraries [default=yes]
1845 --enable-static[=PKGS] build static libraries [default=yes]
1846 --enable-fast-install[=PKGS]
1847 optimize for fast installation [default=yes]
1848 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001849 --enable-delegate-build look for delegate libraries in build directory
1850 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001851 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001852 --disable-installed Formally install ImageMagick under PREFIX
1853 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001854 --enable-zero-configuration
1855 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001856 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001857 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001858 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001859 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001860 --enable-maintainer-mode
1861 enable make rules and dependencies not useful (and
1862 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001863 --enable-ccmalloc enable 'ccmalloc' memory debug support
1864 --enable-efence enable 'efence' memory debug support
1865 --enable-prof enable 'prof' profiling support
1866 --enable-gprof enable 'gprof' profiling support
1867 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001868 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001869 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001870
1871Optional Packages:
1872 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1873 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001874 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001875 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001876 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1877 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001878 --includearch-dir=DIR ARCH specific include directory
1879 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001880 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001881 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001882 both]
cristyda16f162011-02-19 23:52:17 +00001883 --with-sysroot=DIR Search for dependent libraries within DIR
1884 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001885 --with-modules enable building dynamically loadable modules
1886 --with-method-prefix=PREFIX
1887 prefix MagickCore API methods
1888 --with-quantum-depth=DEPTH
1889 number of bits in a pixel quantum (default 16)
1890 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1891 memory)
1892 --with-frozenpaths freeze delegate paths
1893 --without-magick-plus-plus
1894 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001895 --with-package-release-name=NAME
1896 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001897 --with-perl enable build/install of PerlMagick
1898 --with-perl-options=OPTIONS
1899 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001900 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001901 --with-umem enable umem memory allocation library support
1902 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1903 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001904 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001905 --without-zlib disable ZLIB support
1906 --with-autotrace enable autotrace support
1907 --without-dps disable Display Postscript support
1908 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001909 --with-dejavu-font-dir=DIR
1910 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001911 --without-fftw disable FFTW support
1912 --without-fpx disable FlashPIX support
1913 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001914 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001915 --without-gslib enable Ghostscript library support
1916 --with-fontpath=DIR prepend to default font search path
1917 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001918 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001919 --without-jbig disable JBIG support
1920 --without-jpeg disable JPEG support
1921 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001922 --without-lcms disable lcms (v1.1X) support
1923 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001924 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001925 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001926 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001927 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001928 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001929 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001930 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001931 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001932 --with-windows-font-dir=DIR
1933 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001934 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001935 --without-xml disable XML support
1936
1937Some influential environment variables:
1938 CC C compiler command
1939 CFLAGS C compiler flags
1940 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1941 nonstandard directory <lib dir>
1942 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001943 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001944 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001945 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001946 CXX C++ compiler command
1947 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001948 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001949 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001950 XMKMF Path to xmkmf, Makefile generator for X Window System
1951 AUTOTRACE_CFLAGS
1952 C compiler flags for AUTOTRACE, overriding pkg-config
1953 AUTOTRACE_LIBS
1954 linker flags for AUTOTRACE, overriding pkg-config
1955 FONTCONFIG_CFLAGS
1956 C compiler flags for FONTCONFIG, overriding pkg-config
1957 FONTCONFIG_LIBS
1958 linker flags for FONTCONFIG, overriding pkg-config
1959 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1960 GVC_LIBS linker flags for GVC, overriding pkg-config
1961 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1962 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001963 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1964 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001965 OPENEXR_CFLAGS
1966 C compiler flags for OPENEXR, overriding pkg-config
1967 OPENEXR_LIBS
1968 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001969 PANGO_CFLAGS
1970 C compiler flags for PANGO, overriding pkg-config
1971 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001972 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1973 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1974 CAIRO_SVG_CFLAGS
1975 C compiler flags for CAIRO_SVG, overriding pkg-config
1976 CAIRO_SVG_LIBS
1977 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001978
1979Use these variables to override the choices made by `configure' or to help
1980it to find libraries and programs with nonstandard names/locations.
1981
1982Report bugs to <http://www.imagemagick.org>.
1983_ACEOF
1984ac_status=$?
1985fi
1986
1987if test "$ac_init_help" = "recursive"; then
1988 # If there are subdirs, report their specific --help.
1989 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1990 test -d "$ac_dir" ||
1991 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1992 continue
1993 ac_builddir=.
1994
1995case "$ac_dir" in
1996.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1997*)
1998 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1999 # A ".." for each directory in $ac_dir_suffix.
2000 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2001 case $ac_top_builddir_sub in
2002 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2003 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2004 esac ;;
2005esac
2006ac_abs_top_builddir=$ac_pwd
2007ac_abs_builddir=$ac_pwd$ac_dir_suffix
2008# for backward compatibility:
2009ac_top_builddir=$ac_top_build_prefix
2010
2011case $srcdir in
2012 .) # We are building in place.
2013 ac_srcdir=.
2014 ac_top_srcdir=$ac_top_builddir_sub
2015 ac_abs_top_srcdir=$ac_pwd ;;
2016 [\\/]* | ?:[\\/]* ) # Absolute name.
2017 ac_srcdir=$srcdir$ac_dir_suffix;
2018 ac_top_srcdir=$srcdir
2019 ac_abs_top_srcdir=$srcdir ;;
2020 *) # Relative name.
2021 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2022 ac_top_srcdir=$ac_top_build_prefix$srcdir
2023 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2024esac
2025ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2026
2027 cd "$ac_dir" || { ac_status=$?; continue; }
2028 # Check for guested configure.
2029 if test -f "$ac_srcdir/configure.gnu"; then
2030 echo &&
2031 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2032 elif test -f "$ac_srcdir/configure"; then
2033 echo &&
2034 $SHELL "$ac_srcdir/configure" --help=recursive
2035 else
2036 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2037 fi || ac_status=$?
2038 cd "$ac_pwd" || { ac_status=$?; break; }
2039 done
2040fi
2041
2042test -n "$ac_init_help" && exit $ac_status
2043if $ac_init_version; then
2044 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002045ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002046generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002047
cristy14fefe52012-05-21 00:59:18 +00002048Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002049This configure script is free software; the Free Software Foundation
2050gives unlimited permission to copy, distribute and modify it.
2051_ACEOF
2052 exit
2053fi
cristy8b350f62009-11-15 23:12:43 +00002054
2055## ------------------------ ##
2056## Autoconf initialization. ##
2057## ------------------------ ##
2058
2059# ac_fn_c_try_compile LINENO
2060# --------------------------
2061# Try to compile conftest.$ac_ext, and return whether this succeeded.
2062ac_fn_c_try_compile ()
2063{
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 rm -f conftest.$ac_objext
2066 if { { ac_try="$ac_compile"
2067case "(($ac_try" in
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2070esac
2071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072$as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_compile") 2>conftest.err
2074 ac_status=$?
2075 if test -s conftest.err; then
2076 grep -v '^ *+' conftest.err >conftest.er1
2077 cat conftest.er1 >&5
2078 mv -f conftest.er1 conftest.err
2079 fi
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; } && {
2082 test -z "$ac_c_werror_flag" ||
2083 test ! -s conftest.err
2084 } && test -s conftest.$ac_objext; then :
2085 ac_retval=0
2086else
2087 $as_echo "$as_me: failed program was:" >&5
2088sed 's/^/| /' conftest.$ac_ext >&5
2089
2090 ac_retval=1
2091fi
cristyda16f162011-02-19 23:52:17 +00002092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002093 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002094
2095} # ac_fn_c_try_compile
2096
cristy95646052009-11-28 23:05:30 +00002097# ac_fn_c_try_cpp LINENO
2098# ----------------------
2099# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2100ac_fn_c_try_cpp ()
2101{
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 if { { ac_try="$ac_cpp conftest.$ac_ext"
2104case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107esac
2108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109$as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2111 ac_status=$?
2112 if test -s conftest.err; then
2113 grep -v '^ *+' conftest.err >conftest.er1
2114 cat conftest.er1 >&5
2115 mv -f conftest.er1 conftest.err
2116 fi
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002118 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2120 test ! -s conftest.err
2121 }; then :
2122 ac_retval=0
2123else
2124 $as_echo "$as_me: failed program was:" >&5
2125sed 's/^/| /' conftest.$ac_ext >&5
2126
2127 ac_retval=1
2128fi
cristyda16f162011-02-19 23:52:17 +00002129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002130 as_fn_set_status $ac_retval
2131
2132} # ac_fn_c_try_cpp
2133
cristy8b350f62009-11-15 23:12:43 +00002134# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2135# -------------------------------------------------------
2136# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2137# the include files in INCLUDES and setting the cache variable VAR
2138# accordingly.
2139ac_fn_c_check_header_mongrel ()
2140{
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002142 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002145if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002146 $as_echo_n "(cached) " >&6
2147fi
2148eval ac_res=\$$3
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150$as_echo "$ac_res" >&6; }
2151else
2152 # Is the header compilable?
2153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2154$as_echo_n "checking $2 usability... " >&6; }
2155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156/* end confdefs.h. */
2157$4
2158#include <$2>
2159_ACEOF
2160if ac_fn_c_try_compile "$LINENO"; then :
2161 ac_header_compiler=yes
2162else
2163 ac_header_compiler=no
2164fi
2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2167$as_echo "$ac_header_compiler" >&6; }
2168
2169# Is the header present?
2170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2171$as_echo_n "checking $2 presence... " >&6; }
2172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h. */
2174#include <$2>
2175_ACEOF
2176if ac_fn_c_try_cpp "$LINENO"; then :
2177 ac_header_preproc=yes
2178else
2179 ac_header_preproc=no
2180fi
cristyda16f162011-02-19 23:52:17 +00002181rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2183$as_echo "$ac_header_preproc" >&6; }
2184
2185# So? What about this header?
2186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2187 yes:no: )
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2189$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2191$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2192 ;;
2193 no:yes:* )
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2195$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2197$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2199$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2201$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2203$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002204( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002205## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002206## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002207 ) | sed "s/^/$as_me: WARNING: /" >&2
2208 ;;
2209esac
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2211$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002212if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002213 $as_echo_n "(cached) " >&6
2214else
2215 eval "$3=\$ac_header_compiler"
2216fi
2217eval ac_res=\$$3
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220fi
cristyda16f162011-02-19 23:52:17 +00002221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002222
2223} # ac_fn_c_check_header_mongrel
2224
2225# ac_fn_c_try_run LINENO
2226# ----------------------
2227# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2228# that executables *can* be run.
2229ac_fn_c_try_run ()
2230{
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if { { ac_try="$ac_link"
2233case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236esac
2237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2238$as_echo "$ac_try_echo"; } >&5
2239 (eval "$ac_link") 2>&5
2240 ac_status=$?
2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2243 { { case "(($ac_try" in
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2246esac
2247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2248$as_echo "$ac_try_echo"; } >&5
2249 (eval "$ac_try") 2>&5
2250 ac_status=$?
2251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2252 test $ac_status = 0; }; }; then :
2253 ac_retval=0
2254else
2255 $as_echo "$as_me: program exited with status $ac_status" >&5
2256 $as_echo "$as_me: failed program was:" >&5
2257sed 's/^/| /' conftest.$ac_ext >&5
2258
2259 ac_retval=$ac_status
2260fi
2261 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002263 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002264
2265} # ac_fn_c_try_run
2266
2267# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2268# -------------------------------------------------------
2269# Tests whether HEADER exists and can be compiled using the include files in
2270# INCLUDES, setting the cache variable VAR accordingly.
2271ac_fn_c_check_header_compile ()
2272{
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002276if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002277 $as_echo_n "(cached) " >&6
2278else
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280/* end confdefs.h. */
2281$4
2282#include <$2>
2283_ACEOF
2284if ac_fn_c_try_compile "$LINENO"; then :
2285 eval "$3=yes"
2286else
2287 eval "$3=no"
2288fi
2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290fi
2291eval ac_res=\$$3
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002295
2296} # ac_fn_c_check_header_compile
2297
cristya0b81c32010-01-22 02:54:33 +00002298# ac_fn_cxx_try_compile LINENO
2299# ----------------------------
2300# Try to compile conftest.$ac_ext, and return whether this succeeded.
2301ac_fn_cxx_try_compile ()
2302{
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 rm -f conftest.$ac_objext
2305 if { { ac_try="$ac_compile"
2306case "(($ac_try" in
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2309esac
2310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2311$as_echo "$ac_try_echo"; } >&5
2312 (eval "$ac_compile") 2>conftest.err
2313 ac_status=$?
2314 if test -s conftest.err; then
2315 grep -v '^ *+' conftest.err >conftest.er1
2316 cat conftest.er1 >&5
2317 mv -f conftest.er1 conftest.err
2318 fi
2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; } && {
2321 test -z "$ac_cxx_werror_flag" ||
2322 test ! -s conftest.err
2323 } && test -s conftest.$ac_objext; then :
2324 ac_retval=0
2325else
2326 $as_echo "$as_me: failed program was:" >&5
2327sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 ac_retval=1
2330fi
cristyda16f162011-02-19 23:52:17 +00002331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002332 as_fn_set_status $ac_retval
2333
2334} # ac_fn_cxx_try_compile
2335
cristy8b350f62009-11-15 23:12:43 +00002336# ac_fn_c_try_link LINENO
2337# -----------------------
2338# Try to link conftest.$ac_ext, and return whether this succeeded.
2339ac_fn_c_try_link ()
2340{
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 rm -f conftest.$ac_objext conftest$ac_exeext
2343 if { { ac_try="$ac_link"
2344case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2347esac
2348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2349$as_echo "$ac_try_echo"; } >&5
2350 (eval "$ac_link") 2>conftest.err
2351 ac_status=$?
2352 if test -s conftest.err; then
2353 grep -v '^ *+' conftest.err >conftest.er1
2354 cat conftest.er1 >&5
2355 mv -f conftest.er1 conftest.err
2356 fi
2357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358 test $ac_status = 0; } && {
2359 test -z "$ac_c_werror_flag" ||
2360 test ! -s conftest.err
2361 } && test -s conftest$ac_exeext && {
2362 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002363 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002364 }; then :
2365 ac_retval=0
2366else
2367 $as_echo "$as_me: failed program was:" >&5
2368sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 ac_retval=1
2371fi
2372 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2373 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2374 # interfere with the next link command; also delete a directory that is
2375 # left behind by Apple's compiler. We do this before executing the actions.
2376 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002377 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002378 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002379
2380} # ac_fn_c_try_link
2381
cristy73bd4a52010-10-05 11:24:23 +00002382# ac_fn_c_check_func LINENO FUNC VAR
2383# ----------------------------------
2384# Tests whether FUNC exists, setting the cache variable VAR accordingly
2385ac_fn_c_check_func ()
2386{
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2389$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002390if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002391 $as_echo_n "(cached) " >&6
2392else
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394/* end confdefs.h. */
2395/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2397#define $2 innocuous_$2
2398
2399/* System header to define __stub macros and hopefully few prototypes,
2400 which can conflict with char $2 (); below.
2401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2402 <limits.h> exists even on freestanding compilers. */
2403
2404#ifdef __STDC__
2405# include <limits.h>
2406#else
2407# include <assert.h>
2408#endif
2409
2410#undef $2
2411
2412/* Override any GCC internal prototype to avoid an error.
2413 Use char because int might match the return type of a GCC
2414 builtin and then its argument prototype would still apply. */
2415#ifdef __cplusplus
2416extern "C"
2417#endif
2418char $2 ();
2419/* The GNU C library defines this for functions which it implements
2420 to always fail with ENOSYS. Some functions are actually named
2421 something starting with __ and the normal name is an alias. */
2422#if defined __stub_$2 || defined __stub___$2
2423choke me
2424#endif
2425
2426int
2427main ()
2428{
2429return $2 ();
2430 ;
2431 return 0;
2432}
2433_ACEOF
2434if ac_fn_c_try_link "$LINENO"; then :
2435 eval "$3=yes"
2436else
2437 eval "$3=no"
2438fi
2439rm -f core conftest.err conftest.$ac_objext \
2440 conftest$ac_exeext conftest.$ac_ext
2441fi
2442eval ac_res=\$$3
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002445 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002446
2447} # ac_fn_c_check_func
2448
2449# ac_fn_cxx_try_cpp LINENO
2450# ------------------------
2451# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2452ac_fn_cxx_try_cpp ()
2453{
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 if { { ac_try="$ac_cpp conftest.$ac_ext"
2456case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459esac
2460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2461$as_echo "$ac_try_echo"; } >&5
2462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2463 ac_status=$?
2464 if test -s conftest.err; then
2465 grep -v '^ *+' conftest.err >conftest.er1
2466 cat conftest.er1 >&5
2467 mv -f conftest.er1 conftest.err
2468 fi
2469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002470 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002471 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2472 test ! -s conftest.err
2473 }; then :
2474 ac_retval=0
2475else
2476 $as_echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 ac_retval=1
2480fi
cristyda16f162011-02-19 23:52:17 +00002481 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002482 as_fn_set_status $ac_retval
2483
2484} # ac_fn_cxx_try_cpp
2485
2486# ac_fn_cxx_try_link LINENO
2487# -------------------------
2488# Try to link conftest.$ac_ext, and return whether this succeeded.
2489ac_fn_cxx_try_link ()
2490{
2491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492 rm -f conftest.$ac_objext conftest$ac_exeext
2493 if { { ac_try="$ac_link"
2494case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2497esac
2498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2499$as_echo "$ac_try_echo"; } >&5
2500 (eval "$ac_link") 2>conftest.err
2501 ac_status=$?
2502 if test -s conftest.err; then
2503 grep -v '^ *+' conftest.err >conftest.er1
2504 cat conftest.er1 >&5
2505 mv -f conftest.er1 conftest.err
2506 fi
2507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508 test $ac_status = 0; } && {
2509 test -z "$ac_cxx_werror_flag" ||
2510 test ! -s conftest.err
2511 } && test -s conftest$ac_exeext && {
2512 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002513 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002514 }; then :
2515 ac_retval=0
2516else
2517 $as_echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 ac_retval=1
2521fi
2522 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2523 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2524 # interfere with the next link command; also delete a directory that is
2525 # left behind by Apple's compiler. We do this before executing the actions.
2526 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002528 as_fn_set_status $ac_retval
2529
2530} # ac_fn_cxx_try_link
2531
cristy8b350f62009-11-15 23:12:43 +00002532# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2533# -------------------------------------------
2534# Tests whether TYPE exists after having included INCLUDES, setting cache
2535# variable VAR accordingly.
2536ac_fn_c_check_type ()
2537{
2538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2540$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002541if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002542 $as_echo_n "(cached) " >&6
2543else
2544 eval "$3=no"
2545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546/* end confdefs.h. */
2547$4
2548int
2549main ()
2550{
2551if (sizeof ($2))
2552 return 0;
2553 ;
2554 return 0;
2555}
2556_ACEOF
2557if ac_fn_c_try_compile "$LINENO"; then :
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559/* end confdefs.h. */
2560$4
2561int
2562main ()
2563{
2564if (sizeof (($2)))
2565 return 0;
2566 ;
2567 return 0;
2568}
2569_ACEOF
2570if ac_fn_c_try_compile "$LINENO"; then :
2571
2572else
2573 eval "$3=yes"
2574fi
2575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576fi
2577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578fi
2579eval ac_res=\$$3
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2581$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002583
2584} # ac_fn_c_check_type
2585
cristy92703d82010-04-26 00:18:18 +00002586# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2587# ----------------------------------------------------
2588# Tries to find if the field MEMBER exists in type AGGR, after including
2589# INCLUDES, setting cache variable VAR accordingly.
2590ac_fn_c_check_member ()
2591{
2592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2594$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002595if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002596 $as_echo_n "(cached) " >&6
2597else
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599/* end confdefs.h. */
2600$5
2601int
2602main ()
2603{
2604static $2 ac_aggr;
2605if (ac_aggr.$3)
2606return 0;
2607 ;
2608 return 0;
2609}
2610_ACEOF
2611if ac_fn_c_try_compile "$LINENO"; then :
2612 eval "$4=yes"
2613else
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615/* end confdefs.h. */
2616$5
2617int
2618main ()
2619{
2620static $2 ac_aggr;
2621if (sizeof ac_aggr.$3)
2622return 0;
2623 ;
2624 return 0;
2625}
2626_ACEOF
2627if ac_fn_c_try_compile "$LINENO"; then :
2628 eval "$4=yes"
2629else
2630 eval "$4=no"
2631fi
2632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633fi
2634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635fi
2636eval ac_res=\$$4
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002640
2641} # ac_fn_c_check_member
2642
cristy5eef09f2012-10-16 12:08:28 +00002643# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2644# ---------------------------------------------
2645# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2646# accordingly.
2647ac_fn_c_check_decl ()
2648{
2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650 as_decl_name=`echo $2|sed 's/ *(.*//'`
2651 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2653$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2654if eval \${$3+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656else
2657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2658/* end confdefs.h. */
2659$4
2660int
2661main ()
2662{
2663#ifndef $as_decl_name
2664#ifdef __cplusplus
2665 (void) $as_decl_use;
2666#else
2667 (void) $as_decl_name;
2668#endif
2669#endif
2670
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675if ac_fn_c_try_compile "$LINENO"; then :
2676 eval "$3=yes"
2677else
2678 eval "$3=no"
2679fi
2680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681fi
2682eval ac_res=\$$3
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684$as_echo "$ac_res" >&6; }
2685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2686
2687} # ac_fn_c_check_decl
2688
cristy501c8042011-05-26 17:46:28 +00002689# ac_fn_c_find_intX_t LINENO BITS VAR
2690# -----------------------------------
2691# Finds a signed integer type with width BITS, setting cache variable VAR
2692# accordingly.
2693ac_fn_c_find_intX_t ()
2694{
2695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2697$as_echo_n "checking for int$2_t... " >&6; }
2698if eval \${$3+:} false; then :
2699 $as_echo_n "(cached) " >&6
2700else
2701 eval "$3=no"
2702 # Order is important - never check a type that is potentially smaller
2703 # than half of the expected target width.
2704 for ac_type in int$2_t 'int' 'long int' \
2705 'long long int' 'short int' 'signed char'; do
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707/* end confdefs.h. */
2708$ac_includes_default
2709 enum { N = $2 / 2 - 1 };
2710int
2711main ()
2712{
2713static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002714test_array [0] = 0;
2715return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002716
2717 ;
2718 return 0;
2719}
2720_ACEOF
2721if ac_fn_c_try_compile "$LINENO"; then :
2722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723/* end confdefs.h. */
2724$ac_includes_default
2725 enum { N = $2 / 2 - 1 };
2726int
2727main ()
2728{
2729static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2730 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002731test_array [0] = 0;
2732return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002733
2734 ;
2735 return 0;
2736}
2737_ACEOF
2738if ac_fn_c_try_compile "$LINENO"; then :
2739
2740else
2741 case $ac_type in #(
2742 int$2_t) :
2743 eval "$3=yes" ;; #(
2744 *) :
2745 eval "$3=\$ac_type" ;;
2746esac
2747fi
2748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749fi
2750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2751 if eval test \"x\$"$3"\" = x"no"; then :
2752
2753else
2754 break
2755fi
2756 done
2757fi
2758eval ac_res=\$$3
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2760$as_echo "$ac_res" >&6; }
2761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2762
2763} # ac_fn_c_find_intX_t
2764
2765# ac_fn_c_find_uintX_t LINENO BITS VAR
2766# ------------------------------------
2767# Finds an unsigned integer type with width BITS, setting cache variable VAR
2768# accordingly.
2769ac_fn_c_find_uintX_t ()
2770{
2771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2773$as_echo_n "checking for uint$2_t... " >&6; }
2774if eval \${$3+:} false; then :
2775 $as_echo_n "(cached) " >&6
2776else
2777 eval "$3=no"
2778 # Order is important - never check a type that is potentially smaller
2779 # than half of the expected target width.
2780 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2781 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783/* end confdefs.h. */
2784$ac_includes_default
2785int
2786main ()
2787{
2788static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002789test_array [0] = 0;
2790return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002791
2792 ;
2793 return 0;
2794}
2795_ACEOF
2796if ac_fn_c_try_compile "$LINENO"; then :
2797 case $ac_type in #(
2798 uint$2_t) :
2799 eval "$3=yes" ;; #(
2800 *) :
2801 eval "$3=\$ac_type" ;;
2802esac
2803fi
2804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 if eval test \"x\$"$3"\" = x"no"; then :
2806
2807else
2808 break
2809fi
2810 done
2811fi
2812eval ac_res=\$$3
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2814$as_echo "$ac_res" >&6; }
2815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2816
2817} # ac_fn_c_find_uintX_t
2818
cristy8b350f62009-11-15 23:12:43 +00002819# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2820# --------------------------------------------
2821# Tries to find the compile-time value of EXPR in a program that includes
2822# INCLUDES, setting VAR accordingly. Returns whether the value could be
2823# computed
2824ac_fn_c_compute_int ()
2825{
2826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2827 if test "$cross_compiling" = yes; then
2828 # Depending upon the size, compute the lo and hi bounds.
2829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830/* end confdefs.h. */
2831$4
2832int
2833main ()
2834{
2835static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002836test_array [0] = 0;
2837return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002838
2839 ;
2840 return 0;
2841}
2842_ACEOF
2843if ac_fn_c_try_compile "$LINENO"; then :
2844 ac_lo=0 ac_mid=0
2845 while :; do
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847/* end confdefs.h. */
2848$4
2849int
2850main ()
2851{
2852static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002853test_array [0] = 0;
2854return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002855
2856 ;
2857 return 0;
2858}
2859_ACEOF
2860if ac_fn_c_try_compile "$LINENO"; then :
2861 ac_hi=$ac_mid; break
2862else
2863 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2864 if test $ac_lo -le $ac_mid; then
2865 ac_lo= ac_hi=
2866 break
2867 fi
2868 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2869fi
2870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 done
2872else
2873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2874/* end confdefs.h. */
2875$4
2876int
2877main ()
2878{
2879static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002880test_array [0] = 0;
2881return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002882
2883 ;
2884 return 0;
2885}
2886_ACEOF
2887if ac_fn_c_try_compile "$LINENO"; then :
2888 ac_hi=-1 ac_mid=-1
2889 while :; do
2890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2891/* end confdefs.h. */
2892$4
2893int
2894main ()
2895{
2896static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002897test_array [0] = 0;
2898return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002899
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904if ac_fn_c_try_compile "$LINENO"; then :
2905 ac_lo=$ac_mid; break
2906else
2907 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2908 if test $ac_mid -le $ac_hi; then
2909 ac_lo= ac_hi=
2910 break
2911 fi
2912 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2913fi
2914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 done
2916else
2917 ac_lo= ac_hi=
2918fi
2919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920fi
2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922# Binary search between lo and hi bounds.
2923while test "x$ac_lo" != "x$ac_hi"; do
2924 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926/* end confdefs.h. */
2927$4
2928int
2929main ()
2930{
2931static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002932test_array [0] = 0;
2933return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002934
2935 ;
2936 return 0;
2937}
2938_ACEOF
2939if ac_fn_c_try_compile "$LINENO"; then :
2940 ac_hi=$ac_mid
2941else
2942 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2943fi
2944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2945done
2946case $ac_lo in #((
2947?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2948'') ac_retval=1 ;;
2949esac
2950 else
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952/* end confdefs.h. */
2953$4
2954static long int longval () { return $2; }
2955static unsigned long int ulongval () { return $2; }
2956#include <stdio.h>
2957#include <stdlib.h>
2958int
2959main ()
2960{
2961
2962 FILE *f = fopen ("conftest.val", "w");
2963 if (! f)
2964 return 1;
2965 if (($2) < 0)
2966 {
2967 long int i = longval ();
2968 if (i != ($2))
2969 return 1;
2970 fprintf (f, "%ld", i);
2971 }
2972 else
2973 {
2974 unsigned long int i = ulongval ();
2975 if (i != ($2))
2976 return 1;
2977 fprintf (f, "%lu", i);
2978 }
2979 /* Do not output a trailing newline, as this causes \r\n confusion
2980 on some platforms. */
2981 return ferror (f) || fclose (f) != 0;
2982
2983 ;
2984 return 0;
2985}
2986_ACEOF
2987if ac_fn_c_try_run "$LINENO"; then :
2988 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2989else
2990 ac_retval=1
2991fi
2992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2993 conftest.$ac_objext conftest.beam conftest.$ac_ext
2994rm -f conftest.val
2995
2996 fi
cristyda16f162011-02-19 23:52:17 +00002997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002998 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002999
3000} # ac_fn_c_compute_int
3001
3002# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3003# ---------------------------------------------------------
3004# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3005# the include files in INCLUDES and setting the cache variable VAR
3006# accordingly.
3007ac_fn_cxx_check_header_mongrel ()
3008{
3009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003010 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3012$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003013if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003014 $as_echo_n "(cached) " >&6
3015fi
3016eval ac_res=\$$3
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3018$as_echo "$ac_res" >&6; }
3019else
3020 # Is the header compilable?
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3022$as_echo_n "checking $2 usability... " >&6; }
3023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024/* end confdefs.h. */
3025$4
3026#include <$2>
3027_ACEOF
3028if ac_fn_cxx_try_compile "$LINENO"; then :
3029 ac_header_compiler=yes
3030else
3031 ac_header_compiler=no
3032fi
3033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3035$as_echo "$ac_header_compiler" >&6; }
3036
3037# Is the header present?
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3039$as_echo_n "checking $2 presence... " >&6; }
3040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041/* end confdefs.h. */
3042#include <$2>
3043_ACEOF
3044if ac_fn_cxx_try_cpp "$LINENO"; then :
3045 ac_header_preproc=yes
3046else
3047 ac_header_preproc=no
3048fi
cristyda16f162011-02-19 23:52:17 +00003049rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3051$as_echo "$ac_header_preproc" >&6; }
3052
3053# So? What about this header?
3054case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3055 yes:no: )
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3057$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3059$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3060 ;;
3061 no:yes:* )
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3063$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3065$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3067$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3069$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3071$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003072( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003073## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003074## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003075 ) | sed "s/^/$as_me: WARNING: /" >&2
3076 ;;
3077esac
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3079$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003080if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003081 $as_echo_n "(cached) " >&6
3082else
3083 eval "$3=\$ac_header_compiler"
3084fi
3085eval ac_res=\$$3
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3087$as_echo "$ac_res" >&6; }
3088fi
cristyda16f162011-02-19 23:52:17 +00003089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003090
3091} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003092cat >config.log <<_ACEOF
3093This file contains any messages produced by compilers while
3094running configure, to aid debugging if configure makes a mistake.
3095
cristy29eb34e2011-10-16 00:46:08 +00003096It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003097generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003098
3099 $ $0 $@
3100
3101_ACEOF
3102exec 5>>config.log
3103{
3104cat <<_ASUNAME
3105## --------- ##
3106## Platform. ##
3107## --------- ##
3108
3109hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3110uname -m = `(uname -m) 2>/dev/null || echo unknown`
3111uname -r = `(uname -r) 2>/dev/null || echo unknown`
3112uname -s = `(uname -s) 2>/dev/null || echo unknown`
3113uname -v = `(uname -v) 2>/dev/null || echo unknown`
3114
3115/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3116/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3117
3118/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3119/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3120/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3121/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3122/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3123/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3124/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3125
3126_ASUNAME
3127
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003133 $as_echo "PATH: $as_dir"
3134 done
cristy3ed852e2009-09-05 21:47:34 +00003135IFS=$as_save_IFS
3136
3137} >&5
3138
3139cat >&5 <<_ACEOF
3140
3141
3142## ----------- ##
3143## Core tests. ##
3144## ----------- ##
3145
3146_ACEOF
3147
3148
3149# Keep a trace of the command line.
3150# Strip out --no-create and --no-recursion so they do not pile up.
3151# Strip out --silent because we don't want to record it for future runs.
3152# Also quote any args containing shell meta-characters.
3153# Make two passes to allow for proper duplicate-argument suppression.
3154ac_configure_args=
3155ac_configure_args0=
3156ac_configure_args1=
3157ac_must_keep_next=false
3158for ac_pass in 1 2
3159do
3160 for ac_arg
3161 do
3162 case $ac_arg in
3163 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3165 | -silent | --silent | --silen | --sile | --sil)
3166 continue ;;
3167 *\'*)
3168 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3169 esac
3170 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003171 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003172 2)
cristy8b350f62009-11-15 23:12:43 +00003173 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003174 if test $ac_must_keep_next = true; then
3175 ac_must_keep_next=false # Got value, back to normal.
3176 else
3177 case $ac_arg in
3178 *=* | --config-cache | -C | -disable-* | --disable-* \
3179 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3180 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3181 | -with-* | --with-* | -without-* | --without-* | --x)
3182 case "$ac_configure_args0 " in
3183 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3184 esac
3185 ;;
3186 -* ) ac_must_keep_next=true ;;
3187 esac
3188 fi
cristy8b350f62009-11-15 23:12:43 +00003189 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003190 ;;
3191 esac
3192 done
3193done
cristy8b350f62009-11-15 23:12:43 +00003194{ ac_configure_args0=; unset ac_configure_args0;}
3195{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003196
3197# When interrupted or exit'd, cleanup temporary files, and complete
3198# config.log. We remove comments because anyway the quotes in there
3199# would cause problems or look ugly.
3200# WARNING: Use '\'' to represent an apostrophe within the trap.
3201# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3202trap 'exit_status=$?
3203 # Save into config.log some information that might help in debugging.
3204 {
3205 echo
3206
cristy98dddb52010-11-04 00:30:15 +00003207 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003208## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003209## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003210 echo
3211 # The following way of writing the cache mishandles newlines in values,
3212(
3213 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3214 eval ac_val=\$$ac_var
3215 case $ac_val in #(
3216 *${as_nl}*)
3217 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003219$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3220 esac
3221 case $ac_var in #(
3222 _ | IFS | as_nl) ;; #(
3223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003224 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003225 esac ;;
3226 esac
3227 done
3228 (set) 2>&1 |
3229 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3230 *${as_nl}ac_space=\ *)
3231 sed -n \
3232 "s/'\''/'\''\\\\'\'''\''/g;
3233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3234 ;; #(
3235 *)
3236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3237 ;;
3238 esac |
3239 sort
3240)
3241 echo
3242
cristy98dddb52010-11-04 00:30:15 +00003243 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003244## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003245## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003246 echo
3247 for ac_var in $ac_subst_vars
3248 do
3249 eval ac_val=\$$ac_var
3250 case $ac_val in
3251 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3252 esac
3253 $as_echo "$ac_var='\''$ac_val'\''"
3254 done | sort
3255 echo
3256
3257 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003258 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003259## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003260## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003261 echo
3262 for ac_var in $ac_subst_files
3263 do
3264 eval ac_val=\$$ac_var
3265 case $ac_val in
3266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3267 esac
3268 $as_echo "$ac_var='\''$ac_val'\''"
3269 done | sort
3270 echo
3271 fi
3272
3273 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003274 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003275## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003276## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003277 echo
3278 cat confdefs.h
3279 echo
3280 fi
3281 test "$ac_signal" != 0 &&
3282 $as_echo "$as_me: caught signal $ac_signal"
3283 $as_echo "$as_me: exit $exit_status"
3284 } >&5
3285 rm -f core *.core core.conftest.* &&
3286 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3287 exit $exit_status
3288' 0
3289for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003290 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003291done
3292ac_signal=0
3293
3294# confdefs.h avoids OS command line length limits that DEFS can exceed.
3295rm -f -r conftest* confdefs.h
3296
cristy8b350f62009-11-15 23:12:43 +00003297$as_echo "/* confdefs.h */" > confdefs.h
3298
cristy3ed852e2009-09-05 21:47:34 +00003299# Predefined preprocessor variables.
3300
3301cat >>confdefs.h <<_ACEOF
3302#define PACKAGE_NAME "$PACKAGE_NAME"
3303_ACEOF
3304
cristy3ed852e2009-09-05 21:47:34 +00003305cat >>confdefs.h <<_ACEOF
3306#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3307_ACEOF
3308
cristy3ed852e2009-09-05 21:47:34 +00003309cat >>confdefs.h <<_ACEOF
3310#define PACKAGE_VERSION "$PACKAGE_VERSION"
3311_ACEOF
3312
cristy3ed852e2009-09-05 21:47:34 +00003313cat >>confdefs.h <<_ACEOF
3314#define PACKAGE_STRING "$PACKAGE_STRING"
3315_ACEOF
3316
cristy3ed852e2009-09-05 21:47:34 +00003317cat >>confdefs.h <<_ACEOF
3318#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3319_ACEOF
3320
cristy8b350f62009-11-15 23:12:43 +00003321cat >>confdefs.h <<_ACEOF
3322#define PACKAGE_URL "$PACKAGE_URL"
3323_ACEOF
3324
cristy3ed852e2009-09-05 21:47:34 +00003325
3326# Let the site file select an alternate cache file if it wants to.
3327# Prefer an explicitly selected file to automatically selected ones.
3328ac_site_file1=NONE
3329ac_site_file2=NONE
3330if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003331 # We do not want a PATH search for config.site.
3332 case $CONFIG_SITE in #((
3333 -*) ac_site_file1=./$CONFIG_SITE;;
3334 */*) ac_site_file1=$CONFIG_SITE;;
3335 *) ac_site_file1=./$CONFIG_SITE;;
3336 esac
cristy3ed852e2009-09-05 21:47:34 +00003337elif test "x$prefix" != xNONE; then
3338 ac_site_file1=$prefix/share/config.site
3339 ac_site_file2=$prefix/etc/config.site
3340else
3341 ac_site_file1=$ac_default_prefix/share/config.site
3342 ac_site_file2=$ac_default_prefix/etc/config.site
3343fi
3344for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3345do
3346 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003347 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003348 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003349$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3350 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003351 . "$ac_site_file" \
3352 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354as_fn_error $? "failed to load site script $ac_site_file
3355See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003356 fi
3357done
3358
3359if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003360 # Some versions of bash will fail to source /dev/null (special files
3361 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3362 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003364$as_echo "$as_me: loading cache $cache_file" >&6;}
3365 case $cache_file in
3366 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3367 *) . "./$cache_file";;
3368 esac
3369 fi
3370else
cristy8b350f62009-11-15 23:12:43 +00003371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003372$as_echo "$as_me: creating cache $cache_file" >&6;}
3373 >$cache_file
3374fi
3375
cristycd4c5312009-11-22 01:19:08 +00003376as_fn_append ac_header_list " stdlib.h"
3377as_fn_append ac_header_list " unistd.h"
3378as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003379# Check that the precious variables saved in the cache have kept the same
3380# value.
3381ac_cache_corrupted=false
3382for ac_var in $ac_precious_vars; do
3383 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3384 eval ac_new_set=\$ac_env_${ac_var}_set
3385 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3386 eval ac_new_val=\$ac_env_${ac_var}_value
3387 case $ac_old_set,$ac_new_set in
3388 set,)
cristy8b350f62009-11-15 23:12:43 +00003389 { $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 +00003390$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3391 ac_cache_corrupted=: ;;
3392 ,set)
cristy8b350f62009-11-15 23:12:43 +00003393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003394$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3395 ac_cache_corrupted=: ;;
3396 ,);;
3397 *)
3398 if test "x$ac_old_val" != "x$ac_new_val"; then
3399 # differences in whitespace do not lead to failure.
3400 ac_old_val_w=`echo x $ac_old_val`
3401 ac_new_val_w=`echo x $ac_new_val`
3402 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003404$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3405 ac_cache_corrupted=:
3406 else
cristy8b350f62009-11-15 23:12:43 +00003407 { $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 +00003408$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3409 eval $ac_var=\$ac_old_val
3410 fi
cristy8b350f62009-11-15 23:12:43 +00003411 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003412$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003413 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003414$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3415 fi;;
3416 esac
3417 # Pass precious variables to config.status.
3418 if test "$ac_new_set" = set; then
3419 case $ac_new_val in
3420 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3421 *) ac_arg=$ac_var=$ac_new_val ;;
3422 esac
3423 case " $ac_configure_args " in
3424 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003425 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003426 esac
3427 fi
3428done
3429if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003433$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003434 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003435fi
cristy8b350f62009-11-15 23:12:43 +00003436## -------------------- ##
3437## Main body of script. ##
3438## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003439
3440ac_ext=c
3441ac_cpp='$CPP $CPPFLAGS'
3442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445
3446
3447
3448ac_aux_dir=
3449for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003450 if test -f "$ac_dir/install-sh"; then
3451 ac_aux_dir=$ac_dir
3452 ac_install_sh="$ac_aux_dir/install-sh -c"
3453 break
3454 elif test -f "$ac_dir/install.sh"; then
3455 ac_aux_dir=$ac_dir
3456 ac_install_sh="$ac_aux_dir/install.sh -c"
3457 break
3458 elif test -f "$ac_dir/shtool"; then
3459 ac_aux_dir=$ac_dir
3460 ac_install_sh="$ac_aux_dir/shtool install -c"
3461 break
3462 fi
cristy3ed852e2009-09-05 21:47:34 +00003463done
3464if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003465 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003466fi
3467
3468# These three variables are undocumented and unsupported,
3469# and are intended to be withdrawn in a future Autoconf release.
3470# They can cause serious problems if a builder's source tree is in a directory
3471# whose full name contains unusual characters.
3472ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3473ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3474ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3475
3476
3477
3478
3479ac_config_headers="$ac_config_headers config/config.h"
3480
cristy24fc1fe2010-10-23 21:13:01 +00003481
cristy01ff9f32012-12-01 18:15:29 +00003482ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003483
cristy2df32802012-09-17 01:15:28 +00003484ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/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 +00003485
3486
3487#
3488# Save initial user-tunable values
3489#
3490USER_LIBS=$LIBS
3491for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3492 eval isset=\${$var+set}
3493 if test "$isset" = 'set'; then
3494 eval val=$`echo $var`
3495 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3496 fi
3497done
3498
3499
3500CONFIGURE_ARGS="$0 ${ac_configure_args}"
3501
3502
3503# Source file containing package/library versioning information.
3504. ${srcdir}/version.sh
3505
cristy15a88782010-01-31 23:24:49 +00003506echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003507# Make sure we can run config.sub.
3508$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003509 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003510
cristy8b350f62009-11-15 23:12:43 +00003511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003512$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003513if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003514 $as_echo_n "(cached) " >&6
3515else
3516 ac_build_alias=$build_alias
3517test "x$ac_build_alias" = x &&
3518 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3519test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003520 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003521ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003522 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003523
3524fi
cristy8b350f62009-11-15 23:12:43 +00003525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003526$as_echo "$ac_cv_build" >&6; }
3527case $ac_cv_build in
3528*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003529*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003530esac
3531build=$ac_cv_build
3532ac_save_IFS=$IFS; IFS='-'
3533set x $ac_cv_build
3534shift
3535build_cpu=$1
3536build_vendor=$2
3537shift; shift
3538# Remember, the first character of IFS is used to create $*,
3539# except with old shells:
3540build_os=$*
3541IFS=$ac_save_IFS
3542case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3543
3544
cristy8b350f62009-11-15 23:12:43 +00003545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003546$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003547if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003548 $as_echo_n "(cached) " >&6
3549else
3550 if test "x$host_alias" = x; then
3551 ac_cv_host=$ac_cv_build
3552else
3553 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003554 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003555fi
3556
3557fi
cristy8b350f62009-11-15 23:12:43 +00003558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003559$as_echo "$ac_cv_host" >&6; }
3560case $ac_cv_host in
3561*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003562*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003563esac
3564host=$ac_cv_host
3565ac_save_IFS=$IFS; IFS='-'
3566set x $ac_cv_host
3567shift
3568host_cpu=$1
3569host_vendor=$2
3570shift; shift
3571# Remember, the first character of IFS is used to create $*,
3572# except with old shells:
3573host_os=$*
3574IFS=$ac_save_IFS
3575case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3576
3577
cristy8b350f62009-11-15 23:12:43 +00003578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003579$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003580if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003581 $as_echo_n "(cached) " >&6
3582else
3583 if test "x$target_alias" = x; then
3584 ac_cv_target=$ac_cv_host
3585else
3586 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003587 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003588fi
3589
3590fi
cristy8b350f62009-11-15 23:12:43 +00003591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003592$as_echo "$ac_cv_target" >&6; }
3593case $ac_cv_target in
3594*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003595*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003596esac
3597target=$ac_cv_target
3598ac_save_IFS=$IFS; IFS='-'
3599set x $ac_cv_target
3600shift
3601target_cpu=$1
3602target_vendor=$2
3603shift; shift
3604# Remember, the first character of IFS is used to create $*,
3605# except with old shells:
3606target_os=$*
3607IFS=$ac_save_IFS
3608case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3609
3610
3611# The aliases save the names the user supplied, while $host etc.
3612# will get canonicalized.
3613test -n "$target_alias" &&
3614 test "$program_prefix$program_suffix$program_transform_name" = \
3615 NONENONEs,x,x, &&
3616 program_prefix=${target_alias}-
3617
cristy837d6dc2010-02-27 01:16:57 +00003618
3619
3620
cristy8be34142012-06-17 14:07:18 +00003621
cristy19615b82011-04-13 20:02:01 +00003622MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003623
3624
cristy27d53d62012-07-29 23:30:07 +00003625cat >>confdefs.h <<_ACEOF
3626#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3627_ACEOF
3628
3629
cristy19615b82011-04-13 20:02:01 +00003630MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003631
3632
cristy27d53d62012-07-29 23:30:07 +00003633cat >>confdefs.h <<_ACEOF
3634#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3635_ACEOF
3636
3637
cristy19615b82011-04-13 20:02:01 +00003638MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003639
3640
cristy27d53d62012-07-29 23:30:07 +00003641cat >>confdefs.h <<_ACEOF
3642#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3643_ACEOF
3644
3645
cristy3ed852e2009-09-05 21:47:34 +00003646# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003647MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3648
3649MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3650
cristy2a3eb392012-12-17 13:39:20 +00003651MAGICK_SVN_REVISION=10255:10277M
cristyd694ca32011-03-27 21:42:54 +00003652
cristy3ed852e2009-09-05 21:47:34 +00003653
3654
3655# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3657$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003658# Reject unsafe characters in $srcdir or the absolute working directory
3659# name. Accept space and tab only in the latter.
3660am_lf='
3661'
3662case `pwd` in
3663 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003664 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003665esac
3666case $srcdir in
3667 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003668 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003669esac
cristy3ed852e2009-09-05 21:47:34 +00003670
cristyc0890a62012-07-19 00:18:20 +00003671# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003672# arguments. Must try -L first in case configure is actually a
3673# symlink; some systems play weird games with the mod time of symlinks
3674# (eg FreeBSD returns the mod time of the symlink's containing
3675# directory).
3676if (
cristyc0890a62012-07-19 00:18:20 +00003677 am_has_slept=no
3678 for am_try in 1 2; do
3679 echo "timestamp, slept: $am_has_slept" > conftest.file
3680 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3681 if test "$*" = "X"; then
3682 # -L didn't work.
3683 set X `ls -t "$srcdir/configure" conftest.file`
3684 fi
3685 if test "$*" != "X $srcdir/configure conftest.file" \
3686 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003687
cristyc0890a62012-07-19 00:18:20 +00003688 # If neither matched, then we have a broken ls. This can happen
3689 # if, for instance, CONFIG_SHELL is bash and it inherits a
3690 # broken ls alias from the environment. This has actually
3691 # happened. Such a system could not be considered "sane".
3692 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3693 alias in your environment" "$LINENO" 5
3694 fi
3695 if test "$2" = conftest.file || test $am_try -eq 2; then
3696 break
3697 fi
3698 # Just in case.
3699 sleep 1
3700 am_has_slept=yes
3701 done
cristy73bd4a52010-10-05 11:24:23 +00003702 test "$2" = conftest.file
3703 )
3704then
3705 # Ok.
3706 :
3707else
cristy98dddb52010-11-04 00:30:15 +00003708 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003709Check your system clock" "$LINENO" 5
3710fi
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003713# If we didn't sleep, we still need to ensure time stamps of config.status and
3714# generated files are strictly newer.
3715am_sleep_pid=
3716if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3717 ( sleep 1 ) &
3718 am_sleep_pid=$!
3719fi
cristy73bd4a52010-10-05 11:24:23 +00003720
cristyc0890a62012-07-19 00:18:20 +00003721rm -f conftest.file
3722
3723
3724am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003725
3726# Find a good install program. We prefer a C program (faster),
3727# so one script is as good as another. But avoid the broken or
3728# incompatible versions:
3729# SysV /etc/install, /usr/sbin/install
3730# SunOS /usr/etc/install
3731# IRIX /sbin/install
3732# AIX /bin/install
3733# AmigaOS /C/install, which installs bootblocks on floppy discs
3734# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3735# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3736# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3737# OS/2's system install, which has a completely different semantic
3738# ./install, which can be erroneously created by make from ./install.sh.
3739# Reject install programs that cannot install multiple files.
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3741$as_echo_n "checking for a BSD-compatible install... " >&6; }
3742if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003743if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003744 $as_echo_n "(cached) " >&6
3745else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 # Account for people who put trailing slashes in PATH elements.
3752case $as_dir/ in #((
3753 ./ | .// | /[cC]/* | \
3754 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3755 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3756 /usr/ucb/* ) ;;
3757 *)
3758 # OSF1 and SCO ODT 3.0 have their own names for install.
3759 # Don't use installbsd from OSF since it installs stuff as root
3760 # by default.
3761 for ac_prog in ginstall scoinst install; do
3762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003763 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003764 if test $ac_prog = install &&
3765 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3766 # AIX install. It has an incompatible calling convention.
3767 :
3768 elif test $ac_prog = install &&
3769 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3770 # program-specific install script used by HP pwplus--don't use.
3771 :
3772 else
3773 rm -rf conftest.one conftest.two conftest.dir
3774 echo one > conftest.one
3775 echo two > conftest.two
3776 mkdir conftest.dir
3777 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3778 test -s conftest.one && test -s conftest.two &&
3779 test -s conftest.dir/conftest.one &&
3780 test -s conftest.dir/conftest.two
3781 then
3782 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3783 break 3
3784 fi
3785 fi
3786 fi
3787 done
3788 done
3789 ;;
3790esac
3791
3792 done
3793IFS=$as_save_IFS
3794
3795rm -rf conftest.one conftest.two conftest.dir
3796
3797fi
3798 if test "${ac_cv_path_install+set}" = set; then
3799 INSTALL=$ac_cv_path_install
3800 else
3801 # As a last resort, use the slow shell script. Don't cache a
3802 # value for INSTALL within a source directory, because that will
3803 # break other packages using the cache if that directory is
3804 # removed, or if the value is a relative name.
3805 INSTALL=$ac_install_sh
3806 fi
3807fi
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3809$as_echo "$INSTALL" >&6; }
3810
3811# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3812# It thinks the first close brace ends the variable substitution.
3813test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3814
3815test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3816
3817test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3818
3819test "$program_prefix" != NONE &&
3820 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3821# Use a double $ so make ignores it.
3822test "$program_suffix" != NONE &&
3823 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3824# Double any \ or $.
3825# By default was `s,x,x', remove it if useless.
3826ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3827program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3828
3829# expand $ac_aux_dir to an absolute path
3830am_aux_dir=`cd $ac_aux_dir && pwd`
3831
3832if test x"${MISSING+set}" != xset; then
3833 case $am_aux_dir in
3834 *\ * | *\ *)
3835 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3836 *)
3837 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3838 esac
3839fi
3840# Use eval to expand $SHELL
3841if eval "$MISSING --run true"; then
3842 am_missing_run="$MISSING --run "
3843else
3844 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3846$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003847fi
3848
3849if test x"${install_sh}" != xset; then
3850 case $am_aux_dir in
3851 *\ * | *\ *)
3852 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3853 *)
3854 install_sh="\${SHELL} $am_aux_dir/install-sh"
3855 esac
3856fi
3857
cristyc0890a62012-07-19 00:18:20 +00003858# Installed binaries are usually stripped using 'strip' when the user
3859# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003860# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003861# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003862if test "$cross_compiling" != no; then
3863 if test -n "$ac_tool_prefix"; then
3864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3865set dummy ${ac_tool_prefix}strip; ac_word=$2
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003868if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003869 $as_echo_n "(cached) " >&6
3870else
3871 if test -n "$STRIP"; then
3872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3873else
3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003881 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 break 2
3884 fi
3885done
3886 done
3887IFS=$as_save_IFS
3888
3889fi
3890fi
3891STRIP=$ac_cv_prog_STRIP
3892if test -n "$STRIP"; then
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3894$as_echo "$STRIP" >&6; }
3895else
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897$as_echo "no" >&6; }
3898fi
3899
3900
3901fi
3902if test -z "$ac_cv_prog_STRIP"; then
3903 ac_ct_STRIP=$STRIP
3904 # Extract the first word of "strip", so it can be a program name with args.
3905set dummy strip; ac_word=$2
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003908if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003909 $as_echo_n "(cached) " >&6
3910else
3911 if test -n "$ac_ct_STRIP"; then
3912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3913else
3914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH
3916do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003921 ac_cv_prog_ac_ct_STRIP="strip"
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3924 fi
3925done
3926 done
3927IFS=$as_save_IFS
3928
3929fi
3930fi
3931ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3932if test -n "$ac_ct_STRIP"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3934$as_echo "$ac_ct_STRIP" >&6; }
3935else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937$as_echo "no" >&6; }
3938fi
3939
3940 if test "x$ac_ct_STRIP" = x; then
3941 STRIP=":"
3942 else
3943 case $cross_compiling:$ac_tool_warned in
3944yes:)
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3947ac_tool_warned=yes ;;
3948esac
3949 STRIP=$ac_ct_STRIP
3950 fi
3951else
3952 STRIP="$ac_cv_prog_STRIP"
3953fi
3954
3955fi
3956INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3957
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3959$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3960if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003961 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003962 $as_echo_n "(cached) " >&6
3963else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3966do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_prog in mkdir gmkdir; do
3970 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003971 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003972 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3973 'mkdir (GNU coreutils) '* | \
3974 'mkdir (coreutils) '* | \
3975 'mkdir (fileutils) '4.1*)
3976 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3977 break 3;;
3978 esac
3979 done
3980 done
3981 done
3982IFS=$as_save_IFS
3983
3984fi
3985
3986 test -d ./--version && rmdir ./--version
3987 if test "${ac_cv_path_mkdir+set}" = set; then
3988 MKDIR_P="$ac_cv_path_mkdir -p"
3989 else
3990 # As a last resort, use the slow shell script. Don't cache a
3991 # value for MKDIR_P within a source directory, because that will
3992 # break other packages using the cache if that directory is
3993 # removed, or if the value is a relative name.
3994 MKDIR_P="$ac_install_sh -d"
3995 fi
3996fi
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3998$as_echo "$MKDIR_P" >&6; }
3999
cristy73bd4a52010-10-05 11:24:23 +00004000for ac_prog in gawk mawk nawk awk
4001do
4002 # Extract the first word of "$ac_prog", so it can be a program name with args.
4003set dummy $ac_prog; ac_word=$2
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004006if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004007 $as_echo_n "(cached) " >&6
4008else
4009 if test -n "$AWK"; then
4010 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4011else
4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH
4014do
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004019 ac_cv_prog_AWK="$ac_prog"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 break 2
4022 fi
4023done
4024 done
4025IFS=$as_save_IFS
4026
4027fi
4028fi
4029AWK=$ac_cv_prog_AWK
4030if test -n "$AWK"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4032$as_echo "$AWK" >&6; }
4033else
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035$as_echo "no" >&6; }
4036fi
4037
4038
4039 test -n "$AWK" && break
4040done
4041
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4043$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4044set x ${MAKE-make}
4045ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004046if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004047 $as_echo_n "(cached) " >&6
4048else
4049 cat >conftest.make <<\_ACEOF
4050SHELL = /bin/sh
4051all:
4052 @echo '@@@%%%=$(MAKE)=@@@%%%'
4053_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004054# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004055case `${MAKE-make} -f conftest.make 2>/dev/null` in
4056 *@@@%%%=?*=@@@%%%*)
4057 eval ac_cv_prog_make_${ac_make}_set=yes;;
4058 *)
4059 eval ac_cv_prog_make_${ac_make}_set=no;;
4060esac
4061rm -f conftest.make
4062fi
4063if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4065$as_echo "yes" >&6; }
4066 SET_MAKE=
4067else
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069$as_echo "no" >&6; }
4070 SET_MAKE="MAKE=${MAKE-make}"
4071fi
4072
4073rm -rf .tst 2>/dev/null
4074mkdir .tst 2>/dev/null
4075if test -d .tst; then
4076 am__leading_dot=.
4077else
4078 am__leading_dot=_
4079fi
4080rmdir .tst 2>/dev/null
4081
cristya448bd22011-10-14 12:38:13 +00004082# Check whether --enable-silent-rules was given.
4083if test "${enable_silent_rules+set}" = set; then :
4084 enableval=$enable_silent_rules;
4085fi
4086
cristyc0890a62012-07-19 00:18:20 +00004087case $enable_silent_rules in # (((
4088 yes) AM_DEFAULT_VERBOSITY=0;;
4089 no) AM_DEFAULT_VERBOSITY=1;;
4090 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004091esac
cristyc3fb77b2012-02-06 01:49:41 +00004092am_make=${MAKE-make}
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4094$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4095if ${am_cv_make_support_nested_variables+:} false; then :
4096 $as_echo_n "(cached) " >&6
4097else
4098 if $as_echo 'TRUE=$(BAR$(V))
4099BAR0=false
4100BAR1=true
4101V=1
4102am__doit:
4103 @$(TRUE)
4104.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4105 am_cv_make_support_nested_variables=yes
4106else
4107 am_cv_make_support_nested_variables=no
4108fi
4109fi
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4111$as_echo "$am_cv_make_support_nested_variables" >&6; }
4112if test $am_cv_make_support_nested_variables = yes; then
4113 AM_V='$(V)'
4114 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4115else
4116 AM_V=$AM_DEFAULT_VERBOSITY
4117 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4118fi
cristya448bd22011-10-14 12:38:13 +00004119AM_BACKSLASH='\'
4120
cristy73bd4a52010-10-05 11:24:23 +00004121if test "`cd $srcdir && pwd`" != "`pwd`"; then
4122 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4123 # is not polluted with repeated "-I."
4124 am__isrc=' -I$(srcdir)'
4125 # test to see if srcdir already configured
4126 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004127 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004128 fi
4129fi
4130
4131# test whether we have cygpath
4132if test -z "$CYGPATH_W"; then
4133 if (cygpath --version) >/dev/null 2>/dev/null; then
4134 CYGPATH_W='cygpath -w'
4135 else
4136 CYGPATH_W=echo
4137 fi
4138fi
4139
4140
4141# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004142 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004143 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004144
4145
cristya448bd22011-10-14 12:38:13 +00004146cat >>confdefs.h <<_ACEOF
4147#define PACKAGE "$PACKAGE"
4148_ACEOF
4149
4150
4151cat >>confdefs.h <<_ACEOF
4152#define VERSION "$VERSION"
4153_ACEOF
4154
cristy73bd4a52010-10-05 11:24:23 +00004155# Some tools Automake needs.
4156
4157ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4158
4159
4160AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4161
4162
4163AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4164
4165
4166AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4167
4168
4169MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4170
cristyc0890a62012-07-19 00:18:20 +00004171# For better backward compatibility. To be removed once Automake 1.9.x
4172# dies out for good. For more background, see:
4173# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4174# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4175mkdir_p='$(MKDIR_P)'
4176
cristy73bd4a52010-10-05 11:24:23 +00004177# We need awk for the "check" target. The system "awk" is bad on
4178# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004179# Always define AMTAR for backward compatibility. Yes, it's still used
4180# in the wild :-( We should find a proper way to deprecate it ...
4181AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004182
cristyc3fb77b2012-02-06 01:49:41 +00004183am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004184
4185
4186
4187
4188
cristy3ed852e2009-09-05 21:47:34 +00004189
4190# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004191# Check whether --enable-silent-rules was given.
4192if test "${enable_silent_rules+set}" = set; then :
4193 enableval=$enable_silent_rules;
4194fi
4195
cristyc0890a62012-07-19 00:18:20 +00004196case $enable_silent_rules in # (((
4197 yes) AM_DEFAULT_VERBOSITY=0;;
4198 no) AM_DEFAULT_VERBOSITY=1;;
4199 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004200esac
cristyc3fb77b2012-02-06 01:49:41 +00004201am_make=${MAKE-make}
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4203$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4204if ${am_cv_make_support_nested_variables+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206else
4207 if $as_echo 'TRUE=$(BAR$(V))
4208BAR0=false
4209BAR1=true
4210V=1
4211am__doit:
4212 @$(TRUE)
4213.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4214 am_cv_make_support_nested_variables=yes
4215else
4216 am_cv_make_support_nested_variables=no
4217fi
4218fi
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4220$as_echo "$am_cv_make_support_nested_variables" >&6; }
4221if test $am_cv_make_support_nested_variables = yes; then
4222 AM_V='$(V)'
4223 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4224else
4225 AM_V=$AM_DEFAULT_VERBOSITY
4226 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4227fi
cristy73bd4a52010-10-05 11:24:23 +00004228AM_BACKSLASH='\'
4229
cristy3ed852e2009-09-05 21:47:34 +00004230
4231MAGICK_LIB_VERSION="0x"
4232if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4233 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4234fi
4235MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4236if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4237 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4238fi
4239MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4240if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4241 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4242fi
4243MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4244
4245
4246# Definition used to define MagickLibVersionText in version.h
4247MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4248
4249
4250# Definition used to define MagickLibVersionNumber in version.h
4251MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4252
4253
4254# Regenerate config.status if ChangeLog or version.sh is updated.
4255CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4256
4257
4258PERLMAINCC=$CC
4259
4260MAGICK_CFLAGS=''
4261MAGICK_CPPFLAGS=$CPPFLAGS_USER
4262MAGICK_PCFLAGS=$CPPFLAGS_USER
4263MAGICK_LDFLAGS=''
4264MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004265MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004266
4267#
4268# Evaluate shell variable equivalents to Makefile directory variables
4269#
4270if test "x$prefix" = xNONE; then
4271 prefix=$ac_default_prefix
4272fi
4273# Let make expand exec_prefix.
4274if test "x$exec_prefix" = xNONE; then
4275 exec_prefix='${prefix}'
4276fi
4277
4278#
4279eval "eval PREFIX_DIR=${prefix}"
4280
4281eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4282
4283eval "eval BIN_DIR=$bindir"
4284
4285eval "eval SBIN_DIR=$sbindir"
4286
4287eval "eval LIBEXEC_DIR=$libexecdir"
4288
4289eval "eval DATA_DIR=$datadir"
4290
cristy4e65ec22012-04-08 01:33:27 +00004291eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004292
cristy3ed852e2009-09-05 21:47:34 +00004293eval "eval SYSCONF_DIR=$sysconfdir"
4294
4295eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4296
4297eval "eval LOCALSTATE_DIR=$localstatedir"
4298
4299eval "eval LIB_DIR=$libdir"
4300
4301eval "eval INCLUDE_DIR=$includedir"
4302
4303eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4304
4305eval "eval INFO_DIR=$infodir"
4306
4307eval "eval MAN_DIR=$mandir"
4308
4309
4310# Get full paths to source and build directories
4311srcdirfull="`cd $srcdir && pwd`"
4312builddir="`pwd`"
4313
4314#
4315# Compute variables useful for running uninstalled software.
4316#
4317MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4318MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4319MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4320MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4321DIRSEP=':'
4322case "${build_os}" in
4323 mingw* )
4324 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4325 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4326 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4327 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4328 DIRSEP=';'
4329 ;;
4330esac
4331case "${host_os}" in
4332 mingw* )
4333 DIRSEP=';'
4334 ;;
4335esac
4336
4337
4338
4339
4340
4341
cristya0b81c32010-01-22 02:54:33 +00004342
4343#
4344# Enable OS features.
4345#
cristy73bd4a52010-10-05 11:24:23 +00004346DEPDIR="${am__leading_dot}deps"
4347
4348ac_config_commands="$ac_config_commands depfiles"
4349
4350
4351am_make=${MAKE-make}
4352cat > confinc << 'END'
4353am__doit:
4354 @echo this is the am__doit target
4355.PHONY: am__doit
4356END
4357# If we don't find an include directive, just comment out the code.
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4359$as_echo_n "checking for style of include used by $am_make... " >&6; }
4360am__include="#"
4361am__quote=
4362_am_result=none
4363# First try GNU make style include.
4364echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004365# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004366case `$am_make -s -f confmf 2> /dev/null` in #(
4367*the\ am__doit\ target*)
4368 am__include=include
4369 am__quote=
4370 _am_result=GNU
4371 ;;
4372esac
4373# Now try BSD make style include.
4374if test "$am__include" = "#"; then
4375 echo '.include "confinc"' > confmf
4376 case `$am_make -s -f confmf 2> /dev/null` in #(
4377 *the\ am__doit\ target*)
4378 am__include=.include
4379 am__quote="\""
4380 _am_result=BSD
4381 ;;
4382 esac
4383fi
4384
4385
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4387$as_echo "$_am_result" >&6; }
4388rm -f confinc confmf
4389
4390# Check whether --enable-dependency-tracking was given.
4391if test "${enable_dependency_tracking+set}" = set; then :
4392 enableval=$enable_dependency_tracking;
4393fi
4394
4395if test "x$enable_dependency_tracking" != xno; then
4396 am_depcomp="$ac_aux_dir/depcomp"
4397 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004398 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004399fi
4400 if test "x$enable_dependency_tracking" != xno; then
4401 AMDEP_TRUE=
4402 AMDEP_FALSE='#'
4403else
4404 AMDEP_TRUE='#'
4405 AMDEP_FALSE=
4406fi
4407
4408
cristy3ed852e2009-09-05 21:47:34 +00004409ac_ext=c
4410ac_cpp='$CPP $CPPFLAGS'
4411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414if test -n "$ac_tool_prefix"; then
4415 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4416set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004418$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004419if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004420 $as_echo_n "(cached) " >&6
4421else
4422 if test -n "$CC"; then
4423 ac_cv_prog_CC="$CC" # Let the user override the test.
4424else
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004430 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004432 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004434 break 2
4435 fi
4436done
cristy8b350f62009-11-15 23:12:43 +00004437 done
cristy3ed852e2009-09-05 21:47:34 +00004438IFS=$as_save_IFS
4439
4440fi
4441fi
4442CC=$ac_cv_prog_CC
4443if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004445$as_echo "$CC" >&6; }
4446else
cristy8b350f62009-11-15 23:12:43 +00004447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004448$as_echo "no" >&6; }
4449fi
4450
4451
4452fi
4453if test -z "$ac_cv_prog_CC"; then
4454 ac_ct_CC=$CC
4455 # Extract the first word of "gcc", so it can be a program name with args.
4456set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004458$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004459if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004460 $as_echo_n "(cached) " >&6
4461else
4462 if test -n "$ac_ct_CC"; then
4463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4464else
4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004472 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004474 break 2
4475 fi
4476done
cristy8b350f62009-11-15 23:12:43 +00004477 done
cristy3ed852e2009-09-05 21:47:34 +00004478IFS=$as_save_IFS
4479
4480fi
4481fi
4482ac_ct_CC=$ac_cv_prog_ac_ct_CC
4483if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004485$as_echo "$ac_ct_CC" >&6; }
4486else
cristy8b350f62009-11-15 23:12:43 +00004487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004488$as_echo "no" >&6; }
4489fi
4490
4491 if test "x$ac_ct_CC" = x; then
4492 CC=""
4493 else
4494 case $cross_compiling:$ac_tool_warned in
4495yes:)
cristy8b350f62009-11-15 23:12:43 +00004496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4498ac_tool_warned=yes ;;
4499esac
4500 CC=$ac_ct_CC
4501 fi
4502else
4503 CC="$ac_cv_prog_CC"
4504fi
4505
4506if test -z "$CC"; then
4507 if test -n "$ac_tool_prefix"; then
4508 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4509set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004511$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004512if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004513 $as_echo_n "(cached) " >&6
4514else
4515 if test -n "$CC"; then
4516 ac_cv_prog_CC="$CC" # Let the user override the test.
4517else
4518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004523 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004525 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004527 break 2
4528 fi
4529done
cristy8b350f62009-11-15 23:12:43 +00004530 done
cristy3ed852e2009-09-05 21:47:34 +00004531IFS=$as_save_IFS
4532
4533fi
4534fi
4535CC=$ac_cv_prog_CC
4536if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004538$as_echo "$CC" >&6; }
4539else
cristy8b350f62009-11-15 23:12:43 +00004540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004541$as_echo "no" >&6; }
4542fi
4543
4544
4545 fi
4546fi
4547if test -z "$CC"; then
4548 # Extract the first word of "cc", so it can be a program name with args.
4549set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004551$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004552if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004553 $as_echo_n "(cached) " >&6
4554else
4555 if test -n "$CC"; then
4556 ac_cv_prog_CC="$CC" # Let the user override the test.
4557else
4558 ac_prog_rejected=no
4559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560for as_dir in $PATH
4561do
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004564 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4567 ac_prog_rejected=yes
4568 continue
4569 fi
4570 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004572 break 2
4573 fi
4574done
cristy8b350f62009-11-15 23:12:43 +00004575 done
cristy3ed852e2009-09-05 21:47:34 +00004576IFS=$as_save_IFS
4577
4578if test $ac_prog_rejected = yes; then
4579 # We found a bogon in the path, so make sure we never use it.
4580 set dummy $ac_cv_prog_CC
4581 shift
4582 if test $# != 0; then
4583 # We chose a different compiler from the bogus one.
4584 # However, it has the same basename, so the bogon will be chosen
4585 # first if we set CC to just the basename; use the full file name.
4586 shift
4587 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4588 fi
4589fi
4590fi
4591fi
4592CC=$ac_cv_prog_CC
4593if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004595$as_echo "$CC" >&6; }
4596else
cristy8b350f62009-11-15 23:12:43 +00004597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004598$as_echo "no" >&6; }
4599fi
4600
4601
4602fi
4603if test -z "$CC"; then
4604 if test -n "$ac_tool_prefix"; then
4605 for ac_prog in cl.exe
4606 do
4607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004610$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004611if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004612 $as_echo_n "(cached) " >&6
4613else
4614 if test -n "$CC"; then
4615 ac_cv_prog_CC="$CC" # Let the user override the test.
4616else
4617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004622 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004626 break 2
4627 fi
4628done
cristy8b350f62009-11-15 23:12:43 +00004629 done
cristy3ed852e2009-09-05 21:47:34 +00004630IFS=$as_save_IFS
4631
4632fi
4633fi
4634CC=$ac_cv_prog_CC
4635if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004637$as_echo "$CC" >&6; }
4638else
cristy8b350f62009-11-15 23:12:43 +00004639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004640$as_echo "no" >&6; }
4641fi
4642
4643
4644 test -n "$CC" && break
4645 done
4646fi
4647if test -z "$CC"; then
4648 ac_ct_CC=$CC
4649 for ac_prog in cl.exe
4650do
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004654$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004655if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004656 $as_echo_n "(cached) " >&6
4657else
4658 if test -n "$ac_ct_CC"; then
4659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4660else
4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004668 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004670 break 2
4671 fi
4672done
cristy8b350f62009-11-15 23:12:43 +00004673 done
cristy3ed852e2009-09-05 21:47:34 +00004674IFS=$as_save_IFS
4675
4676fi
4677fi
4678ac_ct_CC=$ac_cv_prog_ac_ct_CC
4679if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004681$as_echo "$ac_ct_CC" >&6; }
4682else
cristy8b350f62009-11-15 23:12:43 +00004683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004684$as_echo "no" >&6; }
4685fi
4686
4687
4688 test -n "$ac_ct_CC" && break
4689done
4690
4691 if test "x$ac_ct_CC" = x; then
4692 CC=""
4693 else
4694 case $cross_compiling:$ac_tool_warned in
4695yes:)
cristy8b350f62009-11-15 23:12:43 +00004696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698ac_tool_warned=yes ;;
4699esac
4700 CC=$ac_ct_CC
4701 fi
4702fi
4703
4704fi
4705
4706
cristy8b350f62009-11-15 23:12:43 +00004707test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004709as_fn_error $? "no acceptable C compiler found in \$PATH
4710See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004711
4712# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004713$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004714set X $ac_compile
4715ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004716for ac_option in --version -v -V -qversion; do
4717 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004718case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4721esac
cristy8b350f62009-11-15 23:12:43 +00004722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723$as_echo "$ac_try_echo"; } >&5
4724 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004725 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004726 if test -s conftest.err; then
4727 sed '10a\
4728... rest of stderr output deleted ...
4729 10q' conftest.err >conftest.er1
4730 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004731 fi
cristycd4c5312009-11-22 01:19:08 +00004732 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4734 test $ac_status = 0; }
4735done
cristy3ed852e2009-09-05 21:47:34 +00004736
cristy8b350f62009-11-15 23:12:43 +00004737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004738/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004739
cristy3ed852e2009-09-05 21:47:34 +00004740int
4741main ()
4742{
4743
4744 ;
4745 return 0;
4746}
4747_ACEOF
4748ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004749ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004750# Try to create an executable without -o first, disregard a.out.
4751# It will help us diagnose broken compilers, and finding out an intuition
4752# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4754$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004755ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4756
4757# The possible output files:
4758ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4759
4760ac_rmfiles=
4761for ac_file in $ac_files
4762do
4763 case $ac_file in
4764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4765 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4766 esac
4767done
4768rm -f $ac_rmfiles
4769
cristy8b350f62009-11-15 23:12:43 +00004770if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004771case "(($ac_try" in
4772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773 *) ac_try_echo=$ac_try;;
4774esac
cristy8b350f62009-11-15 23:12:43 +00004775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4776$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004777 (eval "$ac_link_default") 2>&5
4778 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4780 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004781 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4782# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4783# in a Makefile. We should not override ac_cv_exeext if it was cached,
4784# so that the user can short-circuit this test for compilers unknown to
4785# Autoconf.
4786for ac_file in $ac_files ''
4787do
4788 test -f "$ac_file" || continue
4789 case $ac_file in
4790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4791 ;;
4792 [ab].out )
4793 # We found the default executable, but exeext='' is most
4794 # certainly right.
4795 break;;
4796 *.* )
cristy8b350f62009-11-15 23:12:43 +00004797 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004798 then :; else
4799 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4800 fi
4801 # We set ac_cv_exeext here because the later test for it is not
4802 # safe: cross compilers may not add the suffix if given an `-o'
4803 # argument, so we may need to know it at that point already.
4804 # Even if this section looks crufty: it has the advantage of
4805 # actually working.
4806 break;;
4807 * )
4808 break;;
4809 esac
4810done
4811test "$ac_cv_exeext" = no && ac_cv_exeext=
4812
4813else
4814 ac_file=''
4815fi
cristy8b350f62009-11-15 23:12:43 +00004816if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818$as_echo "no" >&6; }
4819$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004820sed 's/^/| /' conftest.$ac_ext >&5
4821
cristy8b350f62009-11-15 23:12:43 +00004822{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004824as_fn_error 77 "C compiler cannot create executables
4825See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004826else
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4828$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004829fi
cristycd4c5312009-11-22 01:19:08 +00004830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4831$as_echo_n "checking for C compiler default output file name... " >&6; }
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4833$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004834ac_exeext=$ac_cv_exeext
4835
cristycd4c5312009-11-22 01:19:08 +00004836rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004837ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004840if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004841case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844esac
cristy8b350f62009-11-15 23:12:43 +00004845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4846$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004847 (eval "$ac_link") 2>&5
4848 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4850 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004851 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4852# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4853# work properly (i.e., refer to `conftest.exe'), while it won't with
4854# `rm'.
4855for ac_file in conftest.exe conftest conftest.*; do
4856 test -f "$ac_file" || continue
4857 case $ac_file in
4858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4859 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4860 break;;
4861 * ) break;;
4862 esac
4863done
4864else
cristy8b350f62009-11-15 23:12:43 +00004865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004867as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4868See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004869fi
cristycd4c5312009-11-22 01:19:08 +00004870rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004872$as_echo "$ac_cv_exeext" >&6; }
4873
4874rm -f conftest.$ac_ext
4875EXEEXT=$ac_cv_exeext
4876ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878/* end confdefs.h. */
4879#include <stdio.h>
4880int
4881main ()
4882{
4883FILE *f = fopen ("conftest.out", "w");
4884 return ferror (f) || fclose (f) != 0;
4885
4886 ;
4887 return 0;
4888}
4889_ACEOF
4890ac_clean_files="$ac_clean_files conftest.out"
4891# Check that the compiler produces executables we can run. If not, either
4892# the compiler is broken, or we cross compile.
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4894$as_echo_n "checking whether we are cross compiling... " >&6; }
4895if test "$cross_compiling" != yes; then
4896 { { ac_try="$ac_link"
4897case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900esac
4901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4902$as_echo "$ac_try_echo"; } >&5
4903 (eval "$ac_link") 2>&5
4904 ac_status=$?
4905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4906 test $ac_status = 0; }
4907 if { ac_try='./conftest$ac_cv_exeext'
4908 { { case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911esac
4912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4913$as_echo "$ac_try_echo"; } >&5
4914 (eval "$ac_try") 2>&5
4915 ac_status=$?
4916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4917 test $ac_status = 0; }; }; then
4918 cross_compiling=no
4919 else
4920 if test "$cross_compiling" = maybe; then
4921 cross_compiling=yes
4922 else
4923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004925as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004926If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004927See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004928 fi
4929 fi
4930fi
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4932$as_echo "$cross_compiling" >&6; }
4933
4934rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4935ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004937$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004938if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004939 $as_echo_n "(cached) " >&6
4940else
cristy8b350f62009-11-15 23:12:43 +00004941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004942/* end confdefs.h. */
4943
4944int
4945main ()
4946{
4947
4948 ;
4949 return 0;
4950}
4951_ACEOF
4952rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004953if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004954case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957esac
cristy8b350f62009-11-15 23:12:43 +00004958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4959$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004960 (eval "$ac_compile") 2>&5
4961 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4963 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004964 for ac_file in conftest.o conftest.obj conftest.*; do
4965 test -f "$ac_file" || continue;
4966 case $ac_file in
4967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4968 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4969 break;;
4970 esac
4971done
4972else
4973 $as_echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
cristy8b350f62009-11-15 23:12:43 +00004976{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004978as_fn_error $? "cannot compute suffix of object files: cannot compile
4979See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004980fi
cristy3ed852e2009-09-05 21:47:34 +00004981rm -f conftest.$ac_cv_objext conftest.$ac_ext
4982fi
cristy8b350f62009-11-15 23:12:43 +00004983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004984$as_echo "$ac_cv_objext" >&6; }
4985OBJEXT=$ac_cv_objext
4986ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004988$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004989if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004990 $as_echo_n "(cached) " >&6
4991else
cristy8b350f62009-11-15 23:12:43 +00004992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004993/* end confdefs.h. */
4994
4995int
4996main ()
4997{
4998#ifndef __GNUC__
4999 choke me
5000#endif
5001
5002 ;
5003 return 0;
5004}
5005_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005006if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005007 ac_compiler_gnu=yes
5008else
cristy8b350f62009-11-15 23:12:43 +00005009 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005010fi
cristy3ed852e2009-09-05 21:47:34 +00005011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012ac_cv_c_compiler_gnu=$ac_compiler_gnu
5013
5014fi
cristy8b350f62009-11-15 23:12:43 +00005015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005016$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5017if test $ac_compiler_gnu = yes; then
5018 GCC=yes
5019else
5020 GCC=
5021fi
5022ac_test_CFLAGS=${CFLAGS+set}
5023ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005025$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005026if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005027 $as_echo_n "(cached) " >&6
5028else
5029 ac_save_c_werror_flag=$ac_c_werror_flag
5030 ac_c_werror_flag=yes
5031 ac_cv_prog_cc_g=no
5032 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005034/* end confdefs.h. */
5035
5036int
5037main ()
5038{
5039
5040 ;
5041 return 0;
5042}
5043_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005044if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005045 ac_cv_prog_cc_g=yes
5046else
cristy8b350f62009-11-15 23:12:43 +00005047 CFLAGS=""
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005049/* end confdefs.h. */
5050
5051int
5052main ()
5053{
5054
5055 ;
5056 return 0;
5057}
5058_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005059if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005060
cristy8b350f62009-11-15 23:12:43 +00005061else
5062 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005063 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005065/* end confdefs.h. */
5066
5067int
5068main ()
5069{
5070
5071 ;
5072 return 0;
5073}
5074_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005075if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005076 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005077fi
cristy3ed852e2009-09-05 21:47:34 +00005078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079fi
cristy3ed852e2009-09-05 21:47:34 +00005080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081fi
cristy3ed852e2009-09-05 21:47:34 +00005082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 ac_c_werror_flag=$ac_save_c_werror_flag
5084fi
cristy8b350f62009-11-15 23:12:43 +00005085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005086$as_echo "$ac_cv_prog_cc_g" >&6; }
5087if test "$ac_test_CFLAGS" = set; then
5088 CFLAGS=$ac_save_CFLAGS
5089elif test $ac_cv_prog_cc_g = yes; then
5090 if test "$GCC" = yes; then
5091 CFLAGS="-g -O2"
5092 else
5093 CFLAGS="-g"
5094 fi
5095else
5096 if test "$GCC" = yes; then
5097 CFLAGS="-O2"
5098 else
5099 CFLAGS=
5100 fi
5101fi
cristy8b350f62009-11-15 23:12:43 +00005102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005103$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005104if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005105 $as_echo_n "(cached) " >&6
5106else
5107 ac_cv_prog_cc_c89=no
5108ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005110/* end confdefs.h. */
5111#include <stdarg.h>
5112#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005113struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005114/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5115struct buf { int x; };
5116FILE * (*rcsopen) (struct buf *, struct stat *, int);
5117static char *e (p, i)
5118 char **p;
5119 int i;
5120{
5121 return p[i];
5122}
5123static char *f (char * (*g) (char **, int), char **p, ...)
5124{
5125 char *s;
5126 va_list v;
5127 va_start (v,p);
5128 s = g (p, va_arg (v,int));
5129 va_end (v);
5130 return s;
5131}
5132
5133/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5134 function prototypes and stuff, but not '\xHH' hex character constants.
5135 These don't provoke an error unfortunately, instead are silently treated
5136 as 'x'. The following induces an error, until -std is added to get
5137 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5138 array size at least. It's necessary to write '\x00'==0 to get something
5139 that's true only with -std. */
5140int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5141
5142/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5143 inside strings and character constants. */
5144#define FOO(x) 'x'
5145int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5146
5147int test (int i, double x);
5148struct s1 {int (*f) (int a);};
5149struct s2 {int (*f) (double a);};
5150int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5151int argc;
5152char **argv;
5153int
5154main ()
5155{
5156return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5157 ;
5158 return 0;
5159}
5160_ACEOF
5161for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5162 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5163do
5164 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005165 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005166 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005167fi
cristy3ed852e2009-09-05 21:47:34 +00005168rm -f core conftest.err conftest.$ac_objext
5169 test "x$ac_cv_prog_cc_c89" != "xno" && break
5170done
5171rm -f conftest.$ac_ext
5172CC=$ac_save_CC
5173
5174fi
5175# AC_CACHE_VAL
5176case "x$ac_cv_prog_cc_c89" in
5177 x)
cristy8b350f62009-11-15 23:12:43 +00005178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005179$as_echo "none needed" >&6; } ;;
5180 xno)
cristy8b350f62009-11-15 23:12:43 +00005181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005182$as_echo "unsupported" >&6; } ;;
5183 *)
5184 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005186$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5187esac
cristy8b350f62009-11-15 23:12:43 +00005188if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005189
cristy8b350f62009-11-15 23:12:43 +00005190fi
cristy3ed852e2009-09-05 21:47:34 +00005191
5192ac_ext=c
5193ac_cpp='$CPP $CPPFLAGS'
5194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005197
cristy73bd4a52010-10-05 11:24:23 +00005198depcc="$CC" am_compiler_list=
5199
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5201$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005202if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005203 $as_echo_n "(cached) " >&6
5204else
5205 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5206 # We make a subdir and do the tests there. Otherwise we can end up
5207 # making bogus files that we don't know about and never remove. For
5208 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005209 # making a dummy file named 'D' -- because '-MD' means "put the output
5210 # in D".
cristy7247bba2012-02-05 16:37:27 +00005211 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005212 mkdir conftest.dir
5213 # Copy depcomp to subdir because otherwise we won't find it if we're
5214 # using a relative directory.
5215 cp "$am_depcomp" conftest.dir
5216 cd conftest.dir
5217 # We will build objects and dependencies in a subdirectory because
5218 # it helps to detect inapplicable dependency modes. For instance
5219 # both Tru64's cc and ICC support -MD to output dependencies as a
5220 # side effect of compilation, but ICC will put the dependencies in
5221 # the current directory while Tru64 will put them in the object
5222 # directory.
5223 mkdir sub
5224
5225 am_cv_CC_dependencies_compiler_type=none
5226 if test "$am_compiler_list" = ""; then
5227 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5228 fi
5229 am__universal=false
5230 case " $depcc " in #(
5231 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5232 esac
5233
5234 for depmode in $am_compiler_list; do
5235 # Setup a source with many dependencies, because some compilers
5236 # like to wrap large dependency lists on column 80 (with \), and
5237 # we should not choose a depcomp mode which is confused by this.
5238 #
5239 # We need to recreate these files for each test, as the compiler may
5240 # overwrite some of them when testing with obscure command lines.
5241 # This happens at least with the AIX C compiler.
5242 : > sub/conftest.c
5243 for i in 1 2 3 4 5 6; do
5244 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005245 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5246 # Solaris 10 /bin/sh.
5247 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005248 done
5249 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5250
cristyc0890a62012-07-19 00:18:20 +00005251 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005252 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005253 # handle '-M -o', and we need to detect this. Also, some Intel
5254 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005255 am__obj=sub/conftest.${OBJEXT-o}
5256 am__minus_obj="-o $am__obj"
5257 case $depmode in
5258 gcc)
5259 # This depmode causes a compiler race in universal mode.
5260 test "$am__universal" = false || continue
5261 ;;
5262 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005263 # After this tag, mechanisms are not by side-effect, so they'll
5264 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005265 if test "x$enable_dependency_tracking" = xyes; then
5266 continue
5267 else
5268 break
5269 fi
5270 ;;
cristy7247bba2012-02-05 16:37:27 +00005271 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005272 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005273 # not run yet. These depmodes are late enough in the game, and
5274 # so weak that their functioning should not be impacted.
5275 am__obj=conftest.${OBJEXT-o}
5276 am__minus_obj=
5277 ;;
5278 none) break ;;
5279 esac
5280 if depmode=$depmode \
5281 source=sub/conftest.c object=$am__obj \
5282 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5283 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5284 >/dev/null 2>conftest.err &&
5285 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5286 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5287 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5288 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5289 # icc doesn't choke on unknown options, it will just issue warnings
5290 # or remarks (even with -Werror). So we grep stderr for any message
5291 # that says an option was ignored or not supported.
5292 # When given -MP, icc 7.0 and 7.1 complain thusly:
5293 # icc: Command line warning: ignoring option '-M'; no argument required
5294 # The diagnosis changed in icc 8.0:
5295 # icc: Command line remark: option '-MP' not supported
5296 if (grep 'ignoring option' conftest.err ||
5297 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5298 am_cv_CC_dependencies_compiler_type=$depmode
5299 break
5300 fi
5301 fi
5302 done
5303
5304 cd ..
5305 rm -rf conftest.dir
5306else
5307 am_cv_CC_dependencies_compiler_type=none
5308fi
5309
5310fi
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5312$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5313CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5314
5315 if
5316 test "x$enable_dependency_tracking" != xno \
5317 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5318 am__fastdepCC_TRUE=
5319 am__fastdepCC_FALSE='#'
5320else
5321 am__fastdepCC_TRUE='#'
5322 am__fastdepCC_FALSE=
5323fi
5324
5325
cristy3ed852e2009-09-05 21:47:34 +00005326
cristya0b81c32010-01-22 02:54:33 +00005327ac_ext=c
5328ac_cpp='$CPP $CPPFLAGS'
5329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5331ac_compiler_gnu=$ac_cv_c_compiler_gnu
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5333$as_echo_n "checking how to run the C preprocessor... " >&6; }
5334# On Suns, sometimes $CPP names a directory.
5335if test -n "$CPP" && test -d "$CPP"; then
5336 CPP=
5337fi
5338if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005339 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005340 $as_echo_n "(cached) " >&6
5341else
5342 # Double quotes because CPP needs to be expanded
5343 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5344 do
5345 ac_preproc_ok=false
5346for ac_c_preproc_warn_flag in '' yes
5347do
5348 # Use a header file that comes with gcc, so configuring glibc
5349 # with a fresh cross-compiler works.
5350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5351 # <limits.h> exists even on freestanding compilers.
5352 # On the NeXT, cc -E runs the code through the compiler's parser,
5353 # not just through cpp. "Syntax error" is here to catch this case.
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h. */
5356#ifdef __STDC__
5357# include <limits.h>
5358#else
5359# include <assert.h>
5360#endif
5361 Syntax error
5362_ACEOF
5363if ac_fn_c_try_cpp "$LINENO"; then :
5364
5365else
5366 # Broken: fails on valid input.
5367continue
5368fi
cristyda16f162011-02-19 23:52:17 +00005369rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005370
5371 # OK, works on sane cases. Now check whether nonexistent headers
5372 # can be detected and how.
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h. */
5375#include <ac_nonexistent.h>
5376_ACEOF
5377if ac_fn_c_try_cpp "$LINENO"; then :
5378 # Broken: success on invalid input.
5379continue
5380else
5381 # Passes both tests.
5382ac_preproc_ok=:
5383break
5384fi
cristyda16f162011-02-19 23:52:17 +00005385rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005386
5387done
5388# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005389rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005390if $ac_preproc_ok; then :
5391 break
5392fi
5393
5394 done
5395 ac_cv_prog_CPP=$CPP
5396
5397fi
5398 CPP=$ac_cv_prog_CPP
5399else
5400 ac_cv_prog_CPP=$CPP
5401fi
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5403$as_echo "$CPP" >&6; }
5404ac_preproc_ok=false
5405for ac_c_preproc_warn_flag in '' yes
5406do
5407 # Use a header file that comes with gcc, so configuring glibc
5408 # with a fresh cross-compiler works.
5409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5410 # <limits.h> exists even on freestanding compilers.
5411 # On the NeXT, cc -E runs the code through the compiler's parser,
5412 # not just through cpp. "Syntax error" is here to catch this case.
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414/* end confdefs.h. */
5415#ifdef __STDC__
5416# include <limits.h>
5417#else
5418# include <assert.h>
5419#endif
5420 Syntax error
5421_ACEOF
5422if ac_fn_c_try_cpp "$LINENO"; then :
5423
5424else
5425 # Broken: fails on valid input.
5426continue
5427fi
cristyda16f162011-02-19 23:52:17 +00005428rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005429
5430 # OK, works on sane cases. Now check whether nonexistent headers
5431 # can be detected and how.
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h. */
5434#include <ac_nonexistent.h>
5435_ACEOF
5436if ac_fn_c_try_cpp "$LINENO"; then :
5437 # Broken: success on invalid input.
5438continue
5439else
5440 # Passes both tests.
5441ac_preproc_ok=:
5442break
5443fi
cristyda16f162011-02-19 23:52:17 +00005444rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005445
5446done
5447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005448rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005449if $ac_preproc_ok; then :
5450
5451else
5452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005454as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5455See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005456fi
5457
5458ac_ext=c
5459ac_cpp='$CPP $CPPFLAGS'
5460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5462ac_compiler_gnu=$ac_cv_c_compiler_gnu
5463
5464
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5466$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005467if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005468 $as_echo_n "(cached) " >&6
5469else
5470 if test -z "$GREP"; then
5471 ac_path_GREP_found=false
5472 # Loop through the user's path and test for each of PROGNAME-LIST
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5475do
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_prog in grep ggrep; do
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005481 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005482# Check for GNU ac_path_GREP and select it if it is found.
5483 # Check for GNU $ac_path_GREP
5484case `"$ac_path_GREP" --version 2>&1` in
5485*GNU*)
5486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5487*)
5488 ac_count=0
5489 $as_echo_n 0123456789 >"conftest.in"
5490 while :
5491 do
5492 cat "conftest.in" "conftest.in" >"conftest.tmp"
5493 mv "conftest.tmp" "conftest.in"
5494 cp "conftest.in" "conftest.nl"
5495 $as_echo 'GREP' >> "conftest.nl"
5496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5498 as_fn_arith $ac_count + 1 && ac_count=$as_val
5499 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5500 # Best one so far, save it but keep looking for a better one
5501 ac_cv_path_GREP="$ac_path_GREP"
5502 ac_path_GREP_max=$ac_count
5503 fi
5504 # 10*(2^10) chars as input seems more than enough
5505 test $ac_count -gt 10 && break
5506 done
5507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5508esac
5509
5510 $ac_path_GREP_found && break 3
5511 done
5512 done
5513 done
5514IFS=$as_save_IFS
5515 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005516 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005517 fi
5518else
5519 ac_cv_path_GREP=$GREP
5520fi
5521
5522fi
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5524$as_echo "$ac_cv_path_GREP" >&6; }
5525 GREP="$ac_cv_path_GREP"
5526
5527
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5529$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005530if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005531 $as_echo_n "(cached) " >&6
5532else
5533 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5534 then ac_cv_path_EGREP="$GREP -E"
5535 else
5536 if test -z "$EGREP"; then
5537 ac_path_EGREP_found=false
5538 # Loop through the user's path and test for each of PROGNAME-LIST
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5541do
5542 IFS=$as_save_IFS
5543 test -z "$as_dir" && as_dir=.
5544 for ac_prog in egrep; do
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005547 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005548# Check for GNU ac_path_EGREP and select it if it is found.
5549 # Check for GNU $ac_path_EGREP
5550case `"$ac_path_EGREP" --version 2>&1` in
5551*GNU*)
5552 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5553*)
5554 ac_count=0
5555 $as_echo_n 0123456789 >"conftest.in"
5556 while :
5557 do
5558 cat "conftest.in" "conftest.in" >"conftest.tmp"
5559 mv "conftest.tmp" "conftest.in"
5560 cp "conftest.in" "conftest.nl"
5561 $as_echo 'EGREP' >> "conftest.nl"
5562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5564 as_fn_arith $ac_count + 1 && ac_count=$as_val
5565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5566 # Best one so far, save it but keep looking for a better one
5567 ac_cv_path_EGREP="$ac_path_EGREP"
5568 ac_path_EGREP_max=$ac_count
5569 fi
5570 # 10*(2^10) chars as input seems more than enough
5571 test $ac_count -gt 10 && break
5572 done
5573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5574esac
5575
5576 $ac_path_EGREP_found && break 3
5577 done
5578 done
5579 done
5580IFS=$as_save_IFS
5581 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005582 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005583 fi
5584else
5585 ac_cv_path_EGREP=$EGREP
5586fi
5587
5588 fi
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5591$as_echo "$ac_cv_path_EGREP" >&6; }
5592 EGREP="$ac_cv_path_EGREP"
5593
5594
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5596$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005597if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005598 $as_echo_n "(cached) " >&6
5599else
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601/* end confdefs.h. */
5602#include <stdlib.h>
5603#include <stdarg.h>
5604#include <string.h>
5605#include <float.h>
5606
5607int
5608main ()
5609{
5610
5611 ;
5612 return 0;
5613}
5614_ACEOF
5615if ac_fn_c_try_compile "$LINENO"; then :
5616 ac_cv_header_stdc=yes
5617else
5618 ac_cv_header_stdc=no
5619fi
5620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621
5622if test $ac_cv_header_stdc = yes; then
5623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h. */
5626#include <string.h>
5627
5628_ACEOF
5629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630 $EGREP "memchr" >/dev/null 2>&1; then :
5631
5632else
5633 ac_cv_header_stdc=no
5634fi
5635rm -f conftest*
5636
5637fi
5638
5639if test $ac_cv_header_stdc = yes; then
5640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642/* end confdefs.h. */
5643#include <stdlib.h>
5644
5645_ACEOF
5646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5647 $EGREP "free" >/dev/null 2>&1; then :
5648
5649else
5650 ac_cv_header_stdc=no
5651fi
5652rm -f conftest*
5653
5654fi
5655
5656if test $ac_cv_header_stdc = yes; then
5657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5658 if test "$cross_compiling" = yes; then :
5659 :
5660else
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662/* end confdefs.h. */
5663#include <ctype.h>
5664#include <stdlib.h>
5665#if ((' ' & 0x0FF) == 0x020)
5666# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5667# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5668#else
5669# define ISLOWER(c) \
5670 (('a' <= (c) && (c) <= 'i') \
5671 || ('j' <= (c) && (c) <= 'r') \
5672 || ('s' <= (c) && (c) <= 'z'))
5673# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5674#endif
5675
5676#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5677int
5678main ()
5679{
5680 int i;
5681 for (i = 0; i < 256; i++)
5682 if (XOR (islower (i), ISLOWER (i))
5683 || toupper (i) != TOUPPER (i))
5684 return 2;
5685 return 0;
5686}
5687_ACEOF
5688if ac_fn_c_try_run "$LINENO"; then :
5689
5690else
5691 ac_cv_header_stdc=no
5692fi
5693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5694 conftest.$ac_objext conftest.beam conftest.$ac_ext
5695fi
5696
5697fi
5698fi
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5700$as_echo "$ac_cv_header_stdc" >&6; }
5701if test $ac_cv_header_stdc = yes; then
5702
5703$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5704
5705fi
5706
5707# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5708for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5709 inttypes.h stdint.h unistd.h
5710do :
5711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5712ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5713"
cristy98dddb52010-11-04 00:30:15 +00005714if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005715 cat >>confdefs.h <<_ACEOF
5716#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5717_ACEOF
5718
5719fi
5720
5721done
5722
5723
5724
5725 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 +00005726if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005727 MINIX=yes
5728else
5729 MINIX=
5730fi
5731
5732
5733 if test "$MINIX" = yes; then
5734
5735$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5736
5737
5738$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5739
5740
5741$as_echo "#define _MINIX 1" >>confdefs.h
5742
5743 fi
5744
5745
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5747$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005748if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005749 $as_echo_n "(cached) " >&6
5750else
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752/* end confdefs.h. */
5753
cristy14fefe52012-05-21 00:59:18 +00005754# define __EXTENSIONS__ 1
5755 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005756int
5757main ()
5758{
5759
5760 ;
5761 return 0;
5762}
5763_ACEOF
5764if ac_fn_c_try_compile "$LINENO"; then :
5765 ac_cv_safe_to_define___extensions__=yes
5766else
5767 ac_cv_safe_to_define___extensions__=no
5768fi
5769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770fi
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5772$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5773 test $ac_cv_safe_to_define___extensions__ = yes &&
5774 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5775
5776 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5777
5778 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5779
5780 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5781
5782 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5783
5784
5785
5786# Check for programs
5787ac_ext=c
5788ac_cpp='$CPP $CPPFLAGS'
5789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791ac_compiler_gnu=$ac_cv_c_compiler_gnu
5792if test -n "$ac_tool_prefix"; then
5793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5794set dummy ${ac_tool_prefix}gcc; ac_word=$2
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005797if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005798 $as_echo_n "(cached) " >&6
5799else
5800 if test -n "$CC"; then
5801 ac_cv_prog_CC="$CC" # Let the user override the test.
5802else
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005810 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814done
5815 done
5816IFS=$as_save_IFS
5817
5818fi
5819fi
5820CC=$ac_cv_prog_CC
5821if test -n "$CC"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5823$as_echo "$CC" >&6; }
5824else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826$as_echo "no" >&6; }
5827fi
5828
5829
5830fi
5831if test -z "$ac_cv_prog_CC"; then
5832 ac_ct_CC=$CC
5833 # Extract the first word of "gcc", so it can be a program name with args.
5834set dummy gcc; ac_word=$2
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005837if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005838 $as_echo_n "(cached) " >&6
5839else
5840 if test -n "$ac_ct_CC"; then
5841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5842else
5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005850 ac_cv_prog_ac_ct_CC="gcc"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854done
5855 done
5856IFS=$as_save_IFS
5857
5858fi
5859fi
5860ac_ct_CC=$ac_cv_prog_ac_ct_CC
5861if test -n "$ac_ct_CC"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5863$as_echo "$ac_ct_CC" >&6; }
5864else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866$as_echo "no" >&6; }
5867fi
5868
5869 if test "x$ac_ct_CC" = x; then
5870 CC=""
5871 else
5872 case $cross_compiling:$ac_tool_warned in
5873yes:)
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5876ac_tool_warned=yes ;;
5877esac
5878 CC=$ac_ct_CC
5879 fi
5880else
5881 CC="$ac_cv_prog_CC"
5882fi
5883
5884if test -z "$CC"; then
5885 if test -n "$ac_tool_prefix"; then
5886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5887set dummy ${ac_tool_prefix}cc; ac_word=$2
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005890if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005891 $as_echo_n "(cached) " >&6
5892else
5893 if test -n "$CC"; then
5894 ac_cv_prog_CC="$CC" # Let the user override the test.
5895else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005903 ac_cv_prog_CC="${ac_tool_prefix}cc"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907done
5908 done
5909IFS=$as_save_IFS
5910
5911fi
5912fi
5913CC=$ac_cv_prog_CC
5914if test -n "$CC"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5916$as_echo "$CC" >&6; }
5917else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919$as_echo "no" >&6; }
5920fi
5921
5922
5923 fi
5924fi
5925if test -z "$CC"; then
5926 # Extract the first word of "cc", so it can be a program name with args.
5927set dummy cc; ac_word=$2
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005930if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005931 $as_echo_n "(cached) " >&6
5932else
5933 if test -n "$CC"; then
5934 ac_cv_prog_CC="$CC" # Let the user override the test.
5935else
5936 ac_prog_rejected=no
5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH
5939do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5945 ac_prog_rejected=yes
5946 continue
5947 fi
5948 ac_cv_prog_CC="cc"
5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 break 2
5951 fi
5952done
5953 done
5954IFS=$as_save_IFS
5955
5956if test $ac_prog_rejected = yes; then
5957 # We found a bogon in the path, so make sure we never use it.
5958 set dummy $ac_cv_prog_CC
5959 shift
5960 if test $# != 0; then
5961 # We chose a different compiler from the bogus one.
5962 # However, it has the same basename, so the bogon will be chosen
5963 # first if we set CC to just the basename; use the full file name.
5964 shift
5965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5966 fi
5967fi
5968fi
5969fi
5970CC=$ac_cv_prog_CC
5971if test -n "$CC"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5973$as_echo "$CC" >&6; }
5974else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976$as_echo "no" >&6; }
5977fi
5978
5979
5980fi
5981if test -z "$CC"; then
5982 if test -n "$ac_tool_prefix"; then
5983 for ac_prog in cl.exe
5984 do
5985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5986set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005989if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005990 $as_echo_n "(cached) " >&6
5991else
5992 if test -n "$CC"; then
5993 ac_cv_prog_CC="$CC" # Let the user override the test.
5994else
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006done
6007 done
6008IFS=$as_save_IFS
6009
6010fi
6011fi
6012CC=$ac_cv_prog_CC
6013if test -n "$CC"; then
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6015$as_echo "$CC" >&6; }
6016else
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018$as_echo "no" >&6; }
6019fi
6020
6021
6022 test -n "$CC" && break
6023 done
6024fi
6025if test -z "$CC"; then
6026 ac_ct_CC=$CC
6027 for ac_prog in cl.exe
6028do
6029 # Extract the first word of "$ac_prog", so it can be a program name with args.
6030set dummy $ac_prog; ac_word=$2
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006033if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006034 $as_echo_n "(cached) " >&6
6035else
6036 if test -n "$ac_ct_CC"; then
6037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6038else
6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006046 ac_cv_prog_ac_ct_CC="$ac_prog"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050done
6051 done
6052IFS=$as_save_IFS
6053
6054fi
6055fi
6056ac_ct_CC=$ac_cv_prog_ac_ct_CC
6057if test -n "$ac_ct_CC"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6059$as_echo "$ac_ct_CC" >&6; }
6060else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062$as_echo "no" >&6; }
6063fi
6064
6065
6066 test -n "$ac_ct_CC" && break
6067done
6068
6069 if test "x$ac_ct_CC" = x; then
6070 CC=""
6071 else
6072 case $cross_compiling:$ac_tool_warned in
6073yes:)
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6076ac_tool_warned=yes ;;
6077esac
6078 CC=$ac_ct_CC
6079 fi
6080fi
6081
6082fi
6083
6084
6085test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006087as_fn_error $? "no acceptable C compiler found in \$PATH
6088See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006089
6090# Provide some information about the compiler.
6091$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6092set X $ac_compile
6093ac_compiler=$2
6094for ac_option in --version -v -V -qversion; do
6095 { { ac_try="$ac_compiler $ac_option >&5"
6096case "(($ac_try" in
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6099esac
6100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6101$as_echo "$ac_try_echo"; } >&5
6102 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6103 ac_status=$?
6104 if test -s conftest.err; then
6105 sed '10a\
6106... rest of stderr output deleted ...
6107 10q' conftest.err >conftest.er1
6108 cat conftest.er1 >&5
6109 fi
6110 rm -f conftest.er1 conftest.err
6111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6112 test $ac_status = 0; }
6113done
6114
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6116$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006117if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006118 $as_echo_n "(cached) " >&6
6119else
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121/* end confdefs.h. */
6122
6123int
6124main ()
6125{
6126#ifndef __GNUC__
6127 choke me
6128#endif
6129
6130 ;
6131 return 0;
6132}
6133_ACEOF
6134if ac_fn_c_try_compile "$LINENO"; then :
6135 ac_compiler_gnu=yes
6136else
6137 ac_compiler_gnu=no
6138fi
6139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140ac_cv_c_compiler_gnu=$ac_compiler_gnu
6141
6142fi
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6144$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6145if test $ac_compiler_gnu = yes; then
6146 GCC=yes
6147else
6148 GCC=
6149fi
6150ac_test_CFLAGS=${CFLAGS+set}
6151ac_save_CFLAGS=$CFLAGS
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6153$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006154if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006155 $as_echo_n "(cached) " >&6
6156else
6157 ac_save_c_werror_flag=$ac_c_werror_flag
6158 ac_c_werror_flag=yes
6159 ac_cv_prog_cc_g=no
6160 CFLAGS="-g"
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162/* end confdefs.h. */
6163
6164int
6165main ()
6166{
6167
6168 ;
6169 return 0;
6170}
6171_ACEOF
6172if ac_fn_c_try_compile "$LINENO"; then :
6173 ac_cv_prog_cc_g=yes
6174else
6175 CFLAGS=""
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177/* end confdefs.h. */
6178
6179int
6180main ()
6181{
6182
6183 ;
6184 return 0;
6185}
6186_ACEOF
6187if ac_fn_c_try_compile "$LINENO"; then :
6188
6189else
6190 ac_c_werror_flag=$ac_save_c_werror_flag
6191 CFLAGS="-g"
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193/* end confdefs.h. */
6194
6195int
6196main ()
6197{
6198
6199 ;
6200 return 0;
6201}
6202_ACEOF
6203if ac_fn_c_try_compile "$LINENO"; then :
6204 ac_cv_prog_cc_g=yes
6205fi
6206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207fi
6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209fi
6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 ac_c_werror_flag=$ac_save_c_werror_flag
6212fi
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6214$as_echo "$ac_cv_prog_cc_g" >&6; }
6215if test "$ac_test_CFLAGS" = set; then
6216 CFLAGS=$ac_save_CFLAGS
6217elif test $ac_cv_prog_cc_g = yes; then
6218 if test "$GCC" = yes; then
6219 CFLAGS="-g -O2"
6220 else
6221 CFLAGS="-g"
6222 fi
6223else
6224 if test "$GCC" = yes; then
6225 CFLAGS="-O2"
6226 else
6227 CFLAGS=
6228 fi
6229fi
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6231$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006232if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006233 $as_echo_n "(cached) " >&6
6234else
6235 ac_cv_prog_cc_c89=no
6236ac_save_CC=$CC
6237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238/* end confdefs.h. */
6239#include <stdarg.h>
6240#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006241struct stat;
cristya0b81c32010-01-22 02:54:33 +00006242/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6243struct buf { int x; };
6244FILE * (*rcsopen) (struct buf *, struct stat *, int);
6245static char *e (p, i)
6246 char **p;
6247 int i;
6248{
6249 return p[i];
6250}
6251static char *f (char * (*g) (char **, int), char **p, ...)
6252{
6253 char *s;
6254 va_list v;
6255 va_start (v,p);
6256 s = g (p, va_arg (v,int));
6257 va_end (v);
6258 return s;
6259}
6260
6261/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6262 function prototypes and stuff, but not '\xHH' hex character constants.
6263 These don't provoke an error unfortunately, instead are silently treated
6264 as 'x'. The following induces an error, until -std is added to get
6265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6266 array size at least. It's necessary to write '\x00'==0 to get something
6267 that's true only with -std. */
6268int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6269
6270/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6271 inside strings and character constants. */
6272#define FOO(x) 'x'
6273int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6274
6275int test (int i, double x);
6276struct s1 {int (*f) (int a);};
6277struct s2 {int (*f) (double a);};
6278int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6279int argc;
6280char **argv;
6281int
6282main ()
6283{
6284return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6285 ;
6286 return 0;
6287}
6288_ACEOF
6289for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6290 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6291do
6292 CC="$ac_save_CC $ac_arg"
6293 if ac_fn_c_try_compile "$LINENO"; then :
6294 ac_cv_prog_cc_c89=$ac_arg
6295fi
6296rm -f core conftest.err conftest.$ac_objext
6297 test "x$ac_cv_prog_cc_c89" != "xno" && break
6298done
6299rm -f conftest.$ac_ext
6300CC=$ac_save_CC
6301
6302fi
6303# AC_CACHE_VAL
6304case "x$ac_cv_prog_cc_c89" in
6305 x)
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6307$as_echo "none needed" >&6; } ;;
6308 xno)
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6310$as_echo "unsupported" >&6; } ;;
6311 *)
6312 CC="$CC $ac_cv_prog_cc_c89"
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6314$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6315esac
6316if test "x$ac_cv_prog_cc_c89" != xno; then :
6317
6318fi
6319
6320ac_ext=c
6321ac_cpp='$CPP $CPPFLAGS'
6322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324ac_compiler_gnu=$ac_cv_c_compiler_gnu
6325
cristy73bd4a52010-10-05 11:24:23 +00006326depcc="$CC" am_compiler_list=
6327
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6329$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006330if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006331 $as_echo_n "(cached) " >&6
6332else
6333 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6334 # We make a subdir and do the tests there. Otherwise we can end up
6335 # making bogus files that we don't know about and never remove. For
6336 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006337 # making a dummy file named 'D' -- because '-MD' means "put the output
6338 # in D".
cristy7247bba2012-02-05 16:37:27 +00006339 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006340 mkdir conftest.dir
6341 # Copy depcomp to subdir because otherwise we won't find it if we're
6342 # using a relative directory.
6343 cp "$am_depcomp" conftest.dir
6344 cd conftest.dir
6345 # We will build objects and dependencies in a subdirectory because
6346 # it helps to detect inapplicable dependency modes. For instance
6347 # both Tru64's cc and ICC support -MD to output dependencies as a
6348 # side effect of compilation, but ICC will put the dependencies in
6349 # the current directory while Tru64 will put them in the object
6350 # directory.
6351 mkdir sub
6352
6353 am_cv_CC_dependencies_compiler_type=none
6354 if test "$am_compiler_list" = ""; then
6355 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6356 fi
6357 am__universal=false
6358 case " $depcc " in #(
6359 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6360 esac
6361
6362 for depmode in $am_compiler_list; do
6363 # Setup a source with many dependencies, because some compilers
6364 # like to wrap large dependency lists on column 80 (with \), and
6365 # we should not choose a depcomp mode which is confused by this.
6366 #
6367 # We need to recreate these files for each test, as the compiler may
6368 # overwrite some of them when testing with obscure command lines.
6369 # This happens at least with the AIX C compiler.
6370 : > sub/conftest.c
6371 for i in 1 2 3 4 5 6; do
6372 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006373 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6374 # Solaris 10 /bin/sh.
6375 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006376 done
6377 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6378
cristyc0890a62012-07-19 00:18:20 +00006379 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006380 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006381 # handle '-M -o', and we need to detect this. Also, some Intel
6382 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006383 am__obj=sub/conftest.${OBJEXT-o}
6384 am__minus_obj="-o $am__obj"
6385 case $depmode in
6386 gcc)
6387 # This depmode causes a compiler race in universal mode.
6388 test "$am__universal" = false || continue
6389 ;;
6390 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006391 # After this tag, mechanisms are not by side-effect, so they'll
6392 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006393 if test "x$enable_dependency_tracking" = xyes; then
6394 continue
6395 else
6396 break
6397 fi
6398 ;;
cristy7247bba2012-02-05 16:37:27 +00006399 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006400 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006401 # not run yet. These depmodes are late enough in the game, and
6402 # so weak that their functioning should not be impacted.
6403 am__obj=conftest.${OBJEXT-o}
6404 am__minus_obj=
6405 ;;
6406 none) break ;;
6407 esac
6408 if depmode=$depmode \
6409 source=sub/conftest.c object=$am__obj \
6410 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6411 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6412 >/dev/null 2>conftest.err &&
6413 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6414 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6415 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6417 # icc doesn't choke on unknown options, it will just issue warnings
6418 # or remarks (even with -Werror). So we grep stderr for any message
6419 # that says an option was ignored or not supported.
6420 # When given -MP, icc 7.0 and 7.1 complain thusly:
6421 # icc: Command line warning: ignoring option '-M'; no argument required
6422 # The diagnosis changed in icc 8.0:
6423 # icc: Command line remark: option '-MP' not supported
6424 if (grep 'ignoring option' conftest.err ||
6425 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6426 am_cv_CC_dependencies_compiler_type=$depmode
6427 break
6428 fi
6429 fi
6430 done
6431
6432 cd ..
6433 rm -rf conftest.dir
6434else
6435 am_cv_CC_dependencies_compiler_type=none
6436fi
6437
6438fi
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6440$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6441CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6442
6443 if
6444 test "x$enable_dependency_tracking" != xno \
6445 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6446 am__fastdepCC_TRUE=
6447 am__fastdepCC_FALSE='#'
6448else
6449 am__fastdepCC_TRUE='#'
6450 am__fastdepCC_FALSE=
6451fi
6452
6453
cristy95646052009-11-28 23:05:30 +00006454ac_ext=cpp
6455ac_cpp='$CXXCPP $CPPFLAGS'
6456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6459if test -z "$CXX"; then
6460 if test -n "$CCC"; then
6461 CXX=$CCC
6462 else
6463 if test -n "$ac_tool_prefix"; then
6464 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6465 do
6466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6467set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6469$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006470if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006471 $as_echo_n "(cached) " >&6
6472else
6473 if test -n "$CXX"; then
6474 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6475else
6476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477for as_dir in $PATH
6478do
6479 IFS=$as_save_IFS
6480 test -z "$as_dir" && as_dir=.
6481 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006483 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 break 2
6486 fi
6487done
6488 done
6489IFS=$as_save_IFS
6490
6491fi
6492fi
6493CXX=$ac_cv_prog_CXX
6494if test -n "$CXX"; then
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6496$as_echo "$CXX" >&6; }
6497else
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499$as_echo "no" >&6; }
6500fi
6501
6502
6503 test -n "$CXX" && break
6504 done
6505fi
6506if test -z "$CXX"; then
6507 ac_ct_CXX=$CXX
6508 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6509do
6510 # Extract the first word of "$ac_prog", so it can be a program name with args.
6511set dummy $ac_prog; ac_word=$2
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006514if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006515 $as_echo_n "(cached) " >&6
6516else
6517 if test -n "$ac_ct_CXX"; then
6518 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523 IFS=$as_save_IFS
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006527 ac_cv_prog_ac_ct_CXX="$ac_prog"
6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 break 2
6530 fi
6531done
6532 done
6533IFS=$as_save_IFS
6534
6535fi
6536fi
6537ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6538if test -n "$ac_ct_CXX"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6540$as_echo "$ac_ct_CXX" >&6; }
6541else
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543$as_echo "no" >&6; }
6544fi
6545
6546
6547 test -n "$ac_ct_CXX" && break
6548done
6549
6550 if test "x$ac_ct_CXX" = x; then
6551 CXX="g++"
6552 else
6553 case $cross_compiling:$ac_tool_warned in
6554yes:)
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557ac_tool_warned=yes ;;
6558esac
6559 CXX=$ac_ct_CXX
6560 fi
6561fi
6562
6563 fi
6564fi
6565# Provide some information about the compiler.
6566$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6567set X $ac_compile
6568ac_compiler=$2
6569for ac_option in --version -v -V -qversion; do
6570 { { ac_try="$ac_compiler $ac_option >&5"
6571case "(($ac_try" in
6572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573 *) ac_try_echo=$ac_try;;
6574esac
6575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6576$as_echo "$ac_try_echo"; } >&5
6577 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6578 ac_status=$?
6579 if test -s conftest.err; then
6580 sed '10a\
6581... rest of stderr output deleted ...
6582 10q' conftest.err >conftest.er1
6583 cat conftest.er1 >&5
6584 fi
6585 rm -f conftest.er1 conftest.err
6586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6587 test $ac_status = 0; }
6588done
6589
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6591$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006592if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006593 $as_echo_n "(cached) " >&6
6594else
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596/* end confdefs.h. */
6597
6598int
6599main ()
6600{
6601#ifndef __GNUC__
6602 choke me
6603#endif
6604
6605 ;
6606 return 0;
6607}
6608_ACEOF
6609if ac_fn_cxx_try_compile "$LINENO"; then :
6610 ac_compiler_gnu=yes
6611else
6612 ac_compiler_gnu=no
6613fi
6614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6616
6617fi
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6619$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6620if test $ac_compiler_gnu = yes; then
6621 GXX=yes
6622else
6623 GXX=
6624fi
6625ac_test_CXXFLAGS=${CXXFLAGS+set}
6626ac_save_CXXFLAGS=$CXXFLAGS
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6628$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006629if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006630 $as_echo_n "(cached) " >&6
6631else
6632 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6633 ac_cxx_werror_flag=yes
6634 ac_cv_prog_cxx_g=no
6635 CXXFLAGS="-g"
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637/* end confdefs.h. */
6638
6639int
6640main ()
6641{
6642
6643 ;
6644 return 0;
6645}
6646_ACEOF
6647if ac_fn_cxx_try_compile "$LINENO"; then :
6648 ac_cv_prog_cxx_g=yes
6649else
6650 CXXFLAGS=""
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652/* end confdefs.h. */
6653
6654int
6655main ()
6656{
6657
6658 ;
6659 return 0;
6660}
6661_ACEOF
6662if ac_fn_cxx_try_compile "$LINENO"; then :
6663
6664else
6665 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6666 CXXFLAGS="-g"
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668/* end confdefs.h. */
6669
6670int
6671main ()
6672{
6673
6674 ;
6675 return 0;
6676}
6677_ACEOF
6678if ac_fn_cxx_try_compile "$LINENO"; then :
6679 ac_cv_prog_cxx_g=yes
6680fi
6681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682fi
6683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684fi
6685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6687fi
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6689$as_echo "$ac_cv_prog_cxx_g" >&6; }
6690if test "$ac_test_CXXFLAGS" = set; then
6691 CXXFLAGS=$ac_save_CXXFLAGS
6692elif test $ac_cv_prog_cxx_g = yes; then
6693 if test "$GXX" = yes; then
6694 CXXFLAGS="-g -O2"
6695 else
6696 CXXFLAGS="-g"
6697 fi
6698else
6699 if test "$GXX" = yes; then
6700 CXXFLAGS="-O2"
6701 else
6702 CXXFLAGS=
6703 fi
6704fi
6705ac_ext=c
6706ac_cpp='$CPP $CPPFLAGS'
6707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709ac_compiler_gnu=$ac_cv_c_compiler_gnu
6710
cristy73bd4a52010-10-05 11:24:23 +00006711depcc="$CXX" am_compiler_list=
6712
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6714$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006715if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006716 $as_echo_n "(cached) " >&6
6717else
6718 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6719 # We make a subdir and do the tests there. Otherwise we can end up
6720 # making bogus files that we don't know about and never remove. For
6721 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006722 # making a dummy file named 'D' -- because '-MD' means "put the output
6723 # in D".
cristy7247bba2012-02-05 16:37:27 +00006724 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006725 mkdir conftest.dir
6726 # Copy depcomp to subdir because otherwise we won't find it if we're
6727 # using a relative directory.
6728 cp "$am_depcomp" conftest.dir
6729 cd conftest.dir
6730 # We will build objects and dependencies in a subdirectory because
6731 # it helps to detect inapplicable dependency modes. For instance
6732 # both Tru64's cc and ICC support -MD to output dependencies as a
6733 # side effect of compilation, but ICC will put the dependencies in
6734 # the current directory while Tru64 will put them in the object
6735 # directory.
6736 mkdir sub
6737
6738 am_cv_CXX_dependencies_compiler_type=none
6739 if test "$am_compiler_list" = ""; then
6740 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6741 fi
6742 am__universal=false
6743 case " $depcc " in #(
6744 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6745 esac
6746
6747 for depmode in $am_compiler_list; do
6748 # Setup a source with many dependencies, because some compilers
6749 # like to wrap large dependency lists on column 80 (with \), and
6750 # we should not choose a depcomp mode which is confused by this.
6751 #
6752 # We need to recreate these files for each test, as the compiler may
6753 # overwrite some of them when testing with obscure command lines.
6754 # This happens at least with the AIX C compiler.
6755 : > sub/conftest.c
6756 for i in 1 2 3 4 5 6; do
6757 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006758 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6759 # Solaris 10 /bin/sh.
6760 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006761 done
6762 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6763
cristyc0890a62012-07-19 00:18:20 +00006764 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006765 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006766 # handle '-M -o', and we need to detect this. Also, some Intel
6767 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006768 am__obj=sub/conftest.${OBJEXT-o}
6769 am__minus_obj="-o $am__obj"
6770 case $depmode in
6771 gcc)
6772 # This depmode causes a compiler race in universal mode.
6773 test "$am__universal" = false || continue
6774 ;;
6775 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006776 # After this tag, mechanisms are not by side-effect, so they'll
6777 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006778 if test "x$enable_dependency_tracking" = xyes; then
6779 continue
6780 else
6781 break
6782 fi
6783 ;;
cristy7247bba2012-02-05 16:37:27 +00006784 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006785 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006786 # not run yet. These depmodes are late enough in the game, and
6787 # so weak that their functioning should not be impacted.
6788 am__obj=conftest.${OBJEXT-o}
6789 am__minus_obj=
6790 ;;
6791 none) break ;;
6792 esac
6793 if depmode=$depmode \
6794 source=sub/conftest.c object=$am__obj \
6795 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6796 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6797 >/dev/null 2>conftest.err &&
6798 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6799 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6800 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6801 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6802 # icc doesn't choke on unknown options, it will just issue warnings
6803 # or remarks (even with -Werror). So we grep stderr for any message
6804 # that says an option was ignored or not supported.
6805 # When given -MP, icc 7.0 and 7.1 complain thusly:
6806 # icc: Command line warning: ignoring option '-M'; no argument required
6807 # The diagnosis changed in icc 8.0:
6808 # icc: Command line remark: option '-MP' not supported
6809 if (grep 'ignoring option' conftest.err ||
6810 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6811 am_cv_CXX_dependencies_compiler_type=$depmode
6812 break
6813 fi
6814 fi
6815 done
6816
6817 cd ..
6818 rm -rf conftest.dir
6819else
6820 am_cv_CXX_dependencies_compiler_type=none
6821fi
6822
6823fi
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6825$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6826CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6827
6828 if
6829 test "x$enable_dependency_tracking" != xno \
6830 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6831 am__fastdepCXX_TRUE=
6832 am__fastdepCXX_FALSE='#'
6833else
6834 am__fastdepCXX_TRUE='#'
6835 am__fastdepCXX_FALSE=
6836fi
6837
6838
cristy8b350f62009-11-15 23:12:43 +00006839 case $ac_cv_prog_cc_stdc in #(
6840 no) :
6841 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6842 *) :
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006844$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006845if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006846 $as_echo_n "(cached) " >&6
6847else
6848 ac_cv_prog_cc_c99=no
6849ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006851/* end confdefs.h. */
6852#include <stdarg.h>
6853#include <stdbool.h>
6854#include <stdlib.h>
6855#include <wchar.h>
6856#include <stdio.h>
6857
6858// Check varargs macros. These examples are taken from C99 6.10.3.5.
6859#define debug(...) fprintf (stderr, __VA_ARGS__)
6860#define showlist(...) puts (#__VA_ARGS__)
6861#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6862static void
6863test_varargs_macros (void)
6864{
6865 int x = 1234;
6866 int y = 5678;
6867 debug ("Flag");
6868 debug ("X = %d\n", x);
6869 showlist (The first, second, and third items.);
6870 report (x>y, "x is %d but y is %d", x, y);
6871}
6872
6873// Check long long types.
6874#define BIG64 18446744073709551615ull
6875#define BIG32 4294967295ul
6876#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6877#if !BIG_OK
6878 your preprocessor is broken;
6879#endif
6880#if BIG_OK
6881#else
6882 your preprocessor is broken;
6883#endif
6884static long long int bignum = -9223372036854775807LL;
6885static unsigned long long int ubignum = BIG64;
6886
6887struct incomplete_array
6888{
6889 int datasize;
6890 double data[];
6891};
6892
6893struct named_init {
6894 int number;
6895 const wchar_t *name;
6896 double average;
6897};
6898
6899typedef const char *ccp;
6900
6901static inline int
6902test_restrict (ccp restrict text)
6903{
6904 // See if C++-style comments work.
6905 // Iterate through items via the restricted pointer.
6906 // Also check for declarations in for loops.
6907 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6908 continue;
6909 return 0;
6910}
6911
6912// Check varargs and va_copy.
6913static void
6914test_varargs (const char *format, ...)
6915{
6916 va_list args;
6917 va_start (args, format);
6918 va_list args_copy;
6919 va_copy (args_copy, args);
6920
6921 const char *str;
6922 int number;
6923 float fnumber;
6924
6925 while (*format)
6926 {
6927 switch (*format++)
6928 {
6929 case 's': // string
6930 str = va_arg (args_copy, const char *);
6931 break;
6932 case 'd': // int
6933 number = va_arg (args_copy, int);
6934 break;
6935 case 'f': // float
6936 fnumber = va_arg (args_copy, double);
6937 break;
6938 default:
6939 break;
6940 }
6941 }
6942 va_end (args_copy);
6943 va_end (args);
6944}
6945
6946int
6947main ()
6948{
6949
6950 // Check bool.
6951 _Bool success = false;
6952
6953 // Check restrict.
6954 if (test_restrict ("String literal") == 0)
6955 success = true;
6956 char *restrict newvar = "Another string";
6957
6958 // Check varargs.
6959 test_varargs ("s, d' f .", "string", 65, 34.234);
6960 test_varargs_macros ();
6961
6962 // Check flexible array members.
6963 struct incomplete_array *ia =
6964 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6965 ia->datasize = 10;
6966 for (int i = 0; i < ia->datasize; ++i)
6967 ia->data[i] = i * 1.234;
6968
6969 // Check named initializers.
6970 struct named_init ni = {
6971 .number = 34,
6972 .name = L"Test wide string",
6973 .average = 543.34343,
6974 };
6975
6976 ni.number = 58;
6977
6978 int dynamic_array[ni.number];
6979 dynamic_array[ni.number - 1] = 543;
6980
6981 // work around unused variable warnings
6982 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6983 || dynamic_array[ni.number - 1] != 543);
6984
6985 ;
6986 return 0;
6987}
6988_ACEOF
cristy14fefe52012-05-21 00:59:18 +00006989for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00006990do
6991 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006992 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006993 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006994fi
cristy3ed852e2009-09-05 21:47:34 +00006995rm -f core conftest.err conftest.$ac_objext
6996 test "x$ac_cv_prog_cc_c99" != "xno" && break
6997done
6998rm -f conftest.$ac_ext
6999CC=$ac_save_CC
7000
7001fi
7002# AC_CACHE_VAL
7003case "x$ac_cv_prog_cc_c99" in
7004 x)
cristy8b350f62009-11-15 23:12:43 +00007005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007006$as_echo "none needed" >&6; } ;;
7007 xno)
cristy8b350f62009-11-15 23:12:43 +00007008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007009$as_echo "unsupported" >&6; } ;;
7010 *)
7011 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007013$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7014esac
cristy8b350f62009-11-15 23:12:43 +00007015if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007016 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7017else
cristy8b350f62009-11-15 23:12:43 +00007018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007019$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007020if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007021 $as_echo_n "(cached) " >&6
7022else
7023 ac_cv_prog_cc_c89=no
7024ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007026/* end confdefs.h. */
7027#include <stdarg.h>
7028#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007029struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007030/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7031struct buf { int x; };
7032FILE * (*rcsopen) (struct buf *, struct stat *, int);
7033static char *e (p, i)
7034 char **p;
7035 int i;
7036{
7037 return p[i];
7038}
7039static char *f (char * (*g) (char **, int), char **p, ...)
7040{
7041 char *s;
7042 va_list v;
7043 va_start (v,p);
7044 s = g (p, va_arg (v,int));
7045 va_end (v);
7046 return s;
7047}
7048
7049/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7050 function prototypes and stuff, but not '\xHH' hex character constants.
7051 These don't provoke an error unfortunately, instead are silently treated
7052 as 'x'. The following induces an error, until -std is added to get
7053 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7054 array size at least. It's necessary to write '\x00'==0 to get something
7055 that's true only with -std. */
7056int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7057
7058/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7059 inside strings and character constants. */
7060#define FOO(x) 'x'
7061int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7062
7063int test (int i, double x);
7064struct s1 {int (*f) (int a);};
7065struct s2 {int (*f) (double a);};
7066int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7067int argc;
7068char **argv;
7069int
7070main ()
7071{
7072return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7073 ;
7074 return 0;
7075}
7076_ACEOF
7077for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7078 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7079do
7080 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007081 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007082 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007083fi
cristy3ed852e2009-09-05 21:47:34 +00007084rm -f core conftest.err conftest.$ac_objext
7085 test "x$ac_cv_prog_cc_c89" != "xno" && break
7086done
7087rm -f conftest.$ac_ext
7088CC=$ac_save_CC
7089
7090fi
7091# AC_CACHE_VAL
7092case "x$ac_cv_prog_cc_c89" in
7093 x)
cristy8b350f62009-11-15 23:12:43 +00007094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007095$as_echo "none needed" >&6; } ;;
7096 xno)
cristy8b350f62009-11-15 23:12:43 +00007097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007098$as_echo "unsupported" >&6; } ;;
7099 *)
7100 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007102$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7103esac
cristy8b350f62009-11-15 23:12:43 +00007104if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007105 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7106else
7107 ac_cv_prog_cc_stdc=no
7108fi
7109
cristy3ed852e2009-09-05 21:47:34 +00007110fi
cristy3ed852e2009-09-05 21:47:34 +00007111 ;;
7112esac
cristy8b350f62009-11-15 23:12:43 +00007113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007114$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007115 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007116 $as_echo_n "(cached) " >&6
7117fi
7118
cristy8b350f62009-11-15 23:12:43 +00007119 case $ac_cv_prog_cc_stdc in #(
7120 no) :
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7122$as_echo "unsupported" >&6; } ;; #(
7123 '') :
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7125$as_echo "none needed" >&6; } ;; #(
7126 *) :
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007128$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7129esac
7130
cristy3ed852e2009-09-05 21:47:34 +00007131ac_ext=c
7132ac_cpp='$CPP $CPPFLAGS'
7133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007137$as_echo_n "checking how to run the C preprocessor... " >&6; }
7138# On Suns, sometimes $CPP names a directory.
7139if test -n "$CPP" && test -d "$CPP"; then
7140 CPP=
7141fi
7142if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007143 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007144 $as_echo_n "(cached) " >&6
7145else
7146 # Double quotes because CPP needs to be expanded
7147 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7148 do
7149 ac_preproc_ok=false
7150for ac_c_preproc_warn_flag in '' yes
7151do
7152 # Use a header file that comes with gcc, so configuring glibc
7153 # with a fresh cross-compiler works.
7154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7155 # <limits.h> exists even on freestanding compilers.
7156 # On the NeXT, cc -E runs the code through the compiler's parser,
7157 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007159/* end confdefs.h. */
7160#ifdef __STDC__
7161# include <limits.h>
7162#else
7163# include <assert.h>
7164#endif
7165 Syntax error
7166_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007167if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007168
cristy8b350f62009-11-15 23:12:43 +00007169else
cristy3ed852e2009-09-05 21:47:34 +00007170 # Broken: fails on valid input.
7171continue
7172fi
cristyda16f162011-02-19 23:52:17 +00007173rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007174
7175 # OK, works on sane cases. Now check whether nonexistent headers
7176 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007178/* end confdefs.h. */
7179#include <ac_nonexistent.h>
7180_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007181if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007182 # Broken: success on invalid input.
7183continue
7184else
cristy3ed852e2009-09-05 21:47:34 +00007185 # Passes both tests.
7186ac_preproc_ok=:
7187break
7188fi
cristyda16f162011-02-19 23:52:17 +00007189rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007190
7191done
7192# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007193rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007194if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007195 break
7196fi
7197
7198 done
7199 ac_cv_prog_CPP=$CPP
7200
7201fi
7202 CPP=$ac_cv_prog_CPP
7203else
7204 ac_cv_prog_CPP=$CPP
7205fi
cristy8b350f62009-11-15 23:12:43 +00007206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007207$as_echo "$CPP" >&6; }
7208ac_preproc_ok=false
7209for ac_c_preproc_warn_flag in '' yes
7210do
7211 # Use a header file that comes with gcc, so configuring glibc
7212 # with a fresh cross-compiler works.
7213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7214 # <limits.h> exists even on freestanding compilers.
7215 # On the NeXT, cc -E runs the code through the compiler's parser,
7216 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007218/* end confdefs.h. */
7219#ifdef __STDC__
7220# include <limits.h>
7221#else
7222# include <assert.h>
7223#endif
7224 Syntax error
7225_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007226if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007227
cristy8b350f62009-11-15 23:12:43 +00007228else
cristy3ed852e2009-09-05 21:47:34 +00007229 # Broken: fails on valid input.
7230continue
7231fi
cristyda16f162011-02-19 23:52:17 +00007232rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007233
7234 # OK, works on sane cases. Now check whether nonexistent headers
7235 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007237/* end confdefs.h. */
7238#include <ac_nonexistent.h>
7239_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007240if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007241 # Broken: success on invalid input.
7242continue
7243else
cristy3ed852e2009-09-05 21:47:34 +00007244 # Passes both tests.
7245ac_preproc_ok=:
7246break
7247fi
cristyda16f162011-02-19 23:52:17 +00007248rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007249
7250done
7251# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007252rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007253if $ac_preproc_ok; then :
7254
cristy3ed852e2009-09-05 21:47:34 +00007255else
cristy8b350f62009-11-15 23:12:43 +00007256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007258as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7259See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007260fi
7261
7262ac_ext=c
7263ac_cpp='$CPP $CPPFLAGS'
7264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267
cristy73bd4a52010-10-05 11:24:23 +00007268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7269$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007270if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007271 $as_echo_n "(cached) " >&6
7272else
7273 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7274 for ac_i in 1 2 3 4 5 6 7; do
7275 ac_script="$ac_script$as_nl$ac_script"
7276 done
7277 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7278 { ac_script=; unset ac_script;}
7279 if test -z "$SED"; then
7280 ac_path_SED_found=false
7281 # Loop through the user's path and test for each of PROGNAME-LIST
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283for as_dir in $PATH
7284do
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_prog in sed gsed; do
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007290 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007291# Check for GNU ac_path_SED and select it if it is found.
7292 # Check for GNU $ac_path_SED
7293case `"$ac_path_SED" --version 2>&1` in
7294*GNU*)
7295 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7296*)
7297 ac_count=0
7298 $as_echo_n 0123456789 >"conftest.in"
7299 while :
7300 do
7301 cat "conftest.in" "conftest.in" >"conftest.tmp"
7302 mv "conftest.tmp" "conftest.in"
7303 cp "conftest.in" "conftest.nl"
7304 $as_echo '' >> "conftest.nl"
7305 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7307 as_fn_arith $ac_count + 1 && ac_count=$as_val
7308 if test $ac_count -gt ${ac_path_SED_max-0}; then
7309 # Best one so far, save it but keep looking for a better one
7310 ac_cv_path_SED="$ac_path_SED"
7311 ac_path_SED_max=$ac_count
7312 fi
7313 # 10*(2^10) chars as input seems more than enough
7314 test $ac_count -gt 10 && break
7315 done
7316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7317esac
7318
7319 $ac_path_SED_found && break 3
7320 done
7321 done
7322 done
7323IFS=$as_save_IFS
7324 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007325 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007326 fi
7327else
7328 ac_cv_path_SED=$SED
7329fi
7330
7331fi
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7333$as_echo "$ac_cv_path_SED" >&6; }
7334 SED="$ac_cv_path_SED"
7335 rm -f conftest.sed
7336
7337test -z "$SED" && SED=sed
7338Xsed="$SED -e 1s/^X//"
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7351$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007352if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007353 $as_echo_n "(cached) " >&6
7354else
7355 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7356 then ac_cv_path_FGREP="$GREP -F"
7357 else
7358 if test -z "$FGREP"; then
7359 ac_path_FGREP_found=false
7360 # Loop through the user's path and test for each of PROGNAME-LIST
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7363do
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 for ac_prog in fgrep; do
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007369 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007370# Check for GNU ac_path_FGREP and select it if it is found.
7371 # Check for GNU $ac_path_FGREP
7372case `"$ac_path_FGREP" --version 2>&1` in
7373*GNU*)
7374 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7375*)
7376 ac_count=0
7377 $as_echo_n 0123456789 >"conftest.in"
7378 while :
7379 do
7380 cat "conftest.in" "conftest.in" >"conftest.tmp"
7381 mv "conftest.tmp" "conftest.in"
7382 cp "conftest.in" "conftest.nl"
7383 $as_echo 'FGREP' >> "conftest.nl"
7384 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7386 as_fn_arith $ac_count + 1 && ac_count=$as_val
7387 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7388 # Best one so far, save it but keep looking for a better one
7389 ac_cv_path_FGREP="$ac_path_FGREP"
7390 ac_path_FGREP_max=$ac_count
7391 fi
7392 # 10*(2^10) chars as input seems more than enough
7393 test $ac_count -gt 10 && break
7394 done
7395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7396esac
7397
7398 $ac_path_FGREP_found && break 3
7399 done
7400 done
7401 done
7402IFS=$as_save_IFS
7403 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007404 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007405 fi
7406else
7407 ac_cv_path_FGREP=$FGREP
7408fi
7409
7410 fi
7411fi
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7413$as_echo "$ac_cv_path_FGREP" >&6; }
7414 FGREP="$ac_cv_path_FGREP"
7415
7416
7417test -z "$GREP" && GREP=grep
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
cristy0c60a692010-11-04 01:09:47 +00007435ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7436ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7437ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7438
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7440$as_echo_n "checking how to print strings... " >&6; }
7441# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007442if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007443 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7444 ECHO='print -r --'
7445elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7446 ECHO='printf %s\n'
7447else
7448 # Use this function as a fallback that always works.
7449 func_fallback_echo ()
7450 {
7451 eval 'cat <<_LTECHO_EOF
7452$1
7453_LTECHO_EOF'
7454 }
7455 ECHO='func_fallback_echo'
7456fi
7457
7458# func_echo_all arg...
7459# Invoke $ECHO with all args, space-separated.
7460func_echo_all ()
7461{
7462 $ECHO ""
7463}
7464
7465case "$ECHO" in
7466 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7467$as_echo "printf" >&6; } ;;
7468 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7469$as_echo "print -r" >&6; } ;;
7470 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7471$as_echo "cat" >&6; } ;;
7472esac
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
cristy73bd4a52010-10-05 11:24:23 +00007487
7488
7489# Check whether --with-gnu-ld was given.
7490if test "${with_gnu_ld+set}" = set; then :
7491 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7492else
7493 with_gnu_ld=no
7494fi
7495
7496ac_prog=ld
7497if test "$GCC" = yes; then
7498 # Check if gcc -print-prog-name=ld gives a path.
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7500$as_echo_n "checking for ld used by $CC... " >&6; }
7501 case $host in
7502 *-*-mingw*)
7503 # gcc leaves a trailing carriage return which upsets mingw
7504 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7505 *)
7506 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7507 esac
7508 case $ac_prog in
7509 # Accept absolute paths.
7510 [\\/]* | ?:[\\/]*)
7511 re_direlt='/[^/][^/]*/\.\./'
7512 # Canonicalize the pathname of ld
7513 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7514 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7515 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7516 done
7517 test -z "$LD" && LD="$ac_prog"
7518 ;;
7519 "")
7520 # If it fails, then pretend we aren't using GCC.
7521 ac_prog=ld
7522 ;;
7523 *)
7524 # If it is relative, then search for the first ld in PATH.
7525 with_gnu_ld=unknown
7526 ;;
7527 esac
7528elif test "$with_gnu_ld" = yes; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7530$as_echo_n "checking for GNU ld... " >&6; }
7531else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7533$as_echo_n "checking for non-GNU ld... " >&6; }
7534fi
cristyda16f162011-02-19 23:52:17 +00007535if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007536 $as_echo_n "(cached) " >&6
7537else
7538 if test -z "$LD"; then
7539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7540 for ac_dir in $PATH; do
7541 IFS="$lt_save_ifs"
7542 test -z "$ac_dir" && ac_dir=.
7543 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7544 lt_cv_path_LD="$ac_dir/$ac_prog"
7545 # Check to see if the program is GNU ld. I'd rather use --version,
7546 # but apparently some variants of GNU ld only accept -v.
7547 # Break only if it was the GNU/non-GNU ld that we prefer.
7548 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7549 *GNU* | *'with BFD'*)
7550 test "$with_gnu_ld" != no && break
7551 ;;
7552 *)
7553 test "$with_gnu_ld" != yes && break
7554 ;;
7555 esac
7556 fi
7557 done
7558 IFS="$lt_save_ifs"
7559else
7560 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7561fi
7562fi
7563
7564LD="$lt_cv_path_LD"
7565if test -n "$LD"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7567$as_echo "$LD" >&6; }
7568else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570$as_echo "no" >&6; }
7571fi
cristy98dddb52010-11-04 00:30:15 +00007572test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7574$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007575if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007576 $as_echo_n "(cached) " >&6
7577else
7578 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7579case `$LD -v 2>&1 </dev/null` in
7580*GNU* | *'with BFD'*)
7581 lt_cv_prog_gnu_ld=yes
7582 ;;
7583*)
7584 lt_cv_prog_gnu_ld=no
7585 ;;
7586esac
7587fi
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7589$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7590with_gnu_ld=$lt_cv_prog_gnu_ld
7591
7592
7593
7594
7595
7596
7597
7598
7599
cristy3ed852e2009-09-05 21:47:34 +00007600
cristy837d6dc2010-02-27 01:16:57 +00007601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7602$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007603if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007604 $as_echo_n "(cached) " >&6
7605else
7606 ac_cv_prog_cc_c99=no
7607ac_save_CC=$CC
7608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609/* end confdefs.h. */
7610#include <stdarg.h>
7611#include <stdbool.h>
7612#include <stdlib.h>
7613#include <wchar.h>
7614#include <stdio.h>
7615
7616// Check varargs macros. These examples are taken from C99 6.10.3.5.
7617#define debug(...) fprintf (stderr, __VA_ARGS__)
7618#define showlist(...) puts (#__VA_ARGS__)
7619#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7620static void
7621test_varargs_macros (void)
7622{
7623 int x = 1234;
7624 int y = 5678;
7625 debug ("Flag");
7626 debug ("X = %d\n", x);
7627 showlist (The first, second, and third items.);
7628 report (x>y, "x is %d but y is %d", x, y);
7629}
7630
7631// Check long long types.
7632#define BIG64 18446744073709551615ull
7633#define BIG32 4294967295ul
7634#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7635#if !BIG_OK
7636 your preprocessor is broken;
7637#endif
7638#if BIG_OK
7639#else
7640 your preprocessor is broken;
7641#endif
7642static long long int bignum = -9223372036854775807LL;
7643static unsigned long long int ubignum = BIG64;
7644
7645struct incomplete_array
7646{
7647 int datasize;
7648 double data[];
7649};
7650
7651struct named_init {
7652 int number;
7653 const wchar_t *name;
7654 double average;
7655};
7656
7657typedef const char *ccp;
7658
7659static inline int
7660test_restrict (ccp restrict text)
7661{
7662 // See if C++-style comments work.
7663 // Iterate through items via the restricted pointer.
7664 // Also check for declarations in for loops.
7665 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7666 continue;
7667 return 0;
7668}
7669
7670// Check varargs and va_copy.
7671static void
7672test_varargs (const char *format, ...)
7673{
7674 va_list args;
7675 va_start (args, format);
7676 va_list args_copy;
7677 va_copy (args_copy, args);
7678
7679 const char *str;
7680 int number;
7681 float fnumber;
7682
7683 while (*format)
7684 {
7685 switch (*format++)
7686 {
7687 case 's': // string
7688 str = va_arg (args_copy, const char *);
7689 break;
7690 case 'd': // int
7691 number = va_arg (args_copy, int);
7692 break;
7693 case 'f': // float
7694 fnumber = va_arg (args_copy, double);
7695 break;
7696 default:
7697 break;
7698 }
7699 }
7700 va_end (args_copy);
7701 va_end (args);
7702}
7703
7704int
7705main ()
7706{
7707
7708 // Check bool.
7709 _Bool success = false;
7710
7711 // Check restrict.
7712 if (test_restrict ("String literal") == 0)
7713 success = true;
7714 char *restrict newvar = "Another string";
7715
7716 // Check varargs.
7717 test_varargs ("s, d' f .", "string", 65, 34.234);
7718 test_varargs_macros ();
7719
7720 // Check flexible array members.
7721 struct incomplete_array *ia =
7722 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7723 ia->datasize = 10;
7724 for (int i = 0; i < ia->datasize; ++i)
7725 ia->data[i] = i * 1.234;
7726
7727 // Check named initializers.
7728 struct named_init ni = {
7729 .number = 34,
7730 .name = L"Test wide string",
7731 .average = 543.34343,
7732 };
7733
7734 ni.number = 58;
7735
7736 int dynamic_array[ni.number];
7737 dynamic_array[ni.number - 1] = 543;
7738
7739 // work around unused variable warnings
7740 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7741 || dynamic_array[ni.number - 1] != 543);
7742
7743 ;
7744 return 0;
7745}
7746_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007747for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007748do
7749 CC="$ac_save_CC $ac_arg"
7750 if ac_fn_c_try_compile "$LINENO"; then :
7751 ac_cv_prog_cc_c99=$ac_arg
7752fi
7753rm -f core conftest.err conftest.$ac_objext
7754 test "x$ac_cv_prog_cc_c99" != "xno" && break
7755done
7756rm -f conftest.$ac_ext
7757CC=$ac_save_CC
7758
7759fi
7760# AC_CACHE_VAL
7761case "x$ac_cv_prog_cc_c99" in
7762 x)
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7764$as_echo "none needed" >&6; } ;;
7765 xno)
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7767$as_echo "unsupported" >&6; } ;;
7768 *)
7769 CC="$CC $ac_cv_prog_cc_c99"
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7771$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7772esac
7773if test "x$ac_cv_prog_cc_c99" != xno; then :
7774
7775fi
7776
7777
cristy73bd4a52010-10-05 11:24:23 +00007778if test "x$CC" != xcc; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7780$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7781else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7783$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7784fi
7785set dummy $CC; ac_cc=`$as_echo "$2" |
7786 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007787if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007788 $as_echo_n "(cached) " >&6
7789else
cristy73bd4a52010-10-05 11:24:23 +00007790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791/* end confdefs.h. */
7792
7793int
7794main ()
7795{
7796
7797 ;
7798 return 0;
7799}
7800_ACEOF
7801# Make sure it works both with $CC and with simple cc.
7802# We do the test twice because some compilers refuse to overwrite an
7803# existing .o file with -o, though they will create one.
7804ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7805rm -f conftest2.*
7806if { { case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7809esac
7810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7811$as_echo "$ac_try_echo"; } >&5
7812 (eval "$ac_try") 2>&5
7813 ac_status=$?
7814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7815 test $ac_status = 0; } &&
7816 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7819esac
7820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7821$as_echo "$ac_try_echo"; } >&5
7822 (eval "$ac_try") 2>&5
7823 ac_status=$?
7824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7825 test $ac_status = 0; };
7826then
7827 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7828 if test "x$CC" != xcc; then
7829 # Test first that cc exists at all.
7830 if { ac_try='cc -c conftest.$ac_ext >&5'
7831 { { case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834esac
7835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7836$as_echo "$ac_try_echo"; } >&5
7837 (eval "$ac_try") 2>&5
7838 ac_status=$?
7839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7840 test $ac_status = 0; }; }; then
7841 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7842 rm -f conftest2.*
7843 if { { case "(($ac_try" in
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7846esac
7847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7848$as_echo "$ac_try_echo"; } >&5
7849 (eval "$ac_try") 2>&5
7850 ac_status=$?
7851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7852 test $ac_status = 0; } &&
7853 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856esac
7857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7858$as_echo "$ac_try_echo"; } >&5
7859 (eval "$ac_try") 2>&5
7860 ac_status=$?
7861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7862 test $ac_status = 0; };
7863 then
7864 # cc works too.
7865 :
7866 else
7867 # cc exists but doesn't like -o.
7868 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7869 fi
7870 fi
7871 fi
7872else
7873 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7874fi
7875rm -f core conftest*
7876
7877fi
7878if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7880$as_echo "yes" >&6; }
7881else
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883$as_echo "no" >&6; }
7884
7885$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7886
7887fi
7888
7889# FIXME: we rely on the cache variable name because
7890# there is no other way.
7891set dummy $CC
7892am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7893eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7894if test "$am_t" != yes; then
7895 # Losing compiler, so override with the script.
7896 # FIXME: It is wrong to rewrite CC.
7897 # But if we don't then we get into trouble of one sort or another.
7898 # A longer-term fix would be to have automake use am__CC in this case,
7899 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7900 CC="$am_aux_dir/compile $CC"
7901fi
7902
7903
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7905$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007906if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007907 $as_echo_n "(cached) " >&6
7908else
7909 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007910 ac_ext=c
7911ac_cpp='$CPP $CPPFLAGS'
7912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915
7916 ac_save_CFLAGS="$CFLAGS"
7917for 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" #
7918do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920/* end confdefs.h. */
7921
7922int
7923main ()
7924{
cristy24fc1fe2010-10-23 21:13:01 +00007925
cristy73bd4a52010-10-05 11:24:23 +00007926 ;
7927 return 0;
7928}
7929_ACEOF
7930if ac_fn_c_try_compile "$LINENO"; then :
7931 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7932fi
7933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934done
7935 CFLAGS="$ac_save_CFLAGS"
7936 ac_ext=c
7937ac_cpp='$CPP $CPPFLAGS'
7938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941
7942
7943fi
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7945$as_echo "$ac_cv_cflags_warn_all" >&6; }
7946case ".$ac_cv_cflags_warn_all" in
7947 .ok|.ok,*) ;;
7948 .|.no|.no,*)
7949 ;;
7950 *)
7951 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7952 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7953 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7954 ac_status=$?
7955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7956 test $ac_status = 0; }
7957 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7958 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7959 ac_status=$?
7960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7961 test $ac_status = 0; }
7962 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7963 fi
7964 ;;
nicolas6237c462010-10-05 06:11:49 +00007965esac
cristy3ed852e2009-09-05 21:47:34 +00007966
cristycc22d1d2012-12-10 13:03:25 +00007967AX_COMPILER_VENDOR
cristya0b81c32010-01-22 02:54:33 +00007968
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7970$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7971set x ${MAKE-make}
7972ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007973if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007974 $as_echo_n "(cached) " >&6
7975else
7976 cat >conftest.make <<\_ACEOF
7977SHELL = /bin/sh
7978all:
7979 @echo '@@@%%%=$(MAKE)=@@@%%%'
7980_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007981# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007982case `${MAKE-make} -f conftest.make 2>/dev/null` in
7983 *@@@%%%=?*=@@@%%%*)
7984 eval ac_cv_prog_make_${ac_make}_set=yes;;
7985 *)
7986 eval ac_cv_prog_make_${ac_make}_set=no;;
7987esac
7988rm -f conftest.make
7989fi
7990if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7992$as_echo "yes" >&6; }
7993 SET_MAKE=
7994else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996$as_echo "no" >&6; }
7997 SET_MAKE="MAKE=${MAKE-make}"
7998fi
7999
cristy8b350f62009-11-15 23:12:43 +00008000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008001$as_echo_n "checking whether ln -s works... " >&6; }
8002LN_S=$as_ln_s
8003if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008005$as_echo "yes" >&6; }
8006else
cristy8b350f62009-11-15 23:12:43 +00008007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008008$as_echo "no, using $LN_S" >&6; }
8009fi
8010
cristybc556452012-08-17 19:44:03 +00008011for ac_prog in gawk mawk nawk awk
8012do
8013 # Extract the first word of "$ac_prog", so it can be a program name with args.
8014set dummy $ac_prog; ac_word=$2
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016$as_echo_n "checking for $ac_word... " >&6; }
8017if ${ac_cv_prog_AWK+:} false; then :
8018 $as_echo_n "(cached) " >&6
8019else
8020 if test -n "$AWK"; then
8021 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8022else
8023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024for as_dir in $PATH
8025do
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_AWK="$ac_prog"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034done
8035 done
8036IFS=$as_save_IFS
8037
8038fi
8039fi
8040AWK=$ac_cv_prog_AWK
8041if test -n "$AWK"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8043$as_echo "$AWK" >&6; }
8044else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046$as_echo "no" >&6; }
8047fi
8048
8049
8050 test -n "$AWK" && break
8051done
8052
cristy73bd4a52010-10-05 11:24:23 +00008053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8054$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8055
8056# Check whether --with-dmalloc was given.
8057if test "${with_dmalloc+set}" = set; then :
8058 withval=$with_dmalloc; if test "$withval" = yes; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8060$as_echo "yes" >&6; }
8061
8062$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8063
8064 LIBS="$LIBS -ldmalloc"
8065 LDFLAGS="$LDFLAGS -g"
8066else
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068$as_echo "no" >&6; }
8069fi
8070else
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072$as_echo "no" >&6; }
8073fi
8074
8075
8076
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8078$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008079if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008080 $as_echo_n "(cached) " >&6
8081else
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083/* end confdefs.h. */
8084#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008085 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008086 static void
8087 foo(void) {
8088 exit(1);
8089 }
8090
8091int
8092main ()
8093{
8094
8095 ;
8096 return 0;
8097}
8098_ACEOF
8099if ac_fn_c_try_compile "$LINENO"; then :
8100 ax_cv___attribute__=yes
8101else
8102 ax_cv___attribute__=no
8103
8104fi
8105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106
8107fi
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8109$as_echo "$ax_cv___attribute__" >&6; }
8110 if test "$ax_cv___attribute__" = "yes"; then
8111
8112$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8113
8114 fi
8115
8116
8117
cristy37110d62012-03-01 18:38:20 +00008118
8119
8120# Check whether --with-gcc-arch was given.
8121if test "${with_gcc_arch+set}" = set; then :
8122 withval=$with_gcc_arch; ax_gcc_arch=$withval
8123else
cristya32d1812012-03-02 19:24:21 +00008124 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008125fi
8126
8127
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8129$as_echo_n "checking for gcc architecture flag... " >&6; }
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8131$as_echo "" >&6; }
8132if ${ax_cv_gcc_archflag+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134else
8135
8136ax_cv_gcc_archflag="unknown"
8137
8138if test "$GCC" = yes; then
8139
8140if test "x$ax_gcc_arch" = xyes; then
8141ax_gcc_arch=""
8142if test "$cross_compiling" = no; then
8143case $host_cpu in
8144 i[3456]86*|x86_64*) # use cpuid codes
8145
8146ac_ext=c
8147ac_cpp='$CPP $CPPFLAGS'
8148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8150ac_compiler_gnu=$ac_cv_c_compiler_gnu
8151
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8153$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8154if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156else
8157 if test "$cross_compiling" = yes; then :
8158 ax_cv_gcc_x86_cpuid_0=unknown
8159else
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161/* end confdefs.h. */
8162#include <stdio.h>
8163int
8164main ()
8165{
8166
8167 int op = 0, eax, ebx, ecx, edx;
8168 FILE *f;
8169 __asm__("cpuid"
8170 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8171 : "a" (op));
8172 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8173 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8174 fclose(f);
8175 return 0;
8176
8177 ;
8178 return 0;
8179}
8180_ACEOF
8181if ac_fn_c_try_run "$LINENO"; then :
8182 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8183else
8184 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8185fi
8186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8187 conftest.$ac_objext conftest.beam conftest.$ac_ext
8188fi
8189
8190fi
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8192$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8193ac_ext=c
8194ac_cpp='$CPP $CPPFLAGS'
8195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8197ac_compiler_gnu=$ac_cv_c_compiler_gnu
8198
8199
8200
8201ac_ext=c
8202ac_cpp='$CPP $CPPFLAGS'
8203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8205ac_compiler_gnu=$ac_cv_c_compiler_gnu
8206
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8208$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8209if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8210 $as_echo_n "(cached) " >&6
8211else
8212 if test "$cross_compiling" = yes; then :
8213 ax_cv_gcc_x86_cpuid_1=unknown
8214else
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216/* end confdefs.h. */
8217#include <stdio.h>
8218int
8219main ()
8220{
8221
8222 int op = 1, eax, ebx, ecx, edx;
8223 FILE *f;
8224 __asm__("cpuid"
8225 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8226 : "a" (op));
8227 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8228 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8229 fclose(f);
8230 return 0;
8231
8232 ;
8233 return 0;
8234}
8235_ACEOF
8236if ac_fn_c_try_run "$LINENO"; then :
8237 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8238else
8239 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8240fi
8241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8242 conftest.$ac_objext conftest.beam conftest.$ac_ext
8243fi
8244
8245fi
8246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8247$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8248ac_ext=c
8249ac_cpp='$CPP $CPPFLAGS'
8250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8252ac_compiler_gnu=$ac_cv_c_compiler_gnu
8253
8254
8255 case $ax_cv_gcc_x86_cpuid_0 in
8256 *:756e6547:*:*) # Intel
8257 case $ax_cv_gcc_x86_cpuid_1 in
8258 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8259 *5??:*:*:*) ax_gcc_arch=pentium ;;
8260 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8261 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8262 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8263 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8264 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8265 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8266 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8267 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8268 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8269 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8270 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8271 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8272 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8273 case $host_cpu in
8274 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8275 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8276 esac ;;
8277 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8278 esac ;;
8279 *:68747541:*:*) # AMD
8280 case $ax_cv_gcc_x86_cpuid_1 in
8281 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8282 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8283 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8284 *60?:*:*:*) ax_gcc_arch=k7 ;;
8285 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8286 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8287 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8288 *6[68a]?:*:*:*)
8289
8290ac_ext=c
8291ac_cpp='$CPP $CPPFLAGS'
8292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8294ac_compiler_gnu=$ac_cv_c_compiler_gnu
8295
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8297$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8298if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300else
8301 if test "$cross_compiling" = yes; then :
8302 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8303else
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305/* end confdefs.h. */
8306#include <stdio.h>
8307int
8308main ()
8309{
8310
8311 int op = 0x80000006, eax, ebx, ecx, edx;
8312 FILE *f;
8313 __asm__("cpuid"
8314 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8315 : "a" (op));
8316 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8317 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8318 fclose(f);
8319 return 0;
8320
8321 ;
8322 return 0;
8323}
8324_ACEOF
8325if ac_fn_c_try_run "$LINENO"; then :
8326 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8327else
8328 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8329fi
8330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8331 conftest.$ac_objext conftest.beam conftest.$ac_ext
8332fi
8333
8334fi
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8336$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8337ac_ext=c
8338ac_cpp='$CPP $CPPFLAGS'
8339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8341ac_compiler_gnu=$ac_cv_c_compiler_gnu
8342
8343 # L2 cache size
8344 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8345 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8346 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8347 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8348 esac ;;
8349 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8350 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8351 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8352 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8353 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8354 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8355 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8356 esac ;;
8357 *:746e6543:*:*) # IDT
8358 case $ax_cv_gcc_x86_cpuid_1 in
8359 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8360 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8361 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8362 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8363 esac ;;
8364 esac
8365 if test x"$ax_gcc_arch" = x; then # fallback
8366 case $host_cpu in
8367 i586*) ax_gcc_arch=pentium ;;
8368 i686*) ax_gcc_arch=pentiumpro ;;
8369 esac
8370 fi
8371 ;;
8372
8373 sparc*)
8374 # Extract the first word of "prtdiag", so it can be a program name with args.
8375set dummy prtdiag; ac_word=$2
8376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377$as_echo_n "checking for $ac_word... " >&6; }
8378if ${ac_cv_path_PRTDIAG+:} false; then :
8379 $as_echo_n "(cached) " >&6
8380else
8381 case $PRTDIAG in
8382 [\\/]* | ?:[\\/]*)
8383 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8384 ;;
8385 *)
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8388for as_dir in $as_dummy
8389do
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008394 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8397 fi
8398done
8399 done
8400IFS=$as_save_IFS
8401
8402 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8403 ;;
8404esac
8405fi
8406PRTDIAG=$ac_cv_path_PRTDIAG
8407if test -n "$PRTDIAG"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8409$as_echo "$PRTDIAG" >&6; }
8410else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412$as_echo "no" >&6; }
8413fi
8414
8415
8416 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`
8417 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8418 case $cputype in
8419 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8420 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8421 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8422 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8423 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8424 *cypress*) ax_gcc_arch=cypress ;;
8425 esac ;;
8426
8427 alphaev5) ax_gcc_arch=ev5 ;;
8428 alphaev56) ax_gcc_arch=ev56 ;;
8429 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8430 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8431 alphaev6) ax_gcc_arch=ev6 ;;
8432 alphaev67) ax_gcc_arch=ev67 ;;
8433 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8434 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8435 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8436 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8437
8438 powerpc*)
8439 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`
8440 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8441 case $cputype in
8442 *750*) ax_gcc_arch="750 G3" ;;
8443 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8444 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8445 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8446 *970*) ax_gcc_arch="970 G5 power4";;
8447 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8448 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8449 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8450 *) ax_gcc_arch=$cputype ;;
8451 esac
8452 ax_gcc_arch="$ax_gcc_arch powerpc"
8453 ;;
8454esac
8455fi # not cross-compiling
8456fi # guess arch
8457
8458if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8459for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008460 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008461 flags="-mtune=$arch"
8462 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8463 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8464 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8465 else
8466 flags="-march=$arch -mcpu=$arch -m$arch"
8467 fi
8468 for flag in $flags; do
8469 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8471$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8472if eval \${$as_CACHEVAR+:} false; then :
8473 $as_echo_n "(cached) " >&6
8474else
8475
8476 ax_check_save_flags=$CFLAGS
8477 CFLAGS="$CFLAGS $flag"
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h. */
8480
8481int
8482main ()
8483{
8484
8485 ;
8486 return 0;
8487}
8488_ACEOF
8489if ac_fn_c_try_compile "$LINENO"; then :
8490 eval "$as_CACHEVAR=yes"
8491else
8492 eval "$as_CACHEVAR=no"
8493fi
8494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8495 CFLAGS=$ax_check_save_flags
8496fi
8497eval ac_res=\$$as_CACHEVAR
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8499$as_echo "$ac_res" >&6; }
8500if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8501 ax_cv_gcc_archflag=$flag; break
8502else
8503 :
8504fi
8505
8506 done
8507 test "x$ax_cv_gcc_archflag" = xunknown || break
8508done
8509fi
8510
8511fi # $GCC=yes
8512
8513fi
8514
8515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8516$as_echo_n "checking for gcc architecture flag... " >&6; }
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8518$as_echo "$ax_cv_gcc_archflag" >&6; }
8519if test "x$ax_cv_gcc_archflag" = xunknown; then
8520 :
8521else
8522 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8523fi
8524
8525
8526
cristy73bd4a52010-10-05 11:24:23 +00008527if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8528 if test -n "$ac_tool_prefix"; then
8529 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8530set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008533if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008534 $as_echo_n "(cached) " >&6
8535else
8536 case $PKG_CONFIG in
8537 [\\/]* | ?:[\\/]*)
8538 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8539 ;;
8540 *)
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542for as_dir in $PATH
8543do
8544 IFS=$as_save_IFS
8545 test -z "$as_dir" && as_dir=.
8546 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008548 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 break 2
8551 fi
8552done
8553 done
8554IFS=$as_save_IFS
8555
8556 ;;
8557esac
8558fi
8559PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8560if test -n "$PKG_CONFIG"; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8562$as_echo "$PKG_CONFIG" >&6; }
8563else
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565$as_echo "no" >&6; }
8566fi
8567
8568
8569fi
8570if test -z "$ac_cv_path_PKG_CONFIG"; then
8571 ac_pt_PKG_CONFIG=$PKG_CONFIG
8572 # Extract the first word of "pkg-config", so it can be a program name with args.
8573set dummy pkg-config; ac_word=$2
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008576if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008577 $as_echo_n "(cached) " >&6
8578else
8579 case $ac_pt_PKG_CONFIG in
8580 [\\/]* | ?:[\\/]*)
8581 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8582 ;;
8583 *)
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585for as_dir in $PATH
8586do
8587 IFS=$as_save_IFS
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008591 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8593 break 2
8594 fi
8595done
8596 done
8597IFS=$as_save_IFS
8598
8599 ;;
8600esac
8601fi
8602ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8603if test -n "$ac_pt_PKG_CONFIG"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8605$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8606else
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608$as_echo "no" >&6; }
8609fi
8610
8611 if test "x$ac_pt_PKG_CONFIG" = x; then
8612 PKG_CONFIG=""
8613 else
8614 case $cross_compiling:$ac_tool_warned in
8615yes:)
8616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8618ac_tool_warned=yes ;;
8619esac
8620 PKG_CONFIG=$ac_pt_PKG_CONFIG
8621 fi
8622else
8623 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8624fi
8625
8626fi
8627if test -n "$PKG_CONFIG"; then
8628 _pkg_min_version=0.9.0
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8630$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8631 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8633$as_echo "yes" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636$as_echo "no" >&6; }
8637 PKG_CONFIG=""
8638 fi
8639
8640fi
cristy3ed852e2009-09-05 21:47:34 +00008641
cristy9b86f202012-11-28 21:55:35 +00008642# Check for linker script support
8643
8644 # Check whether --enable-ld-version-script was given.
8645if test "${enable_ld_version_script+set}" = set; then :
8646 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8647fi
8648
8649 if test -z "$have_ld_version_script"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8651$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8652 save_LDFLAGS="$LDFLAGS"
8653 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8654 cat > conftest.map <<EOF
8655foo
8656EOF
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h. */
8659
8660int
8661main ()
8662{
8663
8664 ;
8665 return 0;
8666}
8667_ACEOF
8668if ac_fn_c_try_link "$LINENO"; then :
8669 accepts_syntax_errors=yes
8670else
8671 accepts_syntax_errors=no
8672fi
8673rm -f core conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 if test "$accepts_syntax_errors" = no; then
8676 cat > conftest.map <<EOF
8677VERS_1 {
8678 global: sym;
8679};
8680
8681VERS_2 {
8682 global: sym;
8683} VERS_1;
8684EOF
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686/* end confdefs.h. */
8687
8688int
8689main ()
8690{
8691
8692 ;
8693 return 0;
8694}
8695_ACEOF
8696if ac_fn_c_try_link "$LINENO"; then :
8697 have_ld_version_script=yes
8698else
8699 have_ld_version_script=no
8700fi
8701rm -f core conftest.err conftest.$ac_objext \
8702 conftest$ac_exeext conftest.$ac_ext
8703 else
8704 have_ld_version_script=no
8705 fi
8706 rm -f conftest.map
8707 LDFLAGS="$save_LDFLAGS"
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8709$as_echo "$have_ld_version_script" >&6; }
8710 fi
8711 if test "$have_ld_version_script" = "yes"; then
8712 HAVE_LD_VERSION_SCRIPT_TRUE=
8713 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8714else
8715 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8716 HAVE_LD_VERSION_SCRIPT_FALSE=
8717fi
8718
8719
8720
cristy3ed852e2009-09-05 21:47:34 +00008721#
cristy3ed852e2009-09-05 21:47:34 +00008722# Enable run-time checking.
8723#
8724# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008725if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008726 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8727else
8728 enable_bounds_checking='no'
8729fi
8730
8731
8732if test "$enable_bounds_checking" = yes; then
8733
cristy8b350f62009-11-15 23:12:43 +00008734$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008735
8736fi
8737
8738#
8739# Tests for Windows
8740#
8741
8742
8743
8744GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008745native_win32_build='no'
8746cygwin_build='no'
8747case "${host_os}" in
8748 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008749 cygwin_build='yes'
8750 GDI32_LIBS='-lgdi32'
8751 ;;
8752 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008753 native_win32_build='yes'
8754 GDI32_LIBS='-lgdi32'
8755 ;;
8756esac
8757if test "${GDI32_LIBS}x" != 'x'; then
8758
cristy8b350f62009-11-15 23:12:43 +00008759$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008760
8761fi
8762
cristy73bd4a52010-10-05 11:24:23 +00008763 if test "${GDI32_LIBS}x" != 'x' ; then
8764 WINGDI32_DELEGATE_TRUE=
8765 WINGDI32_DELEGATE_FALSE='#'
8766else
8767 WINGDI32_DELEGATE_TRUE='#'
8768 WINGDI32_DELEGATE_FALSE=
8769fi
8770
8771 if test "${native_win32_build}" = 'yes' ; then
8772 WIN32_NATIVE_BUILD_TRUE=
8773 WIN32_NATIVE_BUILD_FALSE='#'
8774else
8775 WIN32_NATIVE_BUILD_TRUE='#'
8776 WIN32_NATIVE_BUILD_FALSE=
8777fi
8778
8779 if test "${cygwin_build}" = 'yes' ; then
8780 CYGWIN_BUILD_TRUE=
8781 CYGWIN_BUILD_FALSE='#'
8782else
8783 CYGWIN_BUILD_TRUE='#'
8784 CYGWIN_BUILD_FALSE=
8785fi
8786
8787 if test "x${CC}" = 'xcl.exe' ; then
8788 USING_CL_TRUE=
8789 USING_CL_FALSE='#'
8790else
8791 USING_CL_TRUE='#'
8792 USING_CL_FALSE=
8793fi
8794
cristy3ed852e2009-09-05 21:47:34 +00008795
8796WinPathScript="${srcdirfull}/winpath.sh"
8797
8798
8799#
8800# Compiler flags tweaks
8801#
8802if test "${GCC}" != "yes"; then
8803 case "${host}" in
8804 *-*-hpux* )
8805 # aCC: HP ANSI C++ B3910B A.03.34
8806 CFLAGS="${CFLAGS} -Wp,-H30000"
8807 if test -n "${CXXFLAGS}"; then
8808 CXXFLAGS='-AA'
8809 else
8810 CXXFLAGS="${CXXFLAGS} -AA"
8811 fi
8812 ;;
8813 *-dec-osf5.* )
8814 # Compaq alphaev68-dec-osf5.1 compiler
8815 if test -n "${CXXFLAGS}"; then
8816 CXXFLAGS='-std strict_ansi -noimplicit_include'
8817 else
8818 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8819 fi
8820 esac
8821fi
8822
8823# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008825$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008826if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008827 $as_echo_n "(cached) " >&6
8828else
8829
8830im_cv_ld_lazyload='none'
8831case "${host}" in
8832 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8833 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8834 im_cv_ld_lazyload='-Wl,-zlazyload'
8835 fi
8836 ;;
8837esac
8838
8839fi
cristy8b350f62009-11-15 23:12:43 +00008840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008841$as_echo "$im_cv_ld_lazyload" >&6; }
8842if test "${im_cv_ld_lazyload}" != 'none' ; then
8843 if test -z "${LDFLAGS}" ; then
8844 LDFLAGS="${im_cv_ld_lazyload}"
8845 else
8846 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8847 fi
8848fi
8849
8850case "$host" in
8851*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008852 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008853if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008854 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8855else
8856 build_osxuniversal=no
8857fi
8858
8859
8860 if test "${build_osxuniversal}" != no ; then
8861 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008862 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008863Please re-run configure with these options:
8864 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008865 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008866 fi
8867 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8868 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8869 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8870 fi
8871 ;;
8872esac
8873
cristy0151ae12011-10-28 16:32:29 +00008874#
8875# ARCH specific include directory
8876#
8877
cristy670aa3c2011-11-03 00:54:00 +00008878# Check whether --with-includearch-dir was given.
8879if test "${with_includearch_dir+set}" = set; then :
8880 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008881else
cristy670aa3c2011-11-03 00:54:00 +00008882 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008883fi
8884
8885
cristy670aa3c2011-11-03 00:54:00 +00008886eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008887
cristy0151ae12011-10-28 16:32:29 +00008888
8889#
8890# ARCH specific configuration directory
8891#
8892
cristy670aa3c2011-11-03 00:54:00 +00008893# Check whether --with-sharearch-dir was given.
8894if test "${with_sharearch_dir+set}" = set; then :
8895 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008896else
cristy408ebcd2011-11-14 01:36:57 +00008897 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008898fi
8899
8900
cristy670aa3c2011-11-03 00:54:00 +00008901eval "eval SHAREARCH_DIR=$sharearch_dir"
8902SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008903
cristy0151ae12011-10-28 16:32:29 +00008904
8905#
cristy3ed852e2009-09-05 21:47:34 +00008906# Enable support for threads
8907
8908# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008909if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008910 withval=$with_threads; with_threads=$withval
8911else
8912 with_threads='yes'
8913fi
8914
8915
8916have_threads=no
8917if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008918
8919
cristy73bd4a52010-10-05 11:24:23 +00008920ac_ext=c
8921ac_cpp='$CPP $CPPFLAGS'
8922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8924ac_compiler_gnu=$ac_cv_c_compiler_gnu
8925
8926ax_pthread_ok=no
8927
8928# We used to check for pthread.h first, but this fails if pthread.h
8929# requires special compiler flags (e.g. on True64 or Sequent).
8930# It gets checked for in the link test anyway.
8931
8932# First of all, check if the user has set any of the PTHREAD_LIBS,
8933# etcetera environment variables, and if threads linking works using
8934# them:
8935if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8936 save_CFLAGS="$CFLAGS"
8937 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8938 save_LIBS="$LIBS"
8939 LIBS="$PTHREAD_LIBS $LIBS"
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8941$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943/* end confdefs.h. */
8944
8945/* Override any GCC internal prototype to avoid an error.
8946 Use char because int might match the return type of a GCC
8947 builtin and then its argument prototype would still apply. */
8948#ifdef __cplusplus
8949extern "C"
8950#endif
8951char pthread_join ();
8952int
8953main ()
8954{
8955return pthread_join ();
8956 ;
8957 return 0;
8958}
8959_ACEOF
8960if ac_fn_c_try_link "$LINENO"; then :
8961 ax_pthread_ok=yes
8962fi
8963rm -f core conftest.err conftest.$ac_objext \
8964 conftest$ac_exeext conftest.$ac_ext
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8966$as_echo "$ax_pthread_ok" >&6; }
8967 if test x"$ax_pthread_ok" = xno; then
8968 PTHREAD_LIBS=""
8969 PTHREAD_CFLAGS=""
8970 fi
8971 LIBS="$save_LIBS"
8972 CFLAGS="$save_CFLAGS"
8973fi
8974
8975# We must check for the threads library under a number of different
8976# names; the ordering is very important because some systems
8977# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8978# libraries is broken (non-POSIX).
8979
8980# Create a list of thread flags to try. Items starting with a "-" are
8981# C compiler flags, and other items are library names, except for "none"
8982# which indicates that we try without any flags at all, and "pthread-config"
8983# which is a program returning the flags for the Pth emulation library.
8984
cristy18307f12011-12-30 01:20:16 +00008985ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008986
8987# The ordering *is* (sometimes) important. Some notes on the
8988# individual items follow:
8989
8990# pthreads: AIX (must check this before -lpthread)
8991# none: in case threads are in libc; should be tried before -Kthread and
8992# other compiler flags to prevent continual compiler warnings
8993# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8994# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8995# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8996# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8997# -pthreads: Solaris/gcc
8998# -mthreads: Mingw32/gcc, Lynx/gcc
8999# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9000# doesn't hurt to check since this sometimes defines pthreads too;
9001# also defines -D_REENTRANT)
9002# ... -mt is also the pthreads flag for HP/aCC
9003# pthread: Linux, etcetera
9004# --thread-safe: KAI C++
9005# pthread-config: use pthread-config program (for GNU Pth library)
9006
9007case "${host_cpu}-${host_os}" in
9008 *solaris*)
9009
9010 # On Solaris (at least, for some versions), libc contains stubbed
9011 # (non-functional) versions of the pthreads routines, so link-based
9012 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9013 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9014 # a function called by this macro, so we could check for that, but
9015 # who knows whether they'll stub that too in a future libc.) So,
9016 # we'll just look for -pthreads and -lpthread first:
9017
9018 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9019 ;;
9020
cristya316db12011-10-24 00:49:45 +00009021 *-darwin*)
9022 ax_pthread_flags="-pthread $ax_pthread_flags"
9023 ;;
cristy73bd4a52010-10-05 11:24:23 +00009024esac
9025
9026if test x"$ax_pthread_ok" = xno; then
9027for flag in $ax_pthread_flags; do
9028
9029 case $flag in
9030 none)
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9032$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9033 ;;
9034
9035 -*)
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9037$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9038 PTHREAD_CFLAGS="$flag"
9039 ;;
9040
cristya316db12011-10-24 00:49:45 +00009041 pthread-config)
9042 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009043set dummy pthread-config; ac_word=$2
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009046if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009047 $as_echo_n "(cached) " >&6
9048else
9049 if test -n "$ax_pthread_config"; then
9050 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9051else
9052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053for as_dir in $PATH
9054do
9055 IFS=$as_save_IFS
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009059 ac_cv_prog_ax_pthread_config="yes"
9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061 break 2
9062 fi
9063done
9064 done
9065IFS=$as_save_IFS
9066
9067 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9068fi
9069fi
9070ax_pthread_config=$ac_cv_prog_ax_pthread_config
9071if test -n "$ax_pthread_config"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9073$as_echo "$ax_pthread_config" >&6; }
9074else
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076$as_echo "no" >&6; }
9077fi
9078
9079
cristya316db12011-10-24 00:49:45 +00009080 if test x"$ax_pthread_config" = xno; then continue; fi
9081 PTHREAD_CFLAGS="`pthread-config --cflags`"
9082 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9083 ;;
cristy73bd4a52010-10-05 11:24:23 +00009084
9085 *)
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9087$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9088 PTHREAD_LIBS="-l$flag"
9089 ;;
9090 esac
9091
9092 save_LIBS="$LIBS"
9093 save_CFLAGS="$CFLAGS"
9094 LIBS="$PTHREAD_LIBS $LIBS"
9095 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9096
9097 # Check for various functions. We must include pthread.h,
9098 # since some functions may be macros. (On the Sequent, we
9099 # need a special flag -Kthread to make this header compile.)
9100 # We check for pthread_join because it is in -lpthread on IRIX
9101 # while pthread_create is in libc. We check for pthread_attr_init
9102 # due to DEC craziness with -lpthreads. We check for
9103 # pthread_cleanup_push because it is one of the few pthread
9104 # functions on Solaris that doesn't have a non-functional libc stub.
9105 # We try pthread_create on general principles.
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107/* end confdefs.h. */
9108#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009109 static void routine(void *a) { a = 0; }
9110 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009111int
9112main ()
9113{
9114pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009115 pthread_create(&th, 0, start_routine, 0);
9116 pthread_join(th, 0);
9117 pthread_attr_init(&attr);
9118 pthread_cleanup_push(routine, 0);
9119 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009120 ;
9121 return 0;
9122}
9123_ACEOF
9124if ac_fn_c_try_link "$LINENO"; then :
9125 ax_pthread_ok=yes
9126fi
9127rm -f core conftest.err conftest.$ac_objext \
9128 conftest$ac_exeext conftest.$ac_ext
9129
9130 LIBS="$save_LIBS"
9131 CFLAGS="$save_CFLAGS"
9132
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9134$as_echo "$ax_pthread_ok" >&6; }
9135 if test "x$ax_pthread_ok" = xyes; then
9136 break;
9137 fi
9138
9139 PTHREAD_LIBS=""
9140 PTHREAD_CFLAGS=""
9141done
9142fi
9143
9144# Various other checks:
9145if test "x$ax_pthread_ok" = xyes; then
9146 save_LIBS="$LIBS"
9147 LIBS="$PTHREAD_LIBS $LIBS"
9148 save_CFLAGS="$CFLAGS"
9149 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9150
9151 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009153$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009154 attr_name=unknown
9155 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009157/* end confdefs.h. */
9158#include <pthread.h>
9159int
9160main ()
9161{
cristya316db12011-10-24 00:49:45 +00009162int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009163 ;
9164 return 0;
9165}
9166_ACEOF
9167if ac_fn_c_try_link "$LINENO"; then :
9168 attr_name=$attr; break
9169fi
9170rm -f core conftest.err conftest.$ac_objext \
9171 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009172 done
cristy73bd4a52010-10-05 11:24:23 +00009173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9174$as_echo "$attr_name" >&6; }
9175 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9176
9177cat >>confdefs.h <<_ACEOF
9178#define PTHREAD_CREATE_JOINABLE $attr_name
9179_ACEOF
9180
9181 fi
9182
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9184$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9185 flag=no
9186 case "${host_cpu}-${host_os}" in
9187 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9188 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9189 esac
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9191$as_echo "${flag}" >&6; }
9192 if test "x$flag" != xno; then
9193 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9194 fi
9195
cristya316db12011-10-24 00:49:45 +00009196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9197$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9198if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9199 $as_echo_n "(cached) " >&6
9200else
9201
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203/* end confdefs.h. */
9204
9205 #include <pthread.h>
9206int
9207main ()
9208{
9209int i = PTHREAD_PRIO_INHERIT;
9210 ;
9211 return 0;
9212}
9213_ACEOF
9214if ac_fn_c_try_link "$LINENO"; then :
9215 ax_cv_PTHREAD_PRIO_INHERIT=yes
9216else
9217 ax_cv_PTHREAD_PRIO_INHERIT=no
9218fi
9219rm -f core conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
9221
9222fi
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9224$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9225 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9226
9227$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9228
9229fi
9230
cristy73bd4a52010-10-05 11:24:23 +00009231 LIBS="$save_LIBS"
9232 CFLAGS="$save_CFLAGS"
9233
9234 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009235 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009236 for ac_prog in xlc_r cc_r
9237do
9238 # Extract the first word of "$ac_prog", so it can be a program name with args.
9239set dummy $ac_prog; ac_word=$2
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009242if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009243 $as_echo_n "(cached) " >&6
9244else
9245 if test -n "$PTHREAD_CC"; then
9246 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9247else
9248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249for as_dir in $PATH
9250do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009255 ac_cv_prog_PTHREAD_CC="$ac_prog"
9256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9258 fi
9259done
9260 done
9261IFS=$as_save_IFS
9262
9263fi
9264fi
9265PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9266if test -n "$PTHREAD_CC"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9268$as_echo "$PTHREAD_CC" >&6; }
9269else
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271$as_echo "no" >&6; }
9272fi
9273
9274
9275 test -n "$PTHREAD_CC" && break
9276done
9277test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9278
9279 else
9280 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009281 fi
cristy73bd4a52010-10-05 11:24:23 +00009282else
9283 PTHREAD_CC="$CC"
9284fi
9285
9286
9287
9288
9289
9290# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9291if test x"$ax_pthread_ok" = xyes; then
9292
9293$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9294
9295 :
9296else
9297 ax_pthread_ok=no
9298
9299fi
9300ac_ext=c
9301ac_cpp='$CPP $CPPFLAGS'
9302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9304ac_compiler_gnu=$ac_cv_c_compiler_gnu
9305
9306
cristy7acf8fb2010-09-23 19:58:53 +00009307 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009308 have_threads=yes
9309 DEF_THREAD="$PTHREAD_CFLAGS"
9310 CFLAGS="$CFLAGS $DEF_THREAD"
9311 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9312 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009313 { $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 +00009314$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9315 CC="$PTHREAD_CC"
9316 fi
cristy55bf91c2010-09-24 00:29:41 +00009317
9318$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9319
cristy3ed852e2009-09-05 21:47:34 +00009320 fi
9321fi
9322
9323# Enable support for OpenMP
9324if test "$have_threads" != 'yes'; then
9325 ac_cv_prog_c_openmp=unsupported
9326fi
9327
9328 OPENMP_CFLAGS=
9329 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009330if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009331 enableval=$enable_openmp;
9332fi
9333
9334 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009336$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009337if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009338 $as_echo_n "(cached) " >&6
9339else
cristy8b350f62009-11-15 23:12:43 +00009340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009342
9343#ifndef _OPENMP
9344 choke me
9345#endif
9346#include <omp.h>
9347int main () { return omp_get_num_threads (); }
9348
9349_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009351 ac_cv_prog_c_openmp='none needed'
9352else
cristy8b350f62009-11-15 23:12:43 +00009353 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009354 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9355 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009356 ac_save_CFLAGS=$CFLAGS
9357 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009360
9361#ifndef _OPENMP
9362 choke me
9363#endif
9364#include <omp.h>
9365int main () { return omp_get_num_threads (); }
9366
9367_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009368if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009369 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009370fi
cristy8b350f62009-11-15 23:12:43 +00009371rm -f core conftest.err conftest.$ac_objext \
9372 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009373 CFLAGS=$ac_save_CFLAGS
9374 if test "$ac_cv_prog_c_openmp" != unsupported; then
9375 break
9376 fi
9377 done
9378fi
cristy8b350f62009-11-15 23:12:43 +00009379rm -f core conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009381fi
cristy8b350f62009-11-15 23:12:43 +00009382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009383$as_echo "$ac_cv_prog_c_openmp" >&6; }
9384 case $ac_cv_prog_c_openmp in #(
9385 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009386 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009387 *)
cristy8b350f62009-11-15 23:12:43 +00009388 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009389 esac
9390 fi
9391
9392
9393CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9394MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9395
cristy391f1ce2010-09-09 17:23:28 +00009396if test "$enable_openmp" != no; then
9397 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9398 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9399 fi
9400fi
cristy3ed852e2009-09-05 21:47:34 +00009401
cristy736173a2009-09-20 21:18:22 +00009402# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009403
9404
cristy73bd4a52010-10-05 11:24:23 +00009405ac_ext=c
9406ac_cpp='$CPP $CPPFLAGS'
9407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9409ac_compiler_gnu=$ac_cv_c_compiler_gnu
9410
9411ax_pthread_ok=no
9412
9413# We used to check for pthread.h first, but this fails if pthread.h
9414# requires special compiler flags (e.g. on True64 or Sequent).
9415# It gets checked for in the link test anyway.
9416
9417# First of all, check if the user has set any of the PTHREAD_LIBS,
9418# etcetera environment variables, and if threads linking works using
9419# them:
9420if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9421 save_CFLAGS="$CFLAGS"
9422 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9423 save_LIBS="$LIBS"
9424 LIBS="$PTHREAD_LIBS $LIBS"
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9426$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428/* end confdefs.h. */
9429
9430/* Override any GCC internal prototype to avoid an error.
9431 Use char because int might match the return type of a GCC
9432 builtin and then its argument prototype would still apply. */
9433#ifdef __cplusplus
9434extern "C"
9435#endif
9436char pthread_join ();
9437int
9438main ()
9439{
9440return pthread_join ();
9441 ;
9442 return 0;
9443}
9444_ACEOF
9445if ac_fn_c_try_link "$LINENO"; then :
9446 ax_pthread_ok=yes
9447fi
9448rm -f core conftest.err conftest.$ac_objext \
9449 conftest$ac_exeext conftest.$ac_ext
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9451$as_echo "$ax_pthread_ok" >&6; }
9452 if test x"$ax_pthread_ok" = xno; then
9453 PTHREAD_LIBS=""
9454 PTHREAD_CFLAGS=""
9455 fi
9456 LIBS="$save_LIBS"
9457 CFLAGS="$save_CFLAGS"
9458fi
9459
9460# We must check for the threads library under a number of different
9461# names; the ordering is very important because some systems
9462# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9463# libraries is broken (non-POSIX).
9464
9465# Create a list of thread flags to try. Items starting with a "-" are
9466# C compiler flags, and other items are library names, except for "none"
9467# which indicates that we try without any flags at all, and "pthread-config"
9468# which is a program returning the flags for the Pth emulation library.
9469
cristy18307f12011-12-30 01:20:16 +00009470ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009471
9472# The ordering *is* (sometimes) important. Some notes on the
9473# individual items follow:
9474
9475# pthreads: AIX (must check this before -lpthread)
9476# none: in case threads are in libc; should be tried before -Kthread and
9477# other compiler flags to prevent continual compiler warnings
9478# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9479# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9480# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9481# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9482# -pthreads: Solaris/gcc
9483# -mthreads: Mingw32/gcc, Lynx/gcc
9484# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9485# doesn't hurt to check since this sometimes defines pthreads too;
9486# also defines -D_REENTRANT)
9487# ... -mt is also the pthreads flag for HP/aCC
9488# pthread: Linux, etcetera
9489# --thread-safe: KAI C++
9490# pthread-config: use pthread-config program (for GNU Pth library)
9491
9492case "${host_cpu}-${host_os}" in
9493 *solaris*)
9494
9495 # On Solaris (at least, for some versions), libc contains stubbed
9496 # (non-functional) versions of the pthreads routines, so link-based
9497 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9498 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9499 # a function called by this macro, so we could check for that, but
9500 # who knows whether they'll stub that too in a future libc.) So,
9501 # we'll just look for -pthreads and -lpthread first:
9502
9503 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9504 ;;
9505
cristya316db12011-10-24 00:49:45 +00009506 *-darwin*)
9507 ax_pthread_flags="-pthread $ax_pthread_flags"
9508 ;;
cristy73bd4a52010-10-05 11:24:23 +00009509esac
9510
9511if test x"$ax_pthread_ok" = xno; then
9512for flag in $ax_pthread_flags; do
9513
9514 case $flag in
9515 none)
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9517$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9518 ;;
9519
9520 -*)
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9522$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9523 PTHREAD_CFLAGS="$flag"
9524 ;;
9525
cristya316db12011-10-24 00:49:45 +00009526 pthread-config)
9527 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009528set dummy pthread-config; ac_word=$2
9529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009531if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009532 $as_echo_n "(cached) " >&6
9533else
9534 if test -n "$ax_pthread_config"; then
9535 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9536else
9537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538for as_dir in $PATH
9539do
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009544 ac_cv_prog_ax_pthread_config="yes"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 break 2
9547 fi
9548done
9549 done
9550IFS=$as_save_IFS
9551
9552 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9553fi
9554fi
9555ax_pthread_config=$ac_cv_prog_ax_pthread_config
9556if test -n "$ax_pthread_config"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9558$as_echo "$ax_pthread_config" >&6; }
9559else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561$as_echo "no" >&6; }
9562fi
9563
9564
cristya316db12011-10-24 00:49:45 +00009565 if test x"$ax_pthread_config" = xno; then continue; fi
9566 PTHREAD_CFLAGS="`pthread-config --cflags`"
9567 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9568 ;;
cristy73bd4a52010-10-05 11:24:23 +00009569
9570 *)
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9572$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9573 PTHREAD_LIBS="-l$flag"
9574 ;;
9575 esac
9576
9577 save_LIBS="$LIBS"
9578 save_CFLAGS="$CFLAGS"
9579 LIBS="$PTHREAD_LIBS $LIBS"
9580 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9581
9582 # Check for various functions. We must include pthread.h,
9583 # since some functions may be macros. (On the Sequent, we
9584 # need a special flag -Kthread to make this header compile.)
9585 # We check for pthread_join because it is in -lpthread on IRIX
9586 # while pthread_create is in libc. We check for pthread_attr_init
9587 # due to DEC craziness with -lpthreads. We check for
9588 # pthread_cleanup_push because it is one of the few pthread
9589 # functions on Solaris that doesn't have a non-functional libc stub.
9590 # We try pthread_create on general principles.
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592/* end confdefs.h. */
9593#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009594 static void routine(void *a) { a = 0; }
9595 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009596int
9597main ()
9598{
9599pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009600 pthread_create(&th, 0, start_routine, 0);
9601 pthread_join(th, 0);
9602 pthread_attr_init(&attr);
9603 pthread_cleanup_push(routine, 0);
9604 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009605 ;
9606 return 0;
9607}
9608_ACEOF
9609if ac_fn_c_try_link "$LINENO"; then :
9610 ax_pthread_ok=yes
9611fi
9612rm -f core conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614
9615 LIBS="$save_LIBS"
9616 CFLAGS="$save_CFLAGS"
9617
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9619$as_echo "$ax_pthread_ok" >&6; }
9620 if test "x$ax_pthread_ok" = xyes; then
9621 break;
9622 fi
9623
9624 PTHREAD_LIBS=""
9625 PTHREAD_CFLAGS=""
9626done
9627fi
9628
9629# Various other checks:
9630if test "x$ax_pthread_ok" = xyes; then
9631 save_LIBS="$LIBS"
9632 LIBS="$PTHREAD_LIBS $LIBS"
9633 save_CFLAGS="$CFLAGS"
9634 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9635
9636 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009638$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009639 attr_name=unknown
9640 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009642/* end confdefs.h. */
9643#include <pthread.h>
9644int
9645main ()
9646{
cristya316db12011-10-24 00:49:45 +00009647int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009648 ;
9649 return 0;
9650}
9651_ACEOF
9652if ac_fn_c_try_link "$LINENO"; then :
9653 attr_name=$attr; break
9654fi
9655rm -f core conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009657 done
cristy73bd4a52010-10-05 11:24:23 +00009658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9659$as_echo "$attr_name" >&6; }
9660 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9661
9662cat >>confdefs.h <<_ACEOF
9663#define PTHREAD_CREATE_JOINABLE $attr_name
9664_ACEOF
9665
9666 fi
9667
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9669$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9670 flag=no
9671 case "${host_cpu}-${host_os}" in
9672 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9673 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9674 esac
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9676$as_echo "${flag}" >&6; }
9677 if test "x$flag" != xno; then
9678 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9679 fi
9680
cristya316db12011-10-24 00:49:45 +00009681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9682$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9683if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9684 $as_echo_n "(cached) " >&6
9685else
9686
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688/* end confdefs.h. */
9689
9690 #include <pthread.h>
9691int
9692main ()
9693{
9694int i = PTHREAD_PRIO_INHERIT;
9695 ;
9696 return 0;
9697}
9698_ACEOF
9699if ac_fn_c_try_link "$LINENO"; then :
9700 ax_cv_PTHREAD_PRIO_INHERIT=yes
9701else
9702 ax_cv_PTHREAD_PRIO_INHERIT=no
9703fi
9704rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
9706
9707fi
9708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9709$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9710 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9711
9712$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9713
9714fi
9715
cristy73bd4a52010-10-05 11:24:23 +00009716 LIBS="$save_LIBS"
9717 CFLAGS="$save_CFLAGS"
9718
9719 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009720 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009721 for ac_prog in xlc_r cc_r
9722do
9723 # Extract the first word of "$ac_prog", so it can be a program name with args.
9724set dummy $ac_prog; ac_word=$2
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9726$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009727if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009728 $as_echo_n "(cached) " >&6
9729else
9730 if test -n "$PTHREAD_CC"; then
9731 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9732else
9733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734for as_dir in $PATH
9735do
9736 IFS=$as_save_IFS
9737 test -z "$as_dir" && as_dir=.
9738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009740 ac_cv_prog_PTHREAD_CC="$ac_prog"
9741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 break 2
9743 fi
9744done
9745 done
9746IFS=$as_save_IFS
9747
9748fi
9749fi
9750PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9751if test -n "$PTHREAD_CC"; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9753$as_echo "$PTHREAD_CC" >&6; }
9754else
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756$as_echo "no" >&6; }
9757fi
9758
9759
9760 test -n "$PTHREAD_CC" && break
9761done
9762test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9763
9764 else
9765 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009766 fi
cristy73bd4a52010-10-05 11:24:23 +00009767else
9768 PTHREAD_CC="$CC"
9769fi
9770
9771
9772
9773
9774
9775# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9776if test x"$ax_pthread_ok" = xyes; then
9777
9778$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9779
9780 :
9781else
9782 ax_pthread_ok=no
9783
9784fi
9785ac_ext=c
9786ac_cpp='$CPP $CPPFLAGS'
9787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9789ac_compiler_gnu=$ac_cv_c_compiler_gnu
9790
9791
9792
9793# Check whether --enable-opencl was given.
9794if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009795 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009796else
cristy48794642012-09-02 15:19:08 +00009797 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009798fi
9799
9800
cristy48794642012-09-02 15:19:08 +00009801if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009802 ac_ext=c
9803ac_cpp='$CPP $CPPFLAGS'
9804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9806ac_compiler_gnu=$ac_cv_c_compiler_gnu
9807
cristy75314cc2012-09-15 23:08:29 +00009808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9809$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9810if ${ax_cv_c_compiler_ms+:} false; then :
9811 $as_echo_n "(cached) " >&6
9812else
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h. */
9815
9816int
9817main ()
9818{
9819#ifndef _MSC_VER
9820 choke me
9821#endif
9822
9823 ;
9824 return 0;
9825}
9826_ACEOF
9827if ac_fn_c_try_compile "$LINENO"; then :
9828 ax_compiler_ms=yes
9829else
9830 ax_compiler_ms=no
9831fi
9832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833ax_cv_c_compiler_ms=$ax_compiler_ms
9834
9835fi
9836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9837$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009838 if test X$ax_compiler_ms = Xno; then :
9839 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9840fi
9841
9842 ax_save_CPPFLAGS=$CPPFLAGS
9843 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9844 for ac_header in CL/cl.h OpenCL/cl.h
9845do :
9846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9847ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009848if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009849 cat >>confdefs.h <<_ACEOF
9850#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9851_ACEOF
9852
9853fi
9854
9855done
9856
9857 CPPFLAGS=$ax_save_CPPFLAGS
9858
9859 for ac_header in windows.h
9860do :
9861 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009862if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009863 cat >>confdefs.h <<_ACEOF
9864#define HAVE_WINDOWS_H 1
9865_ACEOF
9866
9867fi
9868
9869done
9870
9871
9872
9873
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9875$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009876if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009877 $as_echo_n "(cached) " >&6
9878else
9879 ax_cv_check_cl_libcl=no
9880 case $host_cpu in
9881 x86_64) ax_check_cl_libdir=lib64 ;;
9882 *) ax_check_cl_libdir=lib ;;
9883 esac
9884 ax_save_CPPFLAGS=$CPPFLAGS
9885 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9886 ax_save_LIBS=$LIBS
9887 LIBS=""
9888 ax_check_libs="-lOpenCL -lCL -lclparser"
9889 for ax_lib in $ax_check_libs; do
9890 if test X$ax_compiler_ms = Xyes; then :
9891 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9892else
9893 ax_try_lib=$ax_lib
9894fi
9895 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897/* end confdefs.h. */
9898
9899 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9900 # include <windows.h>
9901 # endif
9902 # ifdef HAVE_CL_CL_H
9903 # include <CL/cl.h>
9904 # elif defined(HAVE_OPENCL_CL_H)
9905 # include <OpenCL/cl.h>
9906 # else
9907 # error no CL.h
9908 # endif
9909int
9910main ()
9911{
9912clCreateContextFromType(0,0,0,0,0)
9913 ;
9914 return 0;
9915}
9916_ACEOF
9917if ac_fn_c_try_link "$LINENO"; then :
9918 ax_cv_check_cl_libcl=$ax_try_lib; break
9919else
9920 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"
9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922/* end confdefs.h. */
9923
9924 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9925 # include <windows.h>
9926 # endif
9927 # ifdef HAVE_CL_CL_H
9928 # include <CL/cl.h>
9929 # elif defined(HAVE_OPENCL_CL_H)
9930 # include <OpenCL/cl.h>
9931 # else
9932 # error no CL.h
9933 # endif
9934int
9935main ()
9936{
9937clCreateContextFromType(0,0,0,0,0)
9938 ;
9939 return 0;
9940}
9941_ACEOF
9942if ac_fn_c_try_link "$LINENO"; then :
9943 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9944else
cristy78c5a0c2010-12-04 20:00:59 +00009945 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 +00009946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947/* end confdefs.h. */
9948
9949 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9950 # include <windows.h>
9951 # endif
9952 # ifdef HAVE_CL_CL_H
9953 # include <CL/cl.h>
9954 # elif defined(HAVE_OPENCL_CL_H)
9955 # include <OpenCL/cl.h>
9956 # else
9957 # error no CL.h
9958 # endif
9959int
9960main ()
9961{
9962clCreateContextFromType(0,0,0,0,0)
9963 ;
9964 return 0;
9965}
9966_ACEOF
9967if ac_fn_c_try_link "$LINENO"; then :
9968 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9969fi
9970rm -f core conftest.err conftest.$ac_objext \
9971 conftest$ac_exeext conftest.$ac_ext
9972fi
9973rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975fi
9976rm -f core conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9978 done
9979
cristyc3f8b8e2011-12-22 14:55:16 +00009980 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009981 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983/* end confdefs.h. */
9984
9985 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9986 # include <windows.h>
9987 # endif
9988 # ifdef HAVE_CL_CL_H
9989 # include <CL/cl.h>
9990 # elif defined(HAVE_OPENCL_CL_H)
9991 # include <OpenCL/cl.h>
9992 # else
9993 # error no CL.h
9994 # endif
9995int
9996main ()
9997{
9998clCreateContextFromType(0,0,0,0,0)
9999 ;
10000 return 0;
10001}
10002_ACEOF
10003if ac_fn_c_try_link "$LINENO"; then :
10004 ax_cv_check_cl_libcl=$LIBS
10005fi
10006rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008fi
10009
10010 LIBS=$ax_save_LIBS
10011 CPPFLAGS=$ax_save_CPPFLAGS
10012fi
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10014$as_echo "$ax_cv_check_cl_libcl" >&6; }
10015
10016 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10017 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10018else
10019 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10020$as_echo "#define _OPENCL 1" >>confdefs.h
10021
10022fi
10023 ac_ext=c
10024ac_cpp='$CPP $CPPFLAGS'
10025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10027ac_compiler_gnu=$ac_cv_c_compiler_gnu
10028
10029fi
10030
10031
10032
10033
cristyc7083c12009-10-14 03:16:55 +000010034CFLAGS="$CL_CFLAGS $CFLAGS"
10035LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010036
cristy391f1ce2010-09-09 17:23:28 +000010037if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010038 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010039 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10040 fi
cristyfd9dcd42010-08-08 18:07:02 +000010041fi
cristy2e8b51d2009-10-17 18:26:15 +000010042
cristy3ed852e2009-09-05 21:47:34 +000010043########
10044#
10045# Check for large file support
10046#
10047########
10048# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010049if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010050 enableval=$enable_largefile;
10051fi
10052
10053if test "$enable_largefile" != no; then
10054
cristy8b350f62009-11-15 23:12:43 +000010055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010056$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010057if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010058 $as_echo_n "(cached) " >&6
10059else
10060 ac_cv_sys_largefile_CC=no
10061 if test "$GCC" != yes; then
10062 ac_save_CC=$CC
10063 while :; do
10064 # IRIX 6.2 and later do not support large files by default,
10065 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010067/* end confdefs.h. */
10068#include <sys/types.h>
10069 /* Check that off_t can represent 2**63 - 1 correctly.
10070 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10071 since some C++ compilers masquerading as C compilers
10072 incorrectly reject 9223372036854775807. */
10073#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10074 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10075 && LARGE_OFF_T % 2147483647 == 1)
10076 ? 1 : -1];
10077int
10078main ()
10079{
10080
10081 ;
10082 return 0;
10083}
10084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010085 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010086 break
cristy3ed852e2009-09-05 21:47:34 +000010087fi
cristy3ed852e2009-09-05 21:47:34 +000010088rm -f core conftest.err conftest.$ac_objext
10089 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010090 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010091 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010092fi
cristy3ed852e2009-09-05 21:47:34 +000010093rm -f core conftest.err conftest.$ac_objext
10094 break
10095 done
10096 CC=$ac_save_CC
10097 rm -f conftest.$ac_ext
10098 fi
10099fi
cristy8b350f62009-11-15 23:12:43 +000010100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010101$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10102 if test "$ac_cv_sys_largefile_CC" != no; then
10103 CC=$CC$ac_cv_sys_largefile_CC
10104 fi
10105
cristy8b350f62009-11-15 23:12:43 +000010106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010107$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010108if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010109 $as_echo_n "(cached) " >&6
10110else
10111 while :; do
cristy8b350f62009-11-15 23:12:43 +000010112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010113/* end confdefs.h. */
10114#include <sys/types.h>
10115 /* Check that off_t can represent 2**63 - 1 correctly.
10116 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10117 since some C++ compilers masquerading as C compilers
10118 incorrectly reject 9223372036854775807. */
10119#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10121 && LARGE_OFF_T % 2147483647 == 1)
10122 ? 1 : -1];
10123int
10124main ()
10125{
10126
10127 ;
10128 return 0;
10129}
10130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010131if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010132 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010133fi
cristy3ed852e2009-09-05 21:47:34 +000010134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010136/* end confdefs.h. */
10137#define _FILE_OFFSET_BITS 64
10138#include <sys/types.h>
10139 /* Check that off_t can represent 2**63 - 1 correctly.
10140 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10141 since some C++ compilers masquerading as C compilers
10142 incorrectly reject 9223372036854775807. */
10143#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10145 && LARGE_OFF_T % 2147483647 == 1)
10146 ? 1 : -1];
10147int
10148main ()
10149{
10150
10151 ;
10152 return 0;
10153}
10154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010155if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010156 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010157fi
cristy3ed852e2009-09-05 21:47:34 +000010158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 ac_cv_sys_file_offset_bits=unknown
10160 break
10161done
10162fi
cristy8b350f62009-11-15 23:12:43 +000010163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010164$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10165case $ac_cv_sys_file_offset_bits in #(
10166 no | unknown) ;;
10167 *)
10168cat >>confdefs.h <<_ACEOF
10169#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10170_ACEOF
10171;;
10172esac
10173rm -rf conftest*
10174 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010176$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010177if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010178 $as_echo_n "(cached) " >&6
10179else
10180 while :; do
cristy8b350f62009-11-15 23:12:43 +000010181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010182/* end confdefs.h. */
10183#include <sys/types.h>
10184 /* Check that off_t can represent 2**63 - 1 correctly.
10185 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10186 since some C++ compilers masquerading as C compilers
10187 incorrectly reject 9223372036854775807. */
10188#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10189 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10190 && LARGE_OFF_T % 2147483647 == 1)
10191 ? 1 : -1];
10192int
10193main ()
10194{
10195
10196 ;
10197 return 0;
10198}
10199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010200if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010201 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010202fi
cristy3ed852e2009-09-05 21:47:34 +000010203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010205/* end confdefs.h. */
10206#define _LARGE_FILES 1
10207#include <sys/types.h>
10208 /* Check that off_t can represent 2**63 - 1 correctly.
10209 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10210 since some C++ compilers masquerading as C compilers
10211 incorrectly reject 9223372036854775807. */
10212#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10213 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10214 && LARGE_OFF_T % 2147483647 == 1)
10215 ? 1 : -1];
10216int
10217main ()
10218{
10219
10220 ;
10221 return 0;
10222}
10223_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010224if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010225 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010226fi
cristy3ed852e2009-09-05 21:47:34 +000010227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 ac_cv_sys_large_files=unknown
10229 break
10230done
10231fi
cristy8b350f62009-11-15 23:12:43 +000010232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010233$as_echo "$ac_cv_sys_large_files" >&6; }
10234case $ac_cv_sys_large_files in #(
10235 no | unknown) ;;
10236 *)
10237cat >>confdefs.h <<_ACEOF
10238#define _LARGE_FILES $ac_cv_sys_large_files
10239_ACEOF
10240;;
10241esac
10242rm -rf conftest*
10243 fi
cristy14fefe52012-05-21 00:59:18 +000010244
10245
cristy3ed852e2009-09-05 21:47:34 +000010246fi
10247
cristy8b350f62009-11-15 23:12:43 +000010248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010249$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010250if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010251 $as_echo_n "(cached) " >&6
10252else
10253 while :; do
cristy8b350f62009-11-15 23:12:43 +000010254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010255/* end confdefs.h. */
10256#include <sys/types.h> /* for off_t */
10257 #include <stdio.h>
10258int
10259main ()
10260{
10261int (*fp) (FILE *, off_t, int) = fseeko;
10262 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10263 ;
10264 return 0;
10265}
10266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010267if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010268 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010269fi
cristy8b350f62009-11-15 23:12:43 +000010270rm -f core conftest.err conftest.$ac_objext \
10271 conftest$ac_exeext conftest.$ac_ext
10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010273/* end confdefs.h. */
10274#define _LARGEFILE_SOURCE 1
10275#include <sys/types.h> /* for off_t */
10276 #include <stdio.h>
10277int
10278main ()
10279{
10280int (*fp) (FILE *, off_t, int) = fseeko;
10281 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10282 ;
10283 return 0;
10284}
10285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010286if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010287 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010288fi
cristy8b350f62009-11-15 23:12:43 +000010289rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010291 ac_cv_sys_largefile_source=unknown
10292 break
10293done
10294fi
cristy8b350f62009-11-15 23:12:43 +000010295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010296$as_echo "$ac_cv_sys_largefile_source" >&6; }
10297case $ac_cv_sys_largefile_source in #(
10298 no | unknown) ;;
10299 *)
10300cat >>confdefs.h <<_ACEOF
10301#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10302_ACEOF
10303;;
10304esac
10305rm -rf conftest*
10306
10307# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10308# in glibc 2.1.3, but that breaks too many other things.
10309# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10310if test $ac_cv_sys_largefile_source != unknown; then
10311
cristy8b350f62009-11-15 23:12:43 +000010312$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010313
10314fi
10315
10316LFS_CPPFLAGS=''
10317if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010318 case $ac_cv_sys_file_offset_bits in
10319 no)
10320 # nothing to do here as the host supports LFS fine
10321 ;;
10322 unknown)
cristy8b350f62009-11-15 23:12:43 +000010323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010324$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010325 if test "$cross_compiling" = yes; then :
10326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010328as_fn_error $? "cannot run test program while cross compiling
10329See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010330else
cristy8b350f62009-11-15 23:12:43 +000010331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010333#include <unistd.h>
10334 main () {
10335 exit(!(sizeof(off_t) == 8));
10336 }
cristyda16f162011-02-19 23:52:17 +000010337int
10338main ()
10339{
10340
10341 ;
10342 return 0;
10343}
cristy3ed852e2009-09-05 21:47:34 +000010344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010345if ac_fn_c_try_run "$LINENO"; then :
10346 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010347
cristy09b53e12011-10-14 12:47:22 +000010348 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10349$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010350else
cristy09b53e12011-10-14 12:47:22 +000010351 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10352$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010353fi
cristy8b350f62009-11-15 23:12:43 +000010354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10355 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010356fi
10357
cristyc1e0cc12011-09-21 16:41:16 +000010358 ;;
10359 *)
10360 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10361 ;;
10362 esac
cristy3ed852e2009-09-05 21:47:34 +000010363 if test "$ac_cv_sys_large_files" != 'no'; then
10364 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10365 fi
10366 if test "$ac_cv_sys_largefile_source" != 'no'; then
10367 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10368 fi
10369fi
10370
10371
cristy3ed852e2009-09-05 21:47:34 +000010372# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010373enable_dlopen=yes
10374
10375
10376
10377case `pwd` in
10378 *\ * | *\ *)
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10380$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10381esac
10382
10383
10384
cristy99bd5232011-12-07 14:38:20 +000010385macro_version='2.4.2'
10386macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400ltmain="$ac_aux_dir/ltmain.sh"
10401
cristy0c60a692010-11-04 01:09:47 +000010402# Backslashify metacharacters that are still active within
10403# double-quoted strings.
10404sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10405
10406# Same as above, but do not quote variable references.
10407double_quote_subst='s/\(["`\\]\)/\\\1/g'
10408
10409# Sed substitution to delay expansion of an escaped shell variable in a
10410# double_quote_subst'ed string.
10411delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10412
10413# Sed substitution to delay expansion of an escaped single quote.
10414delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10415
10416# Sed substitution to avoid accidental globbing in evaled expressions
10417no_glob_subst='s/\*/\\\*/g'
10418
cristy73bd4a52010-10-05 11:24:23 +000010419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10420$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010421if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010422 $as_echo_n "(cached) " >&6
10423else
10424 if test -n "$NM"; then
10425 # Let the user override the test.
10426 lt_cv_path_NM="$NM"
10427else
10428 lt_nm_to_check="${ac_tool_prefix}nm"
10429 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10430 lt_nm_to_check="$lt_nm_to_check nm"
10431 fi
10432 for lt_tmp_nm in $lt_nm_to_check; do
10433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10434 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10435 IFS="$lt_save_ifs"
10436 test -z "$ac_dir" && ac_dir=.
10437 tmp_nm="$ac_dir/$lt_tmp_nm"
10438 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10439 # Check to see if the nm accepts a BSD-compat flag.
10440 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10441 # nm: unknown option "B" ignored
10442 # Tru64's nm complains that /dev/null is an invalid object file
10443 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10444 */dev/null* | *'Invalid file or object type'*)
10445 lt_cv_path_NM="$tmp_nm -B"
10446 break
10447 ;;
10448 *)
10449 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10450 */dev/null*)
10451 lt_cv_path_NM="$tmp_nm -p"
10452 break
10453 ;;
10454 *)
10455 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10456 continue # so that we can try to find one that supports BSD flags
10457 ;;
10458 esac
10459 ;;
10460 esac
10461 fi
10462 done
10463 IFS="$lt_save_ifs"
10464 done
10465 : ${lt_cv_path_NM=no}
10466fi
10467fi
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10469$as_echo "$lt_cv_path_NM" >&6; }
10470if test "$lt_cv_path_NM" != "no"; then
10471 NM="$lt_cv_path_NM"
10472else
10473 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010474 if test -n "$DUMPBIN"; then :
10475 # Let the user override the test.
10476 else
10477 if test -n "$ac_tool_prefix"; then
10478 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010479 do
10480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10481set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010484if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010485 $as_echo_n "(cached) " >&6
10486else
10487 if test -n "$DUMPBIN"; then
10488 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10489else
10490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491for as_dir in $PATH
10492do
10493 IFS=$as_save_IFS
10494 test -z "$as_dir" && as_dir=.
10495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010497 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499 break 2
10500 fi
10501done
10502 done
10503IFS=$as_save_IFS
10504
10505fi
10506fi
10507DUMPBIN=$ac_cv_prog_DUMPBIN
10508if test -n "$DUMPBIN"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10510$as_echo "$DUMPBIN" >&6; }
10511else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513$as_echo "no" >&6; }
10514fi
10515
10516
10517 test -n "$DUMPBIN" && break
10518 done
10519fi
10520if test -z "$DUMPBIN"; then
10521 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010522 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010523do
10524 # Extract the first word of "$ac_prog", so it can be a program name with args.
10525set dummy $ac_prog; ac_word=$2
10526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10527$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010528if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010529 $as_echo_n "(cached) " >&6
10530else
10531 if test -n "$ac_ct_DUMPBIN"; then
10532 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10533else
10534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535for as_dir in $PATH
10536do
10537 IFS=$as_save_IFS
10538 test -z "$as_dir" && as_dir=.
10539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010541 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543 break 2
10544 fi
10545done
10546 done
10547IFS=$as_save_IFS
10548
10549fi
10550fi
10551ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10552if test -n "$ac_ct_DUMPBIN"; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10554$as_echo "$ac_ct_DUMPBIN" >&6; }
10555else
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557$as_echo "no" >&6; }
10558fi
10559
10560
10561 test -n "$ac_ct_DUMPBIN" && break
10562done
10563
10564 if test "x$ac_ct_DUMPBIN" = x; then
10565 DUMPBIN=":"
10566 else
10567 case $cross_compiling:$ac_tool_warned in
10568yes:)
10569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10571ac_tool_warned=yes ;;
10572esac
10573 DUMPBIN=$ac_ct_DUMPBIN
10574 fi
10575fi
10576
cristy0c60a692010-11-04 01:09:47 +000010577 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10578 *COFF*)
10579 DUMPBIN="$DUMPBIN -symbols"
10580 ;;
10581 *)
10582 DUMPBIN=:
10583 ;;
10584 esac
10585 fi
cristy73bd4a52010-10-05 11:24:23 +000010586
10587 if test "$DUMPBIN" != ":"; then
10588 NM="$DUMPBIN"
10589 fi
10590fi
10591test -z "$NM" && NM=nm
10592
10593
10594
10595
10596
10597
10598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10599$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010600if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010601 $as_echo_n "(cached) " >&6
10602else
10603 lt_cv_nm_interface="BSD nm"
10604 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010605 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010606 (eval "$ac_compile" 2>conftest.err)
10607 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010608 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010609 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10610 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010611 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010612 cat conftest.out >&5
10613 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10614 lt_cv_nm_interface="MS dumpbin"
10615 fi
10616 rm -f conftest*
10617fi
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10619$as_echo "$lt_cv_nm_interface" >&6; }
10620
10621# find the maximum length of command line arguments
10622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10623$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010624if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010625 $as_echo_n "(cached) " >&6
10626else
10627 i=0
10628 teststring="ABCD"
10629
10630 case $build_os in
10631 msdosdjgpp*)
10632 # On DJGPP, this test can blow up pretty badly due to problems in libc
10633 # (any single argument exceeding 2000 bytes causes a buffer overrun
10634 # during glob expansion). Even if it were fixed, the result of this
10635 # check would be larger than it should be.
10636 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10637 ;;
10638
10639 gnu*)
10640 # Under GNU Hurd, this test is not required because there is
10641 # no limit to the length of command line arguments.
10642 # Libtool will interpret -1 as no limit whatsoever
10643 lt_cv_sys_max_cmd_len=-1;
10644 ;;
10645
10646 cygwin* | mingw* | cegcc*)
10647 # On Win9x/ME, this test blows up -- it succeeds, but takes
10648 # about 5 minutes as the teststring grows exponentially.
10649 # Worse, since 9x/ME are not pre-emptively multitasking,
10650 # you end up with a "frozen" computer, even though with patience
10651 # the test eventually succeeds (with a max line length of 256k).
10652 # Instead, let's just punt: use the minimum linelength reported by
10653 # all of the supported platforms: 8192 (on NT/2K/XP).
10654 lt_cv_sys_max_cmd_len=8192;
10655 ;;
10656
cristy0c60a692010-11-04 01:09:47 +000010657 mint*)
10658 # On MiNT this can take a long time and run out of memory.
10659 lt_cv_sys_max_cmd_len=8192;
10660 ;;
10661
cristy73bd4a52010-10-05 11:24:23 +000010662 amigaos*)
10663 # On AmigaOS with pdksh, this test takes hours, literally.
10664 # So we just punt and use a minimum line length of 8192.
10665 lt_cv_sys_max_cmd_len=8192;
10666 ;;
10667
10668 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10669 # This has been around since 386BSD, at least. Likely further.
10670 if test -x /sbin/sysctl; then
10671 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10672 elif test -x /usr/sbin/sysctl; then
10673 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10674 else
10675 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10676 fi
10677 # And add a safety zone
10678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10680 ;;
10681
10682 interix*)
10683 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10684 lt_cv_sys_max_cmd_len=196608
10685 ;;
10686
cristy99bd5232011-12-07 14:38:20 +000010687 os2*)
10688 # The test takes a long time on OS/2.
10689 lt_cv_sys_max_cmd_len=8192
10690 ;;
10691
cristy73bd4a52010-10-05 11:24:23 +000010692 osf*)
10693 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10694 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10695 # nice to cause kernel panics so lets avoid the loop below.
10696 # First set a reasonable default.
10697 lt_cv_sys_max_cmd_len=16384
10698 #
10699 if test -x /sbin/sysconfig; then
10700 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10701 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10702 esac
10703 fi
10704 ;;
10705 sco3.2v5*)
10706 lt_cv_sys_max_cmd_len=102400
10707 ;;
10708 sysv5* | sco5v6* | sysv4.2uw2*)
10709 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10710 if test -n "$kargmax"; then
10711 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10712 else
10713 lt_cv_sys_max_cmd_len=32768
10714 fi
10715 ;;
10716 *)
10717 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10718 if test -n "$lt_cv_sys_max_cmd_len"; then
10719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10721 else
10722 # Make teststring a little bigger before we do anything with it.
10723 # a 1K string should be a reasonable start.
10724 for i in 1 2 3 4 5 6 7 8 ; do
10725 teststring=$teststring$teststring
10726 done
10727 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10728 # If test is not a shell built-in, we'll probably end up computing a
10729 # maximum length that is only half of the actual maximum length, but
10730 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010731 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010732 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010733 test $i != 17 # 1/2 MB should be enough
10734 do
10735 i=`expr $i + 1`
10736 teststring=$teststring$teststring
10737 done
10738 # Only check the string length outside the loop.
10739 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10740 teststring=
10741 # Add a significant safety factor because C++ compilers can tack on
10742 # massive amounts of additional arguments before passing them to the
10743 # linker. It appears as though 1/2 is a usable value.
10744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10745 fi
10746 ;;
10747 esac
10748
10749fi
10750
10751if test -n $lt_cv_sys_max_cmd_len ; then
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10753$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10754else
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10756$as_echo "none" >&6; }
10757fi
10758max_cmd_len=$lt_cv_sys_max_cmd_len
10759
10760
10761
10762
10763
10764
10765: ${CP="cp -f"}
10766: ${MV="mv -f"}
10767: ${RM="rm -f"}
10768
10769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10770$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10771# Try some XSI features
10772xsi_shell=no
10773( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010774 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10775 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010776 && eval 'test $(( 1 + 1 )) -eq 2 \
10777 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10778 && xsi_shell=yes
10779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10780$as_echo "$xsi_shell" >&6; }
10781
10782
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10784$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10785lt_shell_append=no
10786( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10787 >/dev/null 2>&1 \
10788 && lt_shell_append=yes
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10790$as_echo "$lt_shell_append" >&6; }
10791
10792
10793if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10794 lt_unset=unset
10795else
10796 lt_unset=false
10797fi
10798
10799
10800
10801
10802
10803# test EBCDIC or ASCII
10804case `echo X|tr X '\101'` in
10805 A) # ASCII based system
10806 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10807 lt_SP2NL='tr \040 \012'
10808 lt_NL2SP='tr \015\012 \040\040'
10809 ;;
10810 *) # EBCDIC based system
10811 lt_SP2NL='tr \100 \n'
10812 lt_NL2SP='tr \r\n \100\100'
10813 ;;
10814esac
10815
10816
10817
10818
10819
10820
10821
10822
10823
cristyda16f162011-02-19 23:52:17 +000010824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10825$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10826if ${lt_cv_to_host_file_cmd+:} false; then :
10827 $as_echo_n "(cached) " >&6
10828else
10829 case $host in
10830 *-*-mingw* )
10831 case $build in
10832 *-*-mingw* ) # actually msys
10833 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10834 ;;
10835 *-*-cygwin* )
10836 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10837 ;;
10838 * ) # otherwise, assume *nix
10839 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10840 ;;
10841 esac
10842 ;;
10843 *-*-cygwin* )
10844 case $build in
10845 *-*-mingw* ) # actually msys
10846 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10847 ;;
10848 *-*-cygwin* )
10849 lt_cv_to_host_file_cmd=func_convert_file_noop
10850 ;;
10851 * ) # otherwise, assume *nix
10852 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10853 ;;
10854 esac
10855 ;;
10856 * ) # unhandled hosts (and "normal" native builds)
10857 lt_cv_to_host_file_cmd=func_convert_file_noop
10858 ;;
10859esac
10860
10861fi
10862
10863to_host_file_cmd=$lt_cv_to_host_file_cmd
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10865$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10866
10867
10868
10869
10870
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10872$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10873if ${lt_cv_to_tool_file_cmd+:} false; then :
10874 $as_echo_n "(cached) " >&6
10875else
10876 #assume ordinary cross tools, or native build.
10877lt_cv_to_tool_file_cmd=func_convert_file_noop
10878case $host in
10879 *-*-mingw* )
10880 case $build in
10881 *-*-mingw* ) # actually msys
10882 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10883 ;;
10884 esac
10885 ;;
10886esac
10887
10888fi
10889
10890to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10892$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10893
10894
10895
10896
10897
cristy73bd4a52010-10-05 11:24:23 +000010898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10899$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010900if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010901 $as_echo_n "(cached) " >&6
10902else
10903 lt_cv_ld_reload_flag='-r'
10904fi
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10906$as_echo "$lt_cv_ld_reload_flag" >&6; }
10907reload_flag=$lt_cv_ld_reload_flag
10908case $reload_flag in
10909"" | " "*) ;;
10910*) reload_flag=" $reload_flag" ;;
10911esac
10912reload_cmds='$LD$reload_flag -o $output$reload_objs'
10913case $host_os in
cristyda16f162011-02-19 23:52:17 +000010914 cygwin* | mingw* | pw32* | cegcc*)
10915 if test "$GCC" != yes; then
10916 reload_cmds=false
10917 fi
10918 ;;
cristy73bd4a52010-10-05 11:24:23 +000010919 darwin*)
10920 if test "$GCC" = yes; then
10921 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10922 else
10923 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10924 fi
10925 ;;
10926esac
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936if test -n "$ac_tool_prefix"; then
10937 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10938set dummy ${ac_tool_prefix}objdump; ac_word=$2
10939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010941if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010942 $as_echo_n "(cached) " >&6
10943else
10944 if test -n "$OBJDUMP"; then
10945 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10946else
10947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948for as_dir in $PATH
10949do
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
10952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010954 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10956 break 2
10957 fi
10958done
10959 done
10960IFS=$as_save_IFS
10961
10962fi
10963fi
10964OBJDUMP=$ac_cv_prog_OBJDUMP
10965if test -n "$OBJDUMP"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10967$as_echo "$OBJDUMP" >&6; }
10968else
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970$as_echo "no" >&6; }
10971fi
10972
10973
10974fi
10975if test -z "$ac_cv_prog_OBJDUMP"; then
10976 ac_ct_OBJDUMP=$OBJDUMP
10977 # Extract the first word of "objdump", so it can be a program name with args.
10978set dummy objdump; ac_word=$2
10979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10980$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010981if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010982 $as_echo_n "(cached) " >&6
10983else
10984 if test -n "$ac_ct_OBJDUMP"; then
10985 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10986else
10987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988for as_dir in $PATH
10989do
10990 IFS=$as_save_IFS
10991 test -z "$as_dir" && as_dir=.
10992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010994 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10996 break 2
10997 fi
10998done
10999 done
11000IFS=$as_save_IFS
11001
11002fi
11003fi
11004ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11005if test -n "$ac_ct_OBJDUMP"; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11007$as_echo "$ac_ct_OBJDUMP" >&6; }
11008else
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010$as_echo "no" >&6; }
11011fi
11012
11013 if test "x$ac_ct_OBJDUMP" = x; then
11014 OBJDUMP="false"
11015 else
11016 case $cross_compiling:$ac_tool_warned in
11017yes:)
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11020ac_tool_warned=yes ;;
11021esac
11022 OBJDUMP=$ac_ct_OBJDUMP
11023 fi
11024else
11025 OBJDUMP="$ac_cv_prog_OBJDUMP"
11026fi
11027
11028test -z "$OBJDUMP" && OBJDUMP=objdump
11029
11030
11031
11032
11033
11034
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11036$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011037if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011038 $as_echo_n "(cached) " >&6
11039else
11040 lt_cv_file_magic_cmd='$MAGIC_CMD'
11041lt_cv_file_magic_test_file=
11042lt_cv_deplibs_check_method='unknown'
11043# Need to set the preceding variable on all platforms that support
11044# interlibrary dependencies.
11045# 'none' -- dependencies not supported.
11046# `unknown' -- same as none, but documents that we really don't know.
11047# 'pass_all' -- all dependencies passed with no checks.
11048# 'test_compile' -- check by making test program.
11049# 'file_magic [[regex]]' -- check by looking for files in library path
11050# which responds to the $file_magic_cmd with a given extended regex.
11051# If you have `file' or equivalent on your system and you're not sure
11052# whether `pass_all' will *always* work, you probably want this one.
11053
11054case $host_os in
11055aix[4-9]*)
11056 lt_cv_deplibs_check_method=pass_all
11057 ;;
11058
11059beos*)
11060 lt_cv_deplibs_check_method=pass_all
11061 ;;
11062
11063bsdi[45]*)
11064 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11065 lt_cv_file_magic_cmd='/usr/bin/file -L'
11066 lt_cv_file_magic_test_file=/shlib/libc.so
11067 ;;
11068
11069cygwin*)
11070 # func_win32_libid is a shell function defined in ltmain.sh
11071 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11072 lt_cv_file_magic_cmd='func_win32_libid'
11073 ;;
11074
11075mingw* | pw32*)
11076 # Base MSYS/MinGW do not provide the 'file' command needed by
11077 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11078 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011079 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11080 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011081 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11082 lt_cv_file_magic_cmd='func_win32_libid'
11083 else
cristy0c60a692010-11-04 01:09:47 +000011084 # Keep this pattern in sync with the one in func_win32_libid.
11085 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 +000011086 lt_cv_file_magic_cmd='$OBJDUMP -f'
11087 fi
11088 ;;
11089
cristy0c60a692010-11-04 01:09:47 +000011090cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011091 # use the weaker test based on 'objdump'. See mingw*.
11092 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11093 lt_cv_file_magic_cmd='$OBJDUMP -f'
11094 ;;
11095
11096darwin* | rhapsody*)
11097 lt_cv_deplibs_check_method=pass_all
11098 ;;
11099
11100freebsd* | dragonfly*)
11101 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11102 case $host_cpu in
11103 i*86 )
11104 # Not sure whether the presence of OpenBSD here was a mistake.
11105 # Let's accept both of them until this is cleared up.
11106 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11107 lt_cv_file_magic_cmd=/usr/bin/file
11108 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11109 ;;
11110 esac
11111 else
11112 lt_cv_deplibs_check_method=pass_all
11113 fi
11114 ;;
11115
11116gnu*)
11117 lt_cv_deplibs_check_method=pass_all
11118 ;;
11119
cristy0c60a692010-11-04 01:09:47 +000011120haiku*)
11121 lt_cv_deplibs_check_method=pass_all
11122 ;;
11123
cristy73bd4a52010-10-05 11:24:23 +000011124hpux10.20* | hpux11*)
11125 lt_cv_file_magic_cmd=/usr/bin/file
11126 case $host_cpu in
11127 ia64*)
11128 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11129 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11130 ;;
11131 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011132 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 +000011133 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11134 ;;
11135 *)
cristy0c60a692010-11-04 01:09:47 +000011136 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 +000011137 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11138 ;;
11139 esac
11140 ;;
11141
11142interix[3-9]*)
11143 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11145 ;;
11146
11147irix5* | irix6* | nonstopux*)
11148 case $LD in
11149 *-32|*"-32 ") libmagic=32-bit;;
11150 *-n32|*"-n32 ") libmagic=N32;;
11151 *-64|*"-64 ") libmagic=64-bit;;
11152 *) libmagic=never-match;;
11153 esac
11154 lt_cv_deplibs_check_method=pass_all
11155 ;;
11156
cristy99bd5232011-12-07 14:38:20 +000011157# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011158linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011159 lt_cv_deplibs_check_method=pass_all
11160 ;;
11161
11162netbsd*)
11163 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11165 else
11166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11167 fi
11168 ;;
11169
11170newos6*)
11171 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11172 lt_cv_file_magic_cmd=/usr/bin/file
11173 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11174 ;;
11175
11176*nto* | *qnx*)
11177 lt_cv_deplibs_check_method=pass_all
11178 ;;
11179
11180openbsd*)
11181 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11183 else
11184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11185 fi
11186 ;;
11187
11188osf3* | osf4* | osf5*)
11189 lt_cv_deplibs_check_method=pass_all
11190 ;;
11191
11192rdos*)
11193 lt_cv_deplibs_check_method=pass_all
11194 ;;
11195
11196solaris*)
11197 lt_cv_deplibs_check_method=pass_all
11198 ;;
11199
11200sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11201 lt_cv_deplibs_check_method=pass_all
11202 ;;
11203
11204sysv4 | sysv4.3*)
11205 case $host_vendor in
11206 motorola)
11207 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]'
11208 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11209 ;;
11210 ncr)
11211 lt_cv_deplibs_check_method=pass_all
11212 ;;
11213 sequent)
11214 lt_cv_file_magic_cmd='/bin/file'
11215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11216 ;;
11217 sni)
11218 lt_cv_file_magic_cmd='/bin/file'
11219 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11220 lt_cv_file_magic_test_file=/lib/libc.so
11221 ;;
11222 siemens)
11223 lt_cv_deplibs_check_method=pass_all
11224 ;;
11225 pc)
11226 lt_cv_deplibs_check_method=pass_all
11227 ;;
11228 esac
11229 ;;
11230
11231tpf*)
11232 lt_cv_deplibs_check_method=pass_all
11233 ;;
11234esac
11235
11236fi
11237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11238$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011239
11240file_magic_glob=
11241want_nocaseglob=no
11242if test "$build" = "$host"; then
11243 case $host_os in
11244 mingw* | pw32*)
11245 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11246 want_nocaseglob=yes
11247 else
11248 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11249 fi
11250 ;;
11251 esac
11252fi
11253
cristy73bd4a52010-10-05 11:24:23 +000011254file_magic_cmd=$lt_cv_file_magic_cmd
11255deplibs_check_method=$lt_cv_deplibs_check_method
11256test -z "$deplibs_check_method" && deplibs_check_method=unknown
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
cristyda16f162011-02-19 23:52:17 +000011269
11270
11271
11272
11273
11274
11275
11276
11277
11278
cristy73bd4a52010-10-05 11:24:23 +000011279if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011280 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11281set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011284if ${ac_cv_prog_DLLTOOL+:} false; then :
11285 $as_echo_n "(cached) " >&6
11286else
11287 if test -n "$DLLTOOL"; then
11288 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11289else
11290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291for as_dir in $PATH
11292do
11293 IFS=$as_save_IFS
11294 test -z "$as_dir" && as_dir=.
11295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011297 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11299 break 2
11300 fi
11301done
11302 done
11303IFS=$as_save_IFS
11304
11305fi
11306fi
11307DLLTOOL=$ac_cv_prog_DLLTOOL
11308if test -n "$DLLTOOL"; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11310$as_echo "$DLLTOOL" >&6; }
11311else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313$as_echo "no" >&6; }
11314fi
11315
11316
11317fi
11318if test -z "$ac_cv_prog_DLLTOOL"; then
11319 ac_ct_DLLTOOL=$DLLTOOL
11320 # Extract the first word of "dlltool", so it can be a program name with args.
11321set dummy dlltool; ac_word=$2
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323$as_echo_n "checking for $ac_word... " >&6; }
11324if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326else
11327 if test -n "$ac_ct_DLLTOOL"; then
11328 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11329else
11330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331for as_dir in $PATH
11332do
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011337 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11339 break 2
11340 fi
11341done
11342 done
11343IFS=$as_save_IFS
11344
11345fi
11346fi
11347ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11348if test -n "$ac_ct_DLLTOOL"; then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11350$as_echo "$ac_ct_DLLTOOL" >&6; }
11351else
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353$as_echo "no" >&6; }
11354fi
11355
11356 if test "x$ac_ct_DLLTOOL" = x; then
11357 DLLTOOL="false"
11358 else
11359 case $cross_compiling:$ac_tool_warned in
11360yes:)
11361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11363ac_tool_warned=yes ;;
11364esac
11365 DLLTOOL=$ac_ct_DLLTOOL
11366 fi
11367else
11368 DLLTOOL="$ac_cv_prog_DLLTOOL"
11369fi
11370
11371test -z "$DLLTOOL" && DLLTOOL=dlltool
11372
11373
11374
11375
11376
11377
11378
11379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11380$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11381if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383else
11384 lt_cv_sharedlib_from_linklib_cmd='unknown'
11385
11386case $host_os in
11387cygwin* | mingw* | pw32* | cegcc*)
11388 # two different shell functions defined in ltmain.sh
11389 # decide which to use based on capabilities of $DLLTOOL
11390 case `$DLLTOOL --help 2>&1` in
11391 *--identify-strict*)
11392 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11393 ;;
11394 *)
11395 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11396 ;;
11397 esac
11398 ;;
11399*)
11400 # fallback: assume linklib IS sharedlib
11401 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11402 ;;
11403esac
11404
11405fi
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11407$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11408sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11409test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11410
11411
11412
11413
11414
11415
11416
11417if test -n "$ac_tool_prefix"; then
11418 for ac_prog in ar
11419 do
11420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11421set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423$as_echo_n "checking for $ac_word... " >&6; }
11424if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011425 $as_echo_n "(cached) " >&6
11426else
11427 if test -n "$AR"; then
11428 ac_cv_prog_AR="$AR" # Let the user override the test.
11429else
11430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431for as_dir in $PATH
11432do
11433 IFS=$as_save_IFS
11434 test -z "$as_dir" && as_dir=.
11435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011437 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11439 break 2
11440 fi
11441done
11442 done
11443IFS=$as_save_IFS
11444
11445fi
11446fi
11447AR=$ac_cv_prog_AR
11448if test -n "$AR"; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11450$as_echo "$AR" >&6; }
11451else
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453$as_echo "no" >&6; }
11454fi
11455
11456
cristyda16f162011-02-19 23:52:17 +000011457 test -n "$AR" && break
11458 done
cristy73bd4a52010-10-05 11:24:23 +000011459fi
cristyda16f162011-02-19 23:52:17 +000011460if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011461 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011462 for ac_prog in ar
11463do
11464 # Extract the first word of "$ac_prog", so it can be a program name with args.
11465set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011468if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011469 $as_echo_n "(cached) " >&6
11470else
11471 if test -n "$ac_ct_AR"; then
11472 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11473else
11474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475for as_dir in $PATH
11476do
11477 IFS=$as_save_IFS
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011481 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483 break 2
11484 fi
11485done
11486 done
11487IFS=$as_save_IFS
11488
11489fi
11490fi
11491ac_ct_AR=$ac_cv_prog_ac_ct_AR
11492if test -n "$ac_ct_AR"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11494$as_echo "$ac_ct_AR" >&6; }
11495else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497$as_echo "no" >&6; }
11498fi
11499
cristyda16f162011-02-19 23:52:17 +000011500
11501 test -n "$ac_ct_AR" && break
11502done
11503
cristy73bd4a52010-10-05 11:24:23 +000011504 if test "x$ac_ct_AR" = x; then
11505 AR="false"
11506 else
11507 case $cross_compiling:$ac_tool_warned in
11508yes:)
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11511ac_tool_warned=yes ;;
11512esac
11513 AR=$ac_ct_AR
11514 fi
cristy73bd4a52010-10-05 11:24:23 +000011515fi
11516
cristyda16f162011-02-19 23:52:17 +000011517: ${AR=ar}
11518: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
cristyda16f162011-02-19 23:52:17 +000011530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11531$as_echo_n "checking for archiver @FILE support... " >&6; }
11532if ${lt_cv_ar_at_file+:} false; then :
11533 $as_echo_n "(cached) " >&6
11534else
11535 lt_cv_ar_at_file=no
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537/* end confdefs.h. */
11538
11539int
11540main ()
11541{
11542
11543 ;
11544 return 0;
11545}
11546_ACEOF
11547if ac_fn_c_try_compile "$LINENO"; then :
11548 echo conftest.$ac_objext > conftest.lst
11549 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11551 (eval $lt_ar_try) 2>&5
11552 ac_status=$?
11553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11554 test $ac_status = 0; }
11555 if test "$ac_status" -eq 0; then
11556 # Ensure the archiver fails upon bogus file names.
11557 rm -f conftest.$ac_objext libconftest.a
11558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11559 (eval $lt_ar_try) 2>&5
11560 ac_status=$?
11561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11562 test $ac_status = 0; }
11563 if test "$ac_status" -ne 0; then
11564 lt_cv_ar_at_file=@
11565 fi
11566 fi
11567 rm -f conftest.* libconftest.a
11568
11569fi
11570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11571
11572fi
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11574$as_echo "$lt_cv_ar_at_file" >&6; }
11575
11576if test "x$lt_cv_ar_at_file" = xno; then
11577 archiver_list_spec=
11578else
11579 archiver_list_spec=$lt_cv_ar_at_file
11580fi
11581
11582
11583
11584
11585
11586
11587
cristy73bd4a52010-10-05 11:24:23 +000011588if test -n "$ac_tool_prefix"; then
11589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11590set dummy ${ac_tool_prefix}strip; ac_word=$2
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011593if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011594 $as_echo_n "(cached) " >&6
11595else
11596 if test -n "$STRIP"; then
11597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11598else
11599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600for as_dir in $PATH
11601do
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011606 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11609 fi
11610done
11611 done
11612IFS=$as_save_IFS
11613
11614fi
11615fi
11616STRIP=$ac_cv_prog_STRIP
11617if test -n "$STRIP"; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11619$as_echo "$STRIP" >&6; }
11620else
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11622$as_echo "no" >&6; }
11623fi
11624
11625
11626fi
11627if test -z "$ac_cv_prog_STRIP"; then
11628 ac_ct_STRIP=$STRIP
11629 # Extract the first word of "strip", so it can be a program name with args.
11630set dummy strip; ac_word=$2
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011633if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011634 $as_echo_n "(cached) " >&6
11635else
11636 if test -n "$ac_ct_STRIP"; then
11637 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11638else
11639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640for as_dir in $PATH
11641do
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011646 ac_cv_prog_ac_ct_STRIP="strip"
11647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 break 2
11649 fi
11650done
11651 done
11652IFS=$as_save_IFS
11653
11654fi
11655fi
11656ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11657if test -n "$ac_ct_STRIP"; then
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11659$as_echo "$ac_ct_STRIP" >&6; }
11660else
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662$as_echo "no" >&6; }
11663fi
11664
11665 if test "x$ac_ct_STRIP" = x; then
11666 STRIP=":"
11667 else
11668 case $cross_compiling:$ac_tool_warned in
11669yes:)
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11672ac_tool_warned=yes ;;
11673esac
11674 STRIP=$ac_ct_STRIP
11675 fi
11676else
11677 STRIP="$ac_cv_prog_STRIP"
11678fi
11679
11680test -z "$STRIP" && STRIP=:
11681
11682
11683
11684
11685
11686
11687if test -n "$ac_tool_prefix"; then
11688 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11689set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11691$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011692if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011693 $as_echo_n "(cached) " >&6
11694else
11695 if test -n "$RANLIB"; then
11696 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11697else
11698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699for as_dir in $PATH
11700do
11701 IFS=$as_save_IFS
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011705 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 break 2
11708 fi
11709done
11710 done
11711IFS=$as_save_IFS
11712
11713fi
11714fi
11715RANLIB=$ac_cv_prog_RANLIB
11716if test -n "$RANLIB"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11718$as_echo "$RANLIB" >&6; }
11719else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721$as_echo "no" >&6; }
11722fi
11723
11724
11725fi
11726if test -z "$ac_cv_prog_RANLIB"; then
11727 ac_ct_RANLIB=$RANLIB
11728 # Extract the first word of "ranlib", so it can be a program name with args.
11729set dummy ranlib; ac_word=$2
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011732if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011733 $as_echo_n "(cached) " >&6
11734else
11735 if test -n "$ac_ct_RANLIB"; then
11736 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11737else
11738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739for as_dir in $PATH
11740do
11741 IFS=$as_save_IFS
11742 test -z "$as_dir" && as_dir=.
11743 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011745 ac_cv_prog_ac_ct_RANLIB="ranlib"
11746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747 break 2
11748 fi
11749done
11750 done
11751IFS=$as_save_IFS
11752
11753fi
11754fi
11755ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11756if test -n "$ac_ct_RANLIB"; then
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11758$as_echo "$ac_ct_RANLIB" >&6; }
11759else
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761$as_echo "no" >&6; }
11762fi
11763
11764 if test "x$ac_ct_RANLIB" = x; then
11765 RANLIB=":"
11766 else
11767 case $cross_compiling:$ac_tool_warned in
11768yes:)
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11771ac_tool_warned=yes ;;
11772esac
11773 RANLIB=$ac_ct_RANLIB
11774 fi
11775else
11776 RANLIB="$ac_cv_prog_RANLIB"
11777fi
11778
11779test -z "$RANLIB" && RANLIB=:
11780
11781
11782
11783
11784
11785
11786# Determine commands to create old-style static archives.
11787old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11788old_postinstall_cmds='chmod 644 $oldlib'
11789old_postuninstall_cmds=
11790
11791if test -n "$RANLIB"; then
11792 case $host_os in
11793 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011794 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011795 ;;
11796 *)
cristy99bd5232011-12-07 14:38:20 +000011797 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011798 ;;
11799 esac
cristy99bd5232011-12-07 14:38:20 +000011800 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011801fi
11802
cristy0c60a692010-11-04 01:09:47 +000011803case $host_os in
11804 darwin*)
11805 lock_old_archive_extraction=yes ;;
11806 *)
11807 lock_old_archive_extraction=no ;;
11808esac
11809
11810
11811
11812
11813
11814
cristy73bd4a52010-10-05 11:24:23 +000011815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848# If no C compiler was specified, use CC.
11849LTCC=${LTCC-"$CC"}
11850
11851# If no C compiler flags were specified, use CFLAGS.
11852LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11853
11854# Allow CC to be a program name with arguments.
11855compiler=$CC
11856
11857
11858# Check for command to grab the raw symbol name followed by C symbol from nm.
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11860$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011861if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011862 $as_echo_n "(cached) " >&6
11863else
11864
11865# These are sane defaults that work on at least a few old systems.
11866# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11867
11868# Character class describing NM global symbol codes.
11869symcode='[BCDEGRST]'
11870
11871# Regexp to match symbols that can be accessed directly from C.
11872sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11873
11874# Define system-specific variables.
11875case $host_os in
11876aix*)
11877 symcode='[BCDT]'
11878 ;;
11879cygwin* | mingw* | pw32* | cegcc*)
11880 symcode='[ABCDGISTW]'
11881 ;;
11882hpux*)
11883 if test "$host_cpu" = ia64; then
11884 symcode='[ABCDEGRST]'
11885 fi
11886 ;;
11887irix* | nonstopux*)
11888 symcode='[BCDEGRST]'
11889 ;;
11890osf*)
11891 symcode='[BCDEGQRST]'
11892 ;;
11893solaris*)
11894 symcode='[BDRT]'
11895 ;;
11896sco3.2v5*)
11897 symcode='[DT]'
11898 ;;
11899sysv4.2uw2*)
11900 symcode='[DT]'
11901 ;;
11902sysv5* | sco5v6* | unixware* | OpenUNIX*)
11903 symcode='[ABDT]'
11904 ;;
11905sysv4)
11906 symcode='[DFNSTU]'
11907 ;;
11908esac
11909
11910# If we're using GNU nm, then use its standard symbol codes.
11911case `$NM -V 2>&1` in
11912*GNU* | *'with BFD'*)
11913 symcode='[ABCDGIRSTW]' ;;
11914esac
11915
11916# Transform an extracted symbol line into a proper C declaration.
11917# Some systems (esp. on ia64) link data and code symbols differently,
11918# so use this general approach.
11919lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11920
11921# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011922lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11923lt_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 +000011924
11925# Handle CRLF in mingw tool chain
11926opt_cr=
11927case $build_os in
11928mingw*)
11929 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11930 ;;
11931esac
11932
11933# Try without a prefix underscore, then with it.
11934for ac_symprfx in "" "_"; do
11935
11936 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11937 symxfrm="\\1 $ac_symprfx\\2 \\2"
11938
11939 # Write the raw and C identifiers.
11940 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11941 # Fake it for dumpbin and say T for any non-static function
11942 # and D for any global variable.
11943 # Also find C++ and __fastcall symbols from MSVC++,
11944 # which start with @ or ?.
11945 lt_cv_sys_global_symbol_pipe="$AWK '"\
11946" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011947" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011948" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11949" \$ 0!~/External *\|/{next};"\
11950" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11951" {if(hide[section]) next};"\
11952" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11953" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11954" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11955" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11956" ' prfx=^$ac_symprfx"
11957 else
11958 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11959 fi
cristyda16f162011-02-19 23:52:17 +000011960 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011961
11962 # Check to see that the pipe works correctly.
11963 pipe_works=no
11964
11965 rm -f conftest*
11966 cat > conftest.$ac_ext <<_LT_EOF
11967#ifdef __cplusplus
11968extern "C" {
11969#endif
11970char nm_test_var;
11971void nm_test_func(void);
11972void nm_test_func(void){}
11973#ifdef __cplusplus
11974}
11975#endif
11976int main(){nm_test_var='a';nm_test_func();return(0);}
11977_LT_EOF
11978
11979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11980 (eval $ac_compile) 2>&5
11981 ac_status=$?
11982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11983 test $ac_status = 0; }; then
11984 # Now try to grab the symbols.
11985 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11987 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011988 ac_status=$?
11989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11990 test $ac_status = 0; } && test -s "$nlist"; then
11991 # Try sorting and uniquifying the output.
11992 if sort "$nlist" | uniq > "$nlist"T; then
11993 mv -f "$nlist"T "$nlist"
11994 else
11995 rm -f "$nlist"T
11996 fi
11997
11998 # Make sure that we snagged all the symbols we need.
11999 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12000 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12001 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012002/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12003#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12004/* DATA imports from DLLs on WIN32 con't be const, because runtime
12005 relocations are performed -- see ld's documentation on pseudo-relocs. */
12006# define LT_DLSYM_CONST
12007#elif defined(__osf__)
12008/* This system does not cope well with relocations in const data. */
12009# define LT_DLSYM_CONST
12010#else
12011# define LT_DLSYM_CONST const
12012#endif
12013
cristy73bd4a52010-10-05 11:24:23 +000012014#ifdef __cplusplus
12015extern "C" {
12016#endif
12017
12018_LT_EOF
12019 # Now generate the symbol file.
12020 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12021
12022 cat <<_LT_EOF >> conftest.$ac_ext
12023
12024/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012025LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012026 const char *name;
12027 void *address;
12028}
12029lt__PROGRAM__LTX_preloaded_symbols[] =
12030{
12031 { "@PROGRAM@", (void *) 0 },
12032_LT_EOF
12033 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12034 cat <<\_LT_EOF >> conftest.$ac_ext
12035 {0, (void *) 0}
12036};
12037
12038/* This works around a problem in FreeBSD linker */
12039#ifdef FREEBSD_WORKAROUND
12040static const void *lt_preloaded_setup() {
12041 return lt__PROGRAM__LTX_preloaded_symbols;
12042}
12043#endif
12044
12045#ifdef __cplusplus
12046}
12047#endif
12048_LT_EOF
12049 # Now try linking the two files.
12050 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012051 lt_globsym_save_LIBS=$LIBS
12052 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012053 LIBS="conftstm.$ac_objext"
12054 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12056 (eval $ac_link) 2>&5
12057 ac_status=$?
12058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12059 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12060 pipe_works=yes
12061 fi
cristyda16f162011-02-19 23:52:17 +000012062 LIBS=$lt_globsym_save_LIBS
12063 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012064 else
12065 echo "cannot find nm_test_func in $nlist" >&5
12066 fi
12067 else
12068 echo "cannot find nm_test_var in $nlist" >&5
12069 fi
12070 else
12071 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12072 fi
12073 else
12074 echo "$progname: failed program was:" >&5
12075 cat conftest.$ac_ext >&5
12076 fi
12077 rm -rf conftest* conftst*
12078
12079 # Do not use the global_symbol_pipe unless it works.
12080 if test "$pipe_works" = yes; then
12081 break
12082 else
12083 lt_cv_sys_global_symbol_pipe=
12084 fi
12085done
12086
12087fi
12088
12089if test -z "$lt_cv_sys_global_symbol_pipe"; then
12090 lt_cv_sys_global_symbol_to_cdecl=
12091fi
12092if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12094$as_echo "failed" >&6; }
12095else
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12097$as_echo "ok" >&6; }
12098fi
12099
cristyda16f162011-02-19 23:52:17 +000012100# Response file support.
12101if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12102 nm_file_list_spec='@'
12103elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12104 nm_file_list_spec='@'
12105fi
cristy73bd4a52010-10-05 11:24:23 +000012106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
cristyda16f162011-02-19 23:52:17 +000012127
12128
12129
12130
12131
12132
12133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12134$as_echo_n "checking for sysroot... " >&6; }
12135
12136# Check whether --with-sysroot was given.
12137if test "${with_sysroot+set}" = set; then :
12138 withval=$with_sysroot;
12139else
12140 with_sysroot=no
12141fi
12142
12143
12144lt_sysroot=
12145case ${with_sysroot} in #(
12146 yes)
12147 if test "$GCC" = yes; then
12148 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12149 fi
12150 ;; #(
12151 /*)
12152 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12153 ;; #(
12154 no|'')
12155 ;; #(
12156 *)
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12158$as_echo "${with_sysroot}" >&6; }
12159 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12160 ;;
12161esac
12162
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12164$as_echo "${lt_sysroot:-no}" >&6; }
12165
12166
12167
12168
12169
cristy73bd4a52010-10-05 11:24:23 +000012170# Check whether --enable-libtool-lock was given.
12171if test "${enable_libtool_lock+set}" = set; then :
12172 enableval=$enable_libtool_lock;
12173fi
12174
12175test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12176
12177# Some flags need to be propagated to the compiler or linker for good
12178# libtool support.
12179case $host in
12180ia64-*-hpux*)
12181 # Find out which ABI we are using.
12182 echo 'int i;' > conftest.$ac_ext
12183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12184 (eval $ac_compile) 2>&5
12185 ac_status=$?
12186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12187 test $ac_status = 0; }; then
12188 case `/usr/bin/file conftest.$ac_objext` in
12189 *ELF-32*)
12190 HPUX_IA64_MODE="32"
12191 ;;
12192 *ELF-64*)
12193 HPUX_IA64_MODE="64"
12194 ;;
12195 esac
12196 fi
12197 rm -rf conftest*
12198 ;;
12199*-*-irix6*)
12200 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012201 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12203 (eval $ac_compile) 2>&5
12204 ac_status=$?
12205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12206 test $ac_status = 0; }; then
12207 if test "$lt_cv_prog_gnu_ld" = yes; then
12208 case `/usr/bin/file conftest.$ac_objext` in
12209 *32-bit*)
12210 LD="${LD-ld} -melf32bsmip"
12211 ;;
12212 *N32*)
12213 LD="${LD-ld} -melf32bmipn32"
12214 ;;
12215 *64-bit*)
12216 LD="${LD-ld} -melf64bmip"
12217 ;;
12218 esac
12219 else
12220 case `/usr/bin/file conftest.$ac_objext` in
12221 *32-bit*)
12222 LD="${LD-ld} -32"
12223 ;;
12224 *N32*)
12225 LD="${LD-ld} -n32"
12226 ;;
12227 *64-bit*)
12228 LD="${LD-ld} -64"
12229 ;;
12230 esac
12231 fi
12232 fi
12233 rm -rf conftest*
12234 ;;
12235
12236x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12237s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12238 # Find out which ABI we are using.
12239 echo 'int i;' > conftest.$ac_ext
12240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12241 (eval $ac_compile) 2>&5
12242 ac_status=$?
12243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12244 test $ac_status = 0; }; then
12245 case `/usr/bin/file conftest.o` in
12246 *32-bit*)
12247 case $host in
12248 x86_64-*kfreebsd*-gnu)
12249 LD="${LD-ld} -m elf_i386_fbsd"
12250 ;;
12251 x86_64-*linux*)
12252 LD="${LD-ld} -m elf_i386"
12253 ;;
12254 ppc64-*linux*|powerpc64-*linux*)
12255 LD="${LD-ld} -m elf32ppclinux"
12256 ;;
12257 s390x-*linux*)
12258 LD="${LD-ld} -m elf_s390"
12259 ;;
12260 sparc64-*linux*)
12261 LD="${LD-ld} -m elf32_sparc"
12262 ;;
12263 esac
12264 ;;
12265 *64-bit*)
12266 case $host in
12267 x86_64-*kfreebsd*-gnu)
12268 LD="${LD-ld} -m elf_x86_64_fbsd"
12269 ;;
12270 x86_64-*linux*)
12271 LD="${LD-ld} -m elf_x86_64"
12272 ;;
12273 ppc*-*linux*|powerpc*-*linux*)
12274 LD="${LD-ld} -m elf64ppc"
12275 ;;
12276 s390*-*linux*|s390*-*tpf*)
12277 LD="${LD-ld} -m elf64_s390"
12278 ;;
12279 sparc*-*linux*)
12280 LD="${LD-ld} -m elf64_sparc"
12281 ;;
12282 esac
12283 ;;
12284 esac
12285 fi
12286 rm -rf conftest*
12287 ;;
12288
12289*-*-sco3.2v5*)
12290 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12291 SAVE_CFLAGS="$CFLAGS"
12292 CFLAGS="$CFLAGS -belf"
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12294$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012295if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012296 $as_echo_n "(cached) " >&6
12297else
12298 ac_ext=c
12299ac_cpp='$CPP $CPPFLAGS'
12300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12302ac_compiler_gnu=$ac_cv_c_compiler_gnu
12303
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305/* end confdefs.h. */
12306
12307int
12308main ()
12309{
12310
12311 ;
12312 return 0;
12313}
12314_ACEOF
12315if ac_fn_c_try_link "$LINENO"; then :
12316 lt_cv_cc_needs_belf=yes
12317else
12318 lt_cv_cc_needs_belf=no
12319fi
12320rm -f core conftest.err conftest.$ac_objext \
12321 conftest$ac_exeext conftest.$ac_ext
12322 ac_ext=c
12323ac_cpp='$CPP $CPPFLAGS'
12324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12326ac_compiler_gnu=$ac_cv_c_compiler_gnu
12327
12328fi
12329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12330$as_echo "$lt_cv_cc_needs_belf" >&6; }
12331 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12332 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12333 CFLAGS="$SAVE_CFLAGS"
12334 fi
12335 ;;
cristy99bd5232011-12-07 14:38:20 +000012336*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012337 # Find out which ABI we are using.
12338 echo 'int i;' > conftest.$ac_ext
12339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12340 (eval $ac_compile) 2>&5
12341 ac_status=$?
12342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12343 test $ac_status = 0; }; then
12344 case `/usr/bin/file conftest.o` in
12345 *64-bit*)
12346 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012347 yes*)
12348 case $host in
12349 i?86-*-solaris*)
12350 LD="${LD-ld} -m elf_x86_64"
12351 ;;
12352 sparc*-*-solaris*)
12353 LD="${LD-ld} -m elf64_sparc"
12354 ;;
12355 esac
12356 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12357 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12358 LD="${LD-ld}_sol2"
12359 fi
12360 ;;
cristy73bd4a52010-10-05 11:24:23 +000012361 *)
12362 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12363 LD="${LD-ld} -64"
12364 fi
12365 ;;
12366 esac
12367 ;;
12368 esac
12369 fi
12370 rm -rf conftest*
12371 ;;
12372esac
12373
12374need_locks="$enable_libtool_lock"
12375
cristyda16f162011-02-19 23:52:17 +000012376if test -n "$ac_tool_prefix"; then
12377 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12378set dummy ${ac_tool_prefix}mt; ac_word=$2
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12380$as_echo_n "checking for $ac_word... " >&6; }
12381if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12382 $as_echo_n "(cached) " >&6
12383else
12384 if test -n "$MANIFEST_TOOL"; then
12385 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12386else
12387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388for as_dir in $PATH
12389do
12390 IFS=$as_save_IFS
12391 test -z "$as_dir" && as_dir=.
12392 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012394 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12396 break 2
12397 fi
12398done
12399 done
12400IFS=$as_save_IFS
12401
12402fi
12403fi
12404MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12405if test -n "$MANIFEST_TOOL"; then
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12407$as_echo "$MANIFEST_TOOL" >&6; }
12408else
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410$as_echo "no" >&6; }
12411fi
12412
12413
12414fi
12415if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12416 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12417 # Extract the first word of "mt", so it can be a program name with args.
12418set dummy mt; ac_word=$2
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12420$as_echo_n "checking for $ac_word... " >&6; }
12421if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12422 $as_echo_n "(cached) " >&6
12423else
12424 if test -n "$ac_ct_MANIFEST_TOOL"; then
12425 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12426else
12427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12428for as_dir in $PATH
12429do
12430 IFS=$as_save_IFS
12431 test -z "$as_dir" && as_dir=.
12432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012434 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12436 break 2
12437 fi
12438done
12439 done
12440IFS=$as_save_IFS
12441
12442fi
12443fi
12444ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12445if test -n "$ac_ct_MANIFEST_TOOL"; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12447$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12448else
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450$as_echo "no" >&6; }
12451fi
12452
12453 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12454 MANIFEST_TOOL=":"
12455 else
12456 case $cross_compiling:$ac_tool_warned in
12457yes:)
12458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12460ac_tool_warned=yes ;;
12461esac
12462 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12463 fi
12464else
12465 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12466fi
12467
12468test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12470$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12471if ${lt_cv_path_mainfest_tool+:} false; then :
12472 $as_echo_n "(cached) " >&6
12473else
12474 lt_cv_path_mainfest_tool=no
12475 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12476 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12477 cat conftest.err >&5
12478 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12479 lt_cv_path_mainfest_tool=yes
12480 fi
12481 rm -f conftest*
12482fi
12483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12484$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12485if test "x$lt_cv_path_mainfest_tool" != xyes; then
12486 MANIFEST_TOOL=:
12487fi
12488
12489
12490
12491
12492
cristy73bd4a52010-10-05 11:24:23 +000012493
12494 case $host_os in
12495 rhapsody* | darwin*)
12496 if test -n "$ac_tool_prefix"; then
12497 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12498set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12500$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012501if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012502 $as_echo_n "(cached) " >&6
12503else
12504 if test -n "$DSYMUTIL"; then
12505 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12506else
12507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12508for as_dir in $PATH
12509do
12510 IFS=$as_save_IFS
12511 test -z "$as_dir" && as_dir=.
12512 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012514 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12516 break 2
12517 fi
12518done
12519 done
12520IFS=$as_save_IFS
12521
12522fi
12523fi
12524DSYMUTIL=$ac_cv_prog_DSYMUTIL
12525if test -n "$DSYMUTIL"; then
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12527$as_echo "$DSYMUTIL" >&6; }
12528else
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12530$as_echo "no" >&6; }
12531fi
12532
12533
12534fi
12535if test -z "$ac_cv_prog_DSYMUTIL"; then
12536 ac_ct_DSYMUTIL=$DSYMUTIL
12537 # Extract the first word of "dsymutil", so it can be a program name with args.
12538set dummy dsymutil; ac_word=$2
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012541if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012542 $as_echo_n "(cached) " >&6
12543else
12544 if test -n "$ac_ct_DSYMUTIL"; then
12545 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12546else
12547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12548for as_dir in $PATH
12549do
12550 IFS=$as_save_IFS
12551 test -z "$as_dir" && as_dir=.
12552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012554 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12556 break 2
12557 fi
12558done
12559 done
12560IFS=$as_save_IFS
12561
12562fi
12563fi
12564ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12565if test -n "$ac_ct_DSYMUTIL"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12567$as_echo "$ac_ct_DSYMUTIL" >&6; }
12568else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570$as_echo "no" >&6; }
12571fi
12572
12573 if test "x$ac_ct_DSYMUTIL" = x; then
12574 DSYMUTIL=":"
12575 else
12576 case $cross_compiling:$ac_tool_warned in
12577yes:)
12578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12580ac_tool_warned=yes ;;
12581esac
12582 DSYMUTIL=$ac_ct_DSYMUTIL
12583 fi
12584else
12585 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12586fi
12587
12588 if test -n "$ac_tool_prefix"; then
12589 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12590set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012593if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012594 $as_echo_n "(cached) " >&6
12595else
12596 if test -n "$NMEDIT"; then
12597 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12598else
12599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12600for as_dir in $PATH
12601do
12602 IFS=$as_save_IFS
12603 test -z "$as_dir" && as_dir=.
12604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012606 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12608 break 2
12609 fi
12610done
12611 done
12612IFS=$as_save_IFS
12613
12614fi
12615fi
12616NMEDIT=$ac_cv_prog_NMEDIT
12617if test -n "$NMEDIT"; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12619$as_echo "$NMEDIT" >&6; }
12620else
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622$as_echo "no" >&6; }
12623fi
12624
12625
12626fi
12627if test -z "$ac_cv_prog_NMEDIT"; then
12628 ac_ct_NMEDIT=$NMEDIT
12629 # Extract the first word of "nmedit", so it can be a program name with args.
12630set dummy nmedit; ac_word=$2
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012633if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012634 $as_echo_n "(cached) " >&6
12635else
12636 if test -n "$ac_ct_NMEDIT"; then
12637 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12638else
12639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640for as_dir in $PATH
12641do
12642 IFS=$as_save_IFS
12643 test -z "$as_dir" && as_dir=.
12644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012646 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12648 break 2
12649 fi
12650done
12651 done
12652IFS=$as_save_IFS
12653
12654fi
12655fi
12656ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12657if test -n "$ac_ct_NMEDIT"; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12659$as_echo "$ac_ct_NMEDIT" >&6; }
12660else
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662$as_echo "no" >&6; }
12663fi
12664
12665 if test "x$ac_ct_NMEDIT" = x; then
12666 NMEDIT=":"
12667 else
12668 case $cross_compiling:$ac_tool_warned in
12669yes:)
12670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12672ac_tool_warned=yes ;;
12673esac
12674 NMEDIT=$ac_ct_NMEDIT
12675 fi
12676else
12677 NMEDIT="$ac_cv_prog_NMEDIT"
12678fi
12679
12680 if test -n "$ac_tool_prefix"; then
12681 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12682set dummy ${ac_tool_prefix}lipo; ac_word=$2
12683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12684$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012685if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012686 $as_echo_n "(cached) " >&6
12687else
12688 if test -n "$LIPO"; then
12689 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12690else
12691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12692for as_dir in $PATH
12693do
12694 IFS=$as_save_IFS
12695 test -z "$as_dir" && as_dir=.
12696 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012698 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12700 break 2
12701 fi
12702done
12703 done
12704IFS=$as_save_IFS
12705
12706fi
12707fi
12708LIPO=$ac_cv_prog_LIPO
12709if test -n "$LIPO"; then
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12711$as_echo "$LIPO" >&6; }
12712else
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714$as_echo "no" >&6; }
12715fi
12716
12717
12718fi
12719if test -z "$ac_cv_prog_LIPO"; then
12720 ac_ct_LIPO=$LIPO
12721 # Extract the first word of "lipo", so it can be a program name with args.
12722set dummy lipo; ac_word=$2
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12724$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012725if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012726 $as_echo_n "(cached) " >&6
12727else
12728 if test -n "$ac_ct_LIPO"; then
12729 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12730else
12731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12732for as_dir in $PATH
12733do
12734 IFS=$as_save_IFS
12735 test -z "$as_dir" && as_dir=.
12736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012738 ac_cv_prog_ac_ct_LIPO="lipo"
12739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12740 break 2
12741 fi
12742done
12743 done
12744IFS=$as_save_IFS
12745
12746fi
12747fi
12748ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12749if test -n "$ac_ct_LIPO"; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12751$as_echo "$ac_ct_LIPO" >&6; }
12752else
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12754$as_echo "no" >&6; }
12755fi
12756
12757 if test "x$ac_ct_LIPO" = x; then
12758 LIPO=":"
12759 else
12760 case $cross_compiling:$ac_tool_warned in
12761yes:)
12762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12764ac_tool_warned=yes ;;
12765esac
12766 LIPO=$ac_ct_LIPO
12767 fi
12768else
12769 LIPO="$ac_cv_prog_LIPO"
12770fi
12771
12772 if test -n "$ac_tool_prefix"; then
12773 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12774set dummy ${ac_tool_prefix}otool; ac_word=$2
12775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012777if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012778 $as_echo_n "(cached) " >&6
12779else
12780 if test -n "$OTOOL"; then
12781 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12782else
12783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784for as_dir in $PATH
12785do
12786 IFS=$as_save_IFS
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012790 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792 break 2
12793 fi
12794done
12795 done
12796IFS=$as_save_IFS
12797
12798fi
12799fi
12800OTOOL=$ac_cv_prog_OTOOL
12801if test -n "$OTOOL"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12803$as_echo "$OTOOL" >&6; }
12804else
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806$as_echo "no" >&6; }
12807fi
12808
12809
12810fi
12811if test -z "$ac_cv_prog_OTOOL"; then
12812 ac_ct_OTOOL=$OTOOL
12813 # Extract the first word of "otool", so it can be a program name with args.
12814set dummy otool; ac_word=$2
12815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012817if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012818 $as_echo_n "(cached) " >&6
12819else
12820 if test -n "$ac_ct_OTOOL"; then
12821 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12822else
12823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824for as_dir in $PATH
12825do
12826 IFS=$as_save_IFS
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012830 ac_cv_prog_ac_ct_OTOOL="otool"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832 break 2
12833 fi
12834done
12835 done
12836IFS=$as_save_IFS
12837
12838fi
12839fi
12840ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12841if test -n "$ac_ct_OTOOL"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12843$as_echo "$ac_ct_OTOOL" >&6; }
12844else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846$as_echo "no" >&6; }
12847fi
12848
12849 if test "x$ac_ct_OTOOL" = x; then
12850 OTOOL=":"
12851 else
12852 case $cross_compiling:$ac_tool_warned in
12853yes:)
12854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12856ac_tool_warned=yes ;;
12857esac
12858 OTOOL=$ac_ct_OTOOL
12859 fi
12860else
12861 OTOOL="$ac_cv_prog_OTOOL"
12862fi
12863
12864 if test -n "$ac_tool_prefix"; then
12865 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12866set dummy ${ac_tool_prefix}otool64; ac_word=$2
12867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12868$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012869if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012870 $as_echo_n "(cached) " >&6
12871else
12872 if test -n "$OTOOL64"; then
12873 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12874else
12875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876for as_dir in $PATH
12877do
12878 IFS=$as_save_IFS
12879 test -z "$as_dir" && as_dir=.
12880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012882 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12884 break 2
12885 fi
12886done
12887 done
12888IFS=$as_save_IFS
12889
12890fi
12891fi
12892OTOOL64=$ac_cv_prog_OTOOL64
12893if test -n "$OTOOL64"; then
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12895$as_echo "$OTOOL64" >&6; }
12896else
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898$as_echo "no" >&6; }
12899fi
12900
12901
12902fi
12903if test -z "$ac_cv_prog_OTOOL64"; then
12904 ac_ct_OTOOL64=$OTOOL64
12905 # Extract the first word of "otool64", so it can be a program name with args.
12906set dummy otool64; ac_word=$2
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012909if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012910 $as_echo_n "(cached) " >&6
12911else
12912 if test -n "$ac_ct_OTOOL64"; then
12913 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12914else
12915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916for as_dir in $PATH
12917do
12918 IFS=$as_save_IFS
12919 test -z "$as_dir" && as_dir=.
12920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012922 ac_cv_prog_ac_ct_OTOOL64="otool64"
12923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924 break 2
12925 fi
12926done
12927 done
12928IFS=$as_save_IFS
12929
12930fi
12931fi
12932ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12933if test -n "$ac_ct_OTOOL64"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12935$as_echo "$ac_ct_OTOOL64" >&6; }
12936else
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938$as_echo "no" >&6; }
12939fi
12940
12941 if test "x$ac_ct_OTOOL64" = x; then
12942 OTOOL64=":"
12943 else
12944 case $cross_compiling:$ac_tool_warned in
12945yes:)
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12948ac_tool_warned=yes ;;
12949esac
12950 OTOOL64=$ac_ct_OTOOL64
12951 fi
12952else
12953 OTOOL64="$ac_cv_prog_OTOOL64"
12954fi
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12983$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012984if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012985 $as_echo_n "(cached) " >&6
12986else
12987 lt_cv_apple_cc_single_mod=no
12988 if test -z "${LT_MULTI_MODULE}"; then
12989 # By default we will add the -single_module flag. You can override
12990 # by either setting the environment variable LT_MULTI_MODULE
12991 # non-empty at configure time, or by adding -multi_module to the
12992 # link flags.
12993 rm -rf libconftest.dylib*
12994 echo "int foo(void){return 1;}" > conftest.c
12995 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12996-dynamiclib -Wl,-single_module conftest.c" >&5
12997 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12998 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12999 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013000 # If there is a non-empty error log, and "single_module"
13001 # appears in it, assume the flag caused a linker warning
13002 if test -s conftest.err && $GREP single_module conftest.err; then
13003 cat conftest.err >&5
13004 # Otherwise, if the output was created with a 0 exit code from
13005 # the compiler, it worked.
13006 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013007 lt_cv_apple_cc_single_mod=yes
13008 else
13009 cat conftest.err >&5
13010 fi
13011 rm -rf libconftest.dylib*
13012 rm -f conftest.*
13013 fi
13014fi
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13016$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013017
cristy73bd4a52010-10-05 11:24:23 +000013018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13019$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013020if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013021 $as_echo_n "(cached) " >&6
13022else
13023 lt_cv_ld_exported_symbols_list=no
13024 save_LDFLAGS=$LDFLAGS
13025 echo "_main" > conftest.sym
13026 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028/* end confdefs.h. */
13029
13030int
13031main ()
13032{
13033
13034 ;
13035 return 0;
13036}
13037_ACEOF
13038if ac_fn_c_try_link "$LINENO"; then :
13039 lt_cv_ld_exported_symbols_list=yes
13040else
13041 lt_cv_ld_exported_symbols_list=no
13042fi
13043rm -f core conftest.err conftest.$ac_objext \
13044 conftest$ac_exeext conftest.$ac_ext
13045 LDFLAGS="$save_LDFLAGS"
13046
13047fi
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13049$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013050
cristy0c60a692010-11-04 01:09:47 +000013051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13052$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013053if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013054 $as_echo_n "(cached) " >&6
13055else
13056 lt_cv_ld_force_load=no
13057 cat > conftest.c << _LT_EOF
13058int forced_loaded() { return 2;}
13059_LT_EOF
13060 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13061 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13062 echo "$AR cru libconftest.a conftest.o" >&5
13063 $AR cru libconftest.a conftest.o 2>&5
13064 echo "$RANLIB libconftest.a" >&5
13065 $RANLIB libconftest.a 2>&5
13066 cat > conftest.c << _LT_EOF
13067int main() { return 0;}
13068_LT_EOF
13069 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13070 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13071 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013072 if test -s conftest.err && $GREP force_load conftest.err; then
13073 cat conftest.err >&5
13074 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013075 lt_cv_ld_force_load=yes
13076 else
13077 cat conftest.err >&5
13078 fi
13079 rm -f conftest.err libconftest.a conftest conftest.c
13080 rm -rf conftest.dSYM
13081
13082fi
13083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13084$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013085 case $host_os in
13086 rhapsody* | darwin1.[012])
13087 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13088 darwin1.*)
13089 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13090 darwin*) # darwin 5.x on
13091 # if running on 10.5 or later, the deployment target defaults
13092 # to the OS version, if on x86, and 10.4, the deployment
13093 # target defaults to 10.4. Don't you love it?
13094 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13095 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13096 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13097 10.[012]*)
13098 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13099 10.*)
13100 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13101 esac
13102 ;;
13103 esac
13104 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13105 _lt_dar_single_mod='$single_module'
13106 fi
13107 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13108 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13109 else
13110 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13111 fi
cristy0c60a692010-11-04 01:09:47 +000013112 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013113 _lt_dsymutil='~$DSYMUTIL $lib || :'
13114 else
13115 _lt_dsymutil=
13116 fi
13117 ;;
13118 esac
13119
13120for ac_header in dlfcn.h
13121do :
13122 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13123"
cristyda16f162011-02-19 23:52:17 +000013124if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013125 cat >>confdefs.h <<_ACEOF
13126#define HAVE_DLFCN_H 1
13127_ACEOF
13128
13129fi
13130
13131done
13132
13133
13134
cristy73bd4a52010-10-05 11:24:23 +000013135
cristyda16f162011-02-19 23:52:17 +000013136func_stripname_cnf ()
13137{
13138 case ${2} in
13139 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13140 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13141 esac
13142} # func_stripname_cnf
13143
13144
13145
cristy73bd4a52010-10-05 11:24:23 +000013146
13147
13148# Set options
13149enable_win32_dll=yes
13150
13151case $host in
cristy0c60a692010-11-04 01:09:47 +000013152*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013153 if test -n "$ac_tool_prefix"; then
13154 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13155set dummy ${ac_tool_prefix}as; ac_word=$2
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013158if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013159 $as_echo_n "(cached) " >&6
13160else
13161 if test -n "$AS"; then
13162 ac_cv_prog_AS="$AS" # Let the user override the test.
13163else
13164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165for as_dir in $PATH
13166do
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013171 ac_cv_prog_AS="${ac_tool_prefix}as"
13172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13174 fi
13175done
13176 done
13177IFS=$as_save_IFS
13178
13179fi
13180fi
13181AS=$ac_cv_prog_AS
13182if test -n "$AS"; then
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13184$as_echo "$AS" >&6; }
13185else
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187$as_echo "no" >&6; }
13188fi
13189
13190
13191fi
13192if test -z "$ac_cv_prog_AS"; then
13193 ac_ct_AS=$AS
13194 # Extract the first word of "as", so it can be a program name with args.
13195set dummy as; ac_word=$2
13196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013198if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013199 $as_echo_n "(cached) " >&6
13200else
13201 if test -n "$ac_ct_AS"; then
13202 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13203else
13204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205for as_dir in $PATH
13206do
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013211 ac_cv_prog_ac_ct_AS="as"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13214 fi
13215done
13216 done
13217IFS=$as_save_IFS
13218
13219fi
13220fi
13221ac_ct_AS=$ac_cv_prog_ac_ct_AS
13222if test -n "$ac_ct_AS"; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13224$as_echo "$ac_ct_AS" >&6; }
13225else
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227$as_echo "no" >&6; }
13228fi
13229
13230 if test "x$ac_ct_AS" = x; then
13231 AS="false"
13232 else
13233 case $cross_compiling:$ac_tool_warned in
13234yes:)
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13237ac_tool_warned=yes ;;
13238esac
13239 AS=$ac_ct_AS
13240 fi
13241else
13242 AS="$ac_cv_prog_AS"
13243fi
13244
13245 if test -n "$ac_tool_prefix"; then
13246 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13247set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013250if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013251 $as_echo_n "(cached) " >&6
13252else
13253 if test -n "$DLLTOOL"; then
13254 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13255else
13256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13257for as_dir in $PATH
13258do
13259 IFS=$as_save_IFS
13260 test -z "$as_dir" && as_dir=.
13261 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013263 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13265 break 2
13266 fi
13267done
13268 done
13269IFS=$as_save_IFS
13270
13271fi
13272fi
13273DLLTOOL=$ac_cv_prog_DLLTOOL
13274if test -n "$DLLTOOL"; then
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13276$as_echo "$DLLTOOL" >&6; }
13277else
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279$as_echo "no" >&6; }
13280fi
13281
13282
13283fi
13284if test -z "$ac_cv_prog_DLLTOOL"; then
13285 ac_ct_DLLTOOL=$DLLTOOL
13286 # Extract the first word of "dlltool", so it can be a program name with args.
13287set dummy dlltool; ac_word=$2
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013290if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013291 $as_echo_n "(cached) " >&6
13292else
13293 if test -n "$ac_ct_DLLTOOL"; then
13294 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13295else
13296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297for as_dir in $PATH
13298do
13299 IFS=$as_save_IFS
13300 test -z "$as_dir" && as_dir=.
13301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013303 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13305 break 2
13306 fi
13307done
13308 done
13309IFS=$as_save_IFS
13310
13311fi
13312fi
13313ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13314if test -n "$ac_ct_DLLTOOL"; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13316$as_echo "$ac_ct_DLLTOOL" >&6; }
13317else
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319$as_echo "no" >&6; }
13320fi
13321
13322 if test "x$ac_ct_DLLTOOL" = x; then
13323 DLLTOOL="false"
13324 else
13325 case $cross_compiling:$ac_tool_warned in
13326yes:)
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13329ac_tool_warned=yes ;;
13330esac
13331 DLLTOOL=$ac_ct_DLLTOOL
13332 fi
13333else
13334 DLLTOOL="$ac_cv_prog_DLLTOOL"
13335fi
13336
13337 if test -n "$ac_tool_prefix"; then
13338 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13339set dummy ${ac_tool_prefix}objdump; ac_word=$2
13340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13341$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013342if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013343 $as_echo_n "(cached) " >&6
13344else
13345 if test -n "$OBJDUMP"; then
13346 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13347else
13348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13349for as_dir in $PATH
13350do
13351 IFS=$as_save_IFS
13352 test -z "$as_dir" && as_dir=.
13353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013355 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13357 break 2
13358 fi
13359done
13360 done
13361IFS=$as_save_IFS
13362
13363fi
13364fi
13365OBJDUMP=$ac_cv_prog_OBJDUMP
13366if test -n "$OBJDUMP"; then
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13368$as_echo "$OBJDUMP" >&6; }
13369else
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371$as_echo "no" >&6; }
13372fi
13373
13374
13375fi
13376if test -z "$ac_cv_prog_OBJDUMP"; then
13377 ac_ct_OBJDUMP=$OBJDUMP
13378 # Extract the first word of "objdump", so it can be a program name with args.
13379set dummy objdump; ac_word=$2
13380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13381$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013382if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013383 $as_echo_n "(cached) " >&6
13384else
13385 if test -n "$ac_ct_OBJDUMP"; then
13386 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13387else
13388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13389for as_dir in $PATH
13390do
13391 IFS=$as_save_IFS
13392 test -z "$as_dir" && as_dir=.
13393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013395 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13397 break 2
13398 fi
13399done
13400 done
13401IFS=$as_save_IFS
13402
13403fi
13404fi
13405ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13406if test -n "$ac_ct_OBJDUMP"; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13408$as_echo "$ac_ct_OBJDUMP" >&6; }
13409else
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411$as_echo "no" >&6; }
13412fi
13413
13414 if test "x$ac_ct_OBJDUMP" = x; then
13415 OBJDUMP="false"
13416 else
13417 case $cross_compiling:$ac_tool_warned in
13418yes:)
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13421ac_tool_warned=yes ;;
13422esac
13423 OBJDUMP=$ac_ct_OBJDUMP
13424 fi
13425else
13426 OBJDUMP="$ac_cv_prog_OBJDUMP"
13427fi
13428
13429 ;;
13430esac
13431
13432test -z "$AS" && AS=as
13433
13434
13435
13436
13437
13438test -z "$DLLTOOL" && DLLTOOL=dlltool
13439
13440
13441
13442
13443
13444test -z "$OBJDUMP" && OBJDUMP=objdump
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454 # Check whether --enable-shared was given.
13455if test "${enable_shared+set}" = set; then :
13456 enableval=$enable_shared; p=${PACKAGE-default}
13457 case $enableval in
13458 yes) enable_shared=yes ;;
13459 no) enable_shared=no ;;
13460 *)
13461 enable_shared=no
13462 # Look at the argument we got. We use all the common list separators.
13463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13464 for pkg in $enableval; do
13465 IFS="$lt_save_ifs"
13466 if test "X$pkg" = "X$p"; then
13467 enable_shared=yes
13468 fi
13469 done
13470 IFS="$lt_save_ifs"
13471 ;;
13472 esac
13473else
13474 enable_shared=yes
13475fi
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485 # Check whether --enable-static was given.
13486if test "${enable_static+set}" = set; then :
13487 enableval=$enable_static; p=${PACKAGE-default}
13488 case $enableval in
13489 yes) enable_static=yes ;;
13490 no) enable_static=no ;;
13491 *)
13492 enable_static=no
13493 # Look at the argument we got. We use all the common list separators.
13494 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13495 for pkg in $enableval; do
13496 IFS="$lt_save_ifs"
13497 if test "X$pkg" = "X$p"; then
13498 enable_static=yes
13499 fi
13500 done
13501 IFS="$lt_save_ifs"
13502 ;;
13503 esac
13504else
13505 enable_static=yes
13506fi
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517# Check whether --with-pic was given.
13518if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013519 withval=$with_pic; lt_p=${PACKAGE-default}
13520 case $withval in
13521 yes|no) pic_mode=$withval ;;
13522 *)
13523 pic_mode=default
13524 # Look at the argument we got. We use all the common list separators.
13525 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13526 for lt_pkg in $withval; do
13527 IFS="$lt_save_ifs"
13528 if test "X$lt_pkg" = "X$lt_p"; then
13529 pic_mode=yes
13530 fi
13531 done
13532 IFS="$lt_save_ifs"
13533 ;;
13534 esac
cristy73bd4a52010-10-05 11:24:23 +000013535else
13536 pic_mode=default
13537fi
13538
13539
13540test -z "$pic_mode" && pic_mode=default
13541
13542
13543
13544
13545
13546
13547
13548 # Check whether --enable-fast-install was given.
13549if test "${enable_fast_install+set}" = set; then :
13550 enableval=$enable_fast_install; p=${PACKAGE-default}
13551 case $enableval in
13552 yes) enable_fast_install=yes ;;
13553 no) enable_fast_install=no ;;
13554 *)
13555 enable_fast_install=no
13556 # Look at the argument we got. We use all the common list separators.
13557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13558 for pkg in $enableval; do
13559 IFS="$lt_save_ifs"
13560 if test "X$pkg" = "X$p"; then
13561 enable_fast_install=yes
13562 fi
13563 done
13564 IFS="$lt_save_ifs"
13565 ;;
13566 esac
13567else
13568 enable_fast_install=yes
13569fi
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581# This can be used to rebuild libtool when needed
13582LIBTOOL_DEPS="$ltmain"
13583
13584# Always use our own libtool.
13585LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
cristy0c60a692010-11-04 01:09:47 +000013611
cristy99bd5232011-12-07 14:38:20 +000013612
13613
13614
13615
cristy73bd4a52010-10-05 11:24:23 +000013616test -z "$LN_S" && LN_S="ln -s"
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631if test -n "${ZSH_VERSION+set}" ; then
13632 setopt NO_GLOB_SUBST
13633fi
13634
13635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13636$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013637if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013638 $as_echo_n "(cached) " >&6
13639else
13640 rm -f .libs 2>/dev/null
13641mkdir .libs 2>/dev/null
13642if test -d .libs; then
13643 lt_cv_objdir=.libs
13644else
13645 # MS-DOS does not allow filenames that begin with a dot.
13646 lt_cv_objdir=_libs
13647fi
13648rmdir .libs 2>/dev/null
13649fi
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13651$as_echo "$lt_cv_objdir" >&6; }
13652objdir=$lt_cv_objdir
13653
13654
13655
13656
13657
13658cat >>confdefs.h <<_ACEOF
13659#define LT_OBJDIR "$lt_cv_objdir/"
13660_ACEOF
13661
13662
13663
13664
cristy73bd4a52010-10-05 11:24:23 +000013665case $host_os in
13666aix3*)
13667 # AIX sometimes has problems with the GCC collect2 program. For some
13668 # reason, if we set the COLLECT_NAMES environment variable, the problems
13669 # vanish in a puff of smoke.
13670 if test "X${COLLECT_NAMES+set}" != Xset; then
13671 COLLECT_NAMES=
13672 export COLLECT_NAMES
13673 fi
13674 ;;
13675esac
13676
cristy73bd4a52010-10-05 11:24:23 +000013677# Global variables:
13678ofile=libtool
13679can_build_shared=yes
13680
13681# All known linkers require a `.a' archive for static linking (except MSVC,
13682# which needs '.lib').
13683libext=a
13684
13685with_gnu_ld="$lt_cv_prog_gnu_ld"
13686
13687old_CC="$CC"
13688old_CFLAGS="$CFLAGS"
13689
13690# Set sane defaults for various variables
13691test -z "$CC" && CC=cc
13692test -z "$LTCC" && LTCC=$CC
13693test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13694test -z "$LD" && LD=ld
13695test -z "$ac_objext" && ac_objext=o
13696
13697for cc_temp in $compiler""; do
13698 case $cc_temp in
13699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13701 \-*) ;;
13702 *) break;;
13703 esac
13704done
cristy0c60a692010-11-04 01:09:47 +000013705cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013706
13707
13708# Only perform the check for file, if the check method requires it
13709test -z "$MAGIC_CMD" && MAGIC_CMD=file
13710case $deplibs_check_method in
13711file_magic*)
13712 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13714$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013715if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013716 $as_echo_n "(cached) " >&6
13717else
13718 case $MAGIC_CMD in
13719[\\/*] | ?:[\\/]*)
13720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13721 ;;
13722*)
13723 lt_save_MAGIC_CMD="$MAGIC_CMD"
13724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13725 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13726 for ac_dir in $ac_dummy; do
13727 IFS="$lt_save_ifs"
13728 test -z "$ac_dir" && ac_dir=.
13729 if test -f $ac_dir/${ac_tool_prefix}file; then
13730 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13731 if test -n "$file_magic_test_file"; then
13732 case $deplibs_check_method in
13733 "file_magic "*)
13734 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13736 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13737 $EGREP "$file_magic_regex" > /dev/null; then
13738 :
13739 else
13740 cat <<_LT_EOF 1>&2
13741
13742*** Warning: the command libtool uses to detect shared libraries,
13743*** $file_magic_cmd, produces output that libtool cannot recognize.
13744*** The result is that libtool may fail to recognize shared libraries
13745*** as such. This will affect the creation of libtool libraries that
13746*** depend on shared libraries, but programs linked with such libtool
13747*** libraries will work regardless of this problem. Nevertheless, you
13748*** may want to report the problem to your system manager and/or to
13749*** bug-libtool@gnu.org
13750
13751_LT_EOF
13752 fi ;;
13753 esac
13754 fi
13755 break
13756 fi
13757 done
13758 IFS="$lt_save_ifs"
13759 MAGIC_CMD="$lt_save_MAGIC_CMD"
13760 ;;
13761esac
13762fi
13763
13764MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13765if test -n "$MAGIC_CMD"; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13767$as_echo "$MAGIC_CMD" >&6; }
13768else
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770$as_echo "no" >&6; }
13771fi
13772
13773
13774
13775
13776
13777if test -z "$lt_cv_path_MAGIC_CMD"; then
13778 if test -n "$ac_tool_prefix"; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13780$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013781if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013782 $as_echo_n "(cached) " >&6
13783else
13784 case $MAGIC_CMD in
13785[\\/*] | ?:[\\/]*)
13786 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13787 ;;
13788*)
13789 lt_save_MAGIC_CMD="$MAGIC_CMD"
13790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13791 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13792 for ac_dir in $ac_dummy; do
13793 IFS="$lt_save_ifs"
13794 test -z "$ac_dir" && ac_dir=.
13795 if test -f $ac_dir/file; then
13796 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13797 if test -n "$file_magic_test_file"; then
13798 case $deplibs_check_method in
13799 "file_magic "*)
13800 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13802 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13803 $EGREP "$file_magic_regex" > /dev/null; then
13804 :
13805 else
13806 cat <<_LT_EOF 1>&2
13807
13808*** Warning: the command libtool uses to detect shared libraries,
13809*** $file_magic_cmd, produces output that libtool cannot recognize.
13810*** The result is that libtool may fail to recognize shared libraries
13811*** as such. This will affect the creation of libtool libraries that
13812*** depend on shared libraries, but programs linked with such libtool
13813*** libraries will work regardless of this problem. Nevertheless, you
13814*** may want to report the problem to your system manager and/or to
13815*** bug-libtool@gnu.org
13816
13817_LT_EOF
13818 fi ;;
13819 esac
13820 fi
13821 break
13822 fi
13823 done
13824 IFS="$lt_save_ifs"
13825 MAGIC_CMD="$lt_save_MAGIC_CMD"
13826 ;;
13827esac
13828fi
13829
13830MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13831if test -n "$MAGIC_CMD"; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13833$as_echo "$MAGIC_CMD" >&6; }
13834else
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836$as_echo "no" >&6; }
13837fi
13838
13839
13840 else
13841 MAGIC_CMD=:
13842 fi
13843fi
13844
13845 fi
13846 ;;
13847esac
13848
13849# Use C for the default configuration in the libtool script
13850
13851lt_save_CC="$CC"
13852ac_ext=c
13853ac_cpp='$CPP $CPPFLAGS'
13854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856ac_compiler_gnu=$ac_cv_c_compiler_gnu
13857
13858
13859# Source file extension for C test sources.
13860ac_ext=c
13861
13862# Object file extension for compiled C test sources.
13863objext=o
13864objext=$objext
13865
13866# Code to be used in simple compile tests
13867lt_simple_compile_test_code="int some_variable = 0;"
13868
13869# Code to be used in simple link tests
13870lt_simple_link_test_code='int main(){return(0);}'
13871
13872
13873
13874
13875
13876
13877
13878# If no C compiler was specified, use CC.
13879LTCC=${LTCC-"$CC"}
13880
13881# If no C compiler flags were specified, use CFLAGS.
13882LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13883
13884# Allow CC to be a program name with arguments.
13885compiler=$CC
13886
13887# Save the default compiler, since it gets overwritten when the other
13888# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13889compiler_DEFAULT=$CC
13890
13891# save warnings/boilerplate of simple test code
13892ac_outfile=conftest.$ac_objext
13893echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13894eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13895_lt_compiler_boilerplate=`cat conftest.err`
13896$RM conftest*
13897
13898ac_outfile=conftest.$ac_objext
13899echo "$lt_simple_link_test_code" >conftest.$ac_ext
13900eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13901_lt_linker_boilerplate=`cat conftest.err`
13902$RM -r conftest*
13903
13904
13905## CAVEAT EMPTOR:
13906## There is no encapsulation within the following macros, do not change
13907## the running order or otherwise move them around unless you know exactly
13908## what you are doing...
13909if test -n "$compiler"; then
13910
13911lt_prog_compiler_no_builtin_flag=
13912
13913if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013914 case $cc_basename in
13915 nvcc*)
13916 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13917 *)
13918 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13919 esac
cristy73bd4a52010-10-05 11:24:23 +000013920
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13922$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013923if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013924 $as_echo_n "(cached) " >&6
13925else
13926 lt_cv_prog_compiler_rtti_exceptions=no
13927 ac_outfile=conftest.$ac_objext
13928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13929 lt_compiler_flag="-fno-rtti -fno-exceptions"
13930 # Insert the option either (1) after the last *FLAGS variable, or
13931 # (2) before a word containing "conftest.", or (3) at the end.
13932 # Note that $ac_compile itself does not contain backslashes and begins
13933 # with a dollar sign (not a hyphen), so the echo should work correctly.
13934 # The option is referenced via a variable to avoid confusing sed.
13935 lt_compile=`echo "$ac_compile" | $SED \
13936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13938 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013939 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013940 (eval "$lt_compile" 2>conftest.err)
13941 ac_status=$?
13942 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013944 if (exit $ac_status) && test -s "$ac_outfile"; then
13945 # The compiler can only warn and ignore the option if not recognized
13946 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13949 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13950 lt_cv_prog_compiler_rtti_exceptions=yes
13951 fi
13952 fi
13953 $RM conftest*
13954
13955fi
13956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13957$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13958
13959if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13960 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13961else
13962 :
13963fi
13964
13965fi
13966
13967
13968
13969
13970
13971
13972 lt_prog_compiler_wl=
13973lt_prog_compiler_pic=
13974lt_prog_compiler_static=
13975
cristy73bd4a52010-10-05 11:24:23 +000013976
13977 if test "$GCC" = yes; then
13978 lt_prog_compiler_wl='-Wl,'
13979 lt_prog_compiler_static='-static'
13980
13981 case $host_os in
13982 aix*)
13983 # All AIX code is PIC.
13984 if test "$host_cpu" = ia64; then
13985 # AIX 5 now supports IA64 processor
13986 lt_prog_compiler_static='-Bstatic'
13987 fi
13988 ;;
13989
13990 amigaos*)
13991 case $host_cpu in
13992 powerpc)
13993 # see comment about AmigaOS4 .so support
13994 lt_prog_compiler_pic='-fPIC'
13995 ;;
13996 m68k)
13997 # FIXME: we need at least 68020 code to build shared libraries, but
13998 # adding the `-m68020' flag to GCC prevents building anything better,
13999 # like `-m68040'.
14000 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14001 ;;
14002 esac
14003 ;;
14004
14005 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14006 # PIC is the default for these OSes.
14007 ;;
14008
14009 mingw* | cygwin* | pw32* | os2* | cegcc*)
14010 # This hack is so that the source file can tell whether it is being
14011 # built for inclusion in a dll (and should export symbols for example).
14012 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14013 # (--disable-auto-import) libraries
14014 lt_prog_compiler_pic='-DDLL_EXPORT'
14015 ;;
14016
14017 darwin* | rhapsody*)
14018 # PIC is the default on this platform
14019 # Common symbols not allowed in MH_DYLIB files
14020 lt_prog_compiler_pic='-fno-common'
14021 ;;
14022
cristy0c60a692010-11-04 01:09:47 +000014023 haiku*)
14024 # PIC is the default for Haiku.
14025 # The "-static" flag exists, but is broken.
14026 lt_prog_compiler_static=
14027 ;;
14028
cristy73bd4a52010-10-05 11:24:23 +000014029 hpux*)
14030 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14031 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14032 # sets the default TLS model and affects inlining.
14033 case $host_cpu in
14034 hppa*64*)
14035 # +Z the default
14036 ;;
14037 *)
14038 lt_prog_compiler_pic='-fPIC'
14039 ;;
14040 esac
14041 ;;
14042
14043 interix[3-9]*)
14044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14045 # Instead, we relocate shared libraries at runtime.
14046 ;;
14047
14048 msdosdjgpp*)
14049 # Just because we use GCC doesn't mean we suddenly get shared libraries
14050 # on systems that don't support them.
14051 lt_prog_compiler_can_build_shared=no
14052 enable_shared=no
14053 ;;
14054
14055 *nto* | *qnx*)
14056 # QNX uses GNU C++, but need to define -shared option too, otherwise
14057 # it will coredump.
14058 lt_prog_compiler_pic='-fPIC -shared'
14059 ;;
14060
14061 sysv4*MP*)
14062 if test -d /usr/nec; then
14063 lt_prog_compiler_pic=-Kconform_pic
14064 fi
14065 ;;
14066
14067 *)
14068 lt_prog_compiler_pic='-fPIC'
14069 ;;
14070 esac
cristy0c60a692010-11-04 01:09:47 +000014071
14072 case $cc_basename in
14073 nvcc*) # Cuda Compiler Driver 2.2
14074 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014075 if test -n "$lt_prog_compiler_pic"; then
14076 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14077 fi
cristy0c60a692010-11-04 01:09:47 +000014078 ;;
14079 esac
cristy73bd4a52010-10-05 11:24:23 +000014080 else
14081 # PORTME Check for flag to pass linker flags through the system compiler.
14082 case $host_os in
14083 aix*)
14084 lt_prog_compiler_wl='-Wl,'
14085 if test "$host_cpu" = ia64; then
14086 # AIX 5 now supports IA64 processor
14087 lt_prog_compiler_static='-Bstatic'
14088 else
14089 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14090 fi
14091 ;;
14092
14093 mingw* | cygwin* | pw32* | os2* | cegcc*)
14094 # This hack is so that the source file can tell whether it is being
14095 # built for inclusion in a dll (and should export symbols for example).
14096 lt_prog_compiler_pic='-DDLL_EXPORT'
14097 ;;
14098
14099 hpux9* | hpux10* | hpux11*)
14100 lt_prog_compiler_wl='-Wl,'
14101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14102 # not for PA HP-UX.
14103 case $host_cpu in
14104 hppa*64*|ia64*)
14105 # +Z the default
14106 ;;
14107 *)
14108 lt_prog_compiler_pic='+Z'
14109 ;;
14110 esac
14111 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14112 lt_prog_compiler_static='${wl}-a ${wl}archive'
14113 ;;
14114
14115 irix5* | irix6* | nonstopux*)
14116 lt_prog_compiler_wl='-Wl,'
14117 # PIC (with -KPIC) is the default.
14118 lt_prog_compiler_static='-non_shared'
14119 ;;
14120
cristy0c60a692010-11-04 01:09:47 +000014121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014122 case $cc_basename in
14123 # old Intel for x86_64 which still supported -KPIC.
14124 ecc*)
14125 lt_prog_compiler_wl='-Wl,'
14126 lt_prog_compiler_pic='-KPIC'
14127 lt_prog_compiler_static='-static'
14128 ;;
14129 # icc used to be incompatible with GCC.
14130 # ICC 10 doesn't accept -KPIC any more.
14131 icc* | ifort*)
14132 lt_prog_compiler_wl='-Wl,'
14133 lt_prog_compiler_pic='-fPIC'
14134 lt_prog_compiler_static='-static'
14135 ;;
14136 # Lahey Fortran 8.1.
14137 lf95*)
14138 lt_prog_compiler_wl='-Wl,'
14139 lt_prog_compiler_pic='--shared'
14140 lt_prog_compiler_static='--static'
14141 ;;
cristyda16f162011-02-19 23:52:17 +000014142 nagfor*)
14143 # NAG Fortran compiler
14144 lt_prog_compiler_wl='-Wl,-Wl,,'
14145 lt_prog_compiler_pic='-PIC'
14146 lt_prog_compiler_static='-Bstatic'
14147 ;;
cristy0c60a692010-11-04 01:09:47 +000014148 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014149 # Portland Group compilers (*not* the Pentium gcc compiler,
14150 # which looks to be a dead project)
14151 lt_prog_compiler_wl='-Wl,'
14152 lt_prog_compiler_pic='-fpic'
14153 lt_prog_compiler_static='-Bstatic'
14154 ;;
14155 ccc*)
14156 lt_prog_compiler_wl='-Wl,'
14157 # All Alpha code is PIC.
14158 lt_prog_compiler_static='-non_shared'
14159 ;;
cristy0c60a692010-11-04 01:09:47 +000014160 xl* | bgxl* | bgf* | mpixl*)
14161 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014162 lt_prog_compiler_wl='-Wl,'
14163 lt_prog_compiler_pic='-qpic'
14164 lt_prog_compiler_static='-qstaticlink'
14165 ;;
14166 *)
14167 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014168 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014169 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14170 lt_prog_compiler_pic='-KPIC'
14171 lt_prog_compiler_static='-Bstatic'
14172 lt_prog_compiler_wl=''
14173 ;;
cristy99bd5232011-12-07 14:38:20 +000014174 *Sun\ F* | *Sun*Fortran*)
14175 lt_prog_compiler_pic='-KPIC'
14176 lt_prog_compiler_static='-Bstatic'
14177 lt_prog_compiler_wl='-Qoption ld '
14178 ;;
cristy73bd4a52010-10-05 11:24:23 +000014179 *Sun\ C*)
14180 # Sun C 5.9
14181 lt_prog_compiler_pic='-KPIC'
14182 lt_prog_compiler_static='-Bstatic'
14183 lt_prog_compiler_wl='-Wl,'
14184 ;;
cristy99bd5232011-12-07 14:38:20 +000014185 *Intel*\ [CF]*Compiler*)
14186 lt_prog_compiler_wl='-Wl,'
14187 lt_prog_compiler_pic='-fPIC'
14188 lt_prog_compiler_static='-static'
14189 ;;
14190 *Portland\ Group*)
14191 lt_prog_compiler_wl='-Wl,'
14192 lt_prog_compiler_pic='-fpic'
14193 lt_prog_compiler_static='-Bstatic'
14194 ;;
cristy73bd4a52010-10-05 11:24:23 +000014195 esac
14196 ;;
14197 esac
14198 ;;
14199
14200 newsos6)
14201 lt_prog_compiler_pic='-KPIC'
14202 lt_prog_compiler_static='-Bstatic'
14203 ;;
14204
14205 *nto* | *qnx*)
14206 # QNX uses GNU C++, but need to define -shared option too, otherwise
14207 # it will coredump.
14208 lt_prog_compiler_pic='-fPIC -shared'
14209 ;;
14210
14211 osf3* | osf4* | osf5*)
14212 lt_prog_compiler_wl='-Wl,'
14213 # All OSF/1 code is PIC.
14214 lt_prog_compiler_static='-non_shared'
14215 ;;
14216
14217 rdos*)
14218 lt_prog_compiler_static='-non_shared'
14219 ;;
14220
14221 solaris*)
14222 lt_prog_compiler_pic='-KPIC'
14223 lt_prog_compiler_static='-Bstatic'
14224 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014225 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014226 lt_prog_compiler_wl='-Qoption ld ';;
14227 *)
14228 lt_prog_compiler_wl='-Wl,';;
14229 esac
14230 ;;
14231
14232 sunos4*)
14233 lt_prog_compiler_wl='-Qoption ld '
14234 lt_prog_compiler_pic='-PIC'
14235 lt_prog_compiler_static='-Bstatic'
14236 ;;
14237
14238 sysv4 | sysv4.2uw2* | sysv4.3*)
14239 lt_prog_compiler_wl='-Wl,'
14240 lt_prog_compiler_pic='-KPIC'
14241 lt_prog_compiler_static='-Bstatic'
14242 ;;
14243
14244 sysv4*MP*)
14245 if test -d /usr/nec ;then
14246 lt_prog_compiler_pic='-Kconform_pic'
14247 lt_prog_compiler_static='-Bstatic'
14248 fi
14249 ;;
14250
14251 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14252 lt_prog_compiler_wl='-Wl,'
14253 lt_prog_compiler_pic='-KPIC'
14254 lt_prog_compiler_static='-Bstatic'
14255 ;;
14256
14257 unicos*)
14258 lt_prog_compiler_wl='-Wl,'
14259 lt_prog_compiler_can_build_shared=no
14260 ;;
14261
14262 uts4*)
14263 lt_prog_compiler_pic='-pic'
14264 lt_prog_compiler_static='-Bstatic'
14265 ;;
14266
14267 *)
14268 lt_prog_compiler_can_build_shared=no
14269 ;;
14270 esac
14271 fi
14272
14273case $host_os in
14274 # For platforms which do not support PIC, -DPIC is meaningless:
14275 *djgpp*)
14276 lt_prog_compiler_pic=
14277 ;;
14278 *)
14279 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14280 ;;
14281esac
cristy73bd4a52010-10-05 11:24:23 +000014282
cristyda16f162011-02-19 23:52:17 +000014283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14284$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14285if ${lt_cv_prog_compiler_pic+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287else
14288 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14289fi
14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14291$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14292lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014293
14294#
14295# Check to make sure the PIC flag actually works.
14296#
14297if test -n "$lt_prog_compiler_pic"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14299$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014300if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014301 $as_echo_n "(cached) " >&6
14302else
14303 lt_cv_prog_compiler_pic_works=no
14304 ac_outfile=conftest.$ac_objext
14305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14306 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14307 # Insert the option either (1) after the last *FLAGS variable, or
14308 # (2) before a word containing "conftest.", or (3) at the end.
14309 # Note that $ac_compile itself does not contain backslashes and begins
14310 # with a dollar sign (not a hyphen), so the echo should work correctly.
14311 # The option is referenced via a variable to avoid confusing sed.
14312 lt_compile=`echo "$ac_compile" | $SED \
14313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14315 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014317 (eval "$lt_compile" 2>conftest.err)
14318 ac_status=$?
14319 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014321 if (exit $ac_status) && test -s "$ac_outfile"; then
14322 # The compiler can only warn and ignore the option if not recognized
14323 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14327 lt_cv_prog_compiler_pic_works=yes
14328 fi
14329 fi
14330 $RM conftest*
14331
14332fi
14333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14334$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14335
14336if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14337 case $lt_prog_compiler_pic in
14338 "" | " "*) ;;
14339 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14340 esac
14341else
14342 lt_prog_compiler_pic=
14343 lt_prog_compiler_can_build_shared=no
14344fi
14345
14346fi
14347
14348
14349
14350
14351
14352
cristyda16f162011-02-19 23:52:17 +000014353
14354
14355
14356
14357
cristy73bd4a52010-10-05 11:24:23 +000014358#
14359# Check to make sure the static flag actually works.
14360#
14361wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14363$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014364if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014365 $as_echo_n "(cached) " >&6
14366else
14367 lt_cv_prog_compiler_static_works=no
14368 save_LDFLAGS="$LDFLAGS"
14369 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14370 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14372 # The linker can only warn and ignore the option if not recognized
14373 # So say no if there are warnings
14374 if test -s conftest.err; then
14375 # Append any errors to the config.log.
14376 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014377 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14379 if diff conftest.exp conftest.er2 >/dev/null; then
14380 lt_cv_prog_compiler_static_works=yes
14381 fi
14382 else
14383 lt_cv_prog_compiler_static_works=yes
14384 fi
14385 fi
14386 $RM -r conftest*
14387 LDFLAGS="$save_LDFLAGS"
14388
14389fi
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14391$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14392
14393if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14394 :
14395else
14396 lt_prog_compiler_static=
14397fi
14398
14399
14400
14401
14402
14403
14404
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14406$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014407if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014408 $as_echo_n "(cached) " >&6
14409else
14410 lt_cv_prog_compiler_c_o=no
14411 $RM -r conftest 2>/dev/null
14412 mkdir conftest
14413 cd conftest
14414 mkdir out
14415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14416
14417 lt_compiler_flag="-o out/conftest2.$ac_objext"
14418 # Insert the option either (1) after the last *FLAGS variable, or
14419 # (2) before a word containing "conftest.", or (3) at the end.
14420 # Note that $ac_compile itself does not contain backslashes and begins
14421 # with a dollar sign (not a hyphen), so the echo should work correctly.
14422 lt_compile=`echo "$ac_compile" | $SED \
14423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14425 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014427 (eval "$lt_compile" 2>out/conftest.err)
14428 ac_status=$?
14429 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014431 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14432 then
14433 # The compiler can only warn and ignore the option if not recognized
14434 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014436 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14437 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14438 lt_cv_prog_compiler_c_o=yes
14439 fi
14440 fi
14441 chmod u+w . 2>&5
14442 $RM conftest*
14443 # SGI C++ compiler will create directory out/ii_files/ for
14444 # template instantiation
14445 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14446 $RM out/* && rmdir out
14447 cd ..
14448 $RM -r conftest
14449 $RM conftest*
14450
14451fi
14452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14453$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14454
14455
14456
14457
14458
14459
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14461$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014462if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014463 $as_echo_n "(cached) " >&6
14464else
14465 lt_cv_prog_compiler_c_o=no
14466 $RM -r conftest 2>/dev/null
14467 mkdir conftest
14468 cd conftest
14469 mkdir out
14470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14471
14472 lt_compiler_flag="-o out/conftest2.$ac_objext"
14473 # Insert the option either (1) after the last *FLAGS variable, or
14474 # (2) before a word containing "conftest.", or (3) at the end.
14475 # Note that $ac_compile itself does not contain backslashes and begins
14476 # with a dollar sign (not a hyphen), so the echo should work correctly.
14477 lt_compile=`echo "$ac_compile" | $SED \
14478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14480 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014482 (eval "$lt_compile" 2>out/conftest.err)
14483 ac_status=$?
14484 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14487 then
14488 # The compiler can only warn and ignore the option if not recognized
14489 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014490 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14493 lt_cv_prog_compiler_c_o=yes
14494 fi
14495 fi
14496 chmod u+w . 2>&5
14497 $RM conftest*
14498 # SGI C++ compiler will create directory out/ii_files/ for
14499 # template instantiation
14500 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14501 $RM out/* && rmdir out
14502 cd ..
14503 $RM -r conftest
14504 $RM conftest*
14505
14506fi
14507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14508$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14509
14510
14511
14512
14513hard_links="nottested"
14514if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14515 # do not overwrite the value of need_locks provided by the user
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14517$as_echo_n "checking if we can lock with hard links... " >&6; }
14518 hard_links=yes
14519 $RM conftest*
14520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14521 touch conftest.a
14522 ln conftest.a conftest.b 2>&5 || hard_links=no
14523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14525$as_echo "$hard_links" >&6; }
14526 if test "$hard_links" = no; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14528$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14529 need_locks=warn
14530 fi
14531else
14532 need_locks=no
14533fi
14534
14535
14536
14537
14538
14539
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14541$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14542
14543 runpath_var=
14544 allow_undefined_flag=
14545 always_export_symbols=no
14546 archive_cmds=
14547 archive_expsym_cmds=
14548 compiler_needs_object=no
14549 enable_shared_with_static_runtimes=no
14550 export_dynamic_flag_spec=
14551 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14552 hardcode_automatic=no
14553 hardcode_direct=no
14554 hardcode_direct_absolute=no
14555 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014556 hardcode_libdir_separator=
14557 hardcode_minus_L=no
14558 hardcode_shlibpath_var=unsupported
14559 inherit_rpath=no
14560 link_all_deplibs=unknown
14561 module_cmds=
14562 module_expsym_cmds=
14563 old_archive_from_new_cmds=
14564 old_archive_from_expsyms_cmds=
14565 thread_safe_flag_spec=
14566 whole_archive_flag_spec=
14567 # include_expsyms should be a list of space-separated symbols to be *always*
14568 # included in the symbol list
14569 include_expsyms=
14570 # exclude_expsyms can be an extended regexp of symbols to exclude
14571 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14572 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14573 # as well as any symbol that contains `d'.
14574 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14575 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14576 # platforms (ab)use it in PIC code, but their linkers get confused if
14577 # the symbol is explicitly referenced. Since portable code cannot
14578 # rely on this symbol name, it's probably fine to never include it in
14579 # preloaded symbol tables.
14580 # Exclude shared library initialization/finalization symbols.
14581 extract_expsyms_cmds=
14582
14583 case $host_os in
14584 cygwin* | mingw* | pw32* | cegcc*)
14585 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14586 # When not using gcc, we currently assume that we are using
14587 # Microsoft Visual C++.
14588 if test "$GCC" != yes; then
14589 with_gnu_ld=no
14590 fi
14591 ;;
14592 interix*)
14593 # we just hope/assume this is gcc and not c89 (= MSVC++)
14594 with_gnu_ld=yes
14595 ;;
14596 openbsd*)
14597 with_gnu_ld=no
14598 ;;
14599 esac
14600
14601 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014602
14603 # On some targets, GNU ld is compatible enough with the native linker
14604 # that we're better off using the native interface for both.
14605 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014606 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014607 case $host_os in
14608 aix*)
14609 # The AIX port of GNU ld has always aspired to compatibility
14610 # with the native linker. However, as the warning in the GNU ld
14611 # block says, versions before 2.19.5* couldn't really create working
14612 # shared libraries, regardless of the interface used.
14613 case `$LD -v 2>&1` in
14614 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14615 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14616 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14617 *)
14618 lt_use_gnu_ld_interface=yes
14619 ;;
14620 esac
14621 ;;
14622 *)
14623 lt_use_gnu_ld_interface=yes
14624 ;;
14625 esac
14626 fi
14627
14628 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014629 # If archive_cmds runs LD, not CC, wlarc should be empty
14630 wlarc='${wl}'
14631
14632 # Set some defaults for GNU ld with shared library support. These
14633 # are reset later if shared libraries are not supported. Putting them
14634 # here allows them to be overridden if necessary.
14635 runpath_var=LD_RUN_PATH
14636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14637 export_dynamic_flag_spec='${wl}--export-dynamic'
14638 # ancient GNU ld didn't support --whole-archive et. al.
14639 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14640 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14641 else
14642 whole_archive_flag_spec=
14643 fi
14644 supports_anon_versioning=no
14645 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014646 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014647 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14648 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14649 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14650 *\ 2.11.*) ;; # other 2.11 versions
14651 *) supports_anon_versioning=yes ;;
14652 esac
14653
14654 # See if GNU ld supports shared libraries.
14655 case $host_os in
14656 aix[3-9]*)
14657 # On AIX/PPC, the GNU linker is very broken
14658 if test "$host_cpu" != ia64; then
14659 ld_shlibs=no
14660 cat <<_LT_EOF 1>&2
14661
cristy0c60a692010-11-04 01:09:47 +000014662*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014663*** to be unable to reliably create shared libraries on AIX.
14664*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014665*** really care for shared libraries, you may want to install binutils
14666*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14667*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014668
14669_LT_EOF
14670 fi
14671 ;;
14672
14673 amigaos*)
14674 case $host_cpu in
14675 powerpc)
14676 # see comment about AmigaOS4 .so support
14677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14678 archive_expsym_cmds=''
14679 ;;
14680 m68k)
14681 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)'
14682 hardcode_libdir_flag_spec='-L$libdir'
14683 hardcode_minus_L=yes
14684 ;;
14685 esac
14686 ;;
14687
14688 beos*)
14689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14690 allow_undefined_flag=unsupported
14691 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14692 # support --undefined. This deserves some investigation. FIXME
14693 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14694 else
14695 ld_shlibs=no
14696 fi
14697 ;;
14698
14699 cygwin* | mingw* | pw32* | cegcc*)
14700 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14701 # as there is no search path for DLLs.
14702 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014703 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014704 allow_undefined_flag=unsupported
14705 always_export_symbols=no
14706 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014707 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'
14708 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 +000014709
14710 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14712 # If the export-symbols file already is a .def file (1st line
14713 # is EXPORTS), use it as is; otherwise, prepend...
14714 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14715 cp $export_symbols $output_objdir/$soname.def;
14716 else
14717 echo EXPORTS > $output_objdir/$soname.def;
14718 cat $export_symbols >> $output_objdir/$soname.def;
14719 fi~
14720 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14721 else
14722 ld_shlibs=no
14723 fi
14724 ;;
14725
cristy0c60a692010-11-04 01:09:47 +000014726 haiku*)
14727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14728 link_all_deplibs=yes
14729 ;;
14730
cristy73bd4a52010-10-05 11:24:23 +000014731 interix[3-9]*)
14732 hardcode_direct=no
14733 hardcode_shlibpath_var=no
14734 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14735 export_dynamic_flag_spec='${wl}-E'
14736 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14737 # Instead, shared libraries are loaded at an image base (0x10000000 by
14738 # default) and relocated if they conflict, which is a slow very memory
14739 # consuming and fragmenting process. To avoid this, we pick a random,
14740 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14741 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14742 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14743 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'
14744 ;;
14745
cristy0c60a692010-11-04 01:09:47 +000014746 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014747 tmp_diet=no
14748 if test "$host_os" = linux-dietlibc; then
14749 case $cc_basename in
14750 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14751 esac
14752 fi
14753 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14754 && test "$tmp_diet" = no
14755 then
cristyda16f162011-02-19 23:52:17 +000014756 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014757 tmp_sharedflag='-shared'
14758 case $cc_basename,$host_cpu in
14759 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014760 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 +000014761 tmp_addflag=' $pic_flag'
14762 ;;
cristy0c60a692010-11-04 01:09:47 +000014763 pgf77* | pgf90* | pgf95* | pgfortran*)
14764 # Portland Group f77 and f90 compilers
14765 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 +000014766 tmp_addflag=' $pic_flag -Mnomain' ;;
14767 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14768 tmp_addflag=' -i_dynamic' ;;
14769 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14770 tmp_addflag=' -i_dynamic -nofor_main' ;;
14771 ifc* | ifort*) # Intel Fortran compiler
14772 tmp_addflag=' -nofor_main' ;;
14773 lf95*) # Lahey Fortran 8.1
14774 whole_archive_flag_spec=
14775 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014776 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014777 tmp_sharedflag='-qmkshrobj'
14778 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014779 nvcc*) # Cuda Compiler Driver 2.2
14780 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'
14781 compiler_needs_object=yes
14782 ;;
cristy73bd4a52010-10-05 11:24:23 +000014783 esac
14784 case `$CC -V 2>&1 | sed 5q` in
14785 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014786 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 +000014787 compiler_needs_object=yes
14788 tmp_sharedflag='-G' ;;
14789 *Sun\ F*) # Sun Fortran 8.3
14790 tmp_sharedflag='-G' ;;
14791 esac
14792 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14793
14794 if test "x$supports_anon_versioning" = xyes; then
14795 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14796 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14797 echo "local: *; };" >> $output_objdir/$libname.ver~
14798 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14799 fi
14800
14801 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014802 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014803 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14804 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014806 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014807 if test "x$supports_anon_versioning" = xyes; then
14808 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14809 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14810 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014811 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014812 fi
14813 ;;
14814 esac
14815 else
14816 ld_shlibs=no
14817 fi
14818 ;;
14819
14820 netbsd*)
14821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14822 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14823 wlarc=
14824 else
cristyda16f162011-02-19 23:52:17 +000014825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14826 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 +000014827 fi
14828 ;;
14829
14830 solaris*)
14831 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14832 ld_shlibs=no
14833 cat <<_LT_EOF 1>&2
14834
14835*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14836*** create shared libraries on Solaris systems. Therefore, libtool
14837*** is disabling shared libraries support. We urge you to upgrade GNU
14838*** binutils to release 2.9.1 or newer. Another option is to modify
14839*** your PATH or compiler configuration so that the native linker is
14840*** used, and then restart.
14841
14842_LT_EOF
14843 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14845 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 +000014846 else
14847 ld_shlibs=no
14848 fi
14849 ;;
14850
14851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14852 case `$LD -v 2>&1` in
14853 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14854 ld_shlibs=no
14855 cat <<_LT_EOF 1>&2
14856
14857*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14858*** reliably create shared libraries on SCO systems. Therefore, libtool
14859*** is disabling shared libraries support. We urge you to upgrade GNU
14860*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14861*** your PATH or compiler configuration so that the native linker is
14862*** used, and then restart.
14863
14864_LT_EOF
14865 ;;
14866 *)
14867 # For security reasons, it is highly recommended that you always
14868 # use absolute paths for naming shared libraries, and exclude the
14869 # DT_RUNPATH tag from executables and libraries. But doing so
14870 # requires that you compile everything twice, which is a pain.
14871 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14874 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14875 else
14876 ld_shlibs=no
14877 fi
14878 ;;
14879 esac
14880 ;;
14881
14882 sunos4*)
14883 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14884 wlarc=
14885 hardcode_direct=yes
14886 hardcode_shlibpath_var=no
14887 ;;
14888
14889 *)
14890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14892 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 +000014893 else
14894 ld_shlibs=no
14895 fi
14896 ;;
14897 esac
14898
14899 if test "$ld_shlibs" = no; then
14900 runpath_var=
14901 hardcode_libdir_flag_spec=
14902 export_dynamic_flag_spec=
14903 whole_archive_flag_spec=
14904 fi
14905 else
14906 # PORTME fill in a description of your system's linker (not GNU ld)
14907 case $host_os in
14908 aix3*)
14909 allow_undefined_flag=unsupported
14910 always_export_symbols=yes
14911 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'
14912 # Note: this linker hardcodes the directories in LIBPATH if there
14913 # are no directories specified by -L.
14914 hardcode_minus_L=yes
14915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14916 # Neither direct hardcoding nor static linking is supported with a
14917 # broken collect2.
14918 hardcode_direct=unsupported
14919 fi
14920 ;;
14921
14922 aix[4-9]*)
14923 if test "$host_cpu" = ia64; then
14924 # On IA64, the linker does run time linking by default, so we don't
14925 # have to do anything special.
14926 aix_use_runtimelinking=no
14927 exp_sym_flag='-Bexport'
14928 no_entry_flag=""
14929 else
14930 # If we're using GNU nm, then we don't want the "-C" option.
14931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014932 # Also, AIX nm treats weak defined symbols like other global
14933 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014934 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014935 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 +000014936 else
14937 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'
14938 fi
14939 aix_use_runtimelinking=no
14940
14941 # Test if we are trying to use run time linking or normal
14942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14943 # need to do runtime linking.
14944 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14945 for ld_flag in $LDFLAGS; do
14946 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14947 aix_use_runtimelinking=yes
14948 break
14949 fi
14950 done
14951 ;;
14952 esac
14953
14954 exp_sym_flag='-bexport'
14955 no_entry_flag='-bnoentry'
14956 fi
14957
14958 # When large executables or shared objects are built, AIX ld can
14959 # have problems creating the table of contents. If linking a library
14960 # or program results in "error TOC overflow" add -mminimal-toc to
14961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14963
14964 archive_cmds=''
14965 hardcode_direct=yes
14966 hardcode_direct_absolute=yes
14967 hardcode_libdir_separator=':'
14968 link_all_deplibs=yes
14969 file_list_spec='${wl}-f,'
14970
14971 if test "$GCC" = yes; then
14972 case $host_os in aix4.[012]|aix4.[012].*)
14973 # We only want to do this on AIX 4.2 and lower, the check
14974 # below for broken collect2 doesn't work under 4.3+
14975 collect2name=`${CC} -print-prog-name=collect2`
14976 if test -f "$collect2name" &&
14977 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14978 then
14979 # We have reworked collect2
14980 :
14981 else
14982 # We have old collect2
14983 hardcode_direct=unsupported
14984 # It fails to find uninstalled libraries when the uninstalled
14985 # path is not listed in the libpath. Setting hardcode_minus_L
14986 # to unsupported forces relinking
14987 hardcode_minus_L=yes
14988 hardcode_libdir_flag_spec='-L$libdir'
14989 hardcode_libdir_separator=
14990 fi
14991 ;;
14992 esac
14993 shared_flag='-shared'
14994 if test "$aix_use_runtimelinking" = yes; then
14995 shared_flag="$shared_flag "'${wl}-G'
14996 fi
14997 else
14998 # not using gcc
14999 if test "$host_cpu" = ia64; then
15000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15001 # chokes on -Wl,-G. The following line is correct:
15002 shared_flag='-G'
15003 else
15004 if test "$aix_use_runtimelinking" = yes; then
15005 shared_flag='${wl}-G'
15006 else
15007 shared_flag='${wl}-bM:SRE'
15008 fi
15009 fi
15010 fi
15011
15012 export_dynamic_flag_spec='${wl}-bexpall'
15013 # It seems that -bexpall does not export symbols beginning with
15014 # underscore (_), so it is better to generate a list of symbols to export.
15015 always_export_symbols=yes
15016 if test "$aix_use_runtimelinking" = yes; then
15017 # Warning - without using the other runtime loading flags (-brtl),
15018 # -berok will link without error, but may produce a broken library.
15019 allow_undefined_flag='-berok'
15020 # Determine the default libpath from the value encoded in an
15021 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015022 if test "${lt_cv_aix_libpath+set}" = set; then
15023 aix_libpath=$lt_cv_aix_libpath
15024else
15025 if ${lt_cv_aix_libpath_+:} false; then :
15026 $as_echo_n "(cached) " >&6
15027else
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015029/* end confdefs.h. */
15030
15031int
15032main ()
15033{
15034
15035 ;
15036 return 0;
15037}
15038_ACEOF
15039if ac_fn_c_try_link "$LINENO"; then :
15040
cristyda16f162011-02-19 23:52:17 +000015041 lt_aix_libpath_sed='
15042 /Import File Strings/,/^$/ {
15043 /^0/ {
15044 s/^0 *\([^ ]*\) *$/\1/
15045 p
15046 }
15047 }'
15048 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15049 # Check for a 64-bit object if we didn't find anything.
15050 if test -z "$lt_cv_aix_libpath_"; then
15051 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15052 fi
cristy73bd4a52010-10-05 11:24:23 +000015053fi
15054rm -f core conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015056 if test -z "$lt_cv_aix_libpath_"; then
15057 lt_cv_aix_libpath_="/usr/lib:/lib"
15058 fi
15059
15060fi
15061
15062 aix_libpath=$lt_cv_aix_libpath_
15063fi
cristy73bd4a52010-10-05 11:24:23 +000015064
15065 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015066 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 +000015067 else
15068 if test "$host_cpu" = ia64; then
15069 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15070 allow_undefined_flag="-z nodefs"
15071 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"
15072 else
15073 # Determine the default libpath from the value encoded in an
15074 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015075 if test "${lt_cv_aix_libpath+set}" = set; then
15076 aix_libpath=$lt_cv_aix_libpath
15077else
15078 if ${lt_cv_aix_libpath_+:} false; then :
15079 $as_echo_n "(cached) " >&6
15080else
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015082/* end confdefs.h. */
15083
15084int
15085main ()
15086{
15087
15088 ;
15089 return 0;
15090}
15091_ACEOF
15092if ac_fn_c_try_link "$LINENO"; then :
15093
cristyda16f162011-02-19 23:52:17 +000015094 lt_aix_libpath_sed='
15095 /Import File Strings/,/^$/ {
15096 /^0/ {
15097 s/^0 *\([^ ]*\) *$/\1/
15098 p
15099 }
15100 }'
15101 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15102 # Check for a 64-bit object if we didn't find anything.
15103 if test -z "$lt_cv_aix_libpath_"; then
15104 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15105 fi
cristy73bd4a52010-10-05 11:24:23 +000015106fi
15107rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015109 if test -z "$lt_cv_aix_libpath_"; then
15110 lt_cv_aix_libpath_="/usr/lib:/lib"
15111 fi
15112
15113fi
15114
15115 aix_libpath=$lt_cv_aix_libpath_
15116fi
cristy73bd4a52010-10-05 11:24:23 +000015117
15118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15119 # Warning - without using the other run time loading flags,
15120 # -berok will link without error, but may produce a broken library.
15121 no_undefined_flag=' ${wl}-bernotok'
15122 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015123 if test "$with_gnu_ld" = yes; then
15124 # We only use this code for GNU lds that support --whole-archive.
15125 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15126 else
15127 # Exported symbols can be pulled into shared objects from archives
15128 whole_archive_flag_spec='$convenience'
15129 fi
cristy73bd4a52010-10-05 11:24:23 +000015130 archive_cmds_need_lc=yes
15131 # This is similar to how AIX traditionally builds its shared libraries.
15132 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'
15133 fi
15134 fi
15135 ;;
15136
15137 amigaos*)
15138 case $host_cpu in
15139 powerpc)
15140 # see comment about AmigaOS4 .so support
15141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142 archive_expsym_cmds=''
15143 ;;
15144 m68k)
15145 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)'
15146 hardcode_libdir_flag_spec='-L$libdir'
15147 hardcode_minus_L=yes
15148 ;;
15149 esac
15150 ;;
15151
15152 bsdi[45]*)
15153 export_dynamic_flag_spec=-rdynamic
15154 ;;
15155
15156 cygwin* | mingw* | pw32* | cegcc*)
15157 # When not using gcc, we currently assume that we are using
15158 # Microsoft Visual C++.
15159 # hardcode_libdir_flag_spec is actually meaningless, as there is
15160 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015161 case $cc_basename in
15162 cl*)
15163 # Native MSVC
15164 hardcode_libdir_flag_spec=' '
15165 allow_undefined_flag=unsupported
15166 always_export_symbols=yes
15167 file_list_spec='@'
15168 # Tell ltmain to make .lib files, not .a files.
15169 libext=lib
15170 # Tell ltmain to make .dll files, not .so files.
15171 shrext_cmds=".dll"
15172 # FIXME: Setting linknames here is a bad hack.
15173 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15174 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15175 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15176 else
15177 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15178 fi~
15179 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15180 linknames='
15181 # The linker will not automatically build a static lib if we build a DLL.
15182 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15183 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015184 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15186 # Don't use ranlib
15187 old_postinstall_cmds='chmod 644 $oldlib'
15188 postlink_cmds='lt_outputfile="@OUTPUT@"~
15189 lt_tool_outputfile="@TOOL_OUTPUT@"~
15190 case $lt_outputfile in
15191 *.exe|*.EXE) ;;
15192 *)
15193 lt_outputfile="$lt_outputfile.exe"
15194 lt_tool_outputfile="$lt_tool_outputfile.exe"
15195 ;;
15196 esac~
15197 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15198 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15199 $RM "$lt_outputfile.manifest";
15200 fi'
15201 ;;
15202 *)
15203 # Assume MSVC wrapper
15204 hardcode_libdir_flag_spec=' '
15205 allow_undefined_flag=unsupported
15206 # Tell ltmain to make .lib files, not .a files.
15207 libext=lib
15208 # Tell ltmain to make .dll files, not .so files.
15209 shrext_cmds=".dll"
15210 # FIXME: Setting linknames here is a bad hack.
15211 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15212 # The linker will automatically build a .lib file if we build a DLL.
15213 old_archive_from_new_cmds='true'
15214 # FIXME: Should let the user specify the lib program.
15215 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15216 enable_shared_with_static_runtimes=yes
15217 ;;
15218 esac
cristy73bd4a52010-10-05 11:24:23 +000015219 ;;
15220
15221 darwin* | rhapsody*)
15222
15223
15224 archive_cmds_need_lc=no
15225 hardcode_direct=no
15226 hardcode_automatic=yes
15227 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015228 if test "$lt_cv_ld_force_load" = "yes"; then
15229 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 +000015230
cristy0c60a692010-11-04 01:09:47 +000015231 else
15232 whole_archive_flag_spec=''
15233 fi
cristy73bd4a52010-10-05 11:24:23 +000015234 link_all_deplibs=yes
15235 allow_undefined_flag="$_lt_dar_allow_undefined"
15236 case $cc_basename in
15237 ifort*) _lt_dar_can_shared=yes ;;
15238 *) _lt_dar_can_shared=$GCC ;;
15239 esac
15240 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015241 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015242 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15243 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15244 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}"
15245 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}"
15246
15247 else
15248 ld_shlibs=no
15249 fi
15250
15251 ;;
15252
15253 dgux*)
15254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15255 hardcode_libdir_flag_spec='-L$libdir'
15256 hardcode_shlibpath_var=no
15257 ;;
15258
cristy73bd4a52010-10-05 11:24:23 +000015259 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15260 # support. Future versions do this automatically, but an explicit c++rt0.o
15261 # does not break anything, and helps significantly (at the cost of a little
15262 # extra space).
15263 freebsd2.2*)
15264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15265 hardcode_libdir_flag_spec='-R$libdir'
15266 hardcode_direct=yes
15267 hardcode_shlibpath_var=no
15268 ;;
15269
15270 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015271 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15273 hardcode_direct=yes
15274 hardcode_minus_L=yes
15275 hardcode_shlibpath_var=no
15276 ;;
15277
15278 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15279 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015281 hardcode_libdir_flag_spec='-R$libdir'
15282 hardcode_direct=yes
15283 hardcode_shlibpath_var=no
15284 ;;
15285
15286 hpux9*)
15287 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015288 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 +000015289 else
15290 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'
15291 fi
15292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15293 hardcode_libdir_separator=:
15294 hardcode_direct=yes
15295
15296 # hardcode_minus_L: Not really in the search PATH,
15297 # but as the default location of the library.
15298 hardcode_minus_L=yes
15299 export_dynamic_flag_spec='${wl}-E'
15300 ;;
15301
15302 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015303 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015304 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 +000015305 else
15306 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15307 fi
15308 if test "$with_gnu_ld" = no; then
15309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015310 hardcode_libdir_separator=:
15311 hardcode_direct=yes
15312 hardcode_direct_absolute=yes
15313 export_dynamic_flag_spec='${wl}-E'
15314 # hardcode_minus_L: Not really in the search PATH,
15315 # but as the default location of the library.
15316 hardcode_minus_L=yes
15317 fi
15318 ;;
15319
15320 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015321 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015322 case $host_cpu in
15323 hppa*64*)
15324 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15325 ;;
15326 ia64*)
cristyda16f162011-02-19 23:52:17 +000015327 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015328 ;;
15329 *)
cristyda16f162011-02-19 23:52:17 +000015330 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 +000015331 ;;
15332 esac
15333 else
15334 case $host_cpu in
15335 hppa*64*)
15336 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15337 ;;
15338 ia64*)
15339 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15340 ;;
15341 *)
cristy0c60a692010-11-04 01:09:47 +000015342
15343 # Older versions of the 11.00 compiler do not understand -b yet
15344 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15346$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015347if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015348 $as_echo_n "(cached) " >&6
15349else
15350 lt_cv_prog_compiler__b=no
15351 save_LDFLAGS="$LDFLAGS"
15352 LDFLAGS="$LDFLAGS -b"
15353 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15355 # The linker can only warn and ignore the option if not recognized
15356 # So say no if there are warnings
15357 if test -s conftest.err; then
15358 # Append any errors to the config.log.
15359 cat conftest.err 1>&5
15360 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15362 if diff conftest.exp conftest.er2 >/dev/null; then
15363 lt_cv_prog_compiler__b=yes
15364 fi
15365 else
15366 lt_cv_prog_compiler__b=yes
15367 fi
15368 fi
15369 $RM -r conftest*
15370 LDFLAGS="$save_LDFLAGS"
15371
15372fi
15373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15374$as_echo "$lt_cv_prog_compiler__b" >&6; }
15375
15376if test x"$lt_cv_prog_compiler__b" = xyes; then
15377 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15378else
15379 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15380fi
15381
cristy73bd4a52010-10-05 11:24:23 +000015382 ;;
15383 esac
15384 fi
15385 if test "$with_gnu_ld" = no; then
15386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15387 hardcode_libdir_separator=:
15388
15389 case $host_cpu in
15390 hppa*64*|ia64*)
15391 hardcode_direct=no
15392 hardcode_shlibpath_var=no
15393 ;;
15394 *)
15395 hardcode_direct=yes
15396 hardcode_direct_absolute=yes
15397 export_dynamic_flag_spec='${wl}-E'
15398
15399 # hardcode_minus_L: Not really in the search PATH,
15400 # but as the default location of the library.
15401 hardcode_minus_L=yes
15402 ;;
15403 esac
15404 fi
15405 ;;
15406
15407 irix5* | irix6* | nonstopux*)
15408 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015409 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 +000015410 # Try to use the -exported_symbol ld option, if it does not
15411 # work, assume that -exports_file does not work either and
15412 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015413 # This should be the same for all languages, so no per-tag cache variable.
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15415$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15416if ${lt_cv_irix_exported_symbol+:} false; then :
15417 $as_echo_n "(cached) " >&6
15418else
15419 save_LDFLAGS="$LDFLAGS"
15420 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015422/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015423int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015424_ACEOF
15425if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015426 lt_cv_irix_exported_symbol=yes
15427else
15428 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015429fi
15430rm -f core conftest.err conftest.$ac_objext \
15431 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015432 LDFLAGS="$save_LDFLAGS"
15433fi
15434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15435$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15436 if test "$lt_cv_irix_exported_symbol" = yes; then
15437 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'
15438 fi
cristy73bd4a52010-10-05 11:24:23 +000015439 else
cristy0c60a692010-11-04 01:09:47 +000015440 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'
15441 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 +000015442 fi
15443 archive_cmds_need_lc='no'
15444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15445 hardcode_libdir_separator=:
15446 inherit_rpath=yes
15447 link_all_deplibs=yes
15448 ;;
15449
15450 netbsd*)
15451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15453 else
15454 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15455 fi
15456 hardcode_libdir_flag_spec='-R$libdir'
15457 hardcode_direct=yes
15458 hardcode_shlibpath_var=no
15459 ;;
15460
15461 newsos6)
15462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15463 hardcode_direct=yes
15464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15465 hardcode_libdir_separator=:
15466 hardcode_shlibpath_var=no
15467 ;;
15468
15469 *nto* | *qnx*)
15470 ;;
15471
15472 openbsd*)
15473 if test -f /usr/libexec/ld.so; then
15474 hardcode_direct=yes
15475 hardcode_shlibpath_var=no
15476 hardcode_direct_absolute=yes
15477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15479 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15481 export_dynamic_flag_spec='${wl}-E'
15482 else
15483 case $host_os in
15484 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15486 hardcode_libdir_flag_spec='-R$libdir'
15487 ;;
15488 *)
15489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15490 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15491 ;;
15492 esac
15493 fi
15494 else
15495 ld_shlibs=no
15496 fi
15497 ;;
15498
15499 os2*)
15500 hardcode_libdir_flag_spec='-L$libdir'
15501 hardcode_minus_L=yes
15502 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015503 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 +000015504 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15505 ;;
15506
15507 osf3*)
15508 if test "$GCC" = yes; then
15509 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015510 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 +000015511 else
15512 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015513 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 +000015514 fi
15515 archive_cmds_need_lc='no'
15516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15517 hardcode_libdir_separator=:
15518 ;;
15519
15520 osf4* | osf5*) # as osf3* with the addition of -msym flag
15521 if test "$GCC" = yes; then
15522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015523 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 +000015524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15525 else
15526 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015527 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 +000015528 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 +000015529 $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 +000015530
15531 # Both c and cxx compiler support -rpath directly
15532 hardcode_libdir_flag_spec='-rpath $libdir'
15533 fi
15534 archive_cmds_need_lc='no'
15535 hardcode_libdir_separator=:
15536 ;;
15537
15538 solaris*)
15539 no_undefined_flag=' -z defs'
15540 if test "$GCC" = yes; then
15541 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015542 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 +000015543 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 +000015544 $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 +000015545 else
15546 case `$CC -V 2>&1` in
15547 *"Compilers 5.0"*)
15548 wlarc=''
15549 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15550 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15551 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15552 ;;
15553 *)
15554 wlarc='${wl}'
15555 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15557 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15558 ;;
15559 esac
15560 fi
15561 hardcode_libdir_flag_spec='-R$libdir'
15562 hardcode_shlibpath_var=no
15563 case $host_os in
15564 solaris2.[0-5] | solaris2.[0-5].*) ;;
15565 *)
15566 # The compiler driver will combine and reorder linker options,
15567 # but understands `-z linker_flag'. GCC discards it without `$wl',
15568 # but is careful enough not to reorder.
15569 # Supported since Solaris 2.6 (maybe 2.5.1?)
15570 if test "$GCC" = yes; then
15571 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15572 else
15573 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15574 fi
15575 ;;
15576 esac
15577 link_all_deplibs=yes
15578 ;;
15579
15580 sunos4*)
15581 if test "x$host_vendor" = xsequent; then
15582 # Use $CC to link under sequent, because it throws in some extra .o
15583 # files that make .init and .fini sections work.
15584 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15585 else
15586 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15587 fi
15588 hardcode_libdir_flag_spec='-L$libdir'
15589 hardcode_direct=yes
15590 hardcode_minus_L=yes
15591 hardcode_shlibpath_var=no
15592 ;;
15593
15594 sysv4)
15595 case $host_vendor in
15596 sni)
15597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15598 hardcode_direct=yes # is this really true???
15599 ;;
15600 siemens)
15601 ## LD is ld it makes a PLAMLIB
15602 ## CC just makes a GrossModule.
15603 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15604 reload_cmds='$CC -r -o $output$reload_objs'
15605 hardcode_direct=no
15606 ;;
15607 motorola)
15608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15609 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15610 ;;
15611 esac
15612 runpath_var='LD_RUN_PATH'
15613 hardcode_shlibpath_var=no
15614 ;;
15615
15616 sysv4.3*)
15617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15618 hardcode_shlibpath_var=no
15619 export_dynamic_flag_spec='-Bexport'
15620 ;;
15621
15622 sysv4*MP*)
15623 if test -d /usr/nec; then
15624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15625 hardcode_shlibpath_var=no
15626 runpath_var=LD_RUN_PATH
15627 hardcode_runpath_var=yes
15628 ld_shlibs=yes
15629 fi
15630 ;;
15631
15632 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15633 no_undefined_flag='${wl}-z,text'
15634 archive_cmds_need_lc=no
15635 hardcode_shlibpath_var=no
15636 runpath_var='LD_RUN_PATH'
15637
15638 if test "$GCC" = yes; then
15639 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15640 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15641 else
15642 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15643 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15644 fi
15645 ;;
15646
15647 sysv5* | sco3.2v5* | sco5v6*)
15648 # Note: We can NOT use -z defs as we might desire, because we do not
15649 # link with -lc, and that would cause any symbols used from libc to
15650 # always be unresolved, which means just about no library would
15651 # ever link correctly. If we're not using GNU ld we use -z text
15652 # though, which does catch some bad symbols but isn't as heavy-handed
15653 # as -z defs.
15654 no_undefined_flag='${wl}-z,text'
15655 allow_undefined_flag='${wl}-z,nodefs'
15656 archive_cmds_need_lc=no
15657 hardcode_shlibpath_var=no
15658 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15659 hardcode_libdir_separator=':'
15660 link_all_deplibs=yes
15661 export_dynamic_flag_spec='${wl}-Bexport'
15662 runpath_var='LD_RUN_PATH'
15663
15664 if test "$GCC" = yes; then
15665 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15666 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15667 else
15668 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15669 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15670 fi
15671 ;;
15672
15673 uts4*)
15674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15675 hardcode_libdir_flag_spec='-L$libdir'
15676 hardcode_shlibpath_var=no
15677 ;;
15678
15679 *)
15680 ld_shlibs=no
15681 ;;
15682 esac
15683
15684 if test x$host_vendor = xsni; then
15685 case $host in
15686 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15687 export_dynamic_flag_spec='${wl}-Blargedynsym'
15688 ;;
15689 esac
15690 fi
15691 fi
15692
15693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15694$as_echo "$ld_shlibs" >&6; }
15695test "$ld_shlibs" = no && can_build_shared=no
15696
15697with_gnu_ld=$with_gnu_ld
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713#
15714# Do we need to explicitly link libc?
15715#
15716case "x$archive_cmds_need_lc" in
15717x|xyes)
15718 # Assume -lc should be added
15719 archive_cmds_need_lc=yes
15720
15721 if test "$enable_shared" = yes && test "$GCC" = yes; then
15722 case $archive_cmds in
15723 *'~'*)
15724 # FIXME: we may have to deal with multi-command sequences.
15725 ;;
15726 '$CC '*)
15727 # Test whether the compiler implicitly links with -lc since on some
15728 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15729 # to ld, don't add -lc before -lgcc.
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15731$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015732if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015733 $as_echo_n "(cached) " >&6
15734else
15735 $RM conftest*
15736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015737
cristy0c60a692010-11-04 01:09:47 +000015738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015739 (eval $ac_compile) 2>&5
15740 ac_status=$?
15741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15742 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015743 soname=conftest
15744 lib=conftest
15745 libobjs=conftest.$ac_objext
15746 deplibs=
15747 wl=$lt_prog_compiler_wl
15748 pic_flag=$lt_prog_compiler_pic
15749 compiler_flags=-v
15750 linker_flags=-v
15751 verstring=
15752 output_objdir=.
15753 libname=conftest
15754 lt_save_allow_undefined_flag=$allow_undefined_flag
15755 allow_undefined_flag=
15756 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 +000015757 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15758 ac_status=$?
15759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15760 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015761 then
15762 lt_cv_archive_cmds_need_lc=no
15763 else
15764 lt_cv_archive_cmds_need_lc=yes
15765 fi
15766 allow_undefined_flag=$lt_save_allow_undefined_flag
15767 else
15768 cat conftest.err 1>&5
15769 fi
15770 $RM conftest*
15771
15772fi
15773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15774$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15775 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015776 ;;
15777 esac
15778 fi
15779 ;;
15780esac
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
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
cristy73bd4a52010-10-05 11:24:23 +000015933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15934$as_echo_n "checking dynamic linker characteristics... " >&6; }
15935
15936if test "$GCC" = yes; then
15937 case $host_os in
15938 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15939 *) lt_awk_arg="/^libraries:/" ;;
15940 esac
cristy0c60a692010-11-04 01:09:47 +000015941 case $host_os in
15942 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15943 *) lt_sed_strip_eq="s,=/,/,g" ;;
15944 esac
15945 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15946 case $lt_search_path_spec in
15947 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015948 # if the path contains ";" then we assume it to be the separator
15949 # otherwise default to the standard path separator (i.e. ":") - it is
15950 # assumed that no part of a normal pathname contains ";" but that should
15951 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015952 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15953 ;;
15954 *)
15955 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15956 ;;
15957 esac
cristy73bd4a52010-10-05 11:24:23 +000015958 # Ok, now we have the path, separated by spaces, we can step through it
15959 # and add multilib dir if necessary.
15960 lt_tmp_lt_search_path_spec=
15961 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15962 for lt_sys_path in $lt_search_path_spec; do
15963 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15964 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15965 else
15966 test -d "$lt_sys_path" && \
15967 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15968 fi
15969 done
cristy0c60a692010-11-04 01:09:47 +000015970 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015971BEGIN {RS=" "; FS="/|\n";} {
15972 lt_foo="";
15973 lt_count=0;
15974 for (lt_i = NF; lt_i > 0; lt_i--) {
15975 if ($lt_i != "" && $lt_i != ".") {
15976 if ($lt_i == "..") {
15977 lt_count++;
15978 } else {
15979 if (lt_count == 0) {
15980 lt_foo="/" $lt_i lt_foo;
15981 } else {
15982 lt_count--;
15983 }
15984 }
15985 }
15986 }
15987 if (lt_foo != "") { lt_freq[lt_foo]++; }
15988 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15989}'`
cristy0c60a692010-11-04 01:09:47 +000015990 # AWK program above erroneously prepends '/' to C:/dos/paths
15991 # for these hosts.
15992 case $host_os in
15993 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15994 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15995 esac
15996 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015997else
15998 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15999fi
16000library_names_spec=
16001libname_spec='lib$name'
16002soname_spec=
16003shrext_cmds=".so"
16004postinstall_cmds=
16005postuninstall_cmds=
16006finish_cmds=
16007finish_eval=
16008shlibpath_var=
16009shlibpath_overrides_runpath=unknown
16010version_type=none
16011dynamic_linker="$host_os ld.so"
16012sys_lib_dlsearch_path_spec="/lib /usr/lib"
16013need_lib_prefix=unknown
16014hardcode_into_libs=no
16015
16016# when you set need_version to no, make sure it does not cause -set_version
16017# flags to be left without arguments
16018need_version=unknown
16019
16020case $host_os in
16021aix3*)
cristy99bd5232011-12-07 14:38:20 +000016022 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016023 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16024 shlibpath_var=LIBPATH
16025
16026 # AIX 3 has no versioning support, so we append a major version to the name.
16027 soname_spec='${libname}${release}${shared_ext}$major'
16028 ;;
16029
16030aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016031 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016032 need_lib_prefix=no
16033 need_version=no
16034 hardcode_into_libs=yes
16035 if test "$host_cpu" = ia64; then
16036 # AIX 5 supports IA64
16037 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16038 shlibpath_var=LD_LIBRARY_PATH
16039 else
16040 # With GCC up to 2.95.x, collect2 would create an import file
16041 # for dependence libraries. The import file would start with
16042 # the line `#! .'. This would cause the generated library to
16043 # depend on `.', always an invalid library. This was fixed in
16044 # development snapshots of GCC prior to 3.0.
16045 case $host_os in
16046 aix4 | aix4.[01] | aix4.[01].*)
16047 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16048 echo ' yes '
16049 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16050 :
16051 else
16052 can_build_shared=no
16053 fi
16054 ;;
16055 esac
16056 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16057 # soname into executable. Probably we can add versioning support to
16058 # collect2, so additional links can be useful in future.
16059 if test "$aix_use_runtimelinking" = yes; then
16060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16061 # instead of lib<name>.a to let people know that these are not
16062 # typical AIX shared libraries.
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064 else
16065 # We preserve .a as extension for shared libraries through AIX4.2
16066 # and later when we are not doing run time linking.
16067 library_names_spec='${libname}${release}.a $libname.a'
16068 soname_spec='${libname}${release}${shared_ext}$major'
16069 fi
16070 shlibpath_var=LIBPATH
16071 fi
16072 ;;
16073
16074amigaos*)
16075 case $host_cpu in
16076 powerpc)
16077 # Since July 2007 AmigaOS4 officially supports .so libraries.
16078 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080 ;;
16081 m68k)
16082 library_names_spec='$libname.ixlibrary $libname.a'
16083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016084 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 +000016085 ;;
16086 esac
16087 ;;
16088
16089beos*)
16090 library_names_spec='${libname}${shared_ext}'
16091 dynamic_linker="$host_os ld.so"
16092 shlibpath_var=LIBRARY_PATH
16093 ;;
16094
16095bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016096 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016097 need_version=no
16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16099 soname_spec='${libname}${release}${shared_ext}$major'
16100 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16101 shlibpath_var=LD_LIBRARY_PATH
16102 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16103 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16104 # the default ld.so.conf also contains /usr/contrib/lib and
16105 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16106 # libtool to hard-code these into programs
16107 ;;
16108
16109cygwin* | mingw* | pw32* | cegcc*)
16110 version_type=windows
16111 shrext_cmds=".dll"
16112 need_version=no
16113 need_lib_prefix=no
16114
cristyda16f162011-02-19 23:52:17 +000016115 case $GCC,$cc_basename in
16116 yes,*)
16117 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016118 library_names_spec='$libname.dll.a'
16119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16120 postinstall_cmds='base_file=`basename \${file}`~
16121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16122 dldir=$destdir/`dirname \$dlpath`~
16123 test -d \$dldir || mkdir -p \$dldir~
16124 $install_prog $dir/$dlname \$dldir/$dlname~
16125 chmod a+x \$dldir/$dlname~
16126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16128 fi'
16129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16130 dlpath=$dir/\$dldll~
16131 $RM \$dlpath'
16132 shlibpath_overrides_runpath=yes
16133
16134 case $host_os in
16135 cygwin*)
16136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16137 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016138
16139 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016140 ;;
16141 mingw* | cegcc*)
16142 # MinGW DLLs use traditional 'lib' prefix
16143 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016144 ;;
16145 pw32*)
16146 # pw32 DLLs use 'pw' prefix rather than 'lib'
16147 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16148 ;;
16149 esac
cristyda16f162011-02-19 23:52:17 +000016150 dynamic_linker='Win32 ld.exe'
16151 ;;
16152
16153 *,cl*)
16154 # Native MSVC
16155 libname_spec='$name'
16156 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16157 library_names_spec='${libname}.dll.lib'
16158
16159 case $build_os in
16160 mingw*)
16161 sys_lib_search_path_spec=
16162 lt_save_ifs=$IFS
16163 IFS=';'
16164 for lt_path in $LIB
16165 do
16166 IFS=$lt_save_ifs
16167 # Let DOS variable expansion print the short 8.3 style file name.
16168 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16169 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16170 done
16171 IFS=$lt_save_ifs
16172 # Convert to MSYS style.
16173 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16174 ;;
16175 cygwin*)
16176 # Convert to unix form, then to dos form, then back to unix form
16177 # but this time dos style (no spaces!) so that the unix form looks
16178 # like /cygdrive/c/PROGRA~1:/cygdr...
16179 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16180 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16181 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16182 ;;
16183 *)
16184 sys_lib_search_path_spec="$LIB"
16185 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16186 # It is most probably a Windows format PATH.
16187 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16188 else
16189 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16190 fi
16191 # FIXME: find the short name or the path components, as spaces are
16192 # common. (e.g. "Program Files" -> "PROGRA~1")
16193 ;;
16194 esac
16195
16196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16197 postinstall_cmds='base_file=`basename \${file}`~
16198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16199 dldir=$destdir/`dirname \$dlpath`~
16200 test -d \$dldir || mkdir -p \$dldir~
16201 $install_prog $dir/$dlname \$dldir/$dlname'
16202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16203 dlpath=$dir/\$dldll~
16204 $RM \$dlpath'
16205 shlibpath_overrides_runpath=yes
16206 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016207 ;;
16208
16209 *)
cristyda16f162011-02-19 23:52:17 +000016210 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016212 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016213 ;;
16214 esac
cristy73bd4a52010-10-05 11:24:23 +000016215 # FIXME: first we should search . and the directory the executable is in
16216 shlibpath_var=PATH
16217 ;;
16218
16219darwin* | rhapsody*)
16220 dynamic_linker="$host_os dyld"
16221 version_type=darwin
16222 need_lib_prefix=no
16223 need_version=no
16224 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16225 soname_spec='${libname}${release}${major}$shared_ext'
16226 shlibpath_overrides_runpath=yes
16227 shlibpath_var=DYLD_LIBRARY_PATH
16228 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16229
16230 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16232 ;;
16233
16234dgux*)
cristy99bd5232011-12-07 14:38:20 +000016235 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016236 need_lib_prefix=no
16237 need_version=no
16238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16239 soname_spec='${libname}${release}${shared_ext}$major'
16240 shlibpath_var=LD_LIBRARY_PATH
16241 ;;
16242
cristy73bd4a52010-10-05 11:24:23 +000016243freebsd* | dragonfly*)
16244 # DragonFly does not have aout. When/if they implement a new
16245 # versioning mechanism, adjust this.
16246 if test -x /usr/bin/objformat; then
16247 objformat=`/usr/bin/objformat`
16248 else
16249 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016250 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016251 *) objformat=elf ;;
16252 esac
16253 fi
16254 version_type=freebsd-$objformat
16255 case $version_type in
16256 freebsd-elf*)
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16258 need_version=no
16259 need_lib_prefix=no
16260 ;;
16261 freebsd-*)
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16263 need_version=yes
16264 ;;
16265 esac
16266 shlibpath_var=LD_LIBRARY_PATH
16267 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016268 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016269 shlibpath_overrides_runpath=yes
16270 ;;
16271 freebsd3.[01]* | freebsdelf3.[01]*)
16272 shlibpath_overrides_runpath=yes
16273 hardcode_into_libs=yes
16274 ;;
16275 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16276 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16277 shlibpath_overrides_runpath=no
16278 hardcode_into_libs=yes
16279 ;;
16280 *) # from 4.6 on, and DragonFly
16281 shlibpath_overrides_runpath=yes
16282 hardcode_into_libs=yes
16283 ;;
16284 esac
16285 ;;
16286
16287gnu*)
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 need_lib_prefix=no
16290 need_version=no
16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16292 soname_spec='${libname}${release}${shared_ext}$major'
16293 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016294 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016295 hardcode_into_libs=yes
16296 ;;
16297
cristy0c60a692010-11-04 01:09:47 +000016298haiku*)
cristy99bd5232011-12-07 14:38:20 +000016299 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016300 need_lib_prefix=no
16301 need_version=no
16302 dynamic_linker="$host_os runtime_loader"
16303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16304 soname_spec='${libname}${release}${shared_ext}$major'
16305 shlibpath_var=LIBRARY_PATH
16306 shlibpath_overrides_runpath=yes
16307 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16308 hardcode_into_libs=yes
16309 ;;
16310
cristy73bd4a52010-10-05 11:24:23 +000016311hpux9* | hpux10* | hpux11*)
16312 # Give a soname corresponding to the major version so that dld.sl refuses to
16313 # link against other versions.
16314 version_type=sunos
16315 need_lib_prefix=no
16316 need_version=no
16317 case $host_cpu in
16318 ia64*)
16319 shrext_cmds='.so'
16320 hardcode_into_libs=yes
16321 dynamic_linker="$host_os dld.so"
16322 shlibpath_var=LD_LIBRARY_PATH
16323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325 soname_spec='${libname}${release}${shared_ext}$major'
16326 if test "X$HPUX_IA64_MODE" = X32; then
16327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16328 else
16329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16330 fi
16331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16332 ;;
16333 hppa*64*)
16334 shrext_cmds='.sl'
16335 hardcode_into_libs=yes
16336 dynamic_linker="$host_os dld.sl"
16337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16340 soname_spec='${libname}${release}${shared_ext}$major'
16341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16343 ;;
16344 *)
16345 shrext_cmds='.sl'
16346 dynamic_linker="$host_os dld.sl"
16347 shlibpath_var=SHLIB_PATH
16348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350 soname_spec='${libname}${release}${shared_ext}$major'
16351 ;;
16352 esac
cristy0c60a692010-11-04 01:09:47 +000016353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016354 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016355 # or fails outright, so override atomically:
16356 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016357 ;;
16358
16359interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016360 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016361 need_lib_prefix=no
16362 need_version=no
16363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16364 soname_spec='${libname}${release}${shared_ext}$major'
16365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16366 shlibpath_var=LD_LIBRARY_PATH
16367 shlibpath_overrides_runpath=no
16368 hardcode_into_libs=yes
16369 ;;
16370
16371irix5* | irix6* | nonstopux*)
16372 case $host_os in
16373 nonstopux*) version_type=nonstopux ;;
16374 *)
16375 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016376 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016377 else
16378 version_type=irix
16379 fi ;;
16380 esac
16381 need_lib_prefix=no
16382 need_version=no
16383 soname_spec='${libname}${release}${shared_ext}$major'
16384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16385 case $host_os in
16386 irix5* | nonstopux*)
16387 libsuff= shlibsuff=
16388 ;;
16389 *)
16390 case $LD in # libtool.m4 will add one of these switches to LD
16391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16392 libsuff= shlibsuff= libmagic=32-bit;;
16393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16394 libsuff=32 shlibsuff=N32 libmagic=N32;;
16395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16396 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16397 *) libsuff= shlibsuff= libmagic=never-match;;
16398 esac
16399 ;;
16400 esac
16401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16402 shlibpath_overrides_runpath=no
16403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16405 hardcode_into_libs=yes
16406 ;;
16407
16408# No shared lib support for Linux oldld, aout, or coff.
16409linux*oldld* | linux*aout* | linux*coff*)
16410 dynamic_linker=no
16411 ;;
16412
cristy99bd5232011-12-07 14:38:20 +000016413# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016414linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016415 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016416 need_lib_prefix=no
16417 need_version=no
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419 soname_spec='${libname}${release}${shared_ext}$major'
16420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16421 shlibpath_var=LD_LIBRARY_PATH
16422 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016423
cristy73bd4a52010-10-05 11:24:23 +000016424 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016425 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016426 $as_echo_n "(cached) " >&6
16427else
16428 lt_cv_shlibpath_overrides_runpath=no
16429 save_LDFLAGS=$LDFLAGS
16430 save_libdir=$libdir
16431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016434/* end confdefs.h. */
16435
16436int
16437main ()
16438{
16439
16440 ;
16441 return 0;
16442}
16443_ACEOF
16444if ac_fn_c_try_link "$LINENO"; then :
16445 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016446 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016447fi
16448fi
16449rm -f core conftest.err conftest.$ac_objext \
16450 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016451 LDFLAGS=$save_LDFLAGS
16452 libdir=$save_libdir
16453
16454fi
16455
16456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016457
16458 # This implies no fast_install, which is unacceptable.
16459 # Some rework will be needed to allow for fast_install
16460 # before this can be enabled.
16461 hardcode_into_libs=yes
16462
16463 # Add ABI-specific directories to the system library path.
16464 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16465
16466 # Append ld.so.conf contents to the search path
16467 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016468 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 +000016469 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016470
cristy73bd4a52010-10-05 11:24:23 +000016471 fi
16472
16473 # We used to test for /lib/ld.so.1 and disable shared libraries on
16474 # powerpc, because MkLinux only supported shared libraries with the
16475 # GNU dynamic linker. Since this was broken with cross compilers,
16476 # most powerpc-linux boxes support dynamic linking these days and
16477 # people can always --disable-shared, the test was removed, and we
16478 # assume the GNU/Linux dynamic linker is in use.
16479 dynamic_linker='GNU/Linux ld.so'
16480 ;;
16481
16482netbsd*)
16483 version_type=sunos
16484 need_lib_prefix=no
16485 need_version=no
16486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16489 dynamic_linker='NetBSD (a.out) ld.so'
16490 else
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16492 soname_spec='${libname}${release}${shared_ext}$major'
16493 dynamic_linker='NetBSD ld.elf_so'
16494 fi
16495 shlibpath_var=LD_LIBRARY_PATH
16496 shlibpath_overrides_runpath=yes
16497 hardcode_into_libs=yes
16498 ;;
16499
16500newsos6)
cristy99bd5232011-12-07 14:38:20 +000016501 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 shlibpath_overrides_runpath=yes
16505 ;;
16506
16507*nto* | *qnx*)
16508 version_type=qnx
16509 need_lib_prefix=no
16510 need_version=no
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 shlibpath_overrides_runpath=no
16515 hardcode_into_libs=yes
16516 dynamic_linker='ldqnx.so'
16517 ;;
16518
16519openbsd*)
16520 version_type=sunos
16521 sys_lib_dlsearch_path_spec="/usr/lib"
16522 need_lib_prefix=no
16523 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16524 case $host_os in
16525 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16526 *) need_version=no ;;
16527 esac
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16532 case $host_os in
16533 openbsd2.[89] | openbsd2.[89].*)
16534 shlibpath_overrides_runpath=no
16535 ;;
16536 *)
16537 shlibpath_overrides_runpath=yes
16538 ;;
16539 esac
16540 else
16541 shlibpath_overrides_runpath=yes
16542 fi
16543 ;;
16544
16545os2*)
16546 libname_spec='$name'
16547 shrext_cmds=".dll"
16548 need_lib_prefix=no
16549 library_names_spec='$libname${shared_ext} $libname.a'
16550 dynamic_linker='OS/2 ld.exe'
16551 shlibpath_var=LIBPATH
16552 ;;
16553
16554osf3* | osf4* | osf5*)
16555 version_type=osf
16556 need_lib_prefix=no
16557 need_version=no
16558 soname_spec='${libname}${release}${shared_ext}$major'
16559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16560 shlibpath_var=LD_LIBRARY_PATH
16561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16562 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16563 ;;
16564
16565rdos*)
16566 dynamic_linker=no
16567 ;;
16568
16569solaris*)
cristy99bd5232011-12-07 14:38:20 +000016570 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016571 need_lib_prefix=no
16572 need_version=no
16573 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 shlibpath_overrides_runpath=yes
16577 hardcode_into_libs=yes
16578 # ldd complains unless libraries are executable
16579 postinstall_cmds='chmod +x $lib'
16580 ;;
16581
16582sunos4*)
16583 version_type=sunos
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 shlibpath_overrides_runpath=yes
16588 if test "$with_gnu_ld" = yes; then
16589 need_lib_prefix=no
16590 fi
16591 need_version=yes
16592 ;;
16593
16594sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016595 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16597 soname_spec='${libname}${release}${shared_ext}$major'
16598 shlibpath_var=LD_LIBRARY_PATH
16599 case $host_vendor in
16600 sni)
16601 shlibpath_overrides_runpath=no
16602 need_lib_prefix=no
16603 runpath_var=LD_RUN_PATH
16604 ;;
16605 siemens)
16606 need_lib_prefix=no
16607 ;;
16608 motorola)
16609 need_lib_prefix=no
16610 need_version=no
16611 shlibpath_overrides_runpath=no
16612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16613 ;;
16614 esac
16615 ;;
16616
16617sysv4*MP*)
16618 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016619 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16621 soname_spec='$libname${shared_ext}.$major'
16622 shlibpath_var=LD_LIBRARY_PATH
16623 fi
16624 ;;
16625
16626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16627 version_type=freebsd-elf
16628 need_lib_prefix=no
16629 need_version=no
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16631 soname_spec='${libname}${release}${shared_ext}$major'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=yes
16634 hardcode_into_libs=yes
16635 if test "$with_gnu_ld" = yes; then
16636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16637 else
16638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16639 case $host_os in
16640 sco3.2v5*)
16641 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16642 ;;
16643 esac
16644 fi
16645 sys_lib_dlsearch_path_spec='/usr/lib'
16646 ;;
16647
16648tpf*)
16649 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016650 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016651 need_lib_prefix=no
16652 need_version=no
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16654 shlibpath_var=LD_LIBRARY_PATH
16655 shlibpath_overrides_runpath=no
16656 hardcode_into_libs=yes
16657 ;;
16658
16659uts4*)
cristy99bd5232011-12-07 14:38:20 +000016660 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 shlibpath_var=LD_LIBRARY_PATH
16664 ;;
16665
16666*)
16667 dynamic_linker=no
16668 ;;
16669esac
16670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16671$as_echo "$dynamic_linker" >&6; }
16672test "$dynamic_linker" = no && can_build_shared=no
16673
16674variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16675if test "$GCC" = yes; then
16676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16677fi
16678
16679if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16680 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16681fi
16682if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16683 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16684fi
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
cristy0c60a692010-11-04 01:09:47 +000016772
16773
16774
16775
16776
cristy73bd4a52010-10-05 11:24:23 +000016777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16778$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16779hardcode_action=
16780if test -n "$hardcode_libdir_flag_spec" ||
16781 test -n "$runpath_var" ||
16782 test "X$hardcode_automatic" = "Xyes" ; then
16783
16784 # We can hardcode non-existent directories.
16785 if test "$hardcode_direct" != no &&
16786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16787 # have to relink, otherwise we might link with an installed library
16788 # when we should be linking with a yet-to-be-installed one
16789 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16790 test "$hardcode_minus_L" != no; then
16791 # Linking always hardcodes the temporary library directory.
16792 hardcode_action=relink
16793 else
16794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16795 hardcode_action=immediate
16796 fi
16797else
16798 # We cannot hardcode anything, or else we can only hardcode existing
16799 # directories.
16800 hardcode_action=unsupported
16801fi
16802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16803$as_echo "$hardcode_action" >&6; }
16804
16805if test "$hardcode_action" = relink ||
16806 test "$inherit_rpath" = yes; then
16807 # Fast installation is not supported
16808 enable_fast_install=no
16809elif test "$shlibpath_overrides_runpath" = yes ||
16810 test "$enable_shared" = no; then
16811 # Fast installation is not necessary
16812 enable_fast_install=needless
16813fi
16814
16815
16816
16817
16818
16819
16820 if test "x$enable_dlopen" != xyes; then
16821 enable_dlopen=unknown
16822 enable_dlopen_self=unknown
16823 enable_dlopen_self_static=unknown
16824else
16825 lt_cv_dlopen=no
16826 lt_cv_dlopen_libs=
16827
16828 case $host_os in
16829 beos*)
16830 lt_cv_dlopen="load_add_on"
16831 lt_cv_dlopen_libs=
16832 lt_cv_dlopen_self=yes
16833 ;;
16834
16835 mingw* | pw32* | cegcc*)
16836 lt_cv_dlopen="LoadLibrary"
16837 lt_cv_dlopen_libs=
16838 ;;
16839
16840 cygwin*)
16841 lt_cv_dlopen="dlopen"
16842 lt_cv_dlopen_libs=
16843 ;;
16844
16845 darwin*)
16846 # if libdl is installed we need to link against it
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16848$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016849if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016850 $as_echo_n "(cached) " >&6
16851else
16852 ac_check_lib_save_LIBS=$LIBS
16853LIBS="-ldl $LIBS"
16854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855/* end confdefs.h. */
16856
16857/* Override any GCC internal prototype to avoid an error.
16858 Use char because int might match the return type of a GCC
16859 builtin and then its argument prototype would still apply. */
16860#ifdef __cplusplus
16861extern "C"
16862#endif
16863char dlopen ();
16864int
16865main ()
16866{
16867return dlopen ();
16868 ;
16869 return 0;
16870}
16871_ACEOF
16872if ac_fn_c_try_link "$LINENO"; then :
16873 ac_cv_lib_dl_dlopen=yes
16874else
16875 ac_cv_lib_dl_dlopen=no
16876fi
16877rm -f core conftest.err conftest.$ac_objext \
16878 conftest$ac_exeext conftest.$ac_ext
16879LIBS=$ac_check_lib_save_LIBS
16880fi
16881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16882$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016883if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16885else
16886
16887 lt_cv_dlopen="dyld"
16888 lt_cv_dlopen_libs=
16889 lt_cv_dlopen_self=yes
16890
16891fi
16892
16893 ;;
16894
16895 *)
16896 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016897if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016898 lt_cv_dlopen="shl_load"
16899else
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16901$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016902if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016903 $as_echo_n "(cached) " >&6
16904else
16905 ac_check_lib_save_LIBS=$LIBS
16906LIBS="-ldld $LIBS"
16907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16908/* end confdefs.h. */
16909
16910/* Override any GCC internal prototype to avoid an error.
16911 Use char because int might match the return type of a GCC
16912 builtin and then its argument prototype would still apply. */
16913#ifdef __cplusplus
16914extern "C"
16915#endif
16916char shl_load ();
16917int
16918main ()
16919{
16920return shl_load ();
16921 ;
16922 return 0;
16923}
16924_ACEOF
16925if ac_fn_c_try_link "$LINENO"; then :
16926 ac_cv_lib_dld_shl_load=yes
16927else
16928 ac_cv_lib_dld_shl_load=no
16929fi
16930rm -f core conftest.err conftest.$ac_objext \
16931 conftest$ac_exeext conftest.$ac_ext
16932LIBS=$ac_check_lib_save_LIBS
16933fi
16934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16935$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016936if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016937 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16938else
16939 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016940if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016941 lt_cv_dlopen="dlopen"
16942else
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16944$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016945if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016946 $as_echo_n "(cached) " >&6
16947else
16948 ac_check_lib_save_LIBS=$LIBS
16949LIBS="-ldl $LIBS"
16950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951/* end confdefs.h. */
16952
16953/* Override any GCC internal prototype to avoid an error.
16954 Use char because int might match the return type of a GCC
16955 builtin and then its argument prototype would still apply. */
16956#ifdef __cplusplus
16957extern "C"
16958#endif
16959char dlopen ();
16960int
16961main ()
16962{
16963return dlopen ();
16964 ;
16965 return 0;
16966}
16967_ACEOF
16968if ac_fn_c_try_link "$LINENO"; then :
16969 ac_cv_lib_dl_dlopen=yes
16970else
16971 ac_cv_lib_dl_dlopen=no
16972fi
16973rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16975LIBS=$ac_check_lib_save_LIBS
16976fi
16977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16978$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016979if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16981else
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16983$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016984if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016985 $as_echo_n "(cached) " >&6
16986else
16987 ac_check_lib_save_LIBS=$LIBS
16988LIBS="-lsvld $LIBS"
16989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16990/* end confdefs.h. */
16991
16992/* Override any GCC internal prototype to avoid an error.
16993 Use char because int might match the return type of a GCC
16994 builtin and then its argument prototype would still apply. */
16995#ifdef __cplusplus
16996extern "C"
16997#endif
16998char dlopen ();
16999int
17000main ()
17001{
17002return dlopen ();
17003 ;
17004 return 0;
17005}
17006_ACEOF
17007if ac_fn_c_try_link "$LINENO"; then :
17008 ac_cv_lib_svld_dlopen=yes
17009else
17010 ac_cv_lib_svld_dlopen=no
17011fi
17012rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17014LIBS=$ac_check_lib_save_LIBS
17015fi
17016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17017$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017018if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17020else
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17022$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017023if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017024 $as_echo_n "(cached) " >&6
17025else
17026 ac_check_lib_save_LIBS=$LIBS
17027LIBS="-ldld $LIBS"
17028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17029/* end confdefs.h. */
17030
17031/* Override any GCC internal prototype to avoid an error.
17032 Use char because int might match the return type of a GCC
17033 builtin and then its argument prototype would still apply. */
17034#ifdef __cplusplus
17035extern "C"
17036#endif
17037char dld_link ();
17038int
17039main ()
17040{
17041return dld_link ();
17042 ;
17043 return 0;
17044}
17045_ACEOF
17046if ac_fn_c_try_link "$LINENO"; then :
17047 ac_cv_lib_dld_dld_link=yes
17048else
17049 ac_cv_lib_dld_dld_link=no
17050fi
17051rm -f core conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext conftest.$ac_ext
17053LIBS=$ac_check_lib_save_LIBS
17054fi
17055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17056$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017057if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017058 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17059fi
17060
17061
17062fi
17063
17064
17065fi
17066
17067
17068fi
17069
17070
17071fi
17072
17073
17074fi
17075
17076 ;;
17077 esac
17078
17079 if test "x$lt_cv_dlopen" != xno; then
17080 enable_dlopen=yes
17081 else
17082 enable_dlopen=no
17083 fi
17084
17085 case $lt_cv_dlopen in
17086 dlopen)
17087 save_CPPFLAGS="$CPPFLAGS"
17088 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17089
17090 save_LDFLAGS="$LDFLAGS"
17091 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17092
17093 save_LIBS="$LIBS"
17094 LIBS="$lt_cv_dlopen_libs $LIBS"
17095
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17097$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017098if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017099 $as_echo_n "(cached) " >&6
17100else
17101 if test "$cross_compiling" = yes; then :
17102 lt_cv_dlopen_self=cross
17103else
17104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17105 lt_status=$lt_dlunknown
17106 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017107#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017108#include "confdefs.h"
17109
17110#if HAVE_DLFCN_H
17111#include <dlfcn.h>
17112#endif
17113
17114#include <stdio.h>
17115
17116#ifdef RTLD_GLOBAL
17117# define LT_DLGLOBAL RTLD_GLOBAL
17118#else
17119# ifdef DL_GLOBAL
17120# define LT_DLGLOBAL DL_GLOBAL
17121# else
17122# define LT_DLGLOBAL 0
17123# endif
17124#endif
17125
17126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17127 find out it does not work in some platform. */
17128#ifndef LT_DLLAZY_OR_NOW
17129# ifdef RTLD_LAZY
17130# define LT_DLLAZY_OR_NOW RTLD_LAZY
17131# else
17132# ifdef DL_LAZY
17133# define LT_DLLAZY_OR_NOW DL_LAZY
17134# else
17135# ifdef RTLD_NOW
17136# define LT_DLLAZY_OR_NOW RTLD_NOW
17137# else
17138# ifdef DL_NOW
17139# define LT_DLLAZY_OR_NOW DL_NOW
17140# else
17141# define LT_DLLAZY_OR_NOW 0
17142# endif
17143# endif
17144# endif
17145# endif
17146#endif
17147
cristy0c60a692010-11-04 01:09:47 +000017148/* When -fvisbility=hidden is used, assume the code has been annotated
17149 correspondingly for the symbols needed. */
17150#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017151int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017152#endif
17153
cristyda16f162011-02-19 23:52:17 +000017154int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017155int main ()
17156{
17157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17158 int status = $lt_dlunknown;
17159
17160 if (self)
17161 {
17162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017163 else
17164 {
17165 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17166 else puts (dlerror ());
17167 }
cristy73bd4a52010-10-05 11:24:23 +000017168 /* dlclose (self); */
17169 }
17170 else
17171 puts (dlerror ());
17172
17173 return status;
17174}
17175_LT_EOF
17176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17177 (eval $ac_link) 2>&5
17178 ac_status=$?
17179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17180 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17181 (./conftest; exit; ) >&5 2>/dev/null
17182 lt_status=$?
17183 case x$lt_status in
17184 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17185 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17186 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17187 esac
17188 else :
17189 # compilation failed
17190 lt_cv_dlopen_self=no
17191 fi
17192fi
17193rm -fr conftest*
17194
17195
17196fi
17197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17198$as_echo "$lt_cv_dlopen_self" >&6; }
17199
17200 if test "x$lt_cv_dlopen_self" = xyes; then
17201 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17203$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017204if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017205 $as_echo_n "(cached) " >&6
17206else
17207 if test "$cross_compiling" = yes; then :
17208 lt_cv_dlopen_self_static=cross
17209else
17210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17211 lt_status=$lt_dlunknown
17212 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017213#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017214#include "confdefs.h"
17215
17216#if HAVE_DLFCN_H
17217#include <dlfcn.h>
17218#endif
17219
17220#include <stdio.h>
17221
17222#ifdef RTLD_GLOBAL
17223# define LT_DLGLOBAL RTLD_GLOBAL
17224#else
17225# ifdef DL_GLOBAL
17226# define LT_DLGLOBAL DL_GLOBAL
17227# else
17228# define LT_DLGLOBAL 0
17229# endif
17230#endif
17231
17232/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17233 find out it does not work in some platform. */
17234#ifndef LT_DLLAZY_OR_NOW
17235# ifdef RTLD_LAZY
17236# define LT_DLLAZY_OR_NOW RTLD_LAZY
17237# else
17238# ifdef DL_LAZY
17239# define LT_DLLAZY_OR_NOW DL_LAZY
17240# else
17241# ifdef RTLD_NOW
17242# define LT_DLLAZY_OR_NOW RTLD_NOW
17243# else
17244# ifdef DL_NOW
17245# define LT_DLLAZY_OR_NOW DL_NOW
17246# else
17247# define LT_DLLAZY_OR_NOW 0
17248# endif
17249# endif
17250# endif
17251# endif
17252#endif
17253
cristy0c60a692010-11-04 01:09:47 +000017254/* When -fvisbility=hidden is used, assume the code has been annotated
17255 correspondingly for the symbols needed. */
17256#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017257int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017258#endif
17259
cristyda16f162011-02-19 23:52:17 +000017260int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017261int main ()
17262{
17263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17264 int status = $lt_dlunknown;
17265
17266 if (self)
17267 {
17268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017269 else
17270 {
17271 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17272 else puts (dlerror ());
17273 }
cristy73bd4a52010-10-05 11:24:23 +000017274 /* dlclose (self); */
17275 }
17276 else
17277 puts (dlerror ());
17278
17279 return status;
17280}
17281_LT_EOF
17282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17283 (eval $ac_link) 2>&5
17284 ac_status=$?
17285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17286 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17287 (./conftest; exit; ) >&5 2>/dev/null
17288 lt_status=$?
17289 case x$lt_status in
17290 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17291 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17292 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17293 esac
17294 else :
17295 # compilation failed
17296 lt_cv_dlopen_self_static=no
17297 fi
17298fi
17299rm -fr conftest*
17300
17301
17302fi
17303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17304$as_echo "$lt_cv_dlopen_self_static" >&6; }
17305 fi
17306
17307 CPPFLAGS="$save_CPPFLAGS"
17308 LDFLAGS="$save_LDFLAGS"
17309 LIBS="$save_LIBS"
17310 ;;
17311 esac
17312
17313 case $lt_cv_dlopen_self in
17314 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17315 *) enable_dlopen_self=unknown ;;
17316 esac
17317
17318 case $lt_cv_dlopen_self_static in
17319 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17320 *) enable_dlopen_self_static=unknown ;;
17321 esac
17322fi
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340striplib=
17341old_striplib=
17342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17343$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17344if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17345 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17346 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17348$as_echo "yes" >&6; }
17349else
17350# FIXME - insert some real tests, host_os isn't really good enough
17351 case $host_os in
17352 darwin*)
17353 if test -n "$STRIP" ; then
17354 striplib="$STRIP -x"
17355 old_striplib="$STRIP -S"
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17357$as_echo "yes" >&6; }
17358 else
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17360$as_echo "no" >&6; }
17361 fi
17362 ;;
17363 *)
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17365$as_echo "no" >&6; }
17366 ;;
17367 esac
17368fi
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381 # Report which library types will actually be built
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17383$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17385$as_echo "$can_build_shared" >&6; }
17386
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17388$as_echo_n "checking whether to build shared libraries... " >&6; }
17389 test "$can_build_shared" = "no" && enable_shared=no
17390
17391 # On AIX, shared libraries and static libraries use the same namespace, and
17392 # are all built from PIC.
17393 case $host_os in
17394 aix3*)
17395 test "$enable_shared" = yes && enable_static=no
17396 if test -n "$RANLIB"; then
17397 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17398 postinstall_cmds='$RANLIB $lib'
17399 fi
17400 ;;
17401
17402 aix[4-9]*)
17403 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17404 test "$enable_shared" = yes && enable_static=no
17405 fi
17406 ;;
17407 esac
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17409$as_echo "$enable_shared" >&6; }
17410
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17412$as_echo_n "checking whether to build static libraries... " >&6; }
17413 # Make sure either enable_shared or enable_static is yes.
17414 test "$enable_shared" = yes || enable_static=yes
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17416$as_echo "$enable_static" >&6; }
17417
17418
17419
17420
17421fi
17422ac_ext=c
17423ac_cpp='$CPP $CPPFLAGS'
17424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17426ac_compiler_gnu=$ac_cv_c_compiler_gnu
17427
17428CC="$lt_save_CC"
17429
cristy0c60a692010-11-04 01:09:47 +000017430 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17431 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17432 (test "X$CXX" != "Xg++"))) ; then
17433 ac_ext=cpp
17434ac_cpp='$CXXCPP $CPPFLAGS'
17435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17439$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17440if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017441 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017442 $as_echo_n "(cached) " >&6
17443else
17444 # Double quotes because CXXCPP needs to be expanded
17445 for CXXCPP in "$CXX -E" "/lib/cpp"
17446 do
17447 ac_preproc_ok=false
17448for ac_cxx_preproc_warn_flag in '' yes
17449do
17450 # Use a header file that comes with gcc, so configuring glibc
17451 # with a fresh cross-compiler works.
17452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17453 # <limits.h> exists even on freestanding compilers.
17454 # On the NeXT, cc -E runs the code through the compiler's parser,
17455 # not just through cpp. "Syntax error" is here to catch this case.
17456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17457/* end confdefs.h. */
17458#ifdef __STDC__
17459# include <limits.h>
17460#else
17461# include <assert.h>
17462#endif
17463 Syntax error
17464_ACEOF
17465if ac_fn_cxx_try_cpp "$LINENO"; then :
17466
17467else
17468 # Broken: fails on valid input.
17469continue
17470fi
cristyda16f162011-02-19 23:52:17 +000017471rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017472
17473 # OK, works on sane cases. Now check whether nonexistent headers
17474 # can be detected and how.
17475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17476/* end confdefs.h. */
17477#include <ac_nonexistent.h>
17478_ACEOF
17479if ac_fn_cxx_try_cpp "$LINENO"; then :
17480 # Broken: success on invalid input.
17481continue
17482else
17483 # Passes both tests.
17484ac_preproc_ok=:
17485break
17486fi
cristyda16f162011-02-19 23:52:17 +000017487rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017488
17489done
17490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017491rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017492if $ac_preproc_ok; then :
17493 break
17494fi
17495
17496 done
17497 ac_cv_prog_CXXCPP=$CXXCPP
17498
17499fi
17500 CXXCPP=$ac_cv_prog_CXXCPP
17501else
17502 ac_cv_prog_CXXCPP=$CXXCPP
17503fi
17504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17505$as_echo "$CXXCPP" >&6; }
17506ac_preproc_ok=false
17507for ac_cxx_preproc_warn_flag in '' yes
17508do
17509 # Use a header file that comes with gcc, so configuring glibc
17510 # with a fresh cross-compiler works.
17511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17512 # <limits.h> exists even on freestanding compilers.
17513 # On the NeXT, cc -E runs the code through the compiler's parser,
17514 # not just through cpp. "Syntax error" is here to catch this case.
17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516/* end confdefs.h. */
17517#ifdef __STDC__
17518# include <limits.h>
17519#else
17520# include <assert.h>
17521#endif
17522 Syntax error
17523_ACEOF
17524if ac_fn_cxx_try_cpp "$LINENO"; then :
17525
17526else
17527 # Broken: fails on valid input.
17528continue
17529fi
cristyda16f162011-02-19 23:52:17 +000017530rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017531
17532 # OK, works on sane cases. Now check whether nonexistent headers
17533 # can be detected and how.
17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535/* end confdefs.h. */
17536#include <ac_nonexistent.h>
17537_ACEOF
17538if ac_fn_cxx_try_cpp "$LINENO"; then :
17539 # Broken: success on invalid input.
17540continue
17541else
17542 # Passes both tests.
17543ac_preproc_ok=:
17544break
17545fi
cristyda16f162011-02-19 23:52:17 +000017546rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017547
17548done
17549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017550rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017551if $ac_preproc_ok; then :
17552
17553else
17554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17556as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17557See \`config.log' for more details" "$LINENO" 5; }
17558fi
17559
17560ac_ext=c
17561ac_cpp='$CPP $CPPFLAGS'
17562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17564ac_compiler_gnu=$ac_cv_c_compiler_gnu
17565
17566else
17567 _lt_caught_CXX_error=yes
17568fi
cristy73bd4a52010-10-05 11:24:23 +000017569
17570ac_ext=cpp
17571ac_cpp='$CXXCPP $CPPFLAGS'
17572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17575
17576archive_cmds_need_lc_CXX=no
17577allow_undefined_flag_CXX=
17578always_export_symbols_CXX=no
17579archive_expsym_cmds_CXX=
17580compiler_needs_object_CXX=no
17581export_dynamic_flag_spec_CXX=
17582hardcode_direct_CXX=no
17583hardcode_direct_absolute_CXX=no
17584hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017585hardcode_libdir_separator_CXX=
17586hardcode_minus_L_CXX=no
17587hardcode_shlibpath_var_CXX=unsupported
17588hardcode_automatic_CXX=no
17589inherit_rpath_CXX=no
17590module_cmds_CXX=
17591module_expsym_cmds_CXX=
17592link_all_deplibs_CXX=unknown
17593old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017594reload_flag_CXX=$reload_flag
17595reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017596no_undefined_flag_CXX=
17597whole_archive_flag_spec_CXX=
17598enable_shared_with_static_runtimes_CXX=no
17599
17600# Source file extension for C++ test sources.
17601ac_ext=cpp
17602
17603# Object file extension for compiled C++ test sources.
17604objext=o
17605objext_CXX=$objext
17606
17607# No sense in running all these tests if we already determined that
17608# the CXX compiler isn't working. Some variables (like enable_shared)
17609# are currently assumed to apply to all compilers on this platform,
17610# and will be corrupted by setting them based on a non-working compiler.
17611if test "$_lt_caught_CXX_error" != yes; then
17612 # Code to be used in simple compile tests
17613 lt_simple_compile_test_code="int some_variable = 0;"
17614
17615 # Code to be used in simple link tests
17616 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17617
17618 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17619
17620
17621
17622
17623
17624
17625# If no C compiler was specified, use CC.
17626LTCC=${LTCC-"$CC"}
17627
17628# If no C compiler flags were specified, use CFLAGS.
17629LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17630
17631# Allow CC to be a program name with arguments.
17632compiler=$CC
17633
17634
17635 # save warnings/boilerplate of simple test code
17636 ac_outfile=conftest.$ac_objext
17637echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17638eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17639_lt_compiler_boilerplate=`cat conftest.err`
17640$RM conftest*
17641
17642 ac_outfile=conftest.$ac_objext
17643echo "$lt_simple_link_test_code" >conftest.$ac_ext
17644eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17645_lt_linker_boilerplate=`cat conftest.err`
17646$RM -r conftest*
17647
17648
17649 # Allow CC to be a program name with arguments.
17650 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017651 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017652 lt_save_LD=$LD
17653 lt_save_GCC=$GCC
17654 GCC=$GXX
17655 lt_save_with_gnu_ld=$with_gnu_ld
17656 lt_save_path_LD=$lt_cv_path_LD
17657 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17658 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17659 else
17660 $as_unset lt_cv_prog_gnu_ld
17661 fi
17662 if test -n "${lt_cv_path_LDCXX+set}"; then
17663 lt_cv_path_LD=$lt_cv_path_LDCXX
17664 else
17665 $as_unset lt_cv_path_LD
17666 fi
17667 test -z "${LDCXX+set}" || LD=$LDCXX
17668 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017669 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017670 compiler=$CC
17671 compiler_CXX=$CC
17672 for cc_temp in $compiler""; do
17673 case $cc_temp in
17674 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17675 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17676 \-*) ;;
17677 *) break;;
17678 esac
17679done
cristy0c60a692010-11-04 01:09:47 +000017680cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017681
17682
17683 if test -n "$compiler"; then
17684 # We don't want -fno-exception when compiling C++ code, so set the
17685 # no_builtin_flag separately
17686 if test "$GXX" = yes; then
17687 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17688 else
17689 lt_prog_compiler_no_builtin_flag_CXX=
17690 fi
17691
17692 if test "$GXX" = yes; then
17693 # Set up default GNU C++ configuration
17694
17695
17696
17697# Check whether --with-gnu-ld was given.
17698if test "${with_gnu_ld+set}" = set; then :
17699 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17700else
17701 with_gnu_ld=no
17702fi
17703
17704ac_prog=ld
17705if test "$GCC" = yes; then
17706 # Check if gcc -print-prog-name=ld gives a path.
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17708$as_echo_n "checking for ld used by $CC... " >&6; }
17709 case $host in
17710 *-*-mingw*)
17711 # gcc leaves a trailing carriage return which upsets mingw
17712 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17713 *)
17714 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17715 esac
17716 case $ac_prog in
17717 # Accept absolute paths.
17718 [\\/]* | ?:[\\/]*)
17719 re_direlt='/[^/][^/]*/\.\./'
17720 # Canonicalize the pathname of ld
17721 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17722 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17723 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17724 done
17725 test -z "$LD" && LD="$ac_prog"
17726 ;;
17727 "")
17728 # If it fails, then pretend we aren't using GCC.
17729 ac_prog=ld
17730 ;;
17731 *)
17732 # If it is relative, then search for the first ld in PATH.
17733 with_gnu_ld=unknown
17734 ;;
17735 esac
17736elif test "$with_gnu_ld" = yes; then
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17738$as_echo_n "checking for GNU ld... " >&6; }
17739else
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17741$as_echo_n "checking for non-GNU ld... " >&6; }
17742fi
cristyda16f162011-02-19 23:52:17 +000017743if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017744 $as_echo_n "(cached) " >&6
17745else
17746 if test -z "$LD"; then
17747 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17748 for ac_dir in $PATH; do
17749 IFS="$lt_save_ifs"
17750 test -z "$ac_dir" && ac_dir=.
17751 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17752 lt_cv_path_LD="$ac_dir/$ac_prog"
17753 # Check to see if the program is GNU ld. I'd rather use --version,
17754 # but apparently some variants of GNU ld only accept -v.
17755 # Break only if it was the GNU/non-GNU ld that we prefer.
17756 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17757 *GNU* | *'with BFD'*)
17758 test "$with_gnu_ld" != no && break
17759 ;;
17760 *)
17761 test "$with_gnu_ld" != yes && break
17762 ;;
17763 esac
17764 fi
17765 done
17766 IFS="$lt_save_ifs"
17767else
17768 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17769fi
17770fi
17771
17772LD="$lt_cv_path_LD"
17773if test -n "$LD"; then
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17775$as_echo "$LD" >&6; }
17776else
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17778$as_echo "no" >&6; }
17779fi
cristy98dddb52010-11-04 00:30:15 +000017780test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17782$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017783if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017784 $as_echo_n "(cached) " >&6
17785else
17786 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17787case `$LD -v 2>&1 </dev/null` in
17788*GNU* | *'with BFD'*)
17789 lt_cv_prog_gnu_ld=yes
17790 ;;
17791*)
17792 lt_cv_prog_gnu_ld=no
17793 ;;
17794esac
17795fi
17796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17797$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17798with_gnu_ld=$lt_cv_prog_gnu_ld
17799
17800
17801
17802
17803
17804
17805
17806 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17807 # archiving commands below assume that GNU ld is being used.
17808 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017809 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17810 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 +000017811
17812 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17813 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17814
17815 # If archive_cmds runs LD, not CC, wlarc should be empty
17816 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17817 # investigate it a little bit more. (MM)
17818 wlarc='${wl}'
17819
17820 # ancient GNU ld didn't support --whole-archive et. al.
17821 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17822 $GREP 'no-whole-archive' > /dev/null; then
17823 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17824 else
17825 whole_archive_flag_spec_CXX=
17826 fi
17827 else
17828 with_gnu_ld=no
17829 wlarc=
17830
17831 # A generic and very simple default shared library creation
17832 # command for GNU C++ for the case where it uses the native
17833 # linker, instead of GNU ld. If possible, this setting should
17834 # overridden to take advantage of the native linker features on
17835 # the platform it is being used on.
17836 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17837 fi
17838
17839 # Commands to make compiler produce verbose output that lists
17840 # what "hidden" libraries, object files and flags are used when
17841 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017842 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017843
17844 else
17845 GXX=no
17846 with_gnu_ld=no
17847 wlarc=
17848 fi
17849
17850 # PORTME: fill in a description of your system's C++ link characteristics
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17852$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17853 ld_shlibs_CXX=yes
17854 case $host_os in
17855 aix3*)
17856 # FIXME: insert proper C++ library support
17857 ld_shlibs_CXX=no
17858 ;;
17859 aix[4-9]*)
17860 if test "$host_cpu" = ia64; then
17861 # On IA64, the linker does run time linking by default, so we don't
17862 # have to do anything special.
17863 aix_use_runtimelinking=no
17864 exp_sym_flag='-Bexport'
17865 no_entry_flag=""
17866 else
17867 aix_use_runtimelinking=no
17868
17869 # Test if we are trying to use run time linking or normal
17870 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17871 # need to do runtime linking.
17872 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17873 for ld_flag in $LDFLAGS; do
17874 case $ld_flag in
17875 *-brtl*)
17876 aix_use_runtimelinking=yes
17877 break
17878 ;;
17879 esac
17880 done
17881 ;;
17882 esac
17883
17884 exp_sym_flag='-bexport'
17885 no_entry_flag='-bnoentry'
17886 fi
17887
17888 # When large executables or shared objects are built, AIX ld can
17889 # have problems creating the table of contents. If linking a library
17890 # or program results in "error TOC overflow" add -mminimal-toc to
17891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17893
17894 archive_cmds_CXX=''
17895 hardcode_direct_CXX=yes
17896 hardcode_direct_absolute_CXX=yes
17897 hardcode_libdir_separator_CXX=':'
17898 link_all_deplibs_CXX=yes
17899 file_list_spec_CXX='${wl}-f,'
17900
17901 if test "$GXX" = yes; then
17902 case $host_os in aix4.[012]|aix4.[012].*)
17903 # We only want to do this on AIX 4.2 and lower, the check
17904 # below for broken collect2 doesn't work under 4.3+
17905 collect2name=`${CC} -print-prog-name=collect2`
17906 if test -f "$collect2name" &&
17907 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17908 then
17909 # We have reworked collect2
17910 :
17911 else
17912 # We have old collect2
17913 hardcode_direct_CXX=unsupported
17914 # It fails to find uninstalled libraries when the uninstalled
17915 # path is not listed in the libpath. Setting hardcode_minus_L
17916 # to unsupported forces relinking
17917 hardcode_minus_L_CXX=yes
17918 hardcode_libdir_flag_spec_CXX='-L$libdir'
17919 hardcode_libdir_separator_CXX=
17920 fi
17921 esac
17922 shared_flag='-shared'
17923 if test "$aix_use_runtimelinking" = yes; then
17924 shared_flag="$shared_flag "'${wl}-G'
17925 fi
17926 else
17927 # not using gcc
17928 if test "$host_cpu" = ia64; then
17929 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17930 # chokes on -Wl,-G. The following line is correct:
17931 shared_flag='-G'
17932 else
17933 if test "$aix_use_runtimelinking" = yes; then
17934 shared_flag='${wl}-G'
17935 else
17936 shared_flag='${wl}-bM:SRE'
17937 fi
17938 fi
17939 fi
17940
17941 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17942 # It seems that -bexpall does not export symbols beginning with
17943 # underscore (_), so it is better to generate a list of symbols to
17944 # export.
17945 always_export_symbols_CXX=yes
17946 if test "$aix_use_runtimelinking" = yes; then
17947 # Warning - without using the other runtime loading flags (-brtl),
17948 # -berok will link without error, but may produce a broken library.
17949 allow_undefined_flag_CXX='-berok'
17950 # Determine the default libpath from the value encoded in an empty
17951 # executable.
cristyda16f162011-02-19 23:52:17 +000017952 if test "${lt_cv_aix_libpath+set}" = set; then
17953 aix_libpath=$lt_cv_aix_libpath
17954else
17955 if ${lt_cv_aix_libpath__CXX+:} false; then :
17956 $as_echo_n "(cached) " >&6
17957else
17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017959/* end confdefs.h. */
17960
17961int
17962main ()
17963{
17964
17965 ;
17966 return 0;
17967}
17968_ACEOF
17969if ac_fn_cxx_try_link "$LINENO"; then :
17970
cristyda16f162011-02-19 23:52:17 +000017971 lt_aix_libpath_sed='
17972 /Import File Strings/,/^$/ {
17973 /^0/ {
17974 s/^0 *\([^ ]*\) *$/\1/
17975 p
17976 }
17977 }'
17978 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17979 # Check for a 64-bit object if we didn't find anything.
17980 if test -z "$lt_cv_aix_libpath__CXX"; then
17981 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17982 fi
cristy73bd4a52010-10-05 11:24:23 +000017983fi
17984rm -f core conftest.err conftest.$ac_objext \
17985 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017986 if test -z "$lt_cv_aix_libpath__CXX"; then
17987 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17988 fi
17989
17990fi
17991
17992 aix_libpath=$lt_cv_aix_libpath__CXX
17993fi
cristy73bd4a52010-10-05 11:24:23 +000017994
17995 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17996
cristy0c60a692010-11-04 01:09:47 +000017997 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 +000017998 else
17999 if test "$host_cpu" = ia64; then
18000 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18001 allow_undefined_flag_CXX="-z nodefs"
18002 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"
18003 else
18004 # Determine the default libpath from the value encoded in an
18005 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018006 if test "${lt_cv_aix_libpath+set}" = set; then
18007 aix_libpath=$lt_cv_aix_libpath
18008else
18009 if ${lt_cv_aix_libpath__CXX+:} false; then :
18010 $as_echo_n "(cached) " >&6
18011else
18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018013/* end confdefs.h. */
18014
18015int
18016main ()
18017{
18018
18019 ;
18020 return 0;
18021}
18022_ACEOF
18023if ac_fn_cxx_try_link "$LINENO"; then :
18024
cristyda16f162011-02-19 23:52:17 +000018025 lt_aix_libpath_sed='
18026 /Import File Strings/,/^$/ {
18027 /^0/ {
18028 s/^0 *\([^ ]*\) *$/\1/
18029 p
18030 }
18031 }'
18032 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18033 # Check for a 64-bit object if we didn't find anything.
18034 if test -z "$lt_cv_aix_libpath__CXX"; then
18035 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18036 fi
cristy73bd4a52010-10-05 11:24:23 +000018037fi
18038rm -f core conftest.err conftest.$ac_objext \
18039 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018040 if test -z "$lt_cv_aix_libpath__CXX"; then
18041 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18042 fi
18043
18044fi
18045
18046 aix_libpath=$lt_cv_aix_libpath__CXX
18047fi
cristy73bd4a52010-10-05 11:24:23 +000018048
18049 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18050 # Warning - without using the other run time loading flags,
18051 # -berok will link without error, but may produce a broken library.
18052 no_undefined_flag_CXX=' ${wl}-bernotok'
18053 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018054 if test "$with_gnu_ld" = yes; then
18055 # We only use this code for GNU lds that support --whole-archive.
18056 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18057 else
18058 # Exported symbols can be pulled into shared objects from archives
18059 whole_archive_flag_spec_CXX='$convenience'
18060 fi
cristy73bd4a52010-10-05 11:24:23 +000018061 archive_cmds_need_lc_CXX=yes
18062 # This is similar to how AIX traditionally builds its shared
18063 # libraries.
18064 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'
18065 fi
18066 fi
18067 ;;
18068
18069 beos*)
18070 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18071 allow_undefined_flag_CXX=unsupported
18072 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18073 # support --undefined. This deserves some investigation. FIXME
18074 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18075 else
18076 ld_shlibs_CXX=no
18077 fi
18078 ;;
18079
18080 chorus*)
18081 case $cc_basename in
18082 *)
18083 # FIXME: insert proper C++ library support
18084 ld_shlibs_CXX=no
18085 ;;
18086 esac
18087 ;;
18088
18089 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018090 case $GXX,$cc_basename in
18091 ,cl* | no,cl*)
18092 # Native MSVC
18093 # hardcode_libdir_flag_spec is actually meaningless, as there is
18094 # no search path for DLLs.
18095 hardcode_libdir_flag_spec_CXX=' '
18096 allow_undefined_flag_CXX=unsupported
18097 always_export_symbols_CXX=yes
18098 file_list_spec_CXX='@'
18099 # Tell ltmain to make .lib files, not .a files.
18100 libext=lib
18101 # Tell ltmain to make .dll files, not .so files.
18102 shrext_cmds=".dll"
18103 # FIXME: Setting linknames here is a bad hack.
18104 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18105 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18106 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18107 else
18108 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18109 fi~
18110 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18111 linknames='
18112 # The linker will not automatically build a static lib if we build a DLL.
18113 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18114 enable_shared_with_static_runtimes_CXX=yes
18115 # Don't use ranlib
18116 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18117 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18118 lt_tool_outputfile="@TOOL_OUTPUT@"~
18119 case $lt_outputfile in
18120 *.exe|*.EXE) ;;
18121 *)
18122 lt_outputfile="$lt_outputfile.exe"
18123 lt_tool_outputfile="$lt_tool_outputfile.exe"
18124 ;;
18125 esac~
18126 func_to_tool_file "$lt_outputfile"~
18127 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18128 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18129 $RM "$lt_outputfile.manifest";
18130 fi'
18131 ;;
18132 *)
18133 # g++
18134 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18135 # as there is no search path for DLLs.
18136 hardcode_libdir_flag_spec_CXX='-L$libdir'
18137 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18138 allow_undefined_flag_CXX=unsupported
18139 always_export_symbols_CXX=no
18140 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018141
cristyda16f162011-02-19 23:52:17 +000018142 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18143 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'
18144 # If the export-symbols file already is a .def file (1st line
18145 # is EXPORTS), use it as is; otherwise, prepend...
18146 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18147 cp $export_symbols $output_objdir/$soname.def;
18148 else
18149 echo EXPORTS > $output_objdir/$soname.def;
18150 cat $export_symbols >> $output_objdir/$soname.def;
18151 fi~
18152 $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'
18153 else
18154 ld_shlibs_CXX=no
18155 fi
18156 ;;
18157 esac
18158 ;;
cristy73bd4a52010-10-05 11:24:23 +000018159 darwin* | rhapsody*)
18160
18161
18162 archive_cmds_need_lc_CXX=no
18163 hardcode_direct_CXX=no
18164 hardcode_automatic_CXX=yes
18165 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018166 if test "$lt_cv_ld_force_load" = "yes"; then
18167 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 +000018168
cristy0c60a692010-11-04 01:09:47 +000018169 else
18170 whole_archive_flag_spec_CXX=''
18171 fi
cristy73bd4a52010-10-05 11:24:23 +000018172 link_all_deplibs_CXX=yes
18173 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18174 case $cc_basename in
18175 ifort*) _lt_dar_can_shared=yes ;;
18176 *) _lt_dar_can_shared=$GCC ;;
18177 esac
18178 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018179 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018180 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}"
18181 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18182 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}"
18183 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}"
18184 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18185 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}"
18186 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}"
18187 fi
18188
18189 else
18190 ld_shlibs_CXX=no
18191 fi
18192
18193 ;;
18194
18195 dgux*)
18196 case $cc_basename in
18197 ec++*)
18198 # FIXME: insert proper C++ library support
18199 ld_shlibs_CXX=no
18200 ;;
18201 ghcx*)
18202 # Green Hills C++ Compiler
18203 # FIXME: insert proper C++ library support
18204 ld_shlibs_CXX=no
18205 ;;
18206 *)
18207 # FIXME: insert proper C++ library support
18208 ld_shlibs_CXX=no
18209 ;;
18210 esac
18211 ;;
18212
cristy99bd5232011-12-07 14:38:20 +000018213 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018214 # C++ shared libraries reported to be fairly broken before
18215 # switch to ELF
18216 ld_shlibs_CXX=no
18217 ;;
18218
18219 freebsd-elf*)
18220 archive_cmds_need_lc_CXX=no
18221 ;;
18222
18223 freebsd* | dragonfly*)
18224 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18225 # conventions
18226 ld_shlibs_CXX=yes
18227 ;;
18228
18229 gnu*)
18230 ;;
18231
cristy0c60a692010-11-04 01:09:47 +000018232 haiku*)
18233 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18234 link_all_deplibs_CXX=yes
18235 ;;
18236
cristy73bd4a52010-10-05 11:24:23 +000018237 hpux9*)
18238 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18239 hardcode_libdir_separator_CXX=:
18240 export_dynamic_flag_spec_CXX='${wl}-E'
18241 hardcode_direct_CXX=yes
18242 hardcode_minus_L_CXX=yes # Not in the search PATH,
18243 # but as the default
18244 # location of the library.
18245
18246 case $cc_basename in
18247 CC*)
18248 # FIXME: insert proper C++ library support
18249 ld_shlibs_CXX=no
18250 ;;
18251 aCC*)
18252 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'
18253 # Commands to make compiler produce verbose output that lists
18254 # what "hidden" libraries, object files and flags are used when
18255 # linking a shared library.
18256 #
18257 # There doesn't appear to be a way to prevent this compiler from
18258 # explicitly linking system object files so we need to strip them
18259 # from the output so that they don't get included in the library
18260 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018261 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 +000018262 ;;
18263 *)
18264 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018265 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 +000018266 else
18267 # FIXME: insert proper C++ library support
18268 ld_shlibs_CXX=no
18269 fi
18270 ;;
18271 esac
18272 ;;
18273
18274 hpux10*|hpux11*)
18275 if test $with_gnu_ld = no; then
18276 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18277 hardcode_libdir_separator_CXX=:
18278
18279 case $host_cpu in
18280 hppa*64*|ia64*)
18281 ;;
18282 *)
18283 export_dynamic_flag_spec_CXX='${wl}-E'
18284 ;;
18285 esac
18286 fi
18287 case $host_cpu in
18288 hppa*64*|ia64*)
18289 hardcode_direct_CXX=no
18290 hardcode_shlibpath_var_CXX=no
18291 ;;
18292 *)
18293 hardcode_direct_CXX=yes
18294 hardcode_direct_absolute_CXX=yes
18295 hardcode_minus_L_CXX=yes # Not in the search PATH,
18296 # but as the default
18297 # location of the library.
18298 ;;
18299 esac
18300
18301 case $cc_basename in
18302 CC*)
18303 # FIXME: insert proper C++ library support
18304 ld_shlibs_CXX=no
18305 ;;
18306 aCC*)
18307 case $host_cpu in
18308 hppa*64*)
18309 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18310 ;;
18311 ia64*)
18312 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18313 ;;
18314 *)
18315 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18316 ;;
18317 esac
18318 # Commands to make compiler produce verbose output that lists
18319 # what "hidden" libraries, object files and flags are used when
18320 # linking a shared library.
18321 #
18322 # There doesn't appear to be a way to prevent this compiler from
18323 # explicitly linking system object files so we need to strip them
18324 # from the output so that they don't get included in the library
18325 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018326 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 +000018327 ;;
18328 *)
18329 if test "$GXX" = yes; then
18330 if test $with_gnu_ld = no; then
18331 case $host_cpu in
18332 hppa*64*)
18333 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18334 ;;
18335 ia64*)
cristyda16f162011-02-19 23:52:17 +000018336 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 +000018337 ;;
18338 *)
cristyda16f162011-02-19 23:52:17 +000018339 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 +000018340 ;;
18341 esac
18342 fi
18343 else
18344 # FIXME: insert proper C++ library support
18345 ld_shlibs_CXX=no
18346 fi
18347 ;;
18348 esac
18349 ;;
18350
18351 interix[3-9]*)
18352 hardcode_direct_CXX=no
18353 hardcode_shlibpath_var_CXX=no
18354 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18355 export_dynamic_flag_spec_CXX='${wl}-E'
18356 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18357 # Instead, shared libraries are loaded at an image base (0x10000000 by
18358 # default) and relocated if they conflict, which is a slow very memory
18359 # consuming and fragmenting process. To avoid this, we pick a random,
18360 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18361 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18362 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'
18363 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'
18364 ;;
18365 irix5* | irix6*)
18366 case $cc_basename in
18367 CC*)
18368 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018369 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 +000018370
18371 # Archives containing C++ object files must be created using
18372 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18373 # necessary to make sure instantiated templates are included
18374 # in the archive.
18375 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18376 ;;
18377 *)
18378 if test "$GXX" = yes; then
18379 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018380 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 +000018381 else
cristyda16f162011-02-19 23:52:17 +000018382 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 +000018383 fi
18384 fi
18385 link_all_deplibs_CXX=yes
18386 ;;
18387 esac
18388 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18389 hardcode_libdir_separator_CXX=:
18390 inherit_rpath_CXX=yes
18391 ;;
18392
cristy0c60a692010-11-04 01:09:47 +000018393 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018394 case $cc_basename in
18395 KCC*)
18396 # Kuck and Associates, Inc. (KAI) C++ Compiler
18397
18398 # KCC will only create a shared library if the output file
18399 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18400 # to its proper name (with version) after linking.
18401 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'
18402 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'
18403 # Commands to make compiler produce verbose output that lists
18404 # what "hidden" libraries, object files and flags are used when
18405 # linking a shared library.
18406 #
18407 # There doesn't appear to be a way to prevent this compiler from
18408 # explicitly linking system object files so we need to strip them
18409 # from the output so that they don't get included in the library
18410 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018411 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 +000018412
18413 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18414 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18415
18416 # Archives containing C++ object files must be created using
18417 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18418 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18419 ;;
18420 icpc* | ecpc* )
18421 # Intel C++
18422 with_gnu_ld=yes
18423 # version 8.0 and above of icpc choke on multiply defined symbols
18424 # if we add $predep_objects and $postdep_objects, however 7.1 and
18425 # earlier do not add the objects themselves.
18426 case `$CC -V 2>&1` in
18427 *"Version 7."*)
18428 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18429 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'
18430 ;;
18431 *) # Version 8.0 or newer
18432 tmp_idyn=
18433 case $host_cpu in
18434 ia64*) tmp_idyn=' -i_dynamic';;
18435 esac
18436 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18437 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'
18438 ;;
18439 esac
18440 archive_cmds_need_lc_CXX=no
18441 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18442 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18443 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18444 ;;
18445 pgCC* | pgcpp*)
18446 # Portland Group C++ compiler
18447 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018448 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018449 prelink_cmds_CXX='tpldir=Template.dir~
18450 rm -rf $tpldir~
18451 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018452 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018453 old_archive_cmds_CXX='tpldir=Template.dir~
18454 rm -rf $tpldir~
18455 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018456 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018457 $RANLIB $oldlib'
18458 archive_cmds_CXX='tpldir=Template.dir~
18459 rm -rf $tpldir~
18460 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018461 $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 +000018462 archive_expsym_cmds_CXX='tpldir=Template.dir~
18463 rm -rf $tpldir~
18464 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018465 $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 +000018466 ;;
cristy0c60a692010-11-04 01:09:47 +000018467 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018468 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18469 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'
18470 ;;
18471 esac
18472
18473 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18474 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018475 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 +000018476 ;;
18477 cxx*)
18478 # Compaq C++
18479 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18480 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'
18481
18482 runpath_var=LD_RUN_PATH
18483 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18484 hardcode_libdir_separator_CXX=:
18485
18486 # Commands to make compiler produce verbose output that lists
18487 # what "hidden" libraries, object files and flags are used when
18488 # linking a shared library.
18489 #
18490 # There doesn't appear to be a way to prevent this compiler from
18491 # explicitly linking system object files so we need to strip them
18492 # from the output so that they don't get included in the library
18493 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018494 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 +000018495 ;;
cristy0c60a692010-11-04 01:09:47 +000018496 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018497 # IBM XL 8.0 on PPC, with GNU ld
18498 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18499 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18500 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18501 if test "x$supports_anon_versioning" = xyes; then
18502 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18503 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18504 echo "local: *; };" >> $output_objdir/$libname.ver~
18505 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18506 fi
18507 ;;
18508 *)
18509 case `$CC -V 2>&1 | sed 5q` in
18510 *Sun\ C*)
18511 # Sun C++ 5.9
18512 no_undefined_flag_CXX=' -zdefs'
18513 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18514 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'
18515 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018516 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 +000018517 compiler_needs_object_CXX=yes
18518
18519 # Not sure whether something based on
18520 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18521 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018522 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018523
18524 # Archives containing C++ object files must be created using
18525 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18526 # necessary to make sure instantiated templates are included
18527 # in the archive.
18528 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18529 ;;
18530 esac
18531 ;;
18532 esac
18533 ;;
18534
18535 lynxos*)
18536 # FIXME: insert proper C++ library support
18537 ld_shlibs_CXX=no
18538 ;;
18539
18540 m88k*)
18541 # FIXME: insert proper C++ library support
18542 ld_shlibs_CXX=no
18543 ;;
18544
18545 mvs*)
18546 case $cc_basename in
18547 cxx*)
18548 # FIXME: insert proper C++ library support
18549 ld_shlibs_CXX=no
18550 ;;
18551 *)
18552 # FIXME: insert proper C++ library support
18553 ld_shlibs_CXX=no
18554 ;;
18555 esac
18556 ;;
18557
18558 netbsd*)
18559 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18560 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18561 wlarc=
18562 hardcode_libdir_flag_spec_CXX='-R$libdir'
18563 hardcode_direct_CXX=yes
18564 hardcode_shlibpath_var_CXX=no
18565 fi
18566 # Workaround some broken pre-1.5 toolchains
18567 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18568 ;;
18569
18570 *nto* | *qnx*)
18571 ld_shlibs_CXX=yes
18572 ;;
18573
18574 openbsd2*)
18575 # C++ shared libraries are fairly broken
18576 ld_shlibs_CXX=no
18577 ;;
18578
18579 openbsd*)
18580 if test -f /usr/libexec/ld.so; then
18581 hardcode_direct_CXX=yes
18582 hardcode_shlibpath_var_CXX=no
18583 hardcode_direct_absolute_CXX=yes
18584 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18585 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18587 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18588 export_dynamic_flag_spec_CXX='${wl}-E'
18589 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18590 fi
cristy0c60a692010-11-04 01:09:47 +000018591 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018592 else
18593 ld_shlibs_CXX=no
18594 fi
18595 ;;
18596
18597 osf3* | osf4* | osf5*)
18598 case $cc_basename in
18599 KCC*)
18600 # Kuck and Associates, Inc. (KAI) C++ Compiler
18601
18602 # KCC will only create a shared library if the output file
18603 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18604 # to its proper name (with version) after linking.
18605 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'
18606
18607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18608 hardcode_libdir_separator_CXX=:
18609
18610 # Archives containing C++ object files must be created using
18611 # the KAI C++ compiler.
18612 case $host in
18613 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18614 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18615 esac
18616 ;;
18617 RCC*)
18618 # Rational C++ 2.4.1
18619 # FIXME: insert proper C++ library support
18620 ld_shlibs_CXX=no
18621 ;;
18622 cxx*)
18623 case $host in
18624 osf3*)
18625 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018626 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 +000018627 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18628 ;;
18629 *)
18630 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018631 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 +000018632 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18633 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018634 $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 +000018635 $RM $lib.exp'
18636 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18637 ;;
18638 esac
18639
18640 hardcode_libdir_separator_CXX=:
18641
18642 # Commands to make compiler produce verbose output that lists
18643 # what "hidden" libraries, object files and flags are used when
18644 # linking a shared library.
18645 #
18646 # There doesn't appear to be a way to prevent this compiler from
18647 # explicitly linking system object files so we need to strip them
18648 # from the output so that they don't get included in the library
18649 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018650 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 +000018651 ;;
18652 *)
18653 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18654 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18655 case $host in
18656 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018657 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 +000018658 ;;
18659 *)
cristyda16f162011-02-19 23:52:17 +000018660 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 +000018661 ;;
18662 esac
18663
18664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18665 hardcode_libdir_separator_CXX=:
18666
18667 # Commands to make compiler produce verbose output that lists
18668 # what "hidden" libraries, object files and flags are used when
18669 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018670 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018671
18672 else
18673 # FIXME: insert proper C++ library support
18674 ld_shlibs_CXX=no
18675 fi
18676 ;;
18677 esac
18678 ;;
18679
18680 psos*)
18681 # FIXME: insert proper C++ library support
18682 ld_shlibs_CXX=no
18683 ;;
18684
18685 sunos4*)
18686 case $cc_basename in
18687 CC*)
18688 # Sun C++ 4.x
18689 # FIXME: insert proper C++ library support
18690 ld_shlibs_CXX=no
18691 ;;
18692 lcc*)
18693 # Lucid
18694 # FIXME: insert proper C++ library support
18695 ld_shlibs_CXX=no
18696 ;;
18697 *)
18698 # FIXME: insert proper C++ library support
18699 ld_shlibs_CXX=no
18700 ;;
18701 esac
18702 ;;
18703
18704 solaris*)
18705 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018706 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018707 # Sun C++ 4.2, 5.x and Centerline C++
18708 archive_cmds_need_lc_CXX=yes
18709 no_undefined_flag_CXX=' -zdefs'
18710 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18711 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18712 $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'
18713
18714 hardcode_libdir_flag_spec_CXX='-R$libdir'
18715 hardcode_shlibpath_var_CXX=no
18716 case $host_os in
18717 solaris2.[0-5] | solaris2.[0-5].*) ;;
18718 *)
18719 # The compiler driver will combine and reorder linker options,
18720 # but understands `-z linker_flag'.
18721 # Supported since Solaris 2.6 (maybe 2.5.1?)
18722 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18723 ;;
18724 esac
18725 link_all_deplibs_CXX=yes
18726
cristy0c60a692010-11-04 01:09:47 +000018727 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018728
18729 # Archives containing C++ object files must be created using
18730 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18731 # necessary to make sure instantiated templates are included
18732 # in the archive.
18733 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18734 ;;
18735 gcx*)
18736 # Green Hills C++ Compiler
18737 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18738
18739 # The C++ compiler must be used to create the archive.
18740 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18741 ;;
18742 *)
18743 # GNU C++ compiler with Solaris linker
18744 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18745 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18746 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018747 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 +000018748 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 +000018749 $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 +000018750
18751 # Commands to make compiler produce verbose output that lists
18752 # what "hidden" libraries, object files and flags are used when
18753 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018754 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018755 else
18756 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18757 # platform.
18758 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18759 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18760 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18761
18762 # Commands to make compiler produce verbose output that lists
18763 # what "hidden" libraries, object files and flags are used when
18764 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018765 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018766 fi
18767
18768 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18769 case $host_os in
18770 solaris2.[0-5] | solaris2.[0-5].*) ;;
18771 *)
18772 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18773 ;;
18774 esac
18775 fi
18776 ;;
18777 esac
18778 ;;
18779
18780 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18781 no_undefined_flag_CXX='${wl}-z,text'
18782 archive_cmds_need_lc_CXX=no
18783 hardcode_shlibpath_var_CXX=no
18784 runpath_var='LD_RUN_PATH'
18785
18786 case $cc_basename in
18787 CC*)
18788 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18789 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18790 ;;
18791 *)
18792 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18793 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18794 ;;
18795 esac
18796 ;;
18797
18798 sysv5* | sco3.2v5* | sco5v6*)
18799 # Note: We can NOT use -z defs as we might desire, because we do not
18800 # link with -lc, and that would cause any symbols used from libc to
18801 # always be unresolved, which means just about no library would
18802 # ever link correctly. If we're not using GNU ld we use -z text
18803 # though, which does catch some bad symbols but isn't as heavy-handed
18804 # as -z defs.
18805 no_undefined_flag_CXX='${wl}-z,text'
18806 allow_undefined_flag_CXX='${wl}-z,nodefs'
18807 archive_cmds_need_lc_CXX=no
18808 hardcode_shlibpath_var_CXX=no
18809 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18810 hardcode_libdir_separator_CXX=':'
18811 link_all_deplibs_CXX=yes
18812 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18813 runpath_var='LD_RUN_PATH'
18814
18815 case $cc_basename in
18816 CC*)
18817 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18818 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 +000018819 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18820 '"$old_archive_cmds_CXX"
18821 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18822 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018823 ;;
18824 *)
18825 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18826 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18827 ;;
18828 esac
18829 ;;
18830
18831 tandem*)
18832 case $cc_basename in
18833 NCC*)
18834 # NonStop-UX NCC 3.20
18835 # FIXME: insert proper C++ library support
18836 ld_shlibs_CXX=no
18837 ;;
18838 *)
18839 # FIXME: insert proper C++ library support
18840 ld_shlibs_CXX=no
18841 ;;
18842 esac
18843 ;;
18844
18845 vxworks*)
18846 # FIXME: insert proper C++ library support
18847 ld_shlibs_CXX=no
18848 ;;
18849
18850 *)
18851 # FIXME: insert proper C++ library support
18852 ld_shlibs_CXX=no
18853 ;;
18854 esac
18855
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18857$as_echo "$ld_shlibs_CXX" >&6; }
18858 test "$ld_shlibs_CXX" = no && can_build_shared=no
18859
18860 GCC_CXX="$GXX"
18861 LD_CXX="$LD"
18862
18863 ## CAVEAT EMPTOR:
18864 ## There is no encapsulation within the following macros, do not change
18865 ## the running order or otherwise move them around unless you know exactly
18866 ## what you are doing...
18867 # Dependencies to place before and after the object being linked:
18868predep_objects_CXX=
18869postdep_objects_CXX=
18870predeps_CXX=
18871postdeps_CXX=
18872compiler_lib_search_path_CXX=
18873
18874cat > conftest.$ac_ext <<_LT_EOF
18875class Foo
18876{
18877public:
18878 Foo (void) { a = 0; }
18879private:
18880 int a;
18881};
18882_LT_EOF
18883
cristyda16f162011-02-19 23:52:17 +000018884
18885_lt_libdeps_save_CFLAGS=$CFLAGS
18886case "$CC $CFLAGS " in #(
18887*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18888*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018889*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018890esac
18891
cristy73bd4a52010-10-05 11:24:23 +000018892if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18893 (eval $ac_compile) 2>&5
18894 ac_status=$?
18895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18896 test $ac_status = 0; }; then
18897 # Parse the compiler output and extract the necessary
18898 # objects, libraries and library flags.
18899
18900 # Sentinel used to keep track of whether or not we are before
18901 # the conftest object file.
18902 pre_test_object_deps_done=no
18903
18904 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018905 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018906
18907 -L* | -R* | -l*)
18908 # Some compilers place space between "-{L,R}" and the path.
18909 # Remove the space.
18910 if test $p = "-L" ||
18911 test $p = "-R"; then
18912 prev=$p
18913 continue
cristy73bd4a52010-10-05 11:24:23 +000018914 fi
18915
cristyda16f162011-02-19 23:52:17 +000018916 # Expand the sysroot to ease extracting the directories later.
18917 if test -z "$prev"; then
18918 case $p in
18919 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18920 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18921 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18922 esac
18923 fi
18924 case $p in
18925 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18926 esac
cristy73bd4a52010-10-05 11:24:23 +000018927 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018928 case ${prev} in
18929 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018930 # Internal compiler library paths should come after those
18931 # provided the user. The postdeps already come after the
18932 # user supplied libs so there is no need to process them.
18933 if test -z "$compiler_lib_search_path_CXX"; then
18934 compiler_lib_search_path_CXX="${prev}${p}"
18935 else
18936 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18937 fi
18938 ;;
18939 # The "-l" case would never come before the object being
18940 # linked, so don't bother handling this case.
18941 esac
18942 else
18943 if test -z "$postdeps_CXX"; then
18944 postdeps_CXX="${prev}${p}"
18945 else
18946 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18947 fi
18948 fi
cristyda16f162011-02-19 23:52:17 +000018949 prev=
cristy73bd4a52010-10-05 11:24:23 +000018950 ;;
18951
cristyda16f162011-02-19 23:52:17 +000018952 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018953 *.$objext)
18954 # This assumes that the test object file only shows up
18955 # once in the compiler output.
18956 if test "$p" = "conftest.$objext"; then
18957 pre_test_object_deps_done=yes
18958 continue
18959 fi
18960
18961 if test "$pre_test_object_deps_done" = no; then
18962 if test -z "$predep_objects_CXX"; then
18963 predep_objects_CXX="$p"
18964 else
18965 predep_objects_CXX="$predep_objects_CXX $p"
18966 fi
18967 else
18968 if test -z "$postdep_objects_CXX"; then
18969 postdep_objects_CXX="$p"
18970 else
18971 postdep_objects_CXX="$postdep_objects_CXX $p"
18972 fi
18973 fi
18974 ;;
18975
18976 *) ;; # Ignore the rest.
18977
18978 esac
18979 done
18980
18981 # Clean up.
18982 rm -f a.out a.exe
18983else
18984 echo "libtool.m4: error: problem compiling CXX test program"
18985fi
18986
18987$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018988CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018989
18990# PORTME: override above test on systems where it is broken
18991case $host_os in
18992interix[3-9]*)
18993 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18994 # hack all around it, let's just trust "g++" to DTRT.
18995 predep_objects_CXX=
18996 postdep_objects_CXX=
18997 postdeps_CXX=
18998 ;;
18999
19000linux*)
19001 case `$CC -V 2>&1 | sed 5q` in
19002 *Sun\ C*)
19003 # Sun C++ 5.9
19004
19005 # The more standards-conforming stlport4 library is
19006 # incompatible with the Cstd library. Avoid specifying
19007 # it if it's in CXXFLAGS. Ignore libCrun as
19008 # -library=stlport4 depends on it.
19009 case " $CXX $CXXFLAGS " in
19010 *" -library=stlport4 "*)
19011 solaris_use_stlport4=yes
19012 ;;
19013 esac
19014
19015 if test "$solaris_use_stlport4" != yes; then
19016 postdeps_CXX='-library=Cstd -library=Crun'
19017 fi
19018 ;;
19019 esac
19020 ;;
19021
19022solaris*)
19023 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019024 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019025 # The more standards-conforming stlport4 library is
19026 # incompatible with the Cstd library. Avoid specifying
19027 # it if it's in CXXFLAGS. Ignore libCrun as
19028 # -library=stlport4 depends on it.
19029 case " $CXX $CXXFLAGS " in
19030 *" -library=stlport4 "*)
19031 solaris_use_stlport4=yes
19032 ;;
19033 esac
19034
19035 # Adding this requires a known-good setup of shared libraries for
19036 # Sun compiler versions before 5.6, else PIC objects from an old
19037 # archive will be linked into the output, leading to subtle bugs.
19038 if test "$solaris_use_stlport4" != yes; then
19039 postdeps_CXX='-library=Cstd -library=Crun'
19040 fi
19041 ;;
19042 esac
19043 ;;
19044esac
19045
19046
19047case " $postdeps_CXX " in
19048*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19049esac
19050 compiler_lib_search_dirs_CXX=
19051if test -n "${compiler_lib_search_path_CXX}"; then
19052 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19053fi
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085 lt_prog_compiler_wl_CXX=
19086lt_prog_compiler_pic_CXX=
19087lt_prog_compiler_static_CXX=
19088
cristy73bd4a52010-10-05 11:24:23 +000019089
19090 # C++ specific cases for pic, static, wl, etc.
19091 if test "$GXX" = yes; then
19092 lt_prog_compiler_wl_CXX='-Wl,'
19093 lt_prog_compiler_static_CXX='-static'
19094
19095 case $host_os in
19096 aix*)
19097 # All AIX code is PIC.
19098 if test "$host_cpu" = ia64; then
19099 # AIX 5 now supports IA64 processor
19100 lt_prog_compiler_static_CXX='-Bstatic'
19101 fi
19102 ;;
19103
19104 amigaos*)
19105 case $host_cpu in
19106 powerpc)
19107 # see comment about AmigaOS4 .so support
19108 lt_prog_compiler_pic_CXX='-fPIC'
19109 ;;
19110 m68k)
19111 # FIXME: we need at least 68020 code to build shared libraries, but
19112 # adding the `-m68020' flag to GCC prevents building anything better,
19113 # like `-m68040'.
19114 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19115 ;;
19116 esac
19117 ;;
19118
19119 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19120 # PIC is the default for these OSes.
19121 ;;
19122 mingw* | cygwin* | os2* | pw32* | cegcc*)
19123 # This hack is so that the source file can tell whether it is being
19124 # built for inclusion in a dll (and should export symbols for example).
19125 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19126 # (--disable-auto-import) libraries
19127 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19128 ;;
19129 darwin* | rhapsody*)
19130 # PIC is the default on this platform
19131 # Common symbols not allowed in MH_DYLIB files
19132 lt_prog_compiler_pic_CXX='-fno-common'
19133 ;;
19134 *djgpp*)
19135 # DJGPP does not support shared libraries at all
19136 lt_prog_compiler_pic_CXX=
19137 ;;
cristy0c60a692010-11-04 01:09:47 +000019138 haiku*)
19139 # PIC is the default for Haiku.
19140 # The "-static" flag exists, but is broken.
19141 lt_prog_compiler_static_CXX=
19142 ;;
cristy73bd4a52010-10-05 11:24:23 +000019143 interix[3-9]*)
19144 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19145 # Instead, we relocate shared libraries at runtime.
19146 ;;
19147 sysv4*MP*)
19148 if test -d /usr/nec; then
19149 lt_prog_compiler_pic_CXX=-Kconform_pic
19150 fi
19151 ;;
19152 hpux*)
19153 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19154 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19155 # sets the default TLS model and affects inlining.
19156 case $host_cpu in
19157 hppa*64*)
19158 ;;
19159 *)
19160 lt_prog_compiler_pic_CXX='-fPIC'
19161 ;;
19162 esac
19163 ;;
19164 *qnx* | *nto*)
19165 # QNX uses GNU C++, but need to define -shared option too, otherwise
19166 # it will coredump.
19167 lt_prog_compiler_pic_CXX='-fPIC -shared'
19168 ;;
19169 *)
19170 lt_prog_compiler_pic_CXX='-fPIC'
19171 ;;
19172 esac
19173 else
19174 case $host_os in
19175 aix[4-9]*)
19176 # All AIX code is PIC.
19177 if test "$host_cpu" = ia64; then
19178 # AIX 5 now supports IA64 processor
19179 lt_prog_compiler_static_CXX='-Bstatic'
19180 else
19181 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19182 fi
19183 ;;
19184 chorus*)
19185 case $cc_basename in
19186 cxch68*)
19187 # Green Hills C++ Compiler
19188 # _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"
19189 ;;
19190 esac
19191 ;;
cristyda16f162011-02-19 23:52:17 +000019192 mingw* | cygwin* | os2* | pw32* | cegcc*)
19193 # This hack is so that the source file can tell whether it is being
19194 # built for inclusion in a dll (and should export symbols for example).
19195 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19196 ;;
cristy73bd4a52010-10-05 11:24:23 +000019197 dgux*)
19198 case $cc_basename in
19199 ec++*)
19200 lt_prog_compiler_pic_CXX='-KPIC'
19201 ;;
19202 ghcx*)
19203 # Green Hills C++ Compiler
19204 lt_prog_compiler_pic_CXX='-pic'
19205 ;;
19206 *)
19207 ;;
19208 esac
19209 ;;
19210 freebsd* | dragonfly*)
19211 # FreeBSD uses GNU C++
19212 ;;
19213 hpux9* | hpux10* | hpux11*)
19214 case $cc_basename in
19215 CC*)
19216 lt_prog_compiler_wl_CXX='-Wl,'
19217 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19218 if test "$host_cpu" != ia64; then
19219 lt_prog_compiler_pic_CXX='+Z'
19220 fi
19221 ;;
19222 aCC*)
19223 lt_prog_compiler_wl_CXX='-Wl,'
19224 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19225 case $host_cpu in
19226 hppa*64*|ia64*)
19227 # +Z the default
19228 ;;
19229 *)
19230 lt_prog_compiler_pic_CXX='+Z'
19231 ;;
19232 esac
19233 ;;
19234 *)
19235 ;;
19236 esac
19237 ;;
19238 interix*)
19239 # This is c89, which is MS Visual C++ (no shared libs)
19240 # Anyone wants to do a port?
19241 ;;
19242 irix5* | irix6* | nonstopux*)
19243 case $cc_basename in
19244 CC*)
19245 lt_prog_compiler_wl_CXX='-Wl,'
19246 lt_prog_compiler_static_CXX='-non_shared'
19247 # CC pic flag -KPIC is the default.
19248 ;;
19249 *)
19250 ;;
19251 esac
19252 ;;
cristy0c60a692010-11-04 01:09:47 +000019253 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019254 case $cc_basename in
19255 KCC*)
19256 # KAI C++ Compiler
19257 lt_prog_compiler_wl_CXX='--backend -Wl,'
19258 lt_prog_compiler_pic_CXX='-fPIC'
19259 ;;
19260 ecpc* )
19261 # old Intel C++ for x86_64 which still supported -KPIC.
19262 lt_prog_compiler_wl_CXX='-Wl,'
19263 lt_prog_compiler_pic_CXX='-KPIC'
19264 lt_prog_compiler_static_CXX='-static'
19265 ;;
19266 icpc* )
19267 # Intel C++, used to be incompatible with GCC.
19268 # ICC 10 doesn't accept -KPIC any more.
19269 lt_prog_compiler_wl_CXX='-Wl,'
19270 lt_prog_compiler_pic_CXX='-fPIC'
19271 lt_prog_compiler_static_CXX='-static'
19272 ;;
19273 pgCC* | pgcpp*)
19274 # Portland Group C++ compiler
19275 lt_prog_compiler_wl_CXX='-Wl,'
19276 lt_prog_compiler_pic_CXX='-fpic'
19277 lt_prog_compiler_static_CXX='-Bstatic'
19278 ;;
19279 cxx*)
19280 # Compaq C++
19281 # Make sure the PIC flag is empty. It appears that all Alpha
19282 # Linux and Compaq Tru64 Unix objects are PIC.
19283 lt_prog_compiler_pic_CXX=
19284 lt_prog_compiler_static_CXX='-non_shared'
19285 ;;
cristy0c60a692010-11-04 01:09:47 +000019286 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19287 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019288 lt_prog_compiler_wl_CXX='-Wl,'
19289 lt_prog_compiler_pic_CXX='-qpic'
19290 lt_prog_compiler_static_CXX='-qstaticlink'
19291 ;;
19292 *)
19293 case `$CC -V 2>&1 | sed 5q` in
19294 *Sun\ C*)
19295 # Sun C++ 5.9
19296 lt_prog_compiler_pic_CXX='-KPIC'
19297 lt_prog_compiler_static_CXX='-Bstatic'
19298 lt_prog_compiler_wl_CXX='-Qoption ld '
19299 ;;
19300 esac
19301 ;;
19302 esac
19303 ;;
19304 lynxos*)
19305 ;;
19306 m88k*)
19307 ;;
19308 mvs*)
19309 case $cc_basename in
19310 cxx*)
19311 lt_prog_compiler_pic_CXX='-W c,exportall'
19312 ;;
19313 *)
19314 ;;
19315 esac
19316 ;;
19317 netbsd*)
19318 ;;
19319 *qnx* | *nto*)
19320 # QNX uses GNU C++, but need to define -shared option too, otherwise
19321 # it will coredump.
19322 lt_prog_compiler_pic_CXX='-fPIC -shared'
19323 ;;
19324 osf3* | osf4* | osf5*)
19325 case $cc_basename in
19326 KCC*)
19327 lt_prog_compiler_wl_CXX='--backend -Wl,'
19328 ;;
19329 RCC*)
19330 # Rational C++ 2.4.1
19331 lt_prog_compiler_pic_CXX='-pic'
19332 ;;
19333 cxx*)
19334 # Digital/Compaq C++
19335 lt_prog_compiler_wl_CXX='-Wl,'
19336 # Make sure the PIC flag is empty. It appears that all Alpha
19337 # Linux and Compaq Tru64 Unix objects are PIC.
19338 lt_prog_compiler_pic_CXX=
19339 lt_prog_compiler_static_CXX='-non_shared'
19340 ;;
19341 *)
19342 ;;
19343 esac
19344 ;;
19345 psos*)
19346 ;;
19347 solaris*)
19348 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019349 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019350 # Sun C++ 4.2, 5.x and Centerline C++
19351 lt_prog_compiler_pic_CXX='-KPIC'
19352 lt_prog_compiler_static_CXX='-Bstatic'
19353 lt_prog_compiler_wl_CXX='-Qoption ld '
19354 ;;
19355 gcx*)
19356 # Green Hills C++ Compiler
19357 lt_prog_compiler_pic_CXX='-PIC'
19358 ;;
19359 *)
19360 ;;
19361 esac
19362 ;;
19363 sunos4*)
19364 case $cc_basename in
19365 CC*)
19366 # Sun C++ 4.x
19367 lt_prog_compiler_pic_CXX='-pic'
19368 lt_prog_compiler_static_CXX='-Bstatic'
19369 ;;
19370 lcc*)
19371 # Lucid
19372 lt_prog_compiler_pic_CXX='-pic'
19373 ;;
19374 *)
19375 ;;
19376 esac
19377 ;;
19378 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19379 case $cc_basename in
19380 CC*)
19381 lt_prog_compiler_wl_CXX='-Wl,'
19382 lt_prog_compiler_pic_CXX='-KPIC'
19383 lt_prog_compiler_static_CXX='-Bstatic'
19384 ;;
19385 esac
19386 ;;
19387 tandem*)
19388 case $cc_basename in
19389 NCC*)
19390 # NonStop-UX NCC 3.20
19391 lt_prog_compiler_pic_CXX='-KPIC'
19392 ;;
19393 *)
19394 ;;
19395 esac
19396 ;;
19397 vxworks*)
19398 ;;
19399 *)
19400 lt_prog_compiler_can_build_shared_CXX=no
19401 ;;
19402 esac
19403 fi
19404
19405case $host_os in
19406 # For platforms which do not support PIC, -DPIC is meaningless:
19407 *djgpp*)
19408 lt_prog_compiler_pic_CXX=
19409 ;;
19410 *)
19411 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19412 ;;
19413esac
cristy73bd4a52010-10-05 11:24:23 +000019414
cristyda16f162011-02-19 23:52:17 +000019415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19416$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19417if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19418 $as_echo_n "(cached) " >&6
19419else
19420 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19421fi
19422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19423$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19424lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019425
19426#
19427# Check to make sure the PIC flag actually works.
19428#
19429if test -n "$lt_prog_compiler_pic_CXX"; then
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19431$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019432if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019433 $as_echo_n "(cached) " >&6
19434else
19435 lt_cv_prog_compiler_pic_works_CXX=no
19436 ac_outfile=conftest.$ac_objext
19437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19438 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19439 # Insert the option either (1) after the last *FLAGS variable, or
19440 # (2) before a word containing "conftest.", or (3) at the end.
19441 # Note that $ac_compile itself does not contain backslashes and begins
19442 # with a dollar sign (not a hyphen), so the echo should work correctly.
19443 # The option is referenced via a variable to avoid confusing sed.
19444 lt_compile=`echo "$ac_compile" | $SED \
19445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19447 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019449 (eval "$lt_compile" 2>conftest.err)
19450 ac_status=$?
19451 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019453 if (exit $ac_status) && test -s "$ac_outfile"; then
19454 # The compiler can only warn and ignore the option if not recognized
19455 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19459 lt_cv_prog_compiler_pic_works_CXX=yes
19460 fi
19461 fi
19462 $RM conftest*
19463
19464fi
19465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19466$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19467
19468if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19469 case $lt_prog_compiler_pic_CXX in
19470 "" | " "*) ;;
19471 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19472 esac
19473else
19474 lt_prog_compiler_pic_CXX=
19475 lt_prog_compiler_can_build_shared_CXX=no
19476fi
19477
19478fi
19479
19480
19481
cristyda16f162011-02-19 23:52:17 +000019482
19483
cristy73bd4a52010-10-05 11:24:23 +000019484#
19485# Check to make sure the static flag actually works.
19486#
19487wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19489$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019490if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019491 $as_echo_n "(cached) " >&6
19492else
19493 lt_cv_prog_compiler_static_works_CXX=no
19494 save_LDFLAGS="$LDFLAGS"
19495 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19496 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19497 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19498 # The linker can only warn and ignore the option if not recognized
19499 # So say no if there are warnings
19500 if test -s conftest.err; then
19501 # Append any errors to the config.log.
19502 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019503 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19505 if diff conftest.exp conftest.er2 >/dev/null; then
19506 lt_cv_prog_compiler_static_works_CXX=yes
19507 fi
19508 else
19509 lt_cv_prog_compiler_static_works_CXX=yes
19510 fi
19511 fi
19512 $RM -r conftest*
19513 LDFLAGS="$save_LDFLAGS"
19514
19515fi
19516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19517$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19518
19519if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19520 :
19521else
19522 lt_prog_compiler_static_CXX=
19523fi
19524
19525
19526
19527
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19529$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019530if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019531 $as_echo_n "(cached) " >&6
19532else
19533 lt_cv_prog_compiler_c_o_CXX=no
19534 $RM -r conftest 2>/dev/null
19535 mkdir conftest
19536 cd conftest
19537 mkdir out
19538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19539
19540 lt_compiler_flag="-o out/conftest2.$ac_objext"
19541 # Insert the option either (1) after the last *FLAGS variable, or
19542 # (2) before a word containing "conftest.", or (3) at the end.
19543 # Note that $ac_compile itself does not contain backslashes and begins
19544 # with a dollar sign (not a hyphen), so the echo should work correctly.
19545 lt_compile=`echo "$ac_compile" | $SED \
19546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19548 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019550 (eval "$lt_compile" 2>out/conftest.err)
19551 ac_status=$?
19552 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19555 then
19556 # The compiler can only warn and ignore the option if not recognized
19557 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19561 lt_cv_prog_compiler_c_o_CXX=yes
19562 fi
19563 fi
19564 chmod u+w . 2>&5
19565 $RM conftest*
19566 # SGI C++ compiler will create directory out/ii_files/ for
19567 # template instantiation
19568 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19569 $RM out/* && rmdir out
19570 cd ..
19571 $RM -r conftest
19572 $RM conftest*
19573
19574fi
19575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19576$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19577
19578
19579
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19581$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019582if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019583 $as_echo_n "(cached) " >&6
19584else
19585 lt_cv_prog_compiler_c_o_CXX=no
19586 $RM -r conftest 2>/dev/null
19587 mkdir conftest
19588 cd conftest
19589 mkdir out
19590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19591
19592 lt_compiler_flag="-o out/conftest2.$ac_objext"
19593 # Insert the option either (1) after the last *FLAGS variable, or
19594 # (2) before a word containing "conftest.", or (3) at the end.
19595 # Note that $ac_compile itself does not contain backslashes and begins
19596 # with a dollar sign (not a hyphen), so the echo should work correctly.
19597 lt_compile=`echo "$ac_compile" | $SED \
19598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19600 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019602 (eval "$lt_compile" 2>out/conftest.err)
19603 ac_status=$?
19604 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19607 then
19608 # The compiler can only warn and ignore the option if not recognized
19609 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19613 lt_cv_prog_compiler_c_o_CXX=yes
19614 fi
19615 fi
19616 chmod u+w . 2>&5
19617 $RM conftest*
19618 # SGI C++ compiler will create directory out/ii_files/ for
19619 # template instantiation
19620 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19621 $RM out/* && rmdir out
19622 cd ..
19623 $RM -r conftest
19624 $RM conftest*
19625
19626fi
19627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19628$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19629
19630
19631
19632
19633hard_links="nottested"
19634if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19635 # do not overwrite the value of need_locks provided by the user
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19637$as_echo_n "checking if we can lock with hard links... " >&6; }
19638 hard_links=yes
19639 $RM conftest*
19640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19641 touch conftest.a
19642 ln conftest.a conftest.b 2>&5 || hard_links=no
19643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19645$as_echo "$hard_links" >&6; }
19646 if test "$hard_links" = no; then
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19648$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19649 need_locks=warn
19650 fi
19651else
19652 need_locks=no
19653fi
19654
19655
19656
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19658$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19659
19660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019661 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019662 case $host_os in
19663 aix[4-9]*)
19664 # If we're using GNU nm, then we don't want the "-C" option.
19665 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019666 # Also, AIX nm treats weak defined symbols like other global defined
19667 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019668 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019669 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 +000019670 else
19671 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'
19672 fi
19673 ;;
19674 pw32*)
19675 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019676 ;;
cristy73bd4a52010-10-05 11:24:23 +000019677 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019678 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019679 cl*)
19680 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19681 ;;
cristyda16f162011-02-19 23:52:17 +000019682 *)
19683 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'
19684 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19685 ;;
19686 esac
19687 ;;
cristy73bd4a52010-10-05 11:24:23 +000019688 *)
19689 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019690 ;;
cristy73bd4a52010-10-05 11:24:23 +000019691 esac
cristy73bd4a52010-10-05 11:24:23 +000019692
19693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19694$as_echo "$ld_shlibs_CXX" >&6; }
19695test "$ld_shlibs_CXX" = no && can_build_shared=no
19696
19697with_gnu_ld_CXX=$with_gnu_ld
19698
19699
19700
19701
19702
19703
19704#
19705# Do we need to explicitly link libc?
19706#
19707case "x$archive_cmds_need_lc_CXX" in
19708x|xyes)
19709 # Assume -lc should be added
19710 archive_cmds_need_lc_CXX=yes
19711
19712 if test "$enable_shared" = yes && test "$GCC" = yes; then
19713 case $archive_cmds_CXX in
19714 *'~'*)
19715 # FIXME: we may have to deal with multi-command sequences.
19716 ;;
19717 '$CC '*)
19718 # Test whether the compiler implicitly links with -lc since on some
19719 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19720 # to ld, don't add -lc before -lgcc.
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19722$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019723if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019724 $as_echo_n "(cached) " >&6
19725else
19726 $RM conftest*
19727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019728
cristy0c60a692010-11-04 01:09:47 +000019729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019730 (eval $ac_compile) 2>&5
19731 ac_status=$?
19732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19733 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019734 soname=conftest
19735 lib=conftest
19736 libobjs=conftest.$ac_objext
19737 deplibs=
19738 wl=$lt_prog_compiler_wl_CXX
19739 pic_flag=$lt_prog_compiler_pic_CXX
19740 compiler_flags=-v
19741 linker_flags=-v
19742 verstring=
19743 output_objdir=.
19744 libname=conftest
19745 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19746 allow_undefined_flag_CXX=
19747 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 +000019748 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19749 ac_status=$?
19750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19751 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019752 then
19753 lt_cv_archive_cmds_need_lc_CXX=no
19754 else
19755 lt_cv_archive_cmds_need_lc_CXX=yes
19756 fi
19757 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19758 else
19759 cat conftest.err 1>&5
19760 fi
19761 $RM conftest*
19762
19763fi
19764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19765$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19766 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019767 ;;
19768 esac
19769 fi
19770 ;;
19771esac
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
cristy73bd4a52010-10-05 11:24:23 +000019834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19835$as_echo_n "checking dynamic linker characteristics... " >&6; }
19836
19837library_names_spec=
19838libname_spec='lib$name'
19839soname_spec=
19840shrext_cmds=".so"
19841postinstall_cmds=
19842postuninstall_cmds=
19843finish_cmds=
19844finish_eval=
19845shlibpath_var=
19846shlibpath_overrides_runpath=unknown
19847version_type=none
19848dynamic_linker="$host_os ld.so"
19849sys_lib_dlsearch_path_spec="/lib /usr/lib"
19850need_lib_prefix=unknown
19851hardcode_into_libs=no
19852
19853# when you set need_version to no, make sure it does not cause -set_version
19854# flags to be left without arguments
19855need_version=unknown
19856
19857case $host_os in
19858aix3*)
cristy99bd5232011-12-07 14:38:20 +000019859 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19861 shlibpath_var=LIBPATH
19862
19863 # AIX 3 has no versioning support, so we append a major version to the name.
19864 soname_spec='${libname}${release}${shared_ext}$major'
19865 ;;
19866
19867aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019868 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019869 need_lib_prefix=no
19870 need_version=no
19871 hardcode_into_libs=yes
19872 if test "$host_cpu" = ia64; then
19873 # AIX 5 supports IA64
19874 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19875 shlibpath_var=LD_LIBRARY_PATH
19876 else
19877 # With GCC up to 2.95.x, collect2 would create an import file
19878 # for dependence libraries. The import file would start with
19879 # the line `#! .'. This would cause the generated library to
19880 # depend on `.', always an invalid library. This was fixed in
19881 # development snapshots of GCC prior to 3.0.
19882 case $host_os in
19883 aix4 | aix4.[01] | aix4.[01].*)
19884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19885 echo ' yes '
19886 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19887 :
19888 else
19889 can_build_shared=no
19890 fi
19891 ;;
19892 esac
19893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19894 # soname into executable. Probably we can add versioning support to
19895 # collect2, so additional links can be useful in future.
19896 if test "$aix_use_runtimelinking" = yes; then
19897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19898 # instead of lib<name>.a to let people know that these are not
19899 # typical AIX shared libraries.
19900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19901 else
19902 # We preserve .a as extension for shared libraries through AIX4.2
19903 # and later when we are not doing run time linking.
19904 library_names_spec='${libname}${release}.a $libname.a'
19905 soname_spec='${libname}${release}${shared_ext}$major'
19906 fi
19907 shlibpath_var=LIBPATH
19908 fi
19909 ;;
19910
19911amigaos*)
19912 case $host_cpu in
19913 powerpc)
19914 # Since July 2007 AmigaOS4 officially supports .so libraries.
19915 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19917 ;;
19918 m68k)
19919 library_names_spec='$libname.ixlibrary $libname.a'
19920 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019921 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 +000019922 ;;
19923 esac
19924 ;;
19925
19926beos*)
19927 library_names_spec='${libname}${shared_ext}'
19928 dynamic_linker="$host_os ld.so"
19929 shlibpath_var=LIBRARY_PATH
19930 ;;
19931
19932bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019933 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019934 need_version=no
19935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19936 soname_spec='${libname}${release}${shared_ext}$major'
19937 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19938 shlibpath_var=LD_LIBRARY_PATH
19939 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19940 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19941 # the default ld.so.conf also contains /usr/contrib/lib and
19942 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19943 # libtool to hard-code these into programs
19944 ;;
19945
19946cygwin* | mingw* | pw32* | cegcc*)
19947 version_type=windows
19948 shrext_cmds=".dll"
19949 need_version=no
19950 need_lib_prefix=no
19951
cristyda16f162011-02-19 23:52:17 +000019952 case $GCC,$cc_basename in
19953 yes,*)
19954 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019955 library_names_spec='$libname.dll.a'
19956 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19957 postinstall_cmds='base_file=`basename \${file}`~
19958 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19959 dldir=$destdir/`dirname \$dlpath`~
19960 test -d \$dldir || mkdir -p \$dldir~
19961 $install_prog $dir/$dlname \$dldir/$dlname~
19962 chmod a+x \$dldir/$dlname~
19963 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19964 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19965 fi'
19966 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19967 dlpath=$dir/\$dldll~
19968 $RM \$dlpath'
19969 shlibpath_overrides_runpath=yes
19970
19971 case $host_os in
19972 cygwin*)
19973 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19974 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019975
cristy73bd4a52010-10-05 11:24:23 +000019976 ;;
19977 mingw* | cegcc*)
19978 # MinGW DLLs use traditional 'lib' prefix
19979 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019980 ;;
19981 pw32*)
19982 # pw32 DLLs use 'pw' prefix rather than 'lib'
19983 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19984 ;;
19985 esac
cristyda16f162011-02-19 23:52:17 +000019986 dynamic_linker='Win32 ld.exe'
19987 ;;
19988
19989 *,cl*)
19990 # Native MSVC
19991 libname_spec='$name'
19992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19993 library_names_spec='${libname}.dll.lib'
19994
19995 case $build_os in
19996 mingw*)
19997 sys_lib_search_path_spec=
19998 lt_save_ifs=$IFS
19999 IFS=';'
20000 for lt_path in $LIB
20001 do
20002 IFS=$lt_save_ifs
20003 # Let DOS variable expansion print the short 8.3 style file name.
20004 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20005 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20006 done
20007 IFS=$lt_save_ifs
20008 # Convert to MSYS style.
20009 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20010 ;;
20011 cygwin*)
20012 # Convert to unix form, then to dos form, then back to unix form
20013 # but this time dos style (no spaces!) so that the unix form looks
20014 # like /cygdrive/c/PROGRA~1:/cygdr...
20015 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20016 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20017 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20018 ;;
20019 *)
20020 sys_lib_search_path_spec="$LIB"
20021 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20022 # It is most probably a Windows format PATH.
20023 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20024 else
20025 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20026 fi
20027 # FIXME: find the short name or the path components, as spaces are
20028 # common. (e.g. "Program Files" -> "PROGRA~1")
20029 ;;
20030 esac
20031
20032 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20033 postinstall_cmds='base_file=`basename \${file}`~
20034 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20035 dldir=$destdir/`dirname \$dlpath`~
20036 test -d \$dldir || mkdir -p \$dldir~
20037 $install_prog $dir/$dlname \$dldir/$dlname'
20038 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20039 dlpath=$dir/\$dldll~
20040 $RM \$dlpath'
20041 shlibpath_overrides_runpath=yes
20042 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020043 ;;
20044
20045 *)
cristyda16f162011-02-19 23:52:17 +000020046 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020047 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020048 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020049 ;;
20050 esac
cristy73bd4a52010-10-05 11:24:23 +000020051 # FIXME: first we should search . and the directory the executable is in
20052 shlibpath_var=PATH
20053 ;;
20054
20055darwin* | rhapsody*)
20056 dynamic_linker="$host_os dyld"
20057 version_type=darwin
20058 need_lib_prefix=no
20059 need_version=no
20060 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20061 soname_spec='${libname}${release}${major}$shared_ext'
20062 shlibpath_overrides_runpath=yes
20063 shlibpath_var=DYLD_LIBRARY_PATH
20064 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20065
20066 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20067 ;;
20068
20069dgux*)
cristy99bd5232011-12-07 14:38:20 +000020070 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020071 need_lib_prefix=no
20072 need_version=no
20073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20074 soname_spec='${libname}${release}${shared_ext}$major'
20075 shlibpath_var=LD_LIBRARY_PATH
20076 ;;
20077
cristy73bd4a52010-10-05 11:24:23 +000020078freebsd* | dragonfly*)
20079 # DragonFly does not have aout. When/if they implement a new
20080 # versioning mechanism, adjust this.
20081 if test -x /usr/bin/objformat; then
20082 objformat=`/usr/bin/objformat`
20083 else
20084 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020085 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020086 *) objformat=elf ;;
20087 esac
20088 fi
20089 version_type=freebsd-$objformat
20090 case $version_type in
20091 freebsd-elf*)
20092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20093 need_version=no
20094 need_lib_prefix=no
20095 ;;
20096 freebsd-*)
20097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20098 need_version=yes
20099 ;;
20100 esac
20101 shlibpath_var=LD_LIBRARY_PATH
20102 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020103 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020104 shlibpath_overrides_runpath=yes
20105 ;;
20106 freebsd3.[01]* | freebsdelf3.[01]*)
20107 shlibpath_overrides_runpath=yes
20108 hardcode_into_libs=yes
20109 ;;
20110 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20111 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20112 shlibpath_overrides_runpath=no
20113 hardcode_into_libs=yes
20114 ;;
20115 *) # from 4.6 on, and DragonFly
20116 shlibpath_overrides_runpath=yes
20117 hardcode_into_libs=yes
20118 ;;
20119 esac
20120 ;;
20121
20122gnu*)
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 need_lib_prefix=no
20125 need_version=no
20126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20127 soname_spec='${libname}${release}${shared_ext}$major'
20128 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020129 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020130 hardcode_into_libs=yes
20131 ;;
20132
cristy0c60a692010-11-04 01:09:47 +000020133haiku*)
cristy99bd5232011-12-07 14:38:20 +000020134 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020135 need_lib_prefix=no
20136 need_version=no
20137 dynamic_linker="$host_os runtime_loader"
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20139 soname_spec='${libname}${release}${shared_ext}$major'
20140 shlibpath_var=LIBRARY_PATH
20141 shlibpath_overrides_runpath=yes
20142 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20143 hardcode_into_libs=yes
20144 ;;
20145
cristy73bd4a52010-10-05 11:24:23 +000020146hpux9* | hpux10* | hpux11*)
20147 # Give a soname corresponding to the major version so that dld.sl refuses to
20148 # link against other versions.
20149 version_type=sunos
20150 need_lib_prefix=no
20151 need_version=no
20152 case $host_cpu in
20153 ia64*)
20154 shrext_cmds='.so'
20155 hardcode_into_libs=yes
20156 dynamic_linker="$host_os dld.so"
20157 shlibpath_var=LD_LIBRARY_PATH
20158 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20160 soname_spec='${libname}${release}${shared_ext}$major'
20161 if test "X$HPUX_IA64_MODE" = X32; then
20162 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20163 else
20164 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20165 fi
20166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20167 ;;
20168 hppa*64*)
20169 shrext_cmds='.sl'
20170 hardcode_into_libs=yes
20171 dynamic_linker="$host_os dld.sl"
20172 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20175 soname_spec='${libname}${release}${shared_ext}$major'
20176 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20178 ;;
20179 *)
20180 shrext_cmds='.sl'
20181 dynamic_linker="$host_os dld.sl"
20182 shlibpath_var=SHLIB_PATH
20183 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20185 soname_spec='${libname}${release}${shared_ext}$major'
20186 ;;
20187 esac
cristy0c60a692010-11-04 01:09:47 +000020188 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020189 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020190 # or fails outright, so override atomically:
20191 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020192 ;;
20193
20194interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020195 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020196 need_lib_prefix=no
20197 need_version=no
20198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20199 soname_spec='${libname}${release}${shared_ext}$major'
20200 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20201 shlibpath_var=LD_LIBRARY_PATH
20202 shlibpath_overrides_runpath=no
20203 hardcode_into_libs=yes
20204 ;;
20205
20206irix5* | irix6* | nonstopux*)
20207 case $host_os in
20208 nonstopux*) version_type=nonstopux ;;
20209 *)
20210 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020211 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020212 else
20213 version_type=irix
20214 fi ;;
20215 esac
20216 need_lib_prefix=no
20217 need_version=no
20218 soname_spec='${libname}${release}${shared_ext}$major'
20219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20220 case $host_os in
20221 irix5* | nonstopux*)
20222 libsuff= shlibsuff=
20223 ;;
20224 *)
20225 case $LD in # libtool.m4 will add one of these switches to LD
20226 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20227 libsuff= shlibsuff= libmagic=32-bit;;
20228 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20229 libsuff=32 shlibsuff=N32 libmagic=N32;;
20230 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20231 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20232 *) libsuff= shlibsuff= libmagic=never-match;;
20233 esac
20234 ;;
20235 esac
20236 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20237 shlibpath_overrides_runpath=no
20238 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20239 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20240 hardcode_into_libs=yes
20241 ;;
20242
20243# No shared lib support for Linux oldld, aout, or coff.
20244linux*oldld* | linux*aout* | linux*coff*)
20245 dynamic_linker=no
20246 ;;
20247
cristy99bd5232011-12-07 14:38:20 +000020248# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020249linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020250 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020251 need_lib_prefix=no
20252 need_version=no
20253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20254 soname_spec='${libname}${release}${shared_ext}$major'
20255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20256 shlibpath_var=LD_LIBRARY_PATH
20257 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020258
cristy73bd4a52010-10-05 11:24:23 +000020259 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020260 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020261 $as_echo_n "(cached) " >&6
20262else
20263 lt_cv_shlibpath_overrides_runpath=no
20264 save_LDFLAGS=$LDFLAGS
20265 save_libdir=$libdir
20266 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20267 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020269/* end confdefs.h. */
20270
20271int
20272main ()
20273{
20274
20275 ;
20276 return 0;
20277}
20278_ACEOF
20279if ac_fn_cxx_try_link "$LINENO"; then :
20280 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020281 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020282fi
20283fi
20284rm -f core conftest.err conftest.$ac_objext \
20285 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020286 LDFLAGS=$save_LDFLAGS
20287 libdir=$save_libdir
20288
20289fi
20290
20291 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020292
20293 # This implies no fast_install, which is unacceptable.
20294 # Some rework will be needed to allow for fast_install
20295 # before this can be enabled.
20296 hardcode_into_libs=yes
20297
20298 # Add ABI-specific directories to the system library path.
20299 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20300
20301 # Append ld.so.conf contents to the search path
20302 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020303 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 +000020304 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020305
cristy73bd4a52010-10-05 11:24:23 +000020306 fi
20307
20308 # We used to test for /lib/ld.so.1 and disable shared libraries on
20309 # powerpc, because MkLinux only supported shared libraries with the
20310 # GNU dynamic linker. Since this was broken with cross compilers,
20311 # most powerpc-linux boxes support dynamic linking these days and
20312 # people can always --disable-shared, the test was removed, and we
20313 # assume the GNU/Linux dynamic linker is in use.
20314 dynamic_linker='GNU/Linux ld.so'
20315 ;;
20316
20317netbsd*)
20318 version_type=sunos
20319 need_lib_prefix=no
20320 need_version=no
20321 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20324 dynamic_linker='NetBSD (a.out) ld.so'
20325 else
20326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20327 soname_spec='${libname}${release}${shared_ext}$major'
20328 dynamic_linker='NetBSD ld.elf_so'
20329 fi
20330 shlibpath_var=LD_LIBRARY_PATH
20331 shlibpath_overrides_runpath=yes
20332 hardcode_into_libs=yes
20333 ;;
20334
20335newsos6)
cristy99bd5232011-12-07 14:38:20 +000020336 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338 shlibpath_var=LD_LIBRARY_PATH
20339 shlibpath_overrides_runpath=yes
20340 ;;
20341
20342*nto* | *qnx*)
20343 version_type=qnx
20344 need_lib_prefix=no
20345 need_version=no
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347 soname_spec='${libname}${release}${shared_ext}$major'
20348 shlibpath_var=LD_LIBRARY_PATH
20349 shlibpath_overrides_runpath=no
20350 hardcode_into_libs=yes
20351 dynamic_linker='ldqnx.so'
20352 ;;
20353
20354openbsd*)
20355 version_type=sunos
20356 sys_lib_dlsearch_path_spec="/usr/lib"
20357 need_lib_prefix=no
20358 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20359 case $host_os in
20360 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20361 *) need_version=no ;;
20362 esac
20363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20365 shlibpath_var=LD_LIBRARY_PATH
20366 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20367 case $host_os in
20368 openbsd2.[89] | openbsd2.[89].*)
20369 shlibpath_overrides_runpath=no
20370 ;;
20371 *)
20372 shlibpath_overrides_runpath=yes
20373 ;;
20374 esac
20375 else
20376 shlibpath_overrides_runpath=yes
20377 fi
20378 ;;
20379
20380os2*)
20381 libname_spec='$name'
20382 shrext_cmds=".dll"
20383 need_lib_prefix=no
20384 library_names_spec='$libname${shared_ext} $libname.a'
20385 dynamic_linker='OS/2 ld.exe'
20386 shlibpath_var=LIBPATH
20387 ;;
20388
20389osf3* | osf4* | osf5*)
20390 version_type=osf
20391 need_lib_prefix=no
20392 need_version=no
20393 soname_spec='${libname}${release}${shared_ext}$major'
20394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20395 shlibpath_var=LD_LIBRARY_PATH
20396 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20397 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20398 ;;
20399
20400rdos*)
20401 dynamic_linker=no
20402 ;;
20403
20404solaris*)
cristy99bd5232011-12-07 14:38:20 +000020405 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020406 need_lib_prefix=no
20407 need_version=no
20408 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 shlibpath_overrides_runpath=yes
20412 hardcode_into_libs=yes
20413 # ldd complains unless libraries are executable
20414 postinstall_cmds='chmod +x $lib'
20415 ;;
20416
20417sunos4*)
20418 version_type=sunos
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20420 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20421 shlibpath_var=LD_LIBRARY_PATH
20422 shlibpath_overrides_runpath=yes
20423 if test "$with_gnu_ld" = yes; then
20424 need_lib_prefix=no
20425 fi
20426 need_version=yes
20427 ;;
20428
20429sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020430 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432 soname_spec='${libname}${release}${shared_ext}$major'
20433 shlibpath_var=LD_LIBRARY_PATH
20434 case $host_vendor in
20435 sni)
20436 shlibpath_overrides_runpath=no
20437 need_lib_prefix=no
20438 runpath_var=LD_RUN_PATH
20439 ;;
20440 siemens)
20441 need_lib_prefix=no
20442 ;;
20443 motorola)
20444 need_lib_prefix=no
20445 need_version=no
20446 shlibpath_overrides_runpath=no
20447 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20448 ;;
20449 esac
20450 ;;
20451
20452sysv4*MP*)
20453 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020454 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020455 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20456 soname_spec='$libname${shared_ext}.$major'
20457 shlibpath_var=LD_LIBRARY_PATH
20458 fi
20459 ;;
20460
20461sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20462 version_type=freebsd-elf
20463 need_lib_prefix=no
20464 need_version=no
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20466 soname_spec='${libname}${release}${shared_ext}$major'
20467 shlibpath_var=LD_LIBRARY_PATH
20468 shlibpath_overrides_runpath=yes
20469 hardcode_into_libs=yes
20470 if test "$with_gnu_ld" = yes; then
20471 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20472 else
20473 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20474 case $host_os in
20475 sco3.2v5*)
20476 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20477 ;;
20478 esac
20479 fi
20480 sys_lib_dlsearch_path_spec='/usr/lib'
20481 ;;
20482
20483tpf*)
20484 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020485 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020486 need_lib_prefix=no
20487 need_version=no
20488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489 shlibpath_var=LD_LIBRARY_PATH
20490 shlibpath_overrides_runpath=no
20491 hardcode_into_libs=yes
20492 ;;
20493
20494uts4*)
cristy99bd5232011-12-07 14:38:20 +000020495 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20497 soname_spec='${libname}${release}${shared_ext}$major'
20498 shlibpath_var=LD_LIBRARY_PATH
20499 ;;
20500
20501*)
20502 dynamic_linker=no
20503 ;;
20504esac
20505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20506$as_echo "$dynamic_linker" >&6; }
20507test "$dynamic_linker" = no && can_build_shared=no
20508
20509variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20510if test "$GCC" = yes; then
20511 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20512fi
20513
20514if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20515 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20516fi
20517if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20518 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20519fi
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
cristy0c60a692010-11-04 01:09:47 +000020556
20557
cristy73bd4a52010-10-05 11:24:23 +000020558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20559$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20560hardcode_action_CXX=
20561if test -n "$hardcode_libdir_flag_spec_CXX" ||
20562 test -n "$runpath_var_CXX" ||
20563 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20564
20565 # We can hardcode non-existent directories.
20566 if test "$hardcode_direct_CXX" != no &&
20567 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20568 # have to relink, otherwise we might link with an installed library
20569 # when we should be linking with a yet-to-be-installed one
20570 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20571 test "$hardcode_minus_L_CXX" != no; then
20572 # Linking always hardcodes the temporary library directory.
20573 hardcode_action_CXX=relink
20574 else
20575 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20576 hardcode_action_CXX=immediate
20577 fi
20578else
20579 # We cannot hardcode anything, or else we can only hardcode existing
20580 # directories.
20581 hardcode_action_CXX=unsupported
20582fi
20583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20584$as_echo "$hardcode_action_CXX" >&6; }
20585
20586if test "$hardcode_action_CXX" = relink ||
20587 test "$inherit_rpath_CXX" = yes; then
20588 # Fast installation is not supported
20589 enable_fast_install=no
20590elif test "$shlibpath_overrides_runpath" = yes ||
20591 test "$enable_shared" = no; then
20592 # Fast installation is not necessary
20593 enable_fast_install=needless
20594fi
20595
20596
20597
20598
20599
20600
20601
20602 fi # test -n "$compiler"
20603
20604 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020605 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020606 LDCXX=$LD
20607 LD=$lt_save_LD
20608 GCC=$lt_save_GCC
20609 with_gnu_ld=$lt_save_with_gnu_ld
20610 lt_cv_path_LDCXX=$lt_cv_path_LD
20611 lt_cv_path_LD=$lt_save_path_LD
20612 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20613 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20614fi # test "$_lt_caught_CXX_error" != yes
20615
20616ac_ext=c
20617ac_cpp='$CPP $CPPFLAGS'
20618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20620ac_compiler_gnu=$ac_cv_c_compiler_gnu
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
cristy99bd5232011-12-07 14:38:20 +000020634
20635
cristy73bd4a52010-10-05 11:24:23 +000020636 ac_config_commands="$ac_config_commands libtool"
20637
20638
20639
20640
20641# Only expand once:
20642
20643
20644
cristy3ed852e2009-09-05 21:47:34 +000020645
20646
cristy3ed852e2009-09-05 21:47:34 +000020647# Check to see if building shared libraries
20648libtool_build_shared_libs='no'
20649if test "$enable_shared" = 'yes'; then
20650 libtool_build_shared_libs='yes'
20651fi
20652
20653# Check to see if building static libraries
20654libtool_build_static_libs='no'
20655if test "$enable_static" = 'yes'; then
20656 libtool_build_static_libs='yes'
20657fi
20658
cristy73bd4a52010-10-05 11:24:23 +000020659 if test "${libtool_build_shared_libs}" = 'yes'; then
20660 WITH_SHARED_LIBS_TRUE=
20661 WITH_SHARED_LIBS_FALSE='#'
20662else
20663 WITH_SHARED_LIBS_TRUE='#'
20664 WITH_SHARED_LIBS_FALSE=
20665fi
20666
cristy3ed852e2009-09-05 21:47:34 +000020667#
20668# Enable support for building loadable modules
20669#
cristyaf4cbf32012-10-16 23:47:41 +000020670build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020671
20672# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020673if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020674 withval=$with_modules; with_modules=$withval
20675else
cristy5a1cefd2010-01-06 20:42:35 +000020676 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020677fi
20678
20679
20680# Only allow building loadable modules if we are building shared libraries
20681if test "$with_modules" != 'no' ; then
20682 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020683 { $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 +000020684$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020685 build_modules='no'
20686 else
20687 build_modules='yes'
20688 fi
cristy3ed852e2009-09-05 21:47:34 +000020689fi
cristyc6722092012-10-14 00:19:31 +000020690if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020691
cristy8b350f62009-11-15 23:12:43 +000020692$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020693
20694fi
cristyc6722092012-10-14 00:19:31 +000020695 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020696 WITH_MODULES_TRUE=
20697 WITH_MODULES_FALSE='#'
20698else
20699 WITH_MODULES_TRUE='#'
20700 WITH_MODULES_FALSE=
20701fi
20702
cristy3ed852e2009-09-05 21:47:34 +000020703
cristy3ed852e2009-09-05 21:47:34 +000020704# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020705# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020706# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020707if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020708 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20709else
20710 enable_delegate_build='no'
20711fi
20712
20713
20714# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020715if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020716 enableval=$enable_deprecated; enable_deprecated=$enableval
20717else
20718 enable_deprecated='no'
20719fi
20720
20721
20722if test "$enable_deprecated" = 'yes'; then
20723
cristy8b350f62009-11-15 23:12:43 +000020724$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020725
20726else
20727 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20728fi
20729
20730# Build a version of ImageMagick which operates uninstalled.
20731# Used to build distributions located via MAGICK_HOME / executable path
20732# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020733if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020734 enableval=$enable_installed; enable_installed=$enableval
20735else
20736 enable_installed='yes'
20737fi
20738
20739
20740if test "$enable_installed" = 'yes'; then
20741
cristy8b350f62009-11-15 23:12:43 +000020742$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020743
20744else
20745 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20746fi
20747
20748# Permit enciphering and deciphering image pixels.
20749# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020750if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020751 enableval=$enable_cipher; enable_cipher=$enableval
20752else
20753 enable_cipher='yes'
20754fi
20755
20756
20757if test "$enable_cipher" = 'yes'; then
20758
cristy8b350f62009-11-15 23:12:43 +000020759$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020760
20761fi
20762
cristy6e3607c2011-09-13 13:59:17 +000020763# Build a zero-configuration version of ImageMagick.
20764# Check whether --enable-zero-configuration was given.
20765if test "${enable_zero_configuration+set}" = set; then :
20766 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020767else
cristy6e3607c2011-09-13 13:59:17 +000020768 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020769fi
20770
20771
cristy6e3607c2011-09-13 13:59:17 +000020772if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020773
cristy6e3607c2011-09-13 13:59:17 +000020774$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020775
cristy81af5702011-09-13 14:20:58 +000020776 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020777fi
20778
20779# Build a high dynamic range version of ImageMagick.
20780# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020781if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020782 enableval=$enable_hdri; enable_hdri=$enableval
20783else
cristy191c0b72012-08-12 16:29:52 +000020784 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020785fi
20786
20787
20788MAGICK_HDRI=""
20789if test "$enable_hdri" = 'yes'; then
20790 MAGICK_HDRI="HDRI"
20791
cristy8b350f62009-11-15 23:12:43 +000020792$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020793
cristyfd9dcd42010-08-08 18:07:02 +000020794 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020795fi
20796
cristy3ed852e2009-09-05 21:47:34 +000020797# Build a version of ImageMagick with assert statements.
20798# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020799if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020800 enableval=$enable_assert; enable_assert=$enableval
20801else
20802 enable_assert='yes'
20803fi
20804
20805
20806if test "$enable_assert" = 'no'; then
20807
cristy8b350f62009-11-15 23:12:43 +000020808$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020809
20810fi
20811
cristya448bd22011-10-14 12:38:13 +000020812# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000020813
20814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20815$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20816 # Check whether --enable-maintainer-mode was given.
20817if test "${enable_maintainer_mode+set}" = set; then :
20818 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20819else
20820 USE_MAINTAINER_MODE=no
20821fi
20822
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20824$as_echo "$USE_MAINTAINER_MODE" >&6; }
20825 if test $USE_MAINTAINER_MODE = yes; then
20826 MAINTAINER_MODE_TRUE=
20827 MAINTAINER_MODE_FALSE='#'
20828else
20829 MAINTAINER_MODE_TRUE='#'
20830 MAINTAINER_MODE_FALSE=
20831fi
20832
20833 MAINT=$MAINTAINER_MODE_TRUE
20834
20835
cristy3ed852e2009-09-05 21:47:34 +000020836
cristy3ed852e2009-09-05 21:47:34 +000020837# Enable ccmalloc memory debugging support
20838# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020839if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020840 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20841else
20842 enable_ccmalloc='no'
20843fi
20844
20845
20846# Enable Electric Fence memory debugging support
20847# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020848if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020849 enableval=$enable_efence; enable_efence=$enableval
20850else
20851 enable_efence='no'
20852fi
20853
20854
20855# Enable prof-based profiling support
20856# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020857if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020858 enableval=$enable_prof; enable_prof=$enableval
20859else
20860 enable_prof='no'
20861fi
20862
20863
20864# Enable gprof-based profiling support
20865# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020866if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020867 enableval=$enable_gprof; enable_gprof=$enableval
20868else
20869 enable_gprof='no'
20870fi
20871
20872
20873# Enable gcov-based profiling support
20874# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020875if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020876 enableval=$enable_gcov; enable_gcov=$enableval
20877else
20878 enable_gcov='no'
20879fi
20880
20881
20882enable_profiling='no'
20883if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20884 enable_profiling='yes'
20885 if test "$libtool_build_shared_libs" = 'yes'; then
20886 echo "Warning: Can not profile code using shared libraries"
20887 fi
20888fi
20889
20890# Magick API method prefix
20891
20892# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020893if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000020894 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000020895else
cristyfc3d0222012-02-07 15:05:57 +000020896 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000020897fi
20898
20899
cristyfc3d0222012-02-07 15:05:57 +000020900if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000020901
20902cat >>confdefs.h <<_ACEOF
20903#define NAMESPACE_PREFIX $with_method_prefix
20904_ACEOF
20905
cristyfc3d0222012-02-07 15:05:57 +000020906 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000020907fi
20908
cristy71d8c202012-03-20 17:05:01 +000020909# Enable legacy support (default no)
20910# Check whether --enable-legacy-support was given.
20911if test "${enable_legacy_support+set}" = set; then :
20912 enableval=$enable_legacy_support; with_legacy_support=$enableval
20913else
20914 with_legacy_support='no'
20915fi
20916
20917 if test "$with_legacy_support" != 'no'; then
20918 LEGACY_SUPPORT_TRUE=
20919 LEGACY_SUPPORT_FALSE='#'
20920else
20921 LEGACY_SUPPORT_TRUE='#'
20922 LEGACY_SUPPORT_FALSE=
20923fi
20924
20925
cristy3ed852e2009-09-05 21:47:34 +000020926# Number of bits in a Quantum
20927
20928# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020929if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020930 withval=$with_quantum_depth; with_quantum_depth=$withval
20931else
20932 with_quantum_depth=16
20933fi
20934
20935
20936if test "$with_quantum_depth" != '8'; then
20937 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20938fi
20939
20940case "${with_quantum_depth}" in
20941 8 ) ;;
20942 16 ) ;;
20943 32 ) ;;
20944 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000020945 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020946esac
20947QUANTUM_DEPTH="$with_quantum_depth"
20948
20949cat >>confdefs.h <<_ACEOF
20950#define QUANTUM_DEPTH $QUANTUM_DEPTH
20951_ACEOF
20952
20953
cristy01ff9f32012-12-01 18:15:29 +000020954# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000020955MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000020956if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000020957 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000020958fi
cristy01ff9f32012-12-01 18:15:29 +000020959
20960
cristy3ed852e2009-09-05 21:47:34 +000020961# Set pixel cache threshold
20962
20963# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020964if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020965 withval=$with_cache; with_cache=$withval
20966else
20967 with_cache=''
20968fi
20969
20970
20971if test "$with_cache" != ''; then
20972
20973cat >>confdefs.h <<_ACEOF
20974#define PixelCacheThreshold $with_cache
20975_ACEOF
20976
20977 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20978fi
20979
20980# Disable/Enable support for full delegate paths
20981
20982# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020983if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020984 withval=$with_frozenpaths; with_frozenpaths=$withval
20985else
20986 with_frozenpaths='no'
20987fi
20988
20989
20990# Enable build/install of Magick++
20991
20992# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020993if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020994 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20995else
20996 with_magick_plus_plus='yes'
20997fi
20998
20999
cristy3a75f062012-09-08 23:29:40 +000021000# Encode the this name into the shared library.
21001
21002# Check whether --with-package-release-name was given.
21003if test "${with_package_release_name+set}" = set; then :
21004 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21005fi
21006
21007
21008
cristy3ed852e2009-09-05 21:47:34 +000021009# Disable build/install of PerlMagick.
21010
21011# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021012if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021013 withval=$with_perl; with_perl=$withval
21014else
cristyb5f4e2f2010-04-25 00:49:11 +000021015 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021016fi
21017
21018
21019# Options to pass when configuring PerlMagick
21020
21021# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021022if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021023 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021024fi
21025
21026
cristy3ed852e2009-09-05 21:47:34 +000021027
21028# Enable umem, object-caching memory allocation library.
21029
21030# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021031if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021032 withval=$with_umem; with_umem=$withval
21033else
21034 with_umem='no'
21035fi
21036
21037if test "$with_umem" != 'yes' ; then
21038 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21039fi
21040
21041#
21042# Specify path to shared libstdc++ if not in normal location
21043#
21044
21045# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021046if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021047 withval=$with_libstdc; with_libstdc=$withval
21048else
21049 with_libstdc=''
21050fi
21051
21052
21053if test "$with_libstdc" != ''; then
21054 if test -d "$with_libstdc"; then
21055 LIBSTDCLDFLAGS="-L$with_libstdc"
21056 fi
21057fi
21058
21059
21060# Does gcc required -traditional?
21061if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021063$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021064if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021065 $as_echo_n "(cached) " >&6
21066else
21067 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021069/* end confdefs.h. */
21070#include <sgtty.h>
21071Autoconf TIOCGETP
21072_ACEOF
21073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021074 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021075 ac_cv_prog_gcc_traditional=yes
21076else
21077 ac_cv_prog_gcc_traditional=no
21078fi
21079rm -f conftest*
21080
21081
21082 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021084/* end confdefs.h. */
21085#include <termio.h>
21086Autoconf TCGETA
21087_ACEOF
21088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021089 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021090 ac_cv_prog_gcc_traditional=yes
21091fi
21092rm -f conftest*
21093
21094 fi
21095fi
cristy8b350f62009-11-15 23:12:43 +000021096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021097$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21098 if test $ac_cv_prog_gcc_traditional = yes; then
21099 CC="$CC -traditional"
21100 fi
21101fi
21102
21103
21104########
21105#
21106# Set defines required to build DLLs and modules using MinGW
21107#
21108########
21109# These options are set for multi-thread DLL module build
21110# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21111# module: _DLL
21112# executable/Magick++: _DLL _MAGICKMOD_
21113MODULE_EXTRA_CPPFLAGS=''
21114LIBRARY_EXTRA_CPPFLAGS=''
21115if test "${native_win32_build}" = 'yes'; then
21116 if test "${libtool_build_shared_libs}" = 'yes'; then
21117 CPPFLAGS="$CPPFLAGS -D_DLL"
21118 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21119 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21120 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021121 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021122 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21123 else
21124 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21125 fi
21126 else
21127 CPPFLAGS="$CPPFLAGS -D_LIB"
21128 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21129 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21130 fi
21131 if test "$with_threads" = 'yes'; then
21132 CPPFLAGS="$CPPFLAGS -D_MT"
21133 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21134 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21135 fi
21136fi
21137
21138
21139
21140# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021142$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021143if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021144 $as_echo_n "(cached) " >&6
21145else
cristy8b350f62009-11-15 23:12:43 +000021146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021147/* end confdefs.h. */
21148#include <stdlib.h>
21149#include <stdarg.h>
21150#include <string.h>
21151#include <float.h>
21152
21153int
21154main ()
21155{
21156
21157 ;
21158 return 0;
21159}
21160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021161if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021162 ac_cv_header_stdc=yes
21163else
cristy8b350f62009-11-15 23:12:43 +000021164 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021165fi
cristy3ed852e2009-09-05 21:47:34 +000021166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21167
21168if test $ac_cv_header_stdc = yes; then
21169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021171/* end confdefs.h. */
21172#include <string.h>
21173
21174_ACEOF
21175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021176 $EGREP "memchr" >/dev/null 2>&1; then :
21177
cristy3ed852e2009-09-05 21:47:34 +000021178else
21179 ac_cv_header_stdc=no
21180fi
21181rm -f conftest*
21182
21183fi
21184
21185if test $ac_cv_header_stdc = yes; then
21186 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021188/* end confdefs.h. */
21189#include <stdlib.h>
21190
21191_ACEOF
21192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021193 $EGREP "free" >/dev/null 2>&1; then :
21194
cristy3ed852e2009-09-05 21:47:34 +000021195else
21196 ac_cv_header_stdc=no
21197fi
21198rm -f conftest*
21199
21200fi
21201
21202if test $ac_cv_header_stdc = yes; then
21203 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021204 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021205 :
21206else
cristy8b350f62009-11-15 23:12:43 +000021207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021208/* end confdefs.h. */
21209#include <ctype.h>
21210#include <stdlib.h>
21211#if ((' ' & 0x0FF) == 0x020)
21212# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21213# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21214#else
21215# define ISLOWER(c) \
21216 (('a' <= (c) && (c) <= 'i') \
21217 || ('j' <= (c) && (c) <= 'r') \
21218 || ('s' <= (c) && (c) <= 'z'))
21219# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21220#endif
21221
21222#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21223int
21224main ()
21225{
21226 int i;
21227 for (i = 0; i < 256; i++)
21228 if (XOR (islower (i), ISLOWER (i))
21229 || toupper (i) != TOUPPER (i))
21230 return 2;
21231 return 0;
21232}
21233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021234if ac_fn_c_try_run "$LINENO"; then :
21235
cristy3ed852e2009-09-05 21:47:34 +000021236else
cristy8b350f62009-11-15 23:12:43 +000021237 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021238fi
cristy8b350f62009-11-15 23:12:43 +000021239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21240 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021241fi
21242
cristy3ed852e2009-09-05 21:47:34 +000021243fi
21244fi
cristy8b350f62009-11-15 23:12:43 +000021245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021246$as_echo "$ac_cv_header_stdc" >&6; }
21247if test $ac_cv_header_stdc = yes; then
21248
cristy8b350f62009-11-15 23:12:43 +000021249$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021250
21251fi
21252
21253if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021254 { $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 +000021255 header files. Compilation cannot proceed. Please install the ANSI C
21256 headers and rerun this script." >&5
21257$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21258 header files. Compilation cannot proceed. Please install the ANSI C
21259 headers and rerun this script." >&2;};
21260fi
cristya0b81c32010-01-22 02:54:33 +000021261
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21263$as_echo_n "checking whether to enable assertions... " >&6; }
21264 # Check whether --enable-assert was given.
21265if test "${enable_assert+set}" = set; then :
21266 enableval=$enable_assert; ac_enable_assert=$enableval
21267 if test "x$enableval" = xno; then :
21268
21269$as_echo "#define NDEBUG 1" >>confdefs.h
21270
21271elif test "x$enableval" != xyes; then :
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21273$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21274 ac_enable_assert=yes
21275fi
21276else
21277 ac_enable_assert=yes
21278fi
21279
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21281$as_echo "$ac_enable_assert" >&6; }
21282
cristy3ed852e2009-09-05 21:47:34 +000021283ac_header_dirent=no
21284for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21285 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021287$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021288if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021289 $as_echo_n "(cached) " >&6
21290else
cristy8b350f62009-11-15 23:12:43 +000021291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021292/* end confdefs.h. */
21293#include <sys/types.h>
21294#include <$ac_hdr>
21295
21296int
21297main ()
21298{
21299if ((DIR *) 0)
21300return 0;
21301 ;
21302 return 0;
21303}
21304_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021305if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021306 eval "$as_ac_Header=yes"
21307else
cristy8b350f62009-11-15 23:12:43 +000021308 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021309fi
cristy3ed852e2009-09-05 21:47:34 +000021310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311fi
cristy8b350f62009-11-15 23:12:43 +000021312eval ac_res=\$$as_ac_Header
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021314$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021315if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021316 cat >>confdefs.h <<_ACEOF
21317#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21318_ACEOF
21319
21320ac_header_dirent=$ac_hdr; break
21321fi
21322
21323done
21324# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21325if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021327$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021328if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021329 $as_echo_n "(cached) " >&6
21330else
21331 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021333/* end confdefs.h. */
21334
21335/* Override any GCC internal prototype to avoid an error.
21336 Use char because int might match the return type of a GCC
21337 builtin and then its argument prototype would still apply. */
21338#ifdef __cplusplus
21339extern "C"
21340#endif
21341char opendir ();
21342int
21343main ()
21344{
21345return opendir ();
21346 ;
21347 return 0;
21348}
21349_ACEOF
21350for ac_lib in '' dir; do
21351 if test -z "$ac_lib"; then
21352 ac_res="none required"
21353 else
21354 ac_res=-l$ac_lib
21355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21356 fi
cristy8b350f62009-11-15 23:12:43 +000021357 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021358 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021359fi
cristy8b350f62009-11-15 23:12:43 +000021360rm -f core conftest.err conftest.$ac_objext \
21361 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021362 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021363 break
21364fi
21365done
cristyda16f162011-02-19 23:52:17 +000021366if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021367
cristy3ed852e2009-09-05 21:47:34 +000021368else
21369 ac_cv_search_opendir=no
21370fi
21371rm conftest.$ac_ext
21372LIBS=$ac_func_search_save_LIBS
21373fi
cristy8b350f62009-11-15 23:12:43 +000021374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021375$as_echo "$ac_cv_search_opendir" >&6; }
21376ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021377if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21379
21380fi
21381
21382else
cristy8b350f62009-11-15 23:12:43 +000021383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021384$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021385if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021386 $as_echo_n "(cached) " >&6
21387else
21388 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021390/* end confdefs.h. */
21391
21392/* Override any GCC internal prototype to avoid an error.
21393 Use char because int might match the return type of a GCC
21394 builtin and then its argument prototype would still apply. */
21395#ifdef __cplusplus
21396extern "C"
21397#endif
21398char opendir ();
21399int
21400main ()
21401{
21402return opendir ();
21403 ;
21404 return 0;
21405}
21406_ACEOF
21407for ac_lib in '' x; do
21408 if test -z "$ac_lib"; then
21409 ac_res="none required"
21410 else
21411 ac_res=-l$ac_lib
21412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21413 fi
cristy8b350f62009-11-15 23:12:43 +000021414 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021415 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021416fi
cristy8b350f62009-11-15 23:12:43 +000021417rm -f core conftest.err conftest.$ac_objext \
21418 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021419 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021420 break
21421fi
21422done
cristyda16f162011-02-19 23:52:17 +000021423if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021424
cristy3ed852e2009-09-05 21:47:34 +000021425else
21426 ac_cv_search_opendir=no
21427fi
21428rm conftest.$ac_ext
21429LIBS=$ac_func_search_save_LIBS
21430fi
cristy8b350f62009-11-15 23:12:43 +000021431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021432$as_echo "$ac_cv_search_opendir" >&6; }
21433ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021434if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21436
21437fi
21438
21439fi
21440
21441
21442# Check additional headers
cristy58945e42012-09-04 14:33:54 +000021443for 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 sun_prefetch.h stdarg.h sys/ipc.h sys/mman.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 +000021444do :
21445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21446ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021447if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021448 cat >>confdefs.h <<_ACEOF
21449#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21450_ACEOF
21451
21452fi
21453
21454done
21455
21456
21457########
21458#
21459# Checks for typedefs, structures, and compiler characteristics.
21460#
21461########
21462
cristy8b350f62009-11-15 23:12:43 +000021463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021464$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021465if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021466 $as_echo_n "(cached) " >&6
21467else
cristy8b350f62009-11-15 23:12:43 +000021468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021469/* end confdefs.h. */
21470
cristy14fefe52012-05-21 00:59:18 +000021471 #include <stdbool.h>
21472 #ifndef bool
21473 "error: bool is not defined"
21474 #endif
21475 #ifndef false
21476 "error: false is not defined"
21477 #endif
21478 #if false
21479 "error: false is not 0"
21480 #endif
21481 #ifndef true
21482 "error: true is not defined"
21483 #endif
21484 #if true != 1
21485 "error: true is not 1"
21486 #endif
21487 #ifndef __bool_true_false_are_defined
21488 "error: __bool_true_false_are_defined is not defined"
21489 #endif
cristy3ed852e2009-09-05 21:47:34 +000021490
cristy14fefe52012-05-21 00:59:18 +000021491 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021492
cristy14fefe52012-05-21 00:59:18 +000021493 char a[true == 1 ? 1 : -1];
21494 char b[false == 0 ? 1 : -1];
21495 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21496 char d[(bool) 0.5 == true ? 1 : -1];
21497 /* See body of main program for 'e'. */
21498 char f[(_Bool) 0.0 == false ? 1 : -1];
21499 char g[true];
21500 char h[sizeof (_Bool)];
21501 char i[sizeof s.t];
21502 enum { j = false, k = true, l = false * true, m = true * 256 };
21503 /* The following fails for
21504 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21505 _Bool n[m];
21506 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21507 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21508 /* Catch a bug in an HP-UX C compiler. See
21509 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21510 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21511 */
21512 _Bool q = true;
21513 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021514
21515int
21516main ()
21517{
21518
cristy14fefe52012-05-21 00:59:18 +000021519 bool e = &s;
21520 *pq |= q;
21521 *pq |= ! q;
21522 /* Refer to every declared value, to avoid compiler optimizations. */
21523 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21524 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021525
21526 ;
21527 return 0;
21528}
21529_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021530if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021531 ac_cv_header_stdbool_h=yes
21532else
cristy8b350f62009-11-15 23:12:43 +000021533 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021534fi
cristy3ed852e2009-09-05 21:47:34 +000021535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21536fi
cristy8b350f62009-11-15 23:12:43 +000021537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021538$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021539 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021540if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021541
21542cat >>confdefs.h <<_ACEOF
21543#define HAVE__BOOL 1
21544_ACEOF
21545
21546
21547fi
21548
cristy14fefe52012-05-21 00:59:18 +000021549
cristy3ed852e2009-09-05 21:47:34 +000021550if test $ac_cv_header_stdbool_h = yes; then
21551
cristy8b350f62009-11-15 23:12:43 +000021552$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021553
21554fi
21555
cristy8b350f62009-11-15 23:12:43 +000021556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021557$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021558if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021559 $as_echo_n "(cached) " >&6
21560else
cristy8b350f62009-11-15 23:12:43 +000021561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021562/* end confdefs.h. */
21563
21564int
21565main ()
21566{
21567
21568volatile int x;
21569int * volatile y = (int *) 0;
21570return !x && !y;
21571 ;
21572 return 0;
21573}
21574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021575if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021576 ac_cv_c_volatile=yes
21577else
cristy8b350f62009-11-15 23:12:43 +000021578 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021579fi
cristy3ed852e2009-09-05 21:47:34 +000021580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21581fi
cristy8b350f62009-11-15 23:12:43 +000021582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021583$as_echo "$ac_cv_c_volatile" >&6; }
21584if test $ac_cv_c_volatile = no; then
21585
cristy8b350f62009-11-15 23:12:43 +000021586$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021587
21588fi
21589
cristy8b350f62009-11-15 23:12:43 +000021590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021591$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021592if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021593 $as_echo_n "(cached) " >&6
21594else
cristy8b350f62009-11-15 23:12:43 +000021595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021596/* end confdefs.h. */
21597#define x(y) #y
21598
21599char *s = x(teststring);
21600_ACEOF
21601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021602 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021603 ac_cv_c_stringize=no
21604else
21605 ac_cv_c_stringize=yes
21606fi
21607rm -f conftest*
21608
21609fi
cristy8b350f62009-11-15 23:12:43 +000021610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021611$as_echo "$ac_cv_c_stringize" >&6; }
21612if test $ac_cv_c_stringize = yes; then
21613
cristy8b350f62009-11-15 23:12:43 +000021614$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021615
21616fi
21617
cristy8b350f62009-11-15 23:12:43 +000021618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021619$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021620if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021621 $as_echo_n "(cached) " >&6
21622else
cristy8b350f62009-11-15 23:12:43 +000021623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021624/* end confdefs.h. */
21625#include <sys/types.h>
21626#include <sys/stat.h>
21627
21628#if defined S_ISBLK && defined S_IFDIR
21629extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21630#endif
21631
21632#if defined S_ISBLK && defined S_IFCHR
21633extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21634#endif
21635
21636#if defined S_ISLNK && defined S_IFREG
21637extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21638#endif
21639
21640#if defined S_ISSOCK && defined S_IFREG
21641extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21642#endif
21643
21644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021645if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021646 ac_cv_header_stat_broken=no
21647else
cristy8b350f62009-11-15 23:12:43 +000021648 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021649fi
cristy3ed852e2009-09-05 21:47:34 +000021650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651fi
cristy8b350f62009-11-15 23:12:43 +000021652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021653$as_echo "$ac_cv_header_stat_broken" >&6; }
21654if test $ac_cv_header_stat_broken = yes; then
21655
cristy8b350f62009-11-15 23:12:43 +000021656$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021657
21658fi
21659
cristy8b350f62009-11-15 23:12:43 +000021660{ $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 +000021661$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021662if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021663 $as_echo_n "(cached) " >&6
21664else
cristy8b350f62009-11-15 23:12:43 +000021665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021666/* end confdefs.h. */
21667#include <sys/types.h>
21668#include <sys/time.h>
21669#include <time.h>
21670
21671int
21672main ()
21673{
21674if ((struct tm *) 0)
21675return 0;
21676 ;
21677 return 0;
21678}
21679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021680if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021681 ac_cv_header_time=yes
21682else
cristy8b350f62009-11-15 23:12:43 +000021683 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021684fi
cristy3ed852e2009-09-05 21:47:34 +000021685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21686fi
cristy8b350f62009-11-15 23:12:43 +000021687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021688$as_echo "$ac_cv_header_time" >&6; }
21689if test $ac_cv_header_time = yes; then
21690
cristy8b350f62009-11-15 23:12:43 +000021691$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021692
21693fi
21694
cristy8b350f62009-11-15 23:12:43 +000021695{ $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 +000021696$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021697if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021698 $as_echo_n "(cached) " >&6
21699else
cristy8b350f62009-11-15 23:12:43 +000021700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021701/* end confdefs.h. */
21702#include <sys/types.h>
21703#include <time.h>
21704
21705int
21706main ()
21707{
21708struct tm tm;
21709 int *p = &tm.tm_sec;
21710 return !p;
21711 ;
21712 return 0;
21713}
21714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021715if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021716 ac_cv_struct_tm=time.h
21717else
cristy8b350f62009-11-15 23:12:43 +000021718 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021719fi
cristy3ed852e2009-09-05 21:47:34 +000021720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21721fi
cristy8b350f62009-11-15 23:12:43 +000021722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021723$as_echo "$ac_cv_struct_tm" >&6; }
21724if test $ac_cv_struct_tm = sys/time.h; then
21725
cristy8b350f62009-11-15 23:12:43 +000021726$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021727
21728fi
21729
cristy92703d82010-04-26 00:18:18 +000021730ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21731#include <$ac_cv_struct_tm>
21732
21733"
cristyda16f162011-02-19 23:52:17 +000021734if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021735
21736cat >>confdefs.h <<_ACEOF
21737#define HAVE_STRUCT_TM_TM_ZONE 1
21738_ACEOF
21739
21740
21741fi
21742
21743if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21744
21745$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21746
21747else
21748 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21749"
cristyda16f162011-02-19 23:52:17 +000021750if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021751 ac_have_decl=1
21752else
21753 ac_have_decl=0
21754fi
21755
21756cat >>confdefs.h <<_ACEOF
21757#define HAVE_DECL_TZNAME $ac_have_decl
21758_ACEOF
21759
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21761$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021762if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021763 $as_echo_n "(cached) " >&6
21764else
21765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21766/* end confdefs.h. */
21767#include <time.h>
21768#if !HAVE_DECL_TZNAME
21769extern char *tzname[];
21770#endif
21771
21772int
21773main ()
21774{
21775return tzname[0][0];
21776 ;
21777 return 0;
21778}
21779_ACEOF
21780if ac_fn_c_try_link "$LINENO"; then :
21781 ac_cv_var_tzname=yes
21782else
21783 ac_cv_var_tzname=no
21784fi
21785rm -f core conftest.err conftest.$ac_objext \
21786 conftest$ac_exeext conftest.$ac_ext
21787fi
21788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21789$as_echo "$ac_cv_var_tzname" >&6; }
21790 if test $ac_cv_var_tzname = yes; then
21791
21792$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21793
21794 fi
21795fi
21796
cristy8b350f62009-11-15 23:12:43 +000021797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021798$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021799if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021800 $as_echo_n "(cached) " >&6
21801else
21802 echo '#! /bin/cat
21803exit 69
21804' >conftest
21805chmod u+x conftest
21806(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21807if test $? -ne 69; then
21808 ac_cv_sys_interpreter=yes
21809else
21810 ac_cv_sys_interpreter=no
21811fi
21812rm -f conftest
21813fi
cristy8b350f62009-11-15 23:12:43 +000021814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021815$as_echo "$ac_cv_sys_interpreter" >&6; }
21816interpval=$ac_cv_sys_interpreter
21817
21818
cristy3ed852e2009-09-05 21:47:34 +000021819# If the C compiler supports the keyword inline, do nothing. Otherwise
21820# define inline to __inline__ or __inline if it accepts one of those,
21821# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021823$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021824if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021825 $as_echo_n "(cached) " >&6
21826else
21827 ac_cv_c_inline=no
21828for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021830/* end confdefs.h. */
21831#ifndef __cplusplus
21832typedef int foo_t;
21833static $ac_kw foo_t static_foo () {return 0; }
21834$ac_kw foo_t foo () {return 0; }
21835#endif
21836
21837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021838if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021839 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021840fi
cristy3ed852e2009-09-05 21:47:34 +000021841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21842 test "$ac_cv_c_inline" != no && break
21843done
21844
21845fi
cristy8b350f62009-11-15 23:12:43 +000021846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021847$as_echo "$ac_cv_c_inline" >&6; }
21848
cristy3ed852e2009-09-05 21:47:34 +000021849case $ac_cv_c_inline in
21850 inline | yes) ;;
21851 *)
21852 case $ac_cv_c_inline in
21853 no) ac_val=;;
21854 *) ac_val=$ac_cv_c_inline;;
21855 esac
21856 cat >>confdefs.h <<_ACEOF
21857#ifndef __cplusplus
21858#define inline $ac_val
21859#endif
21860_ACEOF
21861 ;;
21862esac
21863
21864
21865# If the C compiler supports the keyword restrict, do nothing. Otherwise
21866# define restrict to __restrict__ or __restrict if it accepts one of those,
21867# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021869$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021870if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021871 $as_echo_n "(cached) " >&6
21872else
21873 ac_cv_c_restrict=no
21874 # The order here caters to the fact that C++ does not require restrict.
21875 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021877/* end confdefs.h. */
21878typedef int * int_ptr;
21879 int foo (int_ptr $ac_kw ip) {
21880 return ip[0];
21881 }
21882int
21883main ()
21884{
21885int s[1];
21886 int * $ac_kw t = s;
21887 t[0] = 0;
21888 return foo(t)
21889 ;
21890 return 0;
21891}
21892_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021893if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021894 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021895fi
cristy3ed852e2009-09-05 21:47:34 +000021896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21897 test "$ac_cv_c_restrict" != no && break
21898 done
21899
21900fi
cristy8b350f62009-11-15 23:12:43 +000021901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021902$as_echo "$ac_cv_c_restrict" >&6; }
21903
cristy3ed852e2009-09-05 21:47:34 +000021904 case $ac_cv_c_restrict in
21905 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021906 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021907 ;;
21908 *) cat >>confdefs.h <<_ACEOF
21909#define restrict $ac_cv_c_restrict
21910_ACEOF
21911 ;;
21912 esac
21913
21914
21915# If words are stored with the most significant byte first (like
21916# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021918$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021919if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021920 $as_echo_n "(cached) " >&6
21921else
21922 ac_cv_c_bigendian=unknown
21923 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021925/* end confdefs.h. */
21926#ifndef __APPLE_CC__
21927 not a universal capable compiler
21928 #endif
21929 typedef int dummy;
21930
21931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021932if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021933
21934 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021935 # there are at least two -arch flags with different values.
21936 ac_arch=
21937 ac_prev=
21938 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21939 if test -n "$ac_prev"; then
21940 case $ac_word in
21941 i?86 | x86_64 | ppc | ppc64)
21942 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21943 ac_arch=$ac_word
21944 else
21945 ac_cv_c_bigendian=universal
21946 break
21947 fi
21948 ;;
21949 esac
21950 ac_prev=
21951 elif test "x$ac_word" = "x-arch"; then
21952 ac_prev=arch
21953 fi
21954 done
cristy3ed852e2009-09-05 21:47:34 +000021955fi
cristy3ed852e2009-09-05 21:47:34 +000021956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21957 if test $ac_cv_c_bigendian = unknown; then
21958 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021960/* end confdefs.h. */
21961#include <sys/types.h>
21962 #include <sys/param.h>
21963
21964int
21965main ()
21966{
21967#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21968 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21969 && LITTLE_ENDIAN)
21970 bogus endian macros
21971 #endif
21972
21973 ;
21974 return 0;
21975}
21976_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021977if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021978 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021980/* end confdefs.h. */
21981#include <sys/types.h>
21982 #include <sys/param.h>
21983
21984int
21985main ()
21986{
21987#if BYTE_ORDER != BIG_ENDIAN
21988 not big endian
21989 #endif
21990
21991 ;
21992 return 0;
21993}
21994_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021995if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021996 ac_cv_c_bigendian=yes
21997else
cristy8b350f62009-11-15 23:12:43 +000021998 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021999fi
cristy3ed852e2009-09-05 21:47:34 +000022000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022001fi
cristy3ed852e2009-09-05 21:47:34 +000022002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22003 fi
22004 if test $ac_cv_c_bigendian = unknown; then
22005 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022007/* end confdefs.h. */
22008#include <limits.h>
22009
22010int
22011main ()
22012{
22013#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22014 bogus endian macros
22015 #endif
22016
22017 ;
22018 return 0;
22019}
22020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022021if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022022 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022024/* end confdefs.h. */
22025#include <limits.h>
22026
22027int
22028main ()
22029{
22030#ifndef _BIG_ENDIAN
22031 not big endian
22032 #endif
22033
22034 ;
22035 return 0;
22036}
22037_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022038if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022039 ac_cv_c_bigendian=yes
22040else
cristy8b350f62009-11-15 23:12:43 +000022041 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022042fi
cristy3ed852e2009-09-05 21:47:34 +000022043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022044fi
cristy3ed852e2009-09-05 21:47:34 +000022045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046 fi
22047 if test $ac_cv_c_bigendian = unknown; then
22048 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022049 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022050 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022052/* end confdefs.h. */
22053short int ascii_mm[] =
22054 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22055 short int ascii_ii[] =
22056 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22057 int use_ascii (int i) {
22058 return ascii_mm[i] + ascii_ii[i];
22059 }
22060 short int ebcdic_ii[] =
22061 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22062 short int ebcdic_mm[] =
22063 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22064 int use_ebcdic (int i) {
22065 return ebcdic_mm[i] + ebcdic_ii[i];
22066 }
22067 extern int foo;
22068
22069int
22070main ()
22071{
22072return use_ascii (foo) == use_ebcdic (foo);
22073 ;
22074 return 0;
22075}
22076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022077if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022078 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22079 ac_cv_c_bigendian=yes
22080 fi
22081 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22082 if test "$ac_cv_c_bigendian" = unknown; then
22083 ac_cv_c_bigendian=no
22084 else
22085 # finding both strings is unlikely to happen, but who knows?
22086 ac_cv_c_bigendian=unknown
22087 fi
22088 fi
cristy3ed852e2009-09-05 21:47:34 +000022089fi
cristy3ed852e2009-09-05 21:47:34 +000022090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22091else
cristy8b350f62009-11-15 23:12:43 +000022092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022093/* end confdefs.h. */
22094$ac_includes_default
22095int
22096main ()
22097{
22098
22099 /* Are we little or big endian? From Harbison&Steele. */
22100 union
22101 {
22102 long int l;
22103 char c[sizeof (long int)];
22104 } u;
22105 u.l = 1;
22106 return u.c[sizeof (long int) - 1] == 1;
22107
22108 ;
22109 return 0;
22110}
22111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022112if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022113 ac_cv_c_bigendian=no
22114else
cristy8b350f62009-11-15 23:12:43 +000022115 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022116fi
cristy8b350f62009-11-15 23:12:43 +000022117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22118 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022119fi
22120
cristy3ed852e2009-09-05 21:47:34 +000022121 fi
22122fi
cristy8b350f62009-11-15 23:12:43 +000022123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022124$as_echo "$ac_cv_c_bigendian" >&6; }
22125 case $ac_cv_c_bigendian in #(
22126 yes)
cristy8b350f62009-11-15 23:12:43 +000022127 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022128;; #(
22129 no)
22130 ;; #(
22131 universal)
22132
cristy8b350f62009-11-15 23:12:43 +000022133$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022134
22135 ;; #(
22136 *)
cristy98dddb52010-11-04 00:30:15 +000022137 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022138 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022139 esac
22140
22141
cristy501c8042011-05-26 17:46:28 +000022142# Define to a suitable type, if standard headers do not define it.
22143ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22144case $ac_cv_c_int8_t in #(
22145 no|yes) ;; #(
22146 *)
cristy3ed852e2009-09-05 21:47:34 +000022147
22148cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022149#define int8_t $ac_cv_c_int8_t
22150_ACEOF
22151;;
22152esac
22153
22154ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22155case $ac_cv_c_int16_t in #(
22156 no|yes) ;; #(
22157 *)
22158
22159cat >>confdefs.h <<_ACEOF
22160#define int16_t $ac_cv_c_int16_t
22161_ACEOF
22162;;
22163esac
22164
22165ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22166case $ac_cv_c_int32_t in #(
22167 no|yes) ;; #(
22168 *)
22169
22170cat >>confdefs.h <<_ACEOF
22171#define int32_t $ac_cv_c_int32_t
22172_ACEOF
22173;;
22174esac
22175
22176ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22177case $ac_cv_c_int64_t in #(
22178 no|yes) ;; #(
22179 *)
22180
22181cat >>confdefs.h <<_ACEOF
22182#define int64_t $ac_cv_c_int64_t
22183_ACEOF
22184;;
22185esac
22186
22187
cristycc22d1d2012-12-10 13:03:25 +000022188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22189$as_echo_n "checking for unsigned long long int... " >&6; }
22190if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022191 $as_echo_n "(cached) " >&6
22192else
cristycc22d1d2012-12-10 13:03:25 +000022193 ac_cv_type_unsigned_long_long_int=yes
22194 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022196/* end confdefs.h. */
22197
22198 /* For now, do not test the preprocessor; as of 2007 there are too many
cristycc22d1d2012-12-10 13:03:25 +000022199 implementations with broken preprocessors. Perhaps this can
22200 be revisited in 2012. In the meantime, code should not expect
22201 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022202 /* Test literals. */
22203 long long int ll = 9223372036854775807ll;
22204 long long int nll = -9223372036854775807LL;
22205 unsigned long long int ull = 18446744073709551615ULL;
22206 /* Test constant expressions. */
22207 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristycc22d1d2012-12-10 13:03:25 +000022208 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022209 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristycc22d1d2012-12-10 13:03:25 +000022210 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022211 int i = 63;
22212int
22213main ()
22214{
22215/* Test availability of runtime routines for shift and division. */
22216 long long int llmax = 9223372036854775807ll;
22217 unsigned long long int ullmax = 18446744073709551615ull;
22218 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristycc22d1d2012-12-10 13:03:25 +000022219 | (llmax / ll) | (llmax % ll)
22220 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22221 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022222 ;
22223 return 0;
22224}
22225
22226_ACEOF
22227if ac_fn_c_try_link "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022228
22229else
22230 ac_cv_type_unsigned_long_long_int=no
22231fi
22232rm -f core conftest.err conftest.$ac_objext \
22233 conftest$ac_exeext conftest.$ac_ext
22234 fi
22235fi
22236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22237$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22238 if test $ac_cv_type_unsigned_long_long_int = yes; then
22239
22240$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22241
22242 fi
22243
22244
22245
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22247$as_echo_n "checking for long long int... " >&6; }
22248if ${ac_cv_type_long_long_int+:} false; then :
22249 $as_echo_n "(cached) " >&6
22250else
cristy501c8042011-05-26 17:46:28 +000022251 ac_cv_type_long_long_int=yes
cristycc22d1d2012-12-10 13:03:25 +000022252 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22253 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22254 if test $ac_cv_type_long_long_int = yes; then
22255 if test "$cross_compiling" = yes; then :
22256 :
cristy501c8042011-05-26 17:46:28 +000022257else
22258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22259/* end confdefs.h. */
22260#include <limits.h>
cristycc22d1d2012-12-10 13:03:25 +000022261 #ifndef LLONG_MAX
22262 # define HALF \
22263 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22264 # define LLONG_MAX (HALF - 1 + HALF)
22265 #endif
cristy501c8042011-05-26 17:46:28 +000022266int
22267main ()
22268{
22269long long int n = 1;
cristycc22d1d2012-12-10 13:03:25 +000022270 int i;
22271 for (i = 0; ; i++)
22272 {
22273 long long int m = n << i;
22274 if (m >> i != n)
22275 return 1;
22276 if (LLONG_MAX / 2 < m)
22277 break;
22278 }
22279 return 0;
cristy501c8042011-05-26 17:46:28 +000022280 ;
22281 return 0;
22282}
22283_ACEOF
22284if ac_fn_c_try_run "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022285
cristy501c8042011-05-26 17:46:28 +000022286else
22287 ac_cv_type_long_long_int=no
22288fi
22289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22290 conftest.$ac_objext conftest.beam conftest.$ac_ext
22291fi
22292
cristycc22d1d2012-12-10 13:03:25 +000022293 fi
22294 fi
cristy501c8042011-05-26 17:46:28 +000022295fi
22296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22297$as_echo "$ac_cv_type_long_long_int" >&6; }
22298 if test $ac_cv_type_long_long_int = yes; then
22299
22300$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22301
22302 fi
22303
22304
22305
22306 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22307if test "x$ac_cv_type_intmax_t" = xyes; then :
22308
22309$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22310
22311else
22312 test $ac_cv_type_long_long_int = yes \
22313 && ac_type='long long int' \
22314 || ac_type='long int'
22315
22316cat >>confdefs.h <<_ACEOF
22317#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022318_ACEOF
22319
22320fi
22321
22322
cristy501c8042011-05-26 17:46:28 +000022323
22324 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22325if test "x$ac_cv_type_intptr_t" = xyes; then :
22326
22327$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022328
cristy3ed852e2009-09-05 21:47:34 +000022329else
cristy501c8042011-05-26 17:46:28 +000022330 for ac_type in 'int' 'long int' 'long long int'; do
22331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22332/* end confdefs.h. */
22333$ac_includes_default
22334int
22335main ()
22336{
22337static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022338test_array [0] = 0;
22339return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022340
22341 ;
22342 return 0;
22343}
22344_ACEOF
22345if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022346
22347cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022348#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022349_ACEOF
22350
cristy501c8042011-05-26 17:46:28 +000022351 ac_type=
22352fi
22353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22354 test -z "$ac_type" && break
22355 done
cristy3ed852e2009-09-05 21:47:34 +000022356fi
22357
22358
cristy3ed852e2009-09-05 21:47:34 +000022359
cristy501c8042011-05-26 17:46:28 +000022360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22361$as_echo_n "checking for long double... " >&6; }
22362if ${ac_cv_type_long_double+:} false; then :
22363 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022364else
cristy501c8042011-05-26 17:46:28 +000022365 if test "$GCC" = yes; then
22366 ac_cv_type_long_double=yes
22367 else
22368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22369/* end confdefs.h. */
22370/* The Stardent Vistra knows sizeof (long double), but does
22371 not support it. */
22372 long double foo = 0.0L;
22373int
22374main ()
22375{
22376static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22377 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022378test_array [0] = 0;
22379return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022380
cristy501c8042011-05-26 17:46:28 +000022381 ;
22382 return 0;
22383}
cristy3ed852e2009-09-05 21:47:34 +000022384_ACEOF
cristy501c8042011-05-26 17:46:28 +000022385if ac_fn_c_try_compile "$LINENO"; then :
22386 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022387else
cristy501c8042011-05-26 17:46:28 +000022388 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022389fi
cristy501c8042011-05-26 17:46:28 +000022390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22391 fi
cristy3ed852e2009-09-05 21:47:34 +000022392fi
cristy501c8042011-05-26 17:46:28 +000022393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22394$as_echo "$ac_cv_type_long_double" >&6; }
22395 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022396
cristy501c8042011-05-26 17:46:28 +000022397$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022398
cristy501c8042011-05-26 17:46:28 +000022399 fi
22400
cristy3ed852e2009-09-05 21:47:34 +000022401
cristy8b350f62009-11-15 23:12:43 +000022402 { $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 +000022403$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022404if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022405 $as_echo_n "(cached) " >&6
22406else
cristy8b350f62009-11-15 23:12:43 +000022407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022408/* end confdefs.h. */
22409#include <float.h>
22410 long double const a[] =
22411 {
22412 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22413 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22414 };
22415 long double
22416 f (long double x)
22417 {
22418 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22419 + (x ? f (x) : 'c'));
22420 }
22421
22422int
22423main ()
22424{
22425static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22426 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22427 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22428 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22429 && (int) LDBL_EPSILON == 0
22430 )];
cristy14fefe52012-05-21 00:59:18 +000022431test_array [0] = 0;
22432return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022433
22434 ;
22435 return 0;
22436}
22437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022438if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022439 ac_cv_type_long_double_wider=yes
22440else
cristy8b350f62009-11-15 23:12:43 +000022441 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022442fi
cristy3ed852e2009-09-05 21:47:34 +000022443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444fi
cristy8b350f62009-11-15 23:12:43 +000022445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022446$as_echo "$ac_cv_type_long_double_wider" >&6; }
22447 if test $ac_cv_type_long_double_wider = yes; then
22448
cristy8b350f62009-11-15 23:12:43 +000022449$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022450
22451 fi
22452
22453
cristycc22d1d2012-12-10 13:03:25 +000022454
cristy501c8042011-05-26 17:46:28 +000022455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22456$as_echo_n "checking for long long int... " >&6; }
22457if ${ac_cv_type_long_long_int+:} false; then :
22458 $as_echo_n "(cached) " >&6
22459else
cristy501c8042011-05-26 17:46:28 +000022460 ac_cv_type_long_long_int=yes
cristycc22d1d2012-12-10 13:03:25 +000022461 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22462 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22463 if test $ac_cv_type_long_long_int = yes; then
22464 if test "$cross_compiling" = yes; then :
22465 :
cristy501c8042011-05-26 17:46:28 +000022466else
22467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22468/* end confdefs.h. */
22469#include <limits.h>
cristycc22d1d2012-12-10 13:03:25 +000022470 #ifndef LLONG_MAX
22471 # define HALF \
22472 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22473 # define LLONG_MAX (HALF - 1 + HALF)
22474 #endif
cristy501c8042011-05-26 17:46:28 +000022475int
22476main ()
22477{
22478long long int n = 1;
cristycc22d1d2012-12-10 13:03:25 +000022479 int i;
22480 for (i = 0; ; i++)
22481 {
22482 long long int m = n << i;
22483 if (m >> i != n)
22484 return 1;
22485 if (LLONG_MAX / 2 < m)
22486 break;
22487 }
22488 return 0;
cristy501c8042011-05-26 17:46:28 +000022489 ;
22490 return 0;
22491}
22492_ACEOF
22493if ac_fn_c_try_run "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022494
cristy501c8042011-05-26 17:46:28 +000022495else
22496 ac_cv_type_long_long_int=no
22497fi
22498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22499 conftest.$ac_objext conftest.beam conftest.$ac_ext
22500fi
22501
cristycc22d1d2012-12-10 13:03:25 +000022502 fi
22503 fi
cristy501c8042011-05-26 17:46:28 +000022504fi
22505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22506$as_echo "$ac_cv_type_long_long_int" >&6; }
22507 if test $ac_cv_type_long_long_int = yes; then
22508
22509$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22510
22511 fi
22512
22513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22514$as_echo_n "checking for mbstate_t... " >&6; }
22515if ${ac_cv_type_mbstate_t+:} false; then :
22516 $as_echo_n "(cached) " >&6
22517else
22518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22519/* end confdefs.h. */
22520$ac_includes_default
22521# include <wchar.h>
22522int
22523main ()
22524{
22525mbstate_t x; return sizeof x;
22526 ;
22527 return 0;
22528}
22529_ACEOF
22530if ac_fn_c_try_compile "$LINENO"; then :
22531 ac_cv_type_mbstate_t=yes
22532else
22533 ac_cv_type_mbstate_t=no
22534fi
22535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22536fi
22537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22538$as_echo "$ac_cv_type_mbstate_t" >&6; }
22539 if test $ac_cv_type_mbstate_t = yes; then
22540
22541$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22542
22543 else
22544
22545$as_echo "#define mbstate_t int" >>confdefs.h
22546
22547 fi
22548ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22549if test "x$ac_cv_type_mode_t" = xyes; then :
22550
22551else
22552
22553cat >>confdefs.h <<_ACEOF
22554#define mode_t int
22555_ACEOF
22556
22557fi
22558
22559ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22560if test "x$ac_cv_type_off_t" = xyes; then :
22561
22562else
22563
22564cat >>confdefs.h <<_ACEOF
22565#define off_t long int
22566_ACEOF
22567
22568fi
22569
22570ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22571if test "x$ac_cv_type_pid_t" = xyes; then :
22572
22573else
22574
22575cat >>confdefs.h <<_ACEOF
22576#define pid_t int
22577_ACEOF
22578
22579fi
22580
22581ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22582if test "x$ac_cv_type_size_t" = xyes; then :
22583
22584else
22585
22586cat >>confdefs.h <<_ACEOF
22587#define size_t unsigned int
22588_ACEOF
22589
22590fi
22591
22592ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22593if test "x$ac_cv_type_ssize_t" = xyes; then :
22594
22595else
22596
22597cat >>confdefs.h <<_ACEOF
22598#define ssize_t int
22599_ACEOF
22600
22601fi
22602
22603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22604$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22605if ${ac_cv_type_uid_t+:} false; then :
22606 $as_echo_n "(cached) " >&6
22607else
22608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22609/* end confdefs.h. */
22610#include <sys/types.h>
22611
22612_ACEOF
22613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22614 $EGREP "uid_t" >/dev/null 2>&1; then :
22615 ac_cv_type_uid_t=yes
22616else
22617 ac_cv_type_uid_t=no
22618fi
22619rm -f conftest*
22620
22621fi
22622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22623$as_echo "$ac_cv_type_uid_t" >&6; }
22624if test $ac_cv_type_uid_t = no; then
22625
22626$as_echo "#define uid_t int" >>confdefs.h
22627
22628
22629$as_echo "#define gid_t int" >>confdefs.h
22630
22631fi
22632
22633ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22634case $ac_cv_c_uint8_t in #(
22635 no|yes) ;; #(
22636 *)
22637
22638$as_echo "#define _UINT8_T 1" >>confdefs.h
22639
22640
22641cat >>confdefs.h <<_ACEOF
22642#define uint8_t $ac_cv_c_uint8_t
22643_ACEOF
22644;;
22645 esac
22646
22647ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22648case $ac_cv_c_uint16_t in #(
22649 no|yes) ;; #(
22650 *)
22651
22652
22653cat >>confdefs.h <<_ACEOF
22654#define uint16_t $ac_cv_c_uint16_t
22655_ACEOF
22656;;
22657 esac
22658
22659ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22660case $ac_cv_c_uint32_t in #(
22661 no|yes) ;; #(
22662 *)
22663
22664$as_echo "#define _UINT32_T 1" >>confdefs.h
22665
22666
22667cat >>confdefs.h <<_ACEOF
22668#define uint32_t $ac_cv_c_uint32_t
22669_ACEOF
22670;;
22671 esac
22672
22673ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22674case $ac_cv_c_uint64_t in #(
22675 no|yes) ;; #(
22676 *)
22677
22678$as_echo "#define _UINT64_T 1" >>confdefs.h
22679
22680
22681cat >>confdefs.h <<_ACEOF
22682#define uint64_t $ac_cv_c_uint64_t
22683_ACEOF
22684;;
22685 esac
22686
22687
cristy501c8042011-05-26 17:46:28 +000022688
22689 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22690if test "x$ac_cv_type_uintmax_t" = xyes; then :
22691
22692$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22693
22694else
22695 test $ac_cv_type_unsigned_long_long_int = yes \
22696 && ac_type='unsigned long long int' \
22697 || ac_type='unsigned long int'
22698
22699cat >>confdefs.h <<_ACEOF
22700#define uintmax_t $ac_type
22701_ACEOF
22702
22703fi
22704
22705
22706
22707 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22708if test "x$ac_cv_type_uintptr_t" = xyes; then :
22709
22710$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
22711
22712else
22713 for ac_type in 'unsigned int' 'unsigned long int' \
22714 'unsigned long long int'; do
22715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22716/* end confdefs.h. */
22717$ac_includes_default
22718int
22719main ()
22720{
22721static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022722test_array [0] = 0;
22723return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022724
22725 ;
22726 return 0;
22727}
22728_ACEOF
22729if ac_fn_c_try_compile "$LINENO"; then :
22730
22731cat >>confdefs.h <<_ACEOF
22732#define uintptr_t $ac_type
22733_ACEOF
22734
22735 ac_type=
22736fi
22737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22738 test -z "$ac_type" && break
22739 done
22740fi
22741
22742
22743
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22745$as_echo_n "checking for unsigned long long int... " >&6; }
22746if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22747 $as_echo_n "(cached) " >&6
22748else
cristycc22d1d2012-12-10 13:03:25 +000022749 ac_cv_type_unsigned_long_long_int=yes
22750 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022752/* end confdefs.h. */
22753
22754 /* For now, do not test the preprocessor; as of 2007 there are too many
cristycc22d1d2012-12-10 13:03:25 +000022755 implementations with broken preprocessors. Perhaps this can
22756 be revisited in 2012. In the meantime, code should not expect
22757 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022758 /* Test literals. */
22759 long long int ll = 9223372036854775807ll;
22760 long long int nll = -9223372036854775807LL;
22761 unsigned long long int ull = 18446744073709551615ULL;
22762 /* Test constant expressions. */
22763 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristycc22d1d2012-12-10 13:03:25 +000022764 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022765 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristycc22d1d2012-12-10 13:03:25 +000022766 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022767 int i = 63;
22768int
22769main ()
22770{
22771/* Test availability of runtime routines for shift and division. */
22772 long long int llmax = 9223372036854775807ll;
22773 unsigned long long int ullmax = 18446744073709551615ull;
22774 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristycc22d1d2012-12-10 13:03:25 +000022775 | (llmax / ll) | (llmax % ll)
22776 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22777 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022778 ;
22779 return 0;
22780}
22781
22782_ACEOF
22783if ac_fn_c_try_link "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022784
cristy501c8042011-05-26 17:46:28 +000022785else
22786 ac_cv_type_unsigned_long_long_int=no
22787fi
22788rm -f core conftest.err conftest.$ac_objext \
22789 conftest$ac_exeext conftest.$ac_ext
cristycc22d1d2012-12-10 13:03:25 +000022790 fi
cristy501c8042011-05-26 17:46:28 +000022791fi
22792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22793$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22794 if test $ac_cv_type_unsigned_long_long_int = yes; then
22795
22796$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22797
22798 fi
22799
22800
cristy3ed852e2009-09-05 21:47:34 +000022801# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22802# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022804$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022805if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022806 $as_echo_n "(cached) " >&6
22807else
cristy8b350f62009-11-15 23:12:43 +000022808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022809/* end confdefs.h. */
22810$ac_includes_default
22811int
22812main ()
22813{
22814static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000022815test_array [0] = 0;
22816return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022817
22818 ;
22819 return 0;
22820}
22821_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022822if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022823 ac_cv_c_char_unsigned=no
22824else
cristy8b350f62009-11-15 23:12:43 +000022825 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022826fi
cristy3ed852e2009-09-05 21:47:34 +000022827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22828fi
cristy8b350f62009-11-15 23:12:43 +000022829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022830$as_echo "$ac_cv_c_char_unsigned" >&6; }
22831if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022832 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022833
22834fi
22835
22836
cristy9b86f202012-11-28 21:55:35 +000022837# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000022838ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
22839"
22840if test "x$ac_cv_type_float_t" = xyes; then :
22841
22842cat >>confdefs.h <<_ACEOF
22843#define HAVE_FLOAT_T 1
22844_ACEOF
22845
22846
22847fi
22848
22849ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
22850"
22851if test "x$ac_cv_type_double_t" = xyes; then :
22852
22853cat >>confdefs.h <<_ACEOF
22854#define HAVE_DOUBLE_T 1
22855_ACEOF
22856
22857
22858fi
22859
cristy9b86f202012-11-28 21:55:35 +000022860# The cast to long int works around a bug in the HP C Compiler
22861# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22862# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22863# This bug is HP SR number 8606223364.
22864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
22865$as_echo_n "checking size of float_t... " >&6; }
22866if ${ac_cv_sizeof_float_t+:} false; then :
22867 $as_echo_n "(cached) " >&6
22868else
22869 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
22870"; then :
22871
22872else
22873 if test "$ac_cv_type_float_t" = yes; then
22874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22876as_fn_error 77 "cannot compute sizeof (float_t)
22877See \`config.log' for more details" "$LINENO" 5; }
22878 else
22879 ac_cv_sizeof_float_t=0
22880 fi
22881fi
22882
22883fi
22884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
22885$as_echo "$ac_cv_sizeof_float_t" >&6; }
22886
22887
22888
22889cat >>confdefs.h <<_ACEOF
22890#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
22891_ACEOF
22892
22893
22894# The cast to long int works around a bug in the HP C Compiler
22895# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22896# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22897# This bug is HP SR number 8606223364.
22898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
22899$as_echo_n "checking size of double_t... " >&6; }
22900if ${ac_cv_sizeof_double_t+:} false; then :
22901 $as_echo_n "(cached) " >&6
22902else
22903 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
22904"; then :
22905
22906else
22907 if test "$ac_cv_type_double_t" = yes; then
22908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22910as_fn_error 77 "cannot compute sizeof (double_t)
22911See \`config.log' for more details" "$LINENO" 5; }
22912 else
22913 ac_cv_sizeof_double_t=0
22914 fi
22915fi
22916
22917fi
22918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
22919$as_echo "$ac_cv_sizeof_double_t" >&6; }
22920
22921
22922
22923cat >>confdefs.h <<_ACEOF
22924#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
22925_ACEOF
22926
22927
22928
22929# Get size of float, double and long double for comparaison.
22930# The cast to long int works around a bug in the HP C Compiler
22931# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22932# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22933# This bug is HP SR number 8606223364.
22934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
22935$as_echo_n "checking size of float... " >&6; }
22936if ${ac_cv_sizeof_float+:} false; then :
22937 $as_echo_n "(cached) " >&6
22938else
22939 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
22940
22941else
22942 if test "$ac_cv_type_float" = yes; then
22943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22945as_fn_error 77 "cannot compute sizeof (float)
22946See \`config.log' for more details" "$LINENO" 5; }
22947 else
22948 ac_cv_sizeof_float=0
22949 fi
22950fi
22951
22952fi
22953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
22954$as_echo "$ac_cv_sizeof_float" >&6; }
22955
22956
22957
22958cat >>confdefs.h <<_ACEOF
22959#define SIZEOF_FLOAT $ac_cv_sizeof_float
22960_ACEOF
22961
22962
22963# The cast to long int works around a bug in the HP C Compiler
22964# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22965# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22966# This bug is HP SR number 8606223364.
22967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
22968$as_echo_n "checking size of double... " >&6; }
22969if ${ac_cv_sizeof_double+:} false; then :
22970 $as_echo_n "(cached) " >&6
22971else
22972 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
22973
22974else
22975 if test "$ac_cv_type_double" = yes; then
22976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22978as_fn_error 77 "cannot compute sizeof (double)
22979See \`config.log' for more details" "$LINENO" 5; }
22980 else
22981 ac_cv_sizeof_double=0
22982 fi
22983fi
22984
22985fi
22986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
22987$as_echo "$ac_cv_sizeof_double" >&6; }
22988
22989
22990
22991cat >>confdefs.h <<_ACEOF
22992#define SIZEOF_DOUBLE $ac_cv_sizeof_double
22993_ACEOF
22994
22995
22996# The cast to long int works around a bug in the HP C Compiler
22997# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22998# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22999# This bug is HP SR number 8606223364.
23000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23001$as_echo_n "checking size of long double... " >&6; }
23002if ${ac_cv_sizeof_long_double+:} false; then :
23003 $as_echo_n "(cached) " >&6
23004else
23005 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23006
23007else
23008 if test "$ac_cv_type_long_double" = yes; then
23009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23011as_fn_error 77 "cannot compute sizeof (long double)
23012See \`config.log' for more details" "$LINENO" 5; }
23013 else
23014 ac_cv_sizeof_long_double=0
23015 fi
23016fi
23017
23018fi
23019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23020$as_echo "$ac_cv_sizeof_long_double" >&6; }
23021
23022
23023
23024cat >>confdefs.h <<_ACEOF
23025#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23026_ACEOF
23027
23028
cristyf0cf9a22012-10-24 12:05:01 +000023029
cristy3ed852e2009-09-05 21:47:34 +000023030# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23031# The cast to long int works around a bug in the HP C Compiler
23032# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23033# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23034# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023036$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023037if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023038 $as_echo_n "(cached) " >&6
23039else
cristy8b350f62009-11-15 23:12:43 +000023040 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 +000023041
cristy3ed852e2009-09-05 21:47:34 +000023042else
cristy8b350f62009-11-15 23:12:43 +000023043 if test "$ac_cv_type_signed_short" = yes; then
23044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023046as_fn_error 77 "cannot compute sizeof (signed short)
23047See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023048 else
23049 ac_cv_sizeof_signed_short=0
23050 fi
23051fi
cristy8b350f62009-11-15 23:12:43 +000023052
cristy3ed852e2009-09-05 21:47:34 +000023053fi
cristy8b350f62009-11-15 23:12:43 +000023054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023055$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23056
23057
23058
23059cat >>confdefs.h <<_ACEOF
23060#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23061_ACEOF
23062
23063
23064
23065# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23066# The cast to long int works around a bug in the HP C Compiler
23067# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23068# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23069# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023071$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023072if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023073 $as_echo_n "(cached) " >&6
23074else
cristy8b350f62009-11-15 23:12:43 +000023075 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 +000023076
cristy3ed852e2009-09-05 21:47:34 +000023077else
cristy8b350f62009-11-15 23:12:43 +000023078 if test "$ac_cv_type_unsigned_short" = yes; then
23079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023081as_fn_error 77 "cannot compute sizeof (unsigned short)
23082See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023083 else
23084 ac_cv_sizeof_unsigned_short=0
23085 fi
23086fi
cristy8b350f62009-11-15 23:12:43 +000023087
cristy3ed852e2009-09-05 21:47:34 +000023088fi
cristy8b350f62009-11-15 23:12:43 +000023089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023090$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23091
23092
23093
23094cat >>confdefs.h <<_ACEOF
23095#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23096_ACEOF
23097
23098
23099
23100# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23101# The cast to long int works around a bug in the HP C Compiler
23102# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23103# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23104# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023106$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023107if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023108 $as_echo_n "(cached) " >&6
23109else
cristy8b350f62009-11-15 23:12:43 +000023110 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 +000023111
cristy3ed852e2009-09-05 21:47:34 +000023112else
cristy8b350f62009-11-15 23:12:43 +000023113 if test "$ac_cv_type_signed_int" = yes; then
23114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023116as_fn_error 77 "cannot compute sizeof (signed int)
23117See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023118 else
23119 ac_cv_sizeof_signed_int=0
23120 fi
23121fi
cristy8b350f62009-11-15 23:12:43 +000023122
cristy3ed852e2009-09-05 21:47:34 +000023123fi
cristy8b350f62009-11-15 23:12:43 +000023124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023125$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23126
23127
23128
23129cat >>confdefs.h <<_ACEOF
23130#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23131_ACEOF
23132
23133
23134
23135# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23136# The cast to long int works around a bug in the HP C Compiler
23137# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23138# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23139# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023141$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023142if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023143 $as_echo_n "(cached) " >&6
23144else
cristy8b350f62009-11-15 23:12:43 +000023145 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 +000023146
cristy3ed852e2009-09-05 21:47:34 +000023147else
cristy8b350f62009-11-15 23:12:43 +000023148 if test "$ac_cv_type_unsigned_int" = yes; then
23149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023151as_fn_error 77 "cannot compute sizeof (unsigned int)
23152See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023153 else
23154 ac_cv_sizeof_unsigned_int=0
23155 fi
23156fi
cristy8b350f62009-11-15 23:12:43 +000023157
cristy3ed852e2009-09-05 21:47:34 +000023158fi
cristy8b350f62009-11-15 23:12:43 +000023159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023160$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23161
23162
23163
23164cat >>confdefs.h <<_ACEOF
23165#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23166_ACEOF
23167
23168
23169
23170# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23171# The cast to long int works around a bug in the HP C Compiler
23172# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23173# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23174# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023176$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023177if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023178 $as_echo_n "(cached) " >&6
23179else
cristy8b350f62009-11-15 23:12:43 +000023180 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 +000023181
cristy3ed852e2009-09-05 21:47:34 +000023182else
cristy8b350f62009-11-15 23:12:43 +000023183 if test "$ac_cv_type_signed_long" = yes; then
23184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023186as_fn_error 77 "cannot compute sizeof (signed long)
23187See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023188 else
23189 ac_cv_sizeof_signed_long=0
23190 fi
23191fi
cristy8b350f62009-11-15 23:12:43 +000023192
cristy3ed852e2009-09-05 21:47:34 +000023193fi
cristy8b350f62009-11-15 23:12:43 +000023194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023195$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23196
23197
23198
23199cat >>confdefs.h <<_ACEOF
23200#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23201_ACEOF
23202
23203
23204
23205# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23206# The cast to long int works around a bug in the HP C Compiler
23207# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23208# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23209# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023211$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023212if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023213 $as_echo_n "(cached) " >&6
23214else
cristy8b350f62009-11-15 23:12:43 +000023215 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 +000023216
cristy3ed852e2009-09-05 21:47:34 +000023217else
cristy8b350f62009-11-15 23:12:43 +000023218 if test "$ac_cv_type_unsigned_long" = yes; then
23219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023221as_fn_error 77 "cannot compute sizeof (unsigned long)
23222See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023223 else
23224 ac_cv_sizeof_unsigned_long=0
23225 fi
23226fi
cristy8b350f62009-11-15 23:12:43 +000023227
cristy3ed852e2009-09-05 21:47:34 +000023228fi
cristy8b350f62009-11-15 23:12:43 +000023229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023230$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23231
23232
23233
23234cat >>confdefs.h <<_ACEOF
23235#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23236_ACEOF
23237
23238
23239
23240# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23241# 'signed long long' is not supported then the value defined is zero.
23242# The cast to long int works around a bug in the HP C Compiler
23243# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23244# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23245# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023247$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023248if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023249 $as_echo_n "(cached) " >&6
23250else
cristy8b350f62009-11-15 23:12:43 +000023251 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 +000023252
cristy3ed852e2009-09-05 21:47:34 +000023253else
cristy8b350f62009-11-15 23:12:43 +000023254 if test "$ac_cv_type_signed_long_long" = yes; then
23255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023257as_fn_error 77 "cannot compute sizeof (signed long long)
23258See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023259 else
23260 ac_cv_sizeof_signed_long_long=0
23261 fi
23262fi
cristy8b350f62009-11-15 23:12:43 +000023263
cristy3ed852e2009-09-05 21:47:34 +000023264fi
cristy8b350f62009-11-15 23:12:43 +000023265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023266$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23267
23268
23269
23270cat >>confdefs.h <<_ACEOF
23271#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23272_ACEOF
23273
23274
23275
23276# Obtain size of a 'unsigned long long' and define as
23277# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23278# supported then the value defined is zero.
23279# The cast to long int works around a bug in the HP C Compiler
23280# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23281# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23282# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023284$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023285if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023286 $as_echo_n "(cached) " >&6
23287else
cristy8b350f62009-11-15 23:12:43 +000023288 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 +000023289
cristy3ed852e2009-09-05 21:47:34 +000023290else
cristy8b350f62009-11-15 23:12:43 +000023291 if test "$ac_cv_type_unsigned_long_long" = yes; then
23292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023294as_fn_error 77 "cannot compute sizeof (unsigned long long)
23295See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023296 else
23297 ac_cv_sizeof_unsigned_long_long=0
23298 fi
23299fi
cristy8b350f62009-11-15 23:12:43 +000023300
cristy3ed852e2009-09-05 21:47:34 +000023301fi
cristy8b350f62009-11-15 23:12:43 +000023302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023303$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23304
23305
23306
23307cat >>confdefs.h <<_ACEOF
23308#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23309_ACEOF
23310
23311
23312
23313# Obtain size of off_t and define as SIZEOF_OFF_T
23314# The cast to long int works around a bug in the HP C Compiler
23315# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23316# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23317# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023319$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023320if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023321 $as_echo_n "(cached) " >&6
23322else
cristy8b350f62009-11-15 23:12:43 +000023323 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 +000023324
cristy3ed852e2009-09-05 21:47:34 +000023325else
cristy8b350f62009-11-15 23:12:43 +000023326 if test "$ac_cv_type_off_t" = yes; then
23327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023329as_fn_error 77 "cannot compute sizeof (off_t)
23330See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023331 else
23332 ac_cv_sizeof_off_t=0
23333 fi
23334fi
cristy8b350f62009-11-15 23:12:43 +000023335
cristy3ed852e2009-09-05 21:47:34 +000023336fi
cristy8b350f62009-11-15 23:12:43 +000023337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023338$as_echo "$ac_cv_sizeof_off_t" >&6; }
23339
23340
23341
23342cat >>confdefs.h <<_ACEOF
23343#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23344_ACEOF
23345
23346
23347
23348# Obtain size of size_t and define as SIZEOF_SIZE_T
23349# The cast to long int works around a bug in the HP C Compiler
23350# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23351# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23352# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023354$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023355if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023356 $as_echo_n "(cached) " >&6
23357else
cristy8b350f62009-11-15 23:12:43 +000023358 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 +000023359
cristy3ed852e2009-09-05 21:47:34 +000023360else
cristy8b350f62009-11-15 23:12:43 +000023361 if test "$ac_cv_type_size_t" = yes; then
23362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023364as_fn_error 77 "cannot compute sizeof (size_t)
23365See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023366 else
23367 ac_cv_sizeof_size_t=0
23368 fi
23369fi
cristy8b350f62009-11-15 23:12:43 +000023370
cristy3ed852e2009-09-05 21:47:34 +000023371fi
cristy8b350f62009-11-15 23:12:43 +000023372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023373$as_echo "$ac_cv_sizeof_size_t" >&6; }
23374
23375
23376
23377cat >>confdefs.h <<_ACEOF
23378#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23379_ACEOF
23380
23381
23382
cristy330e9352010-06-01 18:42:49 +000023383# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23384# The cast to long int works around a bug in the HP C Compiler
23385# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23386# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23387# This bug is HP SR number 8606223364.
23388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23389$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023390if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023391 $as_echo_n "(cached) " >&6
23392else
23393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23394
23395else
23396 if test "$ac_cv_type_ssize_t" = yes; then
23397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023399as_fn_error 77 "cannot compute sizeof (ssize_t)
23400See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023401 else
23402 ac_cv_sizeof_ssize_t=0
23403 fi
23404fi
23405
23406fi
23407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23408$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23409
23410
23411
23412cat >>confdefs.h <<_ACEOF
23413#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23414_ACEOF
23415
23416
23417
cristy3ed852e2009-09-05 21:47:34 +000023418# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23419# The cast to long int works around a bug in the HP C Compiler
23420# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23421# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23422# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023424$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023425if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023426 $as_echo_n "(cached) " >&6
23427else
cristy8b350f62009-11-15 23:12:43 +000023428 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 +000023429
cristy3ed852e2009-09-05 21:47:34 +000023430else
cristy8b350f62009-11-15 23:12:43 +000023431 if test "$ac_cv_type_unsigned_intp" = yes; then
23432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023434as_fn_error 77 "cannot compute sizeof (unsigned int*)
23435See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023436 else
23437 ac_cv_sizeof_unsigned_intp=0
23438 fi
23439fi
cristy8b350f62009-11-15 23:12:43 +000023440
cristy3ed852e2009-09-05 21:47:34 +000023441fi
cristy8b350f62009-11-15 23:12:43 +000023442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023443$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23444
23445
23446
23447cat >>confdefs.h <<_ACEOF
23448#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23449_ACEOF
23450
23451
23452
23453#
23454# Compute sized types for current CPU and compiler options.
23455#
23456
cristy8b350f62009-11-15 23:12:43 +000023457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023458$as_echo_n "checking for signed 8-bit type... " >&6; }
23459INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023460{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23461$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023462
23463
cristy8b350f62009-11-15 23:12:43 +000023464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023465$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23466UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023467{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23468$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023469
23470
cristy8b350f62009-11-15 23:12:43 +000023471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023472$as_echo_n "checking for signed 16-bit type... " >&6; }
23473INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023474{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23475$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023476
23477
cristy8b350f62009-11-15 23:12:43 +000023478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023479$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23480UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023481{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23482$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023483
23484
cristy8b350f62009-11-15 23:12:43 +000023485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023486$as_echo_n "checking for signed 32-bit type... " >&6; }
23487INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023488INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023489if test $ac_cv_sizeof_signed_int -eq 4; then
23490 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023491 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023492elif test $ac_cv_sizeof_signed_long -eq 4; then
23493 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023494 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023495fi
cristy09b53e12011-10-14 12:47:22 +000023496{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23497$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023498
23499
cristy6d5e20f2011-04-25 13:48:54 +000023500
cristy8b350f62009-11-15 23:12:43 +000023501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023502$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23503UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023504UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023505if test $ac_cv_sizeof_unsigned_int -eq 4; then
23506 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023507 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023508elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23509 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023510 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023511fi
cristy09b53e12011-10-14 12:47:22 +000023512{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23513$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023514
23515
cristy6d5e20f2011-04-25 13:48:54 +000023516
cristy8b350f62009-11-15 23:12:43 +000023517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023518$as_echo_n "checking for signed 64-bit type... " >&6; }
23519INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023520INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023521if test $ac_cv_sizeof_signed_long -eq 8; then
23522 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023523 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023524elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23525 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023526 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023527fi
cristy3a99dcf2011-12-17 01:29:40 +000023528case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023529 mingw* )
23530 INT64_F='"I64"'
23531 ;;
23532esac
cristy09b53e12011-10-14 12:47:22 +000023533{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23534$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023535
23536
cristy6d5e20f2011-04-25 13:48:54 +000023537
cristy8b350f62009-11-15 23:12:43 +000023538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023539$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23540UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023541UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023542if test $ac_cv_sizeof_unsigned_long -eq 8; then
23543 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023544 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023545elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23546 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023547 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023548fi
cristy3a99dcf2011-12-17 01:29:40 +000023549case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023550 mingw* )
23551 UINT64_F='"I64"'
23552 ;;
23553esac
cristy09b53e12011-10-14 12:47:22 +000023554{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23555$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023556
23557
cristy6d5e20f2011-04-25 13:48:54 +000023558
cristy8b350f62009-11-15 23:12:43 +000023559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023560$as_echo_n "checking for unsigned maximum type... " >&6; }
23561UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023562UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023563if test "$UINT64_T" != 'none'; then
23564 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023565 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023566elif test "$UINT32_T" != 'none'; then
23567 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023568 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023569fi
cristy09b53e12011-10-14 12:47:22 +000023570{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23571$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023572
23573
cristy6d5e20f2011-04-25 13:48:54 +000023574
cristy8b350f62009-11-15 23:12:43 +000023575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023576$as_echo_n "checking for pointer difference type... " >&6; }
23577UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023578UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023579if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23580 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023581 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023582elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23583 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023584 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023585fi
cristy09b53e12011-10-14 12:47:22 +000023586{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23587$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023588
23589
cristy6d5e20f2011-04-25 13:48:54 +000023590
cristy8b350f62009-11-15 23:12:43 +000023591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023592$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023594/* end confdefs.h. */
23595
23596int
23597main ()
23598{
23599{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23600 ;
23601 return 0;
23602}
23603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023604if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023605 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23606$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023607else
cristy09b53e12011-10-14 12:47:22 +000023608 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23609$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023611$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023613/* end confdefs.h. */
23614
23615int
23616main ()
23617{
23618{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23619 ;
23620 return 0;
23621}
23622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023623if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023624 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23625$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023626
cristy8b350f62009-11-15 23:12:43 +000023627$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023628
23629else
cristy09b53e12011-10-14 12:47:22 +000023630 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23631$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023632
cristy8b350f62009-11-15 23:12:43 +000023633$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023634
23635fi
cristy3ed852e2009-09-05 21:47:34 +000023636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23637fi
cristy3ed852e2009-09-05 21:47:34 +000023638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23639
23640########
23641#
23642# Check for functions
23643#
23644########
cristy73bd4a52010-10-05 11:24:23 +000023645for ac_header in stdlib.h unistd.h
23646do :
23647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23648ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023649if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023650 cat >>confdefs.h <<_ACEOF
23651#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23652_ACEOF
23653
23654fi
23655
23656done
23657
23658for ac_func in getpagesize
23659do :
23660 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023661if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023662 cat >>confdefs.h <<_ACEOF
23663#define HAVE_GETPAGESIZE 1
23664_ACEOF
23665
23666fi
23667done
23668
23669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23670$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023671if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023672 $as_echo_n "(cached) " >&6
23673else
23674 if test "$cross_compiling" = yes; then :
23675 magick_cv_func_mmap_fileio=no
23676else
23677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23678/* end confdefs.h. */
23679$ac_includes_default
23680/* malloc might have been renamed as rpl_malloc. */
23681#undef malloc
23682
23683/*
23684 This test is derived from GNU Autoconf's similar macro.
23685 The purpose of this test is to verify that files may be memory
23686 mapped, and that memory mapping and file I/O are coherent.
23687
23688 The test creates a test file, memory maps the file, updates
23689 the file using the memory map, and then reads the file using
23690 file I/O to verify that the file contains the updates.
23691*/
23692
23693#include <fcntl.h>
23694#include <sys/mman.h>
23695
23696#if !STDC_HEADERS && !HAVE_STDLIB_H
23697char *malloc ();
23698#endif
23699
23700/* This mess was copied from the GNU getpagesize.h. */
23701#if !HAVE_GETPAGESIZE
23702/* Assume that all systems that can run configure have sys/param.h. */
23703# if !HAVE_SYS_PARAM_H
23704# define HAVE_SYS_PARAM_H 1
23705# endif
23706
23707# ifdef _SC_PAGESIZE
23708# define getpagesize() sysconf(_SC_PAGESIZE)
23709# else /* no _SC_PAGESIZE */
23710# if HAVE_SYS_PARAM_H
23711# include <sys/param.h>
23712# ifdef EXEC_PAGESIZE
23713# define getpagesize() EXEC_PAGESIZE
23714# else /* no EXEC_PAGESIZE */
23715# ifdef NBPG
23716# define getpagesize() NBPG * CLSIZE
23717# ifndef CLSIZE
23718# define CLSIZE 1
23719# endif /* no CLSIZE */
23720# else /* no NBPG */
23721# ifdef NBPC
23722# define getpagesize() NBPC
23723# else /* no NBPC */
23724# ifdef PAGESIZE
23725# define getpagesize() PAGESIZE
23726# endif /* PAGESIZE */
23727# endif /* no NBPC */
23728# endif /* no NBPG */
23729# endif /* no EXEC_PAGESIZE */
23730# else /* no HAVE_SYS_PARAM_H */
23731# define getpagesize() 8192 /* punt totally */
23732# endif /* no HAVE_SYS_PARAM_H */
23733# endif /* no _SC_PAGESIZE */
23734
23735#endif /* no HAVE_GETPAGESIZE */
23736
23737int
23738main ()
23739{
23740 char *data, *data2, *data3;
23741 int i, pagesize;
23742 int fd;
23743
23744 pagesize = getpagesize ();
23745
23746 /* First, make a file with some known garbage in it. */
23747 data = (char *) malloc (pagesize);
23748 if (!data)
23749 exit (1);
23750 for (i = 0; i < pagesize; ++i)
23751 *(data + i) = rand ();
23752 umask (0);
23753 fd = creat ("conftest.mmap", 0600);
23754 if (fd < 0)
23755 exit (1);
23756 if (write (fd, data, pagesize) != pagesize)
23757 exit (1);
23758 close (fd);
23759
23760 /* Mmap the file as read/write/shared and verify that we see the
23761 same garbage. */
23762 fd = open ("conftest.mmap", O_RDWR);
23763 if (fd < 0)
23764 exit (1);
23765 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23766 if (data2 == 0)
23767 exit (1);
23768 for (i = 0; i < pagesize; ++i)
23769 if (*(data + i) != *(data2 + i))
23770 exit (1);
23771
23772 /* Finally, make sure that changes to the mapped area
23773 percolate back to the file as seen by read(). */
23774 for (i = 0; i < pagesize; ++i)
23775 *(data2 + i) = *(data2 + i) + 1;
23776 data3 = (char *) malloc (pagesize);
23777 if (!data3)
23778 exit (1);
23779 if (read (fd, data3, pagesize) != pagesize)
23780 exit (1);
23781 for (i = 0; i < pagesize; ++i)
23782 if (*(data2 + i) != *(data3 + i))
23783 exit (1);
23784 close (fd);
23785 exit (0);
23786}
23787_ACEOF
23788if ac_fn_c_try_run "$LINENO"; then :
23789 magick_cv_func_mmap_fileio=yes
23790else
23791 magick_cv_func_mmap_fileio=no
23792fi
23793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23794 conftest.$ac_objext conftest.beam conftest.$ac_ext
23795fi
23796
23797fi
23798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23799$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23800if test $magick_cv_func_mmap_fileio = yes; then
23801
23802$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23803
23804fi
23805rm -f conftest.mmap
23806
cristy8b350f62009-11-15 23:12:43 +000023807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023808$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023809if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023810 $as_echo_n "(cached) " >&6
23811else
cristy8b350f62009-11-15 23:12:43 +000023812 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023813 ac_cv_func_closedir_void=yes
23814else
cristy8b350f62009-11-15 23:12:43 +000023815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023816/* end confdefs.h. */
23817$ac_includes_default
23818#include <$ac_header_dirent>
23819#ifndef __cplusplus
23820int closedir ();
23821#endif
23822
23823int
23824main ()
23825{
23826return closedir (opendir (".")) != 0;
23827 ;
23828 return 0;
23829}
23830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023831if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023832 ac_cv_func_closedir_void=no
23833else
cristy8b350f62009-11-15 23:12:43 +000023834 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023835fi
cristy8b350f62009-11-15 23:12:43 +000023836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23837 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023838fi
23839
cristy3ed852e2009-09-05 21:47:34 +000023840fi
cristy8b350f62009-11-15 23:12:43 +000023841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023842$as_echo "$ac_cv_func_closedir_void" >&6; }
23843if test $ac_cv_func_closedir_void = yes; then
23844
cristy8b350f62009-11-15 23:12:43 +000023845$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023846
23847fi
23848
cristycd4c5312009-11-22 01:19:08 +000023849
23850
23851
23852 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023853do :
23854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023855ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23856"
cristy98dddb52010-11-04 00:30:15 +000023857if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023858 cat >>confdefs.h <<_ACEOF
23859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23860_ACEOF
23861
23862fi
23863
23864done
23865
cristycd4c5312009-11-22 01:19:08 +000023866
23867
23868
23869
23870
23871
23872
cristy3ed852e2009-09-05 21:47:34 +000023873for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023874do :
23875 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023876if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023877 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023878#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023879_ACEOF
23880
23881fi
23882done
23883
cristy8b350f62009-11-15 23:12:43 +000023884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023885$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023886if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023887 $as_echo_n "(cached) " >&6
23888else
cristy8b350f62009-11-15 23:12:43 +000023889 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023890 ac_cv_func_mmap_fixed_mapped=no
23891else
cristy8b350f62009-11-15 23:12:43 +000023892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023893/* end confdefs.h. */
23894$ac_includes_default
23895/* malloc might have been renamed as rpl_malloc. */
23896#undef malloc
23897
23898/* Thanks to Mike Haertel and Jim Avera for this test.
23899 Here is a matrix of mmap possibilities:
23900 mmap private not fixed
23901 mmap private fixed at somewhere currently unmapped
23902 mmap private fixed at somewhere already mapped
23903 mmap shared not fixed
23904 mmap shared fixed at somewhere currently unmapped
23905 mmap shared fixed at somewhere already mapped
23906 For private mappings, we should verify that changes cannot be read()
23907 back from the file, nor mmap's back from the file at a different
23908 address. (There have been systems where private was not correctly
23909 implemented like the infamous i386 svr4.0, and systems where the
23910 VM page cache was not coherent with the file system buffer cache
23911 like early versions of FreeBSD and possibly contemporary NetBSD.)
23912 For shared mappings, we should conversely verify that changes get
23913 propagated back to all the places they're supposed to be.
23914
23915 Grep wants private fixed already mapped.
23916 The main things grep needs to know about mmap are:
23917 * does it exist and is it safe to write into the mmap'd area
23918 * how to use it (BSD variants) */
23919
23920#include <fcntl.h>
23921#include <sys/mman.h>
23922
23923#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23924char *malloc ();
23925#endif
23926
23927/* This mess was copied from the GNU getpagesize.h. */
23928#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023929# ifdef _SC_PAGESIZE
23930# define getpagesize() sysconf(_SC_PAGESIZE)
23931# else /* no _SC_PAGESIZE */
23932# ifdef HAVE_SYS_PARAM_H
23933# include <sys/param.h>
23934# ifdef EXEC_PAGESIZE
23935# define getpagesize() EXEC_PAGESIZE
23936# else /* no EXEC_PAGESIZE */
23937# ifdef NBPG
23938# define getpagesize() NBPG * CLSIZE
23939# ifndef CLSIZE
23940# define CLSIZE 1
23941# endif /* no CLSIZE */
23942# else /* no NBPG */
23943# ifdef NBPC
23944# define getpagesize() NBPC
23945# else /* no NBPC */
23946# ifdef PAGESIZE
23947# define getpagesize() PAGESIZE
23948# endif /* PAGESIZE */
23949# endif /* no NBPC */
23950# endif /* no NBPG */
23951# endif /* no EXEC_PAGESIZE */
23952# else /* no HAVE_SYS_PARAM_H */
23953# define getpagesize() 8192 /* punt totally */
23954# endif /* no HAVE_SYS_PARAM_H */
23955# endif /* no _SC_PAGESIZE */
23956
23957#endif /* no HAVE_GETPAGESIZE */
23958
23959int
23960main ()
23961{
23962 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000023963 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000023964 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000023965 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000023966
23967 pagesize = getpagesize ();
23968
23969 /* First, make a file with some known garbage in it. */
23970 data = (char *) malloc (pagesize);
23971 if (!data)
23972 return 1;
23973 for (i = 0; i < pagesize; ++i)
23974 *(data + i) = rand ();
23975 umask (0);
23976 fd = creat ("conftest.mmap", 0600);
23977 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023978 return 2;
cristy3ed852e2009-09-05 21:47:34 +000023979 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023980 return 3;
cristy3ed852e2009-09-05 21:47:34 +000023981 close (fd);
23982
cristycd4c5312009-11-22 01:19:08 +000023983 /* Next, check that the tail of a page is zero-filled. File must have
23984 non-zero length, otherwise we risk SIGBUS for entire page. */
23985 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23986 if (fd2 < 0)
23987 return 4;
cristyc54f5d42009-11-27 21:36:31 +000023988 cdata2 = "";
23989 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000023990 return 5;
cristyc54f5d42009-11-27 21:36:31 +000023991 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000023992 if (data2 == MAP_FAILED)
23993 return 6;
23994 for (i = 0; i < pagesize; ++i)
23995 if (*(data2 + i))
23996 return 7;
23997 close (fd2);
23998 if (munmap (data2, pagesize))
23999 return 8;
24000
cristy3ed852e2009-09-05 21:47:34 +000024001 /* Next, try to mmap the file at a fixed address which already has
24002 something else allocated at it. If we can, also make sure that
24003 we see the same garbage. */
24004 fd = open ("conftest.mmap", O_RDWR);
24005 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024006 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024007 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24008 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024009 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024010 for (i = 0; i < pagesize; ++i)
24011 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024012 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024013
24014 /* Finally, make sure that changes to the mapped area do not
24015 percolate back to the file as seen by read(). (This is a bug on
24016 some variants of i386 svr4.0.) */
24017 for (i = 0; i < pagesize; ++i)
24018 *(data2 + i) = *(data2 + i) + 1;
24019 data3 = (char *) malloc (pagesize);
24020 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024021 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024022 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024023 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024024 for (i = 0; i < pagesize; ++i)
24025 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024026 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024027 close (fd);
24028 return 0;
24029}
24030_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024031if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024032 ac_cv_func_mmap_fixed_mapped=yes
24033else
cristy8b350f62009-11-15 23:12:43 +000024034 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024035fi
cristy8b350f62009-11-15 23:12:43 +000024036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24037 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024038fi
24039
cristy3ed852e2009-09-05 21:47:34 +000024040fi
cristy8b350f62009-11-15 23:12:43 +000024041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024042$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24043if test $ac_cv_func_mmap_fixed_mapped = yes; then
24044
cristy8b350f62009-11-15 23:12:43 +000024045$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024046
24047fi
cristycd4c5312009-11-22 01:19:08 +000024048rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024049
cristy3ed852e2009-09-05 21:47:34 +000024050for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024051do :
24052 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024053if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024054 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024055#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024056_ACEOF
24057
24058fi
24059
24060done
24061
cristy3ed852e2009-09-05 21:47:34 +000024062for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024063do :
24064 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24065ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024066if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024067 cat >>confdefs.h <<_ACEOF
24068#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24069_ACEOF
24070
24071fi
24072done
24073
24074if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024076$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024077if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024078 $as_echo_n "(cached) " >&6
24079else
cristy8b350f62009-11-15 23:12:43 +000024080 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024081 ac_cv_func_fork_works=cross
24082else
cristy8b350f62009-11-15 23:12:43 +000024083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024084/* end confdefs.h. */
24085$ac_includes_default
24086int
24087main ()
24088{
24089
24090 /* By Ruediger Kuhlmann. */
24091 return fork () < 0;
24092
24093 ;
24094 return 0;
24095}
24096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024097if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024098 ac_cv_func_fork_works=yes
24099else
cristy8b350f62009-11-15 23:12:43 +000024100 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024101fi
cristy8b350f62009-11-15 23:12:43 +000024102rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24103 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024104fi
24105
cristy3ed852e2009-09-05 21:47:34 +000024106fi
cristy8b350f62009-11-15 23:12:43 +000024107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024108$as_echo "$ac_cv_func_fork_works" >&6; }
24109
24110else
24111 ac_cv_func_fork_works=$ac_cv_func_fork
24112fi
24113if test "x$ac_cv_func_fork_works" = xcross; then
24114 case $host in
24115 *-*-amigaos* | *-*-msdosdjgpp*)
24116 # Override, as these systems have only a dummy fork() stub
24117 ac_cv_func_fork_works=no
24118 ;;
24119 *)
24120 ac_cv_func_fork_works=yes
24121 ;;
24122 esac
cristy8b350f62009-11-15 23:12:43 +000024123 { $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 +000024124$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24125fi
24126ac_cv_func_vfork_works=$ac_cv_func_vfork
24127if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024129$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024130if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024131 $as_echo_n "(cached) " >&6
24132else
cristy8b350f62009-11-15 23:12:43 +000024133 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024134 ac_cv_func_vfork_works=cross
24135else
cristy8b350f62009-11-15 23:12:43 +000024136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024137/* end confdefs.h. */
24138/* Thanks to Paul Eggert for this test. */
24139$ac_includes_default
24140#include <sys/wait.h>
24141#ifdef HAVE_VFORK_H
24142# include <vfork.h>
24143#endif
24144/* On some sparc systems, changes by the child to local and incoming
24145 argument registers are propagated back to the parent. The compiler
24146 is told about this with #include <vfork.h>, but some compilers
24147 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24148 static variable whose address is put into a register that is
24149 clobbered by the vfork. */
24150static void
24151#ifdef __cplusplus
24152sparc_address_test (int arg)
24153# else
24154sparc_address_test (arg) int arg;
24155#endif
24156{
24157 static pid_t child;
24158 if (!child) {
24159 child = vfork ();
24160 if (child < 0) {
24161 perror ("vfork");
24162 _exit(2);
24163 }
24164 if (!child) {
24165 arg = getpid();
24166 write(-1, "", 0);
24167 _exit (arg);
24168 }
24169 }
24170}
24171
24172int
24173main ()
24174{
24175 pid_t parent = getpid ();
24176 pid_t child;
24177
24178 sparc_address_test (0);
24179
24180 child = vfork ();
24181
24182 if (child == 0) {
24183 /* Here is another test for sparc vfork register problems. This
24184 test uses lots of local variables, at least as many local
24185 variables as main has allocated so far including compiler
24186 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24187 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24188 reuse the register of parent for one of the local variables,
24189 since it will think that parent can't possibly be used any more
24190 in this routine. Assigning to the local variable will thus
24191 munge parent in the parent process. */
24192 pid_t
24193 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24194 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24195 /* Convince the compiler that p..p7 are live; otherwise, it might
24196 use the same hardware register for all 8 local variables. */
24197 if (p != p1 || p != p2 || p != p3 || p != p4
24198 || p != p5 || p != p6 || p != p7)
24199 _exit(1);
24200
24201 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24202 from child file descriptors. If the child closes a descriptor
24203 before it execs or exits, this munges the parent's descriptor
24204 as well. Test for this by closing stdout in the child. */
24205 _exit(close(fileno(stdout)) != 0);
24206 } else {
24207 int status;
24208 struct stat st;
24209
24210 while (wait(&status) != child)
24211 ;
24212 return (
24213 /* Was there some problem with vforking? */
24214 child < 0
24215
24216 /* Did the child fail? (This shouldn't happen.) */
24217 || status
24218
24219 /* Did the vfork/compiler bug occur? */
24220 || parent != getpid()
24221
24222 /* Did the file descriptor bug occur? */
24223 || fstat(fileno(stdout), &st) != 0
24224 );
24225 }
24226}
24227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024228if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024229 ac_cv_func_vfork_works=yes
24230else
cristy8b350f62009-11-15 23:12:43 +000024231 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024232fi
cristy8b350f62009-11-15 23:12:43 +000024233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24234 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024235fi
24236
cristy3ed852e2009-09-05 21:47:34 +000024237fi
cristy8b350f62009-11-15 23:12:43 +000024238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024239$as_echo "$ac_cv_func_vfork_works" >&6; }
24240
24241fi;
24242if test "x$ac_cv_func_fork_works" = xcross; then
24243 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024244 { $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 +000024245$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24246fi
24247
24248if test "x$ac_cv_func_vfork_works" = xyes; then
24249
cristy8b350f62009-11-15 23:12:43 +000024250$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024251
24252else
24253
cristy8b350f62009-11-15 23:12:43 +000024254$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024255
24256fi
24257if test "x$ac_cv_func_fork_works" = xyes; then
24258
cristy8b350f62009-11-15 23:12:43 +000024259$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024260
24261fi
24262
cristy8b350f62009-11-15 23:12:43 +000024263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024264$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024265if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024266 $as_echo_n "(cached) " >&6
24267else
cristy8b350f62009-11-15 23:12:43 +000024268 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024269 ac_cv_func_memcmp_working=no
24270else
cristy8b350f62009-11-15 23:12:43 +000024271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024272/* end confdefs.h. */
24273$ac_includes_default
24274int
24275main ()
24276{
24277
24278 /* Some versions of memcmp are not 8-bit clean. */
24279 char c0 = '\100', c1 = '\200', c2 = '\201';
24280 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24281 return 1;
24282
24283 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24284 or more and with at least one buffer not starting on a 4-byte boundary.
24285 William Lewis provided this test program. */
24286 {
24287 char foo[21];
24288 char bar[21];
24289 int i;
24290 for (i = 0; i < 4; i++)
24291 {
24292 char *a = foo + i;
24293 char *b = bar + i;
24294 strcpy (a, "--------01111111");
24295 strcpy (b, "--------10000000");
24296 if (memcmp (a, b, 16) >= 0)
24297 return 1;
24298 }
24299 return 0;
24300 }
24301
24302 ;
24303 return 0;
24304}
24305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024306if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024307 ac_cv_func_memcmp_working=yes
24308else
cristy8b350f62009-11-15 23:12:43 +000024309 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024310fi
cristy8b350f62009-11-15 23:12:43 +000024311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24312 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024313fi
24314
cristy3ed852e2009-09-05 21:47:34 +000024315fi
cristy8b350f62009-11-15 23:12:43 +000024316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024317$as_echo "$ac_cv_func_memcmp_working" >&6; }
24318test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24319 *" memcmp.$ac_objext "* ) ;;
24320 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24321 ;;
24322esac
24323
24324
cristy3ed852e2009-09-05 21:47:34 +000024325for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024326do :
24327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24328ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024329if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024330 cat >>confdefs.h <<_ACEOF
24331#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24332_ACEOF
24333
24334fi
24335
24336done
24337
cristy8b350f62009-11-15 23:12:43 +000024338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024339$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024340if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024341 $as_echo_n "(cached) " >&6
24342else
24343 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24344 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24345 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024347/* end confdefs.h. */
24348$ac_includes_default
24349#ifdef HAVE_SYS_SELECT_H
24350# include <sys/select.h>
24351#endif
24352#ifdef HAVE_SYS_SOCKET_H
24353# include <sys/socket.h>
24354#endif
24355
24356int
24357main ()
24358{
24359extern int select ($ac_arg1,
24360 $ac_arg234, $ac_arg234, $ac_arg234,
24361 $ac_arg5);
24362 ;
24363 return 0;
24364}
24365_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024366if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024367 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024368fi
cristy3ed852e2009-09-05 21:47:34 +000024369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24370 done
24371 done
24372done
24373# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024374: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024375
24376fi
cristy8b350f62009-11-15 23:12:43 +000024377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024378$as_echo "$ac_cv_func_select_args" >&6; }
24379ac_save_IFS=$IFS; IFS=','
24380set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24381IFS=$ac_save_IFS
24382shift
24383
24384cat >>confdefs.h <<_ACEOF
24385#define SELECT_TYPE_ARG1 $1
24386_ACEOF
24387
24388
24389cat >>confdefs.h <<_ACEOF
24390#define SELECT_TYPE_ARG234 ($2)
24391_ACEOF
24392
24393
24394cat >>confdefs.h <<_ACEOF
24395#define SELECT_TYPE_ARG5 ($3)
24396_ACEOF
24397
24398rm -f conftest*
24399
cristyda16f162011-02-19 23:52:17 +000024400if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024401 $as_echo_n "(cached) " >&6
24402else
24403 ac_cv_func_setvbuf_reversed=no
24404fi
24405
24406
cristy8b350f62009-11-15 23:12:43 +000024407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024408$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024409if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024410 $as_echo_n "(cached) " >&6
24411else
cristy8b350f62009-11-15 23:12:43 +000024412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024413/* end confdefs.h. */
24414#include <sys/types.h>
24415#include <signal.h>
24416
24417int
24418main ()
24419{
24420return *(signal (0, 0)) (0) == 1;
24421 ;
24422 return 0;
24423}
24424_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024425if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024426 ac_cv_type_signal=int
24427else
cristy8b350f62009-11-15 23:12:43 +000024428 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024429fi
cristy3ed852e2009-09-05 21:47:34 +000024430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24431fi
cristy8b350f62009-11-15 23:12:43 +000024432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024433$as_echo "$ac_cv_type_signal" >&6; }
24434
24435cat >>confdefs.h <<_ACEOF
24436#define RETSIGTYPE $ac_cv_type_signal
24437_ACEOF
24438
24439
cristy8b350f62009-11-15 23:12:43 +000024440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024441$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024442if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024443 $as_echo_n "(cached) " >&6
24444else
cristy8b350f62009-11-15 23:12:43 +000024445 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024446 ac_cv_func_strtod=no
24447else
cristy8b350f62009-11-15 23:12:43 +000024448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024449/* end confdefs.h. */
24450
24451$ac_includes_default
24452#ifndef strtod
24453double strtod ();
24454#endif
24455int
24456main()
24457{
24458 {
24459 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24460 char *string = " +69";
24461 char *term;
24462 double value;
24463 value = strtod (string, &term);
24464 if (value != 69 || term != (string + 4))
24465 return 1;
24466 }
24467
24468 {
24469 /* Under Solaris 2.4, strtod returns the wrong value for the
24470 terminating character under some conditions. */
24471 char *string = "NaN";
24472 char *term;
24473 strtod (string, &term);
24474 if (term != string && *(term - 1) == 0)
24475 return 1;
24476 }
24477 return 0;
24478}
24479
24480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024481if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024482 ac_cv_func_strtod=yes
24483else
cristy8b350f62009-11-15 23:12:43 +000024484 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024485fi
cristy8b350f62009-11-15 23:12:43 +000024486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24487 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024488fi
24489
cristy3ed852e2009-09-05 21:47:34 +000024490fi
cristy8b350f62009-11-15 23:12:43 +000024491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024492$as_echo "$ac_cv_func_strtod" >&6; }
24493if test $ac_cv_func_strtod = no; then
24494 case " $LIBOBJS " in
24495 *" strtod.$ac_objext "* ) ;;
24496 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24497 ;;
24498esac
24499
cristy8b350f62009-11-15 23:12:43 +000024500ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024501if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024502
cristy3ed852e2009-09-05 21:47:34 +000024503fi
24504
cristy3ed852e2009-09-05 21:47:34 +000024505if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024507$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024508if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024509 $as_echo_n "(cached) " >&6
24510else
24511 ac_check_lib_save_LIBS=$LIBS
24512LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024514/* end confdefs.h. */
24515
24516/* Override any GCC internal prototype to avoid an error.
24517 Use char because int might match the return type of a GCC
24518 builtin and then its argument prototype would still apply. */
24519#ifdef __cplusplus
24520extern "C"
24521#endif
24522char pow ();
24523int
24524main ()
24525{
24526return pow ();
24527 ;
24528 return 0;
24529}
24530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024531if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024532 ac_cv_lib_m_pow=yes
24533else
cristy8b350f62009-11-15 23:12:43 +000024534 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024535fi
cristy8b350f62009-11-15 23:12:43 +000024536rm -f core conftest.err conftest.$ac_objext \
24537 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024538LIBS=$ac_check_lib_save_LIBS
24539fi
cristy8b350f62009-11-15 23:12:43 +000024540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024541$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024542if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024543 POW_LIB=-lm
24544else
cristy8b350f62009-11-15 23:12:43 +000024545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024546$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24547fi
24548
24549fi
24550
24551fi
24552
cristy7d4a1d62011-10-13 15:54:12 +000024553ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24554if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24555 ac_have_decl=1
24556else
24557 ac_have_decl=0
24558fi
24559
24560cat >>confdefs.h <<_ACEOF
24561#define HAVE_DECL_STRERROR_R $ac_have_decl
24562_ACEOF
24563
24564for ac_func in strerror_r
24565do :
24566 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24567if test "x$ac_cv_func_strerror_r" = xyes; then :
24568 cat >>confdefs.h <<_ACEOF
24569#define HAVE_STRERROR_R 1
24570_ACEOF
24571
24572fi
24573done
24574
24575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24576$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24577if ${ac_cv_func_strerror_r_char_p+:} false; then :
24578 $as_echo_n "(cached) " >&6
24579else
24580
24581 ac_cv_func_strerror_r_char_p=no
24582 if test $ac_cv_have_decl_strerror_r = yes; then
24583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24584/* end confdefs.h. */
24585$ac_includes_default
24586int
24587main ()
24588{
24589
24590 char buf[100];
24591 char x = *strerror_r (0, buf, sizeof buf);
24592 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024593 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024594
24595 ;
24596 return 0;
24597}
24598_ACEOF
24599if ac_fn_c_try_compile "$LINENO"; then :
24600 ac_cv_func_strerror_r_char_p=yes
24601fi
24602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24603 else
24604 # strerror_r is not declared. Choose between
24605 # systems that have relatively inaccessible declarations for the
24606 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24607 # former has a strerror_r that returns char*, while the latter
24608 # has a strerror_r that returns `int'.
24609 # This test should segfault on the DEC system.
24610 if test "$cross_compiling" = yes; then :
24611 :
24612else
24613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24614/* end confdefs.h. */
24615$ac_includes_default
24616 extern char *strerror_r ();
24617int
24618main ()
24619{
24620char buf[100];
24621 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024622 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024623 ;
24624 return 0;
24625}
24626_ACEOF
24627if ac_fn_c_try_run "$LINENO"; then :
24628 ac_cv_func_strerror_r_char_p=yes
24629fi
24630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24631 conftest.$ac_objext conftest.beam conftest.$ac_ext
24632fi
24633
24634 fi
24635
24636fi
24637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24638$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24639if test $ac_cv_func_strerror_r_char_p = yes; then
24640
24641$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24642
24643fi
24644
cristy3ed852e2009-09-05 21:47:34 +000024645for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024646do :
24647 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024648if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024649 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024650#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024651_ACEOF
24652
cristy8b350f62009-11-15 23:12:43 +000024653ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024654if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024655
cristy8b350f62009-11-15 23:12:43 +000024656$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024657
24658fi
24659
24660fi
24661done
24662
24663
24664
cristy161b9262010-03-20 19:34:32 +000024665#
24666# Find math library
24667#
24668MATH_LIBS=''
24669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24670$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024671if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024672 $as_echo_n "(cached) " >&6
24673else
24674 ac_check_lib_save_LIBS=$LIBS
24675LIBS="-lm $LIBS"
24676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24677/* end confdefs.h. */
24678
24679/* Override any GCC internal prototype to avoid an error.
24680 Use char because int might match the return type of a GCC
24681 builtin and then its argument prototype would still apply. */
24682#ifdef __cplusplus
24683extern "C"
24684#endif
24685char sqrt ();
24686int
24687main ()
24688{
24689return sqrt ();
24690 ;
24691 return 0;
24692}
24693_ACEOF
24694if ac_fn_c_try_link "$LINENO"; then :
24695 ac_cv_lib_m_sqrt=yes
24696else
24697 ac_cv_lib_m_sqrt=no
24698fi
24699rm -f core conftest.err conftest.$ac_objext \
24700 conftest$ac_exeext conftest.$ac_ext
24701LIBS=$ac_check_lib_save_LIBS
24702fi
24703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24704$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024705if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024706 MATH_LIBS="-lm"
24707fi
24708
24709LIBS="$MATH_LIBS $LIBS"
24710
24711
cristy568c2d42012-07-27 01:41:20 +000024712for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000024713do :
24714 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24715ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024716if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024717 cat >>confdefs.h <<_ACEOF
24718#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24719_ACEOF
24720
24721fi
24722done
24723
24724
cristye43a45e2009-09-28 14:49:00 +000024725#
24726# Check for clock_gettime().
24727#
cristy8b350f62009-11-15 23:12:43 +000024728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024729$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024730if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024731 $as_echo_n "(cached) " >&6
24732else
24733 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024735/* end confdefs.h. */
24736
24737/* Override any GCC internal prototype to avoid an error.
24738 Use char because int might match the return type of a GCC
24739 builtin and then its argument prototype would still apply. */
24740#ifdef __cplusplus
24741extern "C"
24742#endif
24743char clock_gettime ();
24744int
24745main ()
24746{
24747return clock_gettime ();
24748 ;
24749 return 0;
24750}
24751_ACEOF
24752for ac_lib in '' rt; do
24753 if test -z "$ac_lib"; then
24754 ac_res="none required"
24755 else
24756 ac_res=-l$ac_lib
24757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24758 fi
cristy8b350f62009-11-15 23:12:43 +000024759 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024760 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024761fi
cristy8b350f62009-11-15 23:12:43 +000024762rm -f core conftest.err conftest.$ac_objext \
24763 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024764 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024765 break
24766fi
24767done
cristyda16f162011-02-19 23:52:17 +000024768if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024769
cristye43a45e2009-09-28 14:49:00 +000024770else
24771 ac_cv_search_clock_gettime=no
24772fi
24773rm conftest.$ac_ext
24774LIBS=$ac_func_search_save_LIBS
24775fi
cristy8b350f62009-11-15 23:12:43 +000024776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024777$as_echo "$ac_cv_search_clock_gettime" >&6; }
24778ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024779if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24781
24782
cristy8b350f62009-11-15 23:12:43 +000024783$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024784
cristy8b350f62009-11-15 23:12:43 +000024785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024786$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024788/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024789
24790 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024791int
24792main ()
24793{
24794clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024795 ;
24796 return 0;
24797}
24798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024799if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024800
cristy09b53e12011-10-14 12:47:22 +000024801 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24802$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000024803
cristy8b350f62009-11-15 23:12:43 +000024804$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024805
24806
24807else
cristy09b53e12011-10-14 12:47:22 +000024808 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24809$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000024810
24811fi
cristye43a45e2009-09-28 14:49:00 +000024812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24813
24814else
24815
cristy8b350f62009-11-15 23:12:43 +000024816 for ac_func in gettimeofday ftime
24817do :
24818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24819ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024820if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024821 cat >>confdefs.h <<_ACEOF
24822#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24823_ACEOF
24824 break
24825fi
24826done
24827
24828
24829
24830fi
24831
24832
cristy3ed852e2009-09-05 21:47:34 +000024833########
24834#
24835# Check for function prototypes
24836#
24837########
24838
cristy8b350f62009-11-15 23:12:43 +000024839ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024840#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024841"
cristyda16f162011-02-19 23:52:17 +000024842if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024843 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024844else
cristy8b350f62009-11-15 23:12:43 +000024845 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024846fi
24847
cristy3ed852e2009-09-05 21:47:34 +000024848cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024849#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024850_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024851ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024852#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024853"
cristyda16f162011-02-19 23:52:17 +000024854if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024855 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024856else
cristy8b350f62009-11-15 23:12:43 +000024857 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024858fi
24859
cristy3ed852e2009-09-05 21:47:34 +000024860cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024861#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024862_ACEOF
24863
24864
cristy8b350f62009-11-15 23:12:43 +000024865ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024866#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024867"
cristyda16f162011-02-19 23:52:17 +000024868if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024869 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024870else
cristy8b350f62009-11-15 23:12:43 +000024871 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024872fi
24873
cristy3ed852e2009-09-05 21:47:34 +000024874cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024875#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024876_ACEOF
24877
24878
cristy8b350f62009-11-15 23:12:43 +000024879ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024880#include <stdio.h>
24881#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024882"
cristyda16f162011-02-19 23:52:17 +000024883if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024884 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024885else
cristy8b350f62009-11-15 23:12:43 +000024886 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024887fi
24888
cristy3ed852e2009-09-05 21:47:34 +000024889cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024890#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024891_ACEOF
24892
24893
cristy3ed852e2009-09-05 21:47:34 +000024894########
24895#
24896# C++ Support Tests (For Magick++)
24897#
24898########
24899have_magick_plus_plus='no'
24900if test "$with_magick_plus_plus" = 'yes'; then
24901 OLIBS="$LIBS"
24902 LIBS=''
24903 ac_ext=cpp
24904ac_cpp='$CXXCPP $CPPFLAGS'
24905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24908
24909
24910 # Full set of headers used...
24911 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24912 # functional iomanip iosfwd iostream iterator list string strstream utility
24913 ac_ext=cpp
24914ac_cpp='$CXXCPP $CPPFLAGS'
24915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24918
24919 ac_ext=cpp
24920ac_cpp='$CXXCPP $CPPFLAGS'
24921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24924if test -z "$CXX"; then
24925 if test -n "$CCC"; then
24926 CXX=$CCC
24927 else
24928 if test -n "$ac_tool_prefix"; then
24929 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24930 do
24931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24932set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024934$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024935if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024936 $as_echo_n "(cached) " >&6
24937else
24938 if test -n "$CXX"; then
24939 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24940else
24941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24942for as_dir in $PATH
24943do
24944 IFS=$as_save_IFS
24945 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000024947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000024948 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024950 break 2
24951 fi
24952done
cristy8b350f62009-11-15 23:12:43 +000024953 done
cristy3ed852e2009-09-05 21:47:34 +000024954IFS=$as_save_IFS
24955
24956fi
24957fi
24958CXX=$ac_cv_prog_CXX
24959if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024961$as_echo "$CXX" >&6; }
24962else
cristy8b350f62009-11-15 23:12:43 +000024963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024964$as_echo "no" >&6; }
24965fi
24966
24967
24968 test -n "$CXX" && break
24969 done
24970fi
24971if test -z "$CXX"; then
24972 ac_ct_CXX=$CXX
24973 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24974do
24975 # Extract the first word of "$ac_prog", so it can be a program name with args.
24976set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024978$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024979if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024980 $as_echo_n "(cached) " >&6
24981else
24982 if test -n "$ac_ct_CXX"; then
24983 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24984else
24985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24986for as_dir in $PATH
24987do
24988 IFS=$as_save_IFS
24989 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000024991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000024992 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024994 break 2
24995 fi
24996done
cristy8b350f62009-11-15 23:12:43 +000024997 done
cristy3ed852e2009-09-05 21:47:34 +000024998IFS=$as_save_IFS
24999
25000fi
25001fi
25002ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25003if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025005$as_echo "$ac_ct_CXX" >&6; }
25006else
cristy8b350f62009-11-15 23:12:43 +000025007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025008$as_echo "no" >&6; }
25009fi
25010
25011
25012 test -n "$ac_ct_CXX" && break
25013done
25014
25015 if test "x$ac_ct_CXX" = x; then
25016 CXX="g++"
25017 else
25018 case $cross_compiling:$ac_tool_warned in
25019yes:)
cristy8b350f62009-11-15 23:12:43 +000025020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25022ac_tool_warned=yes ;;
25023esac
25024 CXX=$ac_ct_CXX
25025 fi
25026fi
25027
25028 fi
25029fi
25030# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025031$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025032set X $ac_compile
25033ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025034for ac_option in --version -v -V -qversion; do
25035 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025036case "(($ac_try" in
25037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25038 *) ac_try_echo=$ac_try;;
25039esac
cristy8b350f62009-11-15 23:12:43 +000025040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25041$as_echo "$ac_try_echo"; } >&5
25042 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025043 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025044 if test -s conftest.err; then
25045 sed '10a\
25046... rest of stderr output deleted ...
25047 10q' conftest.err >conftest.er1
25048 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025049 fi
cristycd4c5312009-11-22 01:19:08 +000025050 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25052 test $ac_status = 0; }
25053done
cristy3ed852e2009-09-05 21:47:34 +000025054
cristy8b350f62009-11-15 23:12:43 +000025055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025056$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025057if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025058 $as_echo_n "(cached) " >&6
25059else
cristy8b350f62009-11-15 23:12:43 +000025060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025061/* end confdefs.h. */
25062
25063int
25064main ()
25065{
25066#ifndef __GNUC__
25067 choke me
25068#endif
25069
25070 ;
25071 return 0;
25072}
25073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025074if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025075 ac_compiler_gnu=yes
25076else
cristy8b350f62009-11-15 23:12:43 +000025077 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025078fi
cristy3ed852e2009-09-05 21:47:34 +000025079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25080ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25081
25082fi
cristy8b350f62009-11-15 23:12:43 +000025083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025084$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25085if test $ac_compiler_gnu = yes; then
25086 GXX=yes
25087else
25088 GXX=
25089fi
25090ac_test_CXXFLAGS=${CXXFLAGS+set}
25091ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025093$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025094if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025095 $as_echo_n "(cached) " >&6
25096else
25097 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25098 ac_cxx_werror_flag=yes
25099 ac_cv_prog_cxx_g=no
25100 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025102/* end confdefs.h. */
25103
25104int
25105main ()
25106{
25107
25108 ;
25109 return 0;
25110}
25111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025112if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025113 ac_cv_prog_cxx_g=yes
25114else
cristy8b350f62009-11-15 23:12:43 +000025115 CXXFLAGS=""
25116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025117/* end confdefs.h. */
25118
25119int
25120main ()
25121{
25122
25123 ;
25124 return 0;
25125}
25126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025127if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025128
cristy8b350f62009-11-15 23:12:43 +000025129else
25130 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025131 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025133/* end confdefs.h. */
25134
25135int
25136main ()
25137{
25138
25139 ;
25140 return 0;
25141}
25142_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025143if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025144 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025145fi
cristy3ed852e2009-09-05 21:47:34 +000025146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25147fi
cristy3ed852e2009-09-05 21:47:34 +000025148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25149fi
cristy3ed852e2009-09-05 21:47:34 +000025150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25151 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25152fi
cristy8b350f62009-11-15 23:12:43 +000025153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025154$as_echo "$ac_cv_prog_cxx_g" >&6; }
25155if test "$ac_test_CXXFLAGS" = set; then
25156 CXXFLAGS=$ac_save_CXXFLAGS
25157elif test $ac_cv_prog_cxx_g = yes; then
25158 if test "$GXX" = yes; then
25159 CXXFLAGS="-g -O2"
25160 else
25161 CXXFLAGS="-g"
25162 fi
25163else
25164 if test "$GXX" = yes; then
25165 CXXFLAGS="-O2"
25166 else
25167 CXXFLAGS=
25168 fi
25169fi
25170ac_ext=cpp
25171ac_cpp='$CXXCPP $CPPFLAGS'
25172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25175
cristy73bd4a52010-10-05 11:24:23 +000025176depcc="$CXX" am_compiler_list=
25177
25178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25179$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025180if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025181 $as_echo_n "(cached) " >&6
25182else
25183 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25184 # We make a subdir and do the tests there. Otherwise we can end up
25185 # making bogus files that we don't know about and never remove. For
25186 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025187 # making a dummy file named 'D' -- because '-MD' means "put the output
25188 # in D".
cristy7247bba2012-02-05 16:37:27 +000025189 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025190 mkdir conftest.dir
25191 # Copy depcomp to subdir because otherwise we won't find it if we're
25192 # using a relative directory.
25193 cp "$am_depcomp" conftest.dir
25194 cd conftest.dir
25195 # We will build objects and dependencies in a subdirectory because
25196 # it helps to detect inapplicable dependency modes. For instance
25197 # both Tru64's cc and ICC support -MD to output dependencies as a
25198 # side effect of compilation, but ICC will put the dependencies in
25199 # the current directory while Tru64 will put them in the object
25200 # directory.
25201 mkdir sub
25202
25203 am_cv_CXX_dependencies_compiler_type=none
25204 if test "$am_compiler_list" = ""; then
25205 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25206 fi
25207 am__universal=false
25208 case " $depcc " in #(
25209 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25210 esac
25211
25212 for depmode in $am_compiler_list; do
25213 # Setup a source with many dependencies, because some compilers
25214 # like to wrap large dependency lists on column 80 (with \), and
25215 # we should not choose a depcomp mode which is confused by this.
25216 #
25217 # We need to recreate these files for each test, as the compiler may
25218 # overwrite some of them when testing with obscure command lines.
25219 # This happens at least with the AIX C compiler.
25220 : > sub/conftest.c
25221 for i in 1 2 3 4 5 6; do
25222 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025223 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25224 # Solaris 10 /bin/sh.
25225 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025226 done
25227 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25228
cristyc0890a62012-07-19 00:18:20 +000025229 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025230 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025231 # handle '-M -o', and we need to detect this. Also, some Intel
25232 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025233 am__obj=sub/conftest.${OBJEXT-o}
25234 am__minus_obj="-o $am__obj"
25235 case $depmode in
25236 gcc)
25237 # This depmode causes a compiler race in universal mode.
25238 test "$am__universal" = false || continue
25239 ;;
25240 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025241 # After this tag, mechanisms are not by side-effect, so they'll
25242 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025243 if test "x$enable_dependency_tracking" = xyes; then
25244 continue
25245 else
25246 break
25247 fi
25248 ;;
cristy7247bba2012-02-05 16:37:27 +000025249 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025250 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025251 # not run yet. These depmodes are late enough in the game, and
25252 # so weak that their functioning should not be impacted.
25253 am__obj=conftest.${OBJEXT-o}
25254 am__minus_obj=
25255 ;;
25256 none) break ;;
25257 esac
25258 if depmode=$depmode \
25259 source=sub/conftest.c object=$am__obj \
25260 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25261 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25262 >/dev/null 2>conftest.err &&
25263 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25264 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25265 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25266 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25267 # icc doesn't choke on unknown options, it will just issue warnings
25268 # or remarks (even with -Werror). So we grep stderr for any message
25269 # that says an option was ignored or not supported.
25270 # When given -MP, icc 7.0 and 7.1 complain thusly:
25271 # icc: Command line warning: ignoring option '-M'; no argument required
25272 # The diagnosis changed in icc 8.0:
25273 # icc: Command line remark: option '-MP' not supported
25274 if (grep 'ignoring option' conftest.err ||
25275 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25276 am_cv_CXX_dependencies_compiler_type=$depmode
25277 break
25278 fi
25279 fi
25280 done
25281
25282 cd ..
25283 rm -rf conftest.dir
25284else
25285 am_cv_CXX_dependencies_compiler_type=none
25286fi
25287
25288fi
25289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25290$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25291CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25292
25293 if
25294 test "x$enable_dependency_tracking" != xno \
25295 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25296 am__fastdepCXX_TRUE=
25297 am__fastdepCXX_FALSE='#'
25298else
25299 am__fastdepCXX_TRUE='#'
25300 am__fastdepCXX_FALSE=
25301fi
25302
25303
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25305$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025306if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025307 $as_echo_n "(cached) " >&6
25308else
25309
25310 ac_ext=cpp
25311ac_cpp='$CXXCPP $CPPFLAGS'
25312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25315
25316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25317/* end confdefs.h. */
25318
25319int f(int x){return 1;}
25320int f(char x){return 1;}
25321int f(bool x){return 1;}
25322
25323int
25324main ()
25325{
25326bool b = true; return f(b);
25327 ;
25328 return 0;
25329}
25330_ACEOF
25331if ac_fn_cxx_try_compile "$LINENO"; then :
25332 ax_cv_cxx_bool=yes
25333else
25334 ax_cv_cxx_bool=no
25335fi
25336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25337 ac_ext=cpp
25338ac_cpp='$CXXCPP $CPPFLAGS'
25339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25342
25343
25344fi
25345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25346$as_echo "$ax_cv_cxx_bool" >&6; }
25347if test "$ax_cv_cxx_bool" = yes; then
25348
25349$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25350
25351fi
25352
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25354$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025355if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025356 $as_echo_n "(cached) " >&6
25357else
25358
25359 ac_ext=cpp
25360ac_cpp='$CXXCPP $CPPFLAGS'
25361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25364
25365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25366/* end confdefs.h. */
25367namespace Outer { namespace Inner { int i = 0; }}
25368int
25369main ()
25370{
25371using namespace Outer::Inner; return i;
25372 ;
25373 return 0;
25374}
25375_ACEOF
25376if ac_fn_cxx_try_compile "$LINENO"; then :
25377 ax_cv_cxx_namespaces=yes
25378else
25379 ax_cv_cxx_namespaces=no
25380fi
25381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25382 ac_ext=cpp
25383ac_cpp='$CXXCPP $CPPFLAGS'
25384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25387
25388
25389fi
25390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25391$as_echo "$ax_cv_cxx_namespaces" >&6; }
25392if test "$ax_cv_cxx_namespaces" = yes; then
25393
25394$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25395
25396fi
25397
25398
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25400$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025401if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025402 $as_echo_n "(cached) " >&6
25403else
25404
25405 ac_ext=cpp
25406ac_cpp='$CXXCPP $CPPFLAGS'
25407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25410
25411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25412/* end confdefs.h. */
25413#include <iostream>
25414 std::istream& is = std::cin;
25415int
25416main ()
25417{
25418
25419 ;
25420 return 0;
25421}
25422_ACEOF
25423if ac_fn_cxx_try_compile "$LINENO"; then :
25424 ax_cv_cxx_have_std_namespace=yes
25425else
25426 ax_cv_cxx_have_std_namespace=no
25427fi
25428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25429 ac_ext=cpp
25430ac_cpp='$CXXCPP $CPPFLAGS'
25431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25434
25435
25436fi
25437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25438$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25439 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25440
25441$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25442
25443 fi
25444
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25446$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025447if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025448 $as_echo_n "(cached) " >&6
25449else
25450
25451
25452 ac_ext=cpp
25453ac_cpp='$CXXCPP $CPPFLAGS'
25454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25457
25458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25459/* end confdefs.h. */
25460#include <iostream>
25461#include <map>
25462#include <iomanip>
25463#include <cmath>
25464#ifdef HAVE_NAMESPACES
25465using namespace std;
25466#endif
25467int
25468main ()
25469{
25470return 0;
25471 ;
25472 return 0;
25473}
25474_ACEOF
25475if ac_fn_cxx_try_compile "$LINENO"; then :
25476 ac_cv_cxx_have_std_libs=yes
25477else
25478 ac_cv_cxx_have_std_libs=no
25479fi
25480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25481 ac_ext=cpp
25482ac_cpp='$CXXCPP $CPPFLAGS'
25483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25486
25487
25488fi
25489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25490$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25491if test "$ac_cv_cxx_have_std_libs" = yes; then
25492
25493$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25494
25495fi
25496
cristy3ed852e2009-09-05 21:47:34 +000025497
25498 OPENMP_CXXFLAGS=
25499 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025500if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025501 enableval=$enable_openmp;
25502fi
25503
25504 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25506$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025507if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025508 $as_echo_n "(cached) " >&6
25509else
cristy8b350f62009-11-15 23:12:43 +000025510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25511/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025512
25513#ifndef _OPENMP
25514 choke me
25515#endif
25516#include <omp.h>
25517int main () { return omp_get_num_threads (); }
25518
25519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025520if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025521 ac_cv_prog_cxx_openmp='none needed'
25522else
cristy8b350f62009-11-15 23:12:43 +000025523 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025524 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25525 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025526 ac_save_CXXFLAGS=$CXXFLAGS
25527 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25529/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025530
25531#ifndef _OPENMP
25532 choke me
25533#endif
25534#include <omp.h>
25535int main () { return omp_get_num_threads (); }
25536
25537_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025538if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025539 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025540fi
cristy8b350f62009-11-15 23:12:43 +000025541rm -f core conftest.err conftest.$ac_objext \
25542 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025543 CXXFLAGS=$ac_save_CXXFLAGS
25544 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25545 break
25546 fi
25547 done
25548fi
cristy8b350f62009-11-15 23:12:43 +000025549rm -f core conftest.err conftest.$ac_objext \
25550 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025551fi
cristy8b350f62009-11-15 23:12:43 +000025552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025553$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25554 case $ac_cv_prog_cxx_openmp in #(
25555 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025556 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025557 *)
cristy8b350f62009-11-15 23:12:43 +000025558 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025559 esac
25560 fi
25561
25562
25563 ac_ext=c
25564ac_cpp='$CPP $CPPFLAGS'
25565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25567ac_compiler_gnu=$ac_cv_c_compiler_gnu
25568
25569
cristy8b350f62009-11-15 23:12:43 +000025570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025571$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25572 if \
cristy964cb7f2010-04-25 23:18:00 +000025573 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025574 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025575 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025576 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025577 have_magick_plus_plus='yes'
25578 else
25579 have_magick_plus_plus='no (failed tests)'
25580 fi
cristy09b53e12011-10-14 12:47:22 +000025581 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25582$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025583 LIBS="$OLIBS"
25584fi
cristy73bd4a52010-10-05 11:24:23 +000025585 if test "$have_magick_plus_plus" = 'yes'; then
25586 WITH_MAGICK_PLUS_PLUS_TRUE=
25587 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25588else
25589 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25590 WITH_MAGICK_PLUS_PLUS_FALSE=
25591fi
25592
cristy3ed852e2009-09-05 21:47:34 +000025593
25594# Only check for delegate libraries in subdirectories if requested.
25595if test "$enable_delegate_build" != 'no'; then
25596 # Check for delegate sub-directories and add -I & -L options as required.
25597 # This presumes that delegates are installed as detailed in the ImageMagick
25598 # README. If delegates are installed in a standard location where the
25599 # compiler will automatically find them then these options should not be
25600 # required.
25601
25602 #
25603 # Most delegates have includes in the same directory as the library, but not all...
25604 #
25605 # Includes
cristy2542fc62011-12-06 17:50:25 +000025606 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 +000025607 if test -d "$builddir/$dir"; then
25608 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25609 else
25610 if test -d "$srcdirfull/$dir"; then
25611 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25612 fi
25613 fi
25614 done
25615
25616 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025617 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 +000025618 if test -d "$builddir/$dir/.libs"; then
25619 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25620 else
25621 if test -d "$srcdirfull/$dir/.libs"; then
25622 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25623 fi
25624 fi
25625 if test -d "$builddir/$dir"; then
25626 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25627 else
25628 if test -d "$srcdirfull/$dir"; then
25629 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25630 fi
25631 fi
25632 done
25633fi
25634
25635# Assume that delegate headers reside under same directory as ImageMagick
25636# installation prefix.
25637MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25638
25639#
25640# Find the X11 RGB database
25641#
cristy8b350f62009-11-15 23:12:43 +000025642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025643$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025644if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025645 $as_echo_n "(cached) " >&6
25646else
25647 # Look for the header file in a standard set of common directories.
25648# Check X11 before X11Rn because it is often a symlink to the current release.
25649 for ac_dir in \
25650 /lib/usr/lib/X11 \
25651 /usr/X11/lib \
25652 /usr/X11R4/lib \
25653 /usr/X11R5/lib \
25654 /usr/X11R6/lib \
25655 /usr/X11R7/lib \
25656 /usr/X386/lib \
25657 /usr/XFree86/lib/X11 \
25658 /usr/athena/lib \
25659 /usr/lib \
25660 /usr/lib/X11 \
25661 /usr/lib/X11R4 \
25662 /usr/lib/X11R5 \
25663 /usr/lib/X11R6 \
25664 /usr/lib/X11R7 \
25665 /usr/local/X11/lib \
25666 /usr/local/X11R4/lib \
25667 /usr/local/X11R5/lib \
25668 /usr/local/X11R6/lib \
25669 /usr/local/lib \
25670 /usr/local/lib/X11 \
25671 /usr/local/lib/X11R4 \
25672 /usr/local/lib/X11R5 \
25673 /usr/local/lib/X11R6 \
25674 /usr/local/lib/X11R7 \
25675 /usr/local/x11r5/lib \
25676 /usr/lpp/Xamples/lib \
25677 /usr/openwin/lib \
25678 /usr/openwin/share/lib \
25679 /usr/unsupported/lib \
25680 /usr/x386/lib \
25681 ; do
25682 if test -f "$ac_dir/X11/rgb.txt"; then
25683 im_cv_x_configure="$ac_dir/X11/"
25684 break
25685 elif test -f "$ac_dir/rgb.txt"; then
25686 im_cv_x_configure="$ac_dir/"
25687 break
25688 fi
25689
25690 done
25691fi
cristy8b350f62009-11-15 23:12:43 +000025692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025693$as_echo "$im_cv_x_configure" >&6; }
25694X11_CONFIGURE_PATH="$im_cv_x_configure"
25695case "${build_os}" in
25696 mingw* )
25697 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25698 ;;
25699esac
25700
25701cat >>confdefs.h <<_ACEOF
25702#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25703_ACEOF
25704
25705
25706#
25707# Find OpenMP library
25708#
25709GOMP_LIBS=''
25710if test "$enable_openmp" != 'no'; then
25711 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000025712 # Open64 (passes for GCC but uses different OpenMP implementation)
25713 if test "x$GOMP_LIBS" = x ; then
25714 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
25716$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
25717if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
25718 $as_echo_n "(cached) " >&6
25719else
25720 ac_check_lib_save_LIBS=$LIBS
25721LIBS="-lopenmp $LIBS"
25722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25723/* end confdefs.h. */
25724
25725/* Override any GCC internal prototype to avoid an error.
25726 Use char because int might match the return type of a GCC
25727 builtin and then its argument prototype would still apply. */
25728#ifdef __cplusplus
25729extern "C"
25730#endif
25731char omp_get_num_procs ();
25732int
25733main ()
25734{
25735return omp_get_num_procs ();
25736 ;
25737 return 0;
25738}
25739_ACEOF
25740if ac_fn_c_try_link "$LINENO"; then :
25741 ac_cv_lib_openmp_omp_get_num_procs=yes
25742else
25743 ac_cv_lib_openmp_omp_get_num_procs=no
25744fi
25745rm -f core conftest.err conftest.$ac_objext \
25746 conftest$ac_exeext conftest.$ac_ext
25747LIBS=$ac_check_lib_save_LIBS
25748fi
25749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
25750$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
25751if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
25752 GOMP_LIBS="-lopenmp"
25753fi
25754
25755 fi
25756 fi
25757 # GCC
25758 if test "x$GOMP_LIBS" = x ; then
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025760$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025761if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025762 $as_echo_n "(cached) " >&6
25763else
25764 ac_check_lib_save_LIBS=$LIBS
25765LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025767/* end confdefs.h. */
25768
25769/* Override any GCC internal prototype to avoid an error.
25770 Use char because int might match the return type of a GCC
25771 builtin and then its argument prototype would still apply. */
25772#ifdef __cplusplus
25773extern "C"
25774#endif
25775char GOMP_parallel_start ();
25776int
25777main ()
25778{
25779return GOMP_parallel_start ();
25780 ;
25781 return 0;
25782}
25783_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025784if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025785 ac_cv_lib_gomp_GOMP_parallel_start=yes
25786else
cristy8b350f62009-11-15 23:12:43 +000025787 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025788fi
cristy8b350f62009-11-15 23:12:43 +000025789rm -f core conftest.err conftest.$ac_objext \
25790 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025791LIBS=$ac_check_lib_save_LIBS
25792fi
cristy8b350f62009-11-15 23:12:43 +000025793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025794$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025795if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025796 GOMP_LIBS="-lgomp"
25797fi
cristy18307f12011-12-30 01:20:16 +000025798
25799 fi
cristy3ed852e2009-09-05 21:47:34 +000025800 else
cristy18307f12011-12-30 01:20:16 +000025801 # Sun CC
25802 if test "x$GOMP_LIBS" = x ; then
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025804$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025805if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025806 $as_echo_n "(cached) " >&6
25807else
25808 ac_check_lib_save_LIBS=$LIBS
25809LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025811/* end confdefs.h. */
25812
25813/* Override any GCC internal prototype to avoid an error.
25814 Use char because int might match the return type of a GCC
25815 builtin and then its argument prototype would still apply. */
25816#ifdef __cplusplus
25817extern "C"
25818#endif
25819char sunw_mp_register_warn ();
25820int
25821main ()
25822{
25823return sunw_mp_register_warn ();
25824 ;
25825 return 0;
25826}
25827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025828if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025829 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25830else
cristy8b350f62009-11-15 23:12:43 +000025831 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025832fi
cristy8b350f62009-11-15 23:12:43 +000025833rm -f core conftest.err conftest.$ac_objext \
25834 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025835LIBS=$ac_check_lib_save_LIBS
25836fi
cristy8b350f62009-11-15 23:12:43 +000025837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025838$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025839if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025840 GOMP_LIBS="-lmtsk"
25841fi
cristy18307f12011-12-30 01:20:16 +000025842
25843 fi
25844 # AIX xlc
25845 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025847$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025848if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025849 $as_echo_n "(cached) " >&6
25850else
25851 ac_check_lib_save_LIBS=$LIBS
25852LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025854/* end confdefs.h. */
25855
25856/* Override any GCC internal prototype to avoid an error.
25857 Use char because int might match the return type of a GCC
25858 builtin and then its argument prototype would still apply. */
25859#ifdef __cplusplus
25860extern "C"
25861#endif
25862char _xlsmpFlush ();
25863int
25864main ()
25865{
25866return _xlsmpFlush ();
25867 ;
25868 return 0;
25869}
25870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025871if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025872 ac_cv_lib_xlsmp__xlsmpFlush=yes
25873else
cristy8b350f62009-11-15 23:12:43 +000025874 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025875fi
cristy8b350f62009-11-15 23:12:43 +000025876rm -f core conftest.err conftest.$ac_objext \
25877 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025878LIBS=$ac_check_lib_save_LIBS
25879fi
cristy8b350f62009-11-15 23:12:43 +000025880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025881$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025882if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025883 GOMP_LIBS="-lxlsmp"
25884fi
cristy18307f12011-12-30 01:20:16 +000025885
25886 fi
25887 # SGI IRIX 6.5 MIPSpro C/C++
25888 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025890$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025891if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025892 $as_echo_n "(cached) " >&6
25893else
25894 ac_check_lib_save_LIBS=$LIBS
25895LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025897/* end confdefs.h. */
25898
25899/* Override any GCC internal prototype to avoid an error.
25900 Use char because int might match the return type of a GCC
25901 builtin and then its argument prototype would still apply. */
25902#ifdef __cplusplus
25903extern "C"
25904#endif
25905char mp_destroy ();
25906int
25907main ()
25908{
25909return mp_destroy ();
25910 ;
25911 return 0;
25912}
25913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025914if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025915 ac_cv_lib_mp_mp_destroy=yes
25916else
cristy8b350f62009-11-15 23:12:43 +000025917 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025918fi
cristy8b350f62009-11-15 23:12:43 +000025919rm -f core conftest.err conftest.$ac_objext \
25920 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025921LIBS=$ac_check_lib_save_LIBS
25922fi
cristy8b350f62009-11-15 23:12:43 +000025923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025924$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025925if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025926 GOMP_LIBS="-lmp"
25927fi
cristy18307f12011-12-30 01:20:16 +000025928
25929 fi
cristy3ed852e2009-09-05 21:47:34 +000025930 fi
25931 LIBS="$GOMP_LIBS $LIBS"
25932fi
25933
25934
25935#
25936# Find Posix threads library
25937#
25938THREAD_LIBS=''
25939if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25940
25941 if test "x$PTHREAD_LIBS" = "x"; then
25942 case "${host_cpu}-${host_os}" in
25943 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025944
25945
25946
25947ac_ext=c
25948ac_cpp='$CPP $CPPFLAGS'
25949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25951ac_compiler_gnu=$ac_cv_c_compiler_gnu
25952
25953magick_pthread_lib_ok=no
25954
25955LIB=-lc_r
25956save_LIBS="$LIBS"
25957LIBS="$LIBS $LIB"
25958
25959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25960$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25962/* end confdefs.h. */
25963#include <pthread.h>
25964int
25965main ()
25966{
25967 pthread_t th;
25968 pthread_join(th, 0);
25969 pthread_attr_init(0);
25970 pthread_cleanup_push(0, 0);
25971 pthread_create(0,0,0,0);
25972 pthread_cleanup_pop(0);
25973 ;
25974 return 0;
25975}
25976_ACEOF
25977if ac_fn_c_try_link "$LINENO"; then :
25978 magick_pthread_lib_ok=yes
25979fi
25980rm -f core conftest.err conftest.$ac_objext \
25981 conftest$ac_exeext conftest.$ac_ext
25982
25983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25984$as_echo "${magick_pthread_lib_ok}" >&6; }
25985if test "$magick_pthread_lib_ok" = yes
25986then
25987 PTHREAD_LIBS=-lc_r
25988 :
25989else
25990
25991 :
25992fi
25993
25994LIBS="$save_LIBS"
25995
25996ac_ext=c
25997ac_cpp='$CPP $CPPFLAGS'
25998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26000ac_compiler_gnu=$ac_cv_c_compiler_gnu
26001
26002 ;;
cristy3ed852e2009-09-05 21:47:34 +000026003 esac
26004 fi
26005
26006 for lib in pthread pthreads; do
26007 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026008
26009
26010
26011ac_ext=c
26012ac_cpp='$CPP $CPPFLAGS'
26013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26015ac_compiler_gnu=$ac_cv_c_compiler_gnu
26016
26017magick_pthread_lib_ok=no
26018
26019LIB=-l$lib
26020save_LIBS="$LIBS"
26021LIBS="$LIBS $LIB"
26022
26023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26024$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26026/* end confdefs.h. */
26027#include <pthread.h>
26028int
26029main ()
26030{
26031 pthread_t th;
26032 pthread_join(th, 0);
26033 pthread_attr_init(0);
26034 pthread_cleanup_push(0, 0);
26035 pthread_create(0,0,0,0);
26036 pthread_cleanup_pop(0);
26037 ;
26038 return 0;
26039}
26040_ACEOF
26041if ac_fn_c_try_link "$LINENO"; then :
26042 magick_pthread_lib_ok=yes
26043fi
26044rm -f core conftest.err conftest.$ac_objext \
26045 conftest$ac_exeext conftest.$ac_ext
26046
26047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26048$as_echo "${magick_pthread_lib_ok}" >&6; }
26049if test "$magick_pthread_lib_ok" = yes
26050then
26051 PTHREAD_LIBS=-l$lib
26052 :
26053else
26054
26055 :
26056fi
26057
26058LIBS="$save_LIBS"
26059
26060ac_ext=c
26061ac_cpp='$CPP $CPPFLAGS'
26062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26064ac_compiler_gnu=$ac_cv_c_compiler_gnu
26065
26066
cristy3ed852e2009-09-05 21:47:34 +000026067 fi
26068 done
26069
26070 THREAD_LIBS="$PTHREAD_LIBS"
26071 LIBS="$LIBS $THREAD_LIBS"
26072fi
26073
26074
26075#
26076# Check for umem.
26077#
26078have_umem='no'
26079UMEM_LIBS=''
26080if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026082$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026083 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26084$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026085 failed=0
26086 passed=0
cristy8b350f62009-11-15 23:12:43 +000026087 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026088if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026089 passed=`expr $passed + 1`
26090else
26091 failed=`expr $failed + 1`
26092fi
26093
26094
cristy8b350f62009-11-15 23:12:43 +000026095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026096$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026097if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026098 $as_echo_n "(cached) " >&6
26099else
26100 ac_check_lib_save_LIBS=$LIBS
26101LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026103/* end confdefs.h. */
26104
26105/* Override any GCC internal prototype to avoid an error.
26106 Use char because int might match the return type of a GCC
26107 builtin and then its argument prototype would still apply. */
26108#ifdef __cplusplus
26109extern "C"
26110#endif
26111char umem_alloc ();
26112int
26113main ()
26114{
26115return umem_alloc ();
26116 ;
26117 return 0;
26118}
26119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026120if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026121 ac_cv_lib_umem_umem_alloc=yes
26122else
cristy8b350f62009-11-15 23:12:43 +000026123 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026124fi
cristy8b350f62009-11-15 23:12:43 +000026125rm -f core conftest.err conftest.$ac_objext \
26126 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026127LIBS=$ac_check_lib_save_LIBS
26128fi
cristy8b350f62009-11-15 23:12:43 +000026129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026130$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026131if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026132 passed=`expr $passed + 1`
26133else
26134 failed=`expr $failed + 1`
26135fi
26136
cristy8b350f62009-11-15 23:12:43 +000026137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026138$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026139if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026140 $as_echo_n "(cached) " >&6
26141else
26142 ac_check_lib_save_LIBS=$LIBS
26143LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026145/* end confdefs.h. */
26146
26147/* Override any GCC internal prototype to avoid an error.
26148 Use char because int might match the return type of a GCC
26149 builtin and then its argument prototype would still apply. */
26150#ifdef __cplusplus
26151extern "C"
26152#endif
26153char umem_free ();
26154int
26155main ()
26156{
26157return umem_free ();
26158 ;
26159 return 0;
26160}
26161_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026162if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026163 ac_cv_lib_umem_umem_free=yes
26164else
cristy8b350f62009-11-15 23:12:43 +000026165 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026166fi
cristy8b350f62009-11-15 23:12:43 +000026167rm -f core conftest.err conftest.$ac_objext \
26168 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026169LIBS=$ac_check_lib_save_LIBS
26170fi
cristy8b350f62009-11-15 23:12:43 +000026171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026172$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026173if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026174 passed=`expr $passed + 1`
26175else
26176 failed=`expr $failed + 1`
26177fi
26178
cristy8b350f62009-11-15 23:12:43 +000026179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026180$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26181 if test $passed -gt 0; then
26182 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026183 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26184$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026185 have_umem='no (failed tests)'
26186 else
26187 UMEM_LIBS='-lumem'
26188 LIBS="$UMEM_LIBS $LIBS"
26189
cristy8b350f62009-11-15 23:12:43 +000026190$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026191
cristy09b53e12011-10-14 12:47:22 +000026192 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26193$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026194 have_umem='yes'
26195 fi
26196 else
cristy09b53e12011-10-14 12:47:22 +000026197 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26198$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026199 fi
26200fi
cristy73bd4a52010-10-05 11:24:23 +000026201 if test "$have_umem" = 'yes'; then
26202 HasUMEM_TRUE=
26203 HasUMEM_FALSE='#'
26204else
26205 HasUMEM_TRUE='#'
26206 HasUMEM_FALSE=
26207fi
26208
cristy3ed852e2009-09-05 21:47:34 +000026209
26210
26211#
26212# Add support for ccmalloc memory debugging library if requested
26213#
26214have_ccmalloc='no'
26215CCMALLOC_LIBS=''
26216if test "$enable_ccmalloc" = 'yes'; then
26217 # Extract the first word of "ccmalloc", so it can be a program name with args.
26218set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026220$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026221if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026222 $as_echo_n "(cached) " >&6
26223else
26224 case $CCMALLOCDelegate in
26225 [\\/]* | ?:[\\/]*)
26226 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26227 ;;
26228 *)
26229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26230for as_dir in $PATH
26231do
26232 IFS=$as_save_IFS
26233 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026234 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026236 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026238 break 2
26239 fi
26240done
cristy8b350f62009-11-15 23:12:43 +000026241 done
cristy3ed852e2009-09-05 21:47:34 +000026242IFS=$as_save_IFS
26243
26244 ;;
26245esac
26246fi
26247CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26248if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026250$as_echo "$CCMALLOCDelegate" >&6; }
26251else
cristy8b350f62009-11-15 23:12:43 +000026252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026253$as_echo "no" >&6; }
26254fi
26255
26256
26257 if test -n "$CCMALLOCDelegate"; then
26258 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26259 OLIBS="$LIBS"
26260 # Assume that gcc is used with ccmalloc.
26261 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026263$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026264if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026265 $as_echo_n "(cached) " >&6
26266else
26267 ac_check_lib_save_LIBS=$LIBS
26268LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026270/* end confdefs.h. */
26271
26272/* Override any GCC internal prototype to avoid an error.
26273 Use char because int might match the return type of a GCC
26274 builtin and then its argument prototype would still apply. */
26275#ifdef __cplusplus
26276extern "C"
26277#endif
26278char ccmalloc_malloc ();
26279int
26280main ()
26281{
26282return ccmalloc_malloc ();
26283 ;
26284 return 0;
26285}
26286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026288 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26289else
cristy8b350f62009-11-15 23:12:43 +000026290 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026291fi
cristy8b350f62009-11-15 23:12:43 +000026292rm -f core conftest.err conftest.$ac_objext \
26293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026294LIBS=$ac_check_lib_save_LIBS
26295fi
cristy8b350f62009-11-15 23:12:43 +000026296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026297$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026298if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026299 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26300fi
26301
26302 if test -n "$CCMALLOC_LIBS"; then
26303 LIBS="$OLIBS"
26304 LIBS="$LIBS $CCMALLOC_LIBS"
26305 have_ccmalloc='yes'
26306 else
26307 LIBS="$OLIBS"
26308 fi
26309 fi
26310fi
26311
26312#
26313# Add support for efence memory debugging library if requested
26314#
26315if test "$enable_efence" = 'yes'; then
26316 EFENCE_LIBS='-lefence'
26317 LIBS="$EFENCE_LIBS $LIBS"
26318fi
26319
cristy3ed852e2009-09-05 21:47:34 +000026320
26321#
26322# Check for BZLIB
26323#
26324
26325
26326# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026327if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026328 withval=$with_bzlib; with_bzlib=$withval
26329else
26330 with_bzlib='yes'
26331fi
26332
26333
26334if test "$with_bzlib" != 'yes'; then
26335 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26336fi
26337
26338have_bzlib='no'
26339if test "$with_bzlib" != 'no'; then
26340 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026341 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26342$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026344$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026345 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26346$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026347 failed=0
26348 passed=0
26349 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026350 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026351if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026352 passed=`expr $passed + 1`
26353else
26354 failed=`expr $failed + 1`
26355fi
26356
26357
cristy8b350f62009-11-15 23:12:43 +000026358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026359$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026360if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026361 $as_echo_n "(cached) " >&6
26362else
26363 ac_check_lib_save_LIBS=$LIBS
26364LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026366/* end confdefs.h. */
26367
26368/* Override any GCC internal prototype to avoid an error.
26369 Use char because int might match the return type of a GCC
26370 builtin and then its argument prototype would still apply. */
26371#ifdef __cplusplus
26372extern "C"
26373#endif
26374char BZ2_bzDecompress ();
26375int
26376main ()
26377{
26378return BZ2_bzDecompress ();
26379 ;
26380 return 0;
26381}
26382_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026383if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026384 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26385else
cristy8b350f62009-11-15 23:12:43 +000026386 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026387fi
cristy8b350f62009-11-15 23:12:43 +000026388rm -f core conftest.err conftest.$ac_objext \
26389 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026390LIBS=$ac_check_lib_save_LIBS
26391fi
cristy8b350f62009-11-15 23:12:43 +000026392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026393$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026394if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026395 found_libbz=`expr $found_libbz + 1`
26396fi
26397
26398 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026400$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026401if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026402 $as_echo_n "(cached) " >&6
26403else
26404 ac_check_lib_save_LIBS=$LIBS
26405LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026407/* end confdefs.h. */
26408
26409/* Override any GCC internal prototype to avoid an error.
26410 Use char because int might match the return type of a GCC
26411 builtin and then its argument prototype would still apply. */
26412#ifdef __cplusplus
26413extern "C"
26414#endif
26415char _imp__BZ2_decompress ();
26416int
26417main ()
26418{
26419return _imp__BZ2_decompress ();
26420 ;
26421 return 0;
26422}
26423_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026424if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026425 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26426else
cristy8b350f62009-11-15 23:12:43 +000026427 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026428fi
cristy8b350f62009-11-15 23:12:43 +000026429rm -f core conftest.err conftest.$ac_objext \
26430 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026431LIBS=$ac_check_lib_save_LIBS
26432fi
cristy8b350f62009-11-15 23:12:43 +000026433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026434$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026435if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026436 found_libbz=`expr $found_libbz + 1`
26437fi
26438
26439 fi
26440 if test $found_libbz -gt 0; then
26441 passed=`expr $passed + 1`
26442 else
26443 failed=`expr $failed + 1`
26444 fi
cristy8b350f62009-11-15 23:12:43 +000026445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026446$as_echo_n "checking if BZLIB package is complete... " >&6; }
26447 if test $passed -gt 0; then
26448 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026449 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26450$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026451 have_bzlib='no (failed tests)'
26452 else
26453 BZLIB_LIBS='-lbz2'
26454 LIBS="$BZLIB_LIBS $LIBS"
26455
cristy8b350f62009-11-15 23:12:43 +000026456$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026457
cristy09b53e12011-10-14 12:47:22 +000026458 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26459$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026460 have_bzlib='yes'
26461 fi
26462 else
cristy09b53e12011-10-14 12:47:22 +000026463 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26464$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026465 fi
26466fi
cristy73bd4a52010-10-05 11:24:23 +000026467 if test "$have_bzlib" = 'yes'; then
26468 BZLIB_DELEGATE_TRUE=
26469 BZLIB_DELEGATE_FALSE='#'
26470else
26471 BZLIB_DELEGATE_TRUE='#'
26472 BZLIB_DELEGATE_FALSE=
26473fi
26474
cristy3ed852e2009-09-05 21:47:34 +000026475
26476
26477#
26478# Find the X11 include and library directories.
26479#
26480IPC_LIBS=''
26481X11_LIBS=''
26482XEXT_LIBS=''
26483XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026485$as_echo_n "checking for X... " >&6; }
26486
26487
26488# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026489if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026490 withval=$with_x;
26491fi
26492
26493# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26494if test "x$with_x" = xno; then
26495 # The user explicitly disabled X.
26496 have_x=disabled
26497else
26498 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026499 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026500 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026501 $as_echo_n "(cached) " >&6
26502else
26503 # One or both of the vars are not set, and there is no cached value.
26504ac_x_includes=no ac_x_libraries=no
26505rm -f -r conftest.dir
26506if mkdir conftest.dir; then
26507 cd conftest.dir
26508 cat >Imakefile <<'_ACEOF'
26509incroot:
26510 @echo incroot='${INCROOT}'
26511usrlibdir:
26512 @echo usrlibdir='${USRLIBDIR}'
26513libdir:
26514 @echo libdir='${LIBDIR}'
26515_ACEOF
26516 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026517 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026518 for ac_var in incroot usrlibdir libdir; do
26519 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26520 done
26521 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26522 for ac_extension in a so sl dylib la dll; do
26523 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26524 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26525 ac_im_usrlibdir=$ac_im_libdir; break
26526 fi
26527 done
26528 # Screen out bogus values from the imake configuration. They are
26529 # bogus both because they are the default anyway, and because
26530 # using them would break gcc on systems where it needs fixed includes.
26531 case $ac_im_incroot in
26532 /usr/include) ac_x_includes= ;;
26533 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26534 esac
26535 case $ac_im_usrlibdir in
26536 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26537 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26538 esac
26539 fi
26540 cd ..
26541 rm -f -r conftest.dir
26542fi
26543
26544# Standard set of common directories for X headers.
26545# Check X11 before X11Rn because it is often a symlink to the current release.
26546ac_x_header_dirs='
26547/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026548/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026549/usr/X11R6/include
26550/usr/X11R5/include
26551/usr/X11R4/include
26552
26553/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026554/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026555/usr/include/X11R6
26556/usr/include/X11R5
26557/usr/include/X11R4
26558
26559/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026560/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026561/usr/local/X11R6/include
26562/usr/local/X11R5/include
26563/usr/local/X11R4/include
26564
26565/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026566/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026567/usr/local/include/X11R6
26568/usr/local/include/X11R5
26569/usr/local/include/X11R4
26570
26571/usr/X386/include
26572/usr/x386/include
26573/usr/XFree86/include/X11
26574
26575/usr/include
26576/usr/local/include
26577/usr/unsupported/include
26578/usr/athena/include
26579/usr/local/x11r5/include
26580/usr/lpp/Xamples/include
26581
26582/usr/openwin/include
26583/usr/openwin/share/include'
26584
26585if test "$ac_x_includes" = no; then
26586 # Guess where to find include files, by looking for Xlib.h.
26587 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026589/* end confdefs.h. */
26590#include <X11/Xlib.h>
26591_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026592if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026593 # We can compile using X headers with no special include directory.
26594ac_x_includes=
26595else
cristyc7083c12009-10-14 03:16:55 +000026596 for ac_dir in $ac_x_header_dirs; do
26597 if test -r "$ac_dir/X11/Xlib.h"; then
26598 ac_x_includes=$ac_dir
26599 break
26600 fi
26601done
26602fi
cristyda16f162011-02-19 23:52:17 +000026603rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026604fi # $ac_x_includes = no
26605
26606if test "$ac_x_libraries" = no; then
26607 # Check for the libraries.
26608 # See if we find them without any special options.
26609 # Don't add to $LIBS permanently.
26610 ac_save_LIBS=$LIBS
26611 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026613/* end confdefs.h. */
26614#include <X11/Xlib.h>
26615int
26616main ()
26617{
26618XrmInitialize ()
26619 ;
26620 return 0;
26621}
26622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026623if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026624 LIBS=$ac_save_LIBS
26625# We can link X programs with no special library path.
26626ac_x_libraries=
26627else
cristy8b350f62009-11-15 23:12:43 +000026628 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026629for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26630do
26631 # Don't even attempt the hair of trying to link an X program!
26632 for ac_extension in a so sl dylib la dll; do
26633 if test -r "$ac_dir/libX11.$ac_extension"; then
26634 ac_x_libraries=$ac_dir
26635 break 2
26636 fi
26637 done
26638done
26639fi
cristy8b350f62009-11-15 23:12:43 +000026640rm -f core conftest.err conftest.$ac_objext \
26641 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026642fi # $ac_x_libraries = no
26643
26644case $ac_x_includes,$ac_x_libraries in #(
26645 no,* | *,no | *\'*)
26646 # Didn't find X, or a directory has "'" in its name.
26647 ac_cv_have_x="have_x=no";; #(
26648 *)
26649 # Record where we found X for the cache.
26650 ac_cv_have_x="have_x=yes\
26651 ac_x_includes='$ac_x_includes'\
26652 ac_x_libraries='$ac_x_libraries'"
26653esac
26654fi
26655;; #(
26656 *) have_x=yes;;
26657 esac
26658 eval "$ac_cv_have_x"
26659fi # $with_x != no
26660
26661if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026663$as_echo "$have_x" >&6; }
26664 no_x=yes
26665else
26666 # If each of the values was on the command line, it overrides each guess.
26667 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26668 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26669 # Update the cache value to reflect the command line values.
26670 ac_cv_have_x="have_x=yes\
26671 ac_x_includes='$x_includes'\
26672 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026674$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26675fi
26676
cristy3ed852e2009-09-05 21:47:34 +000026677if test "$no_x" = yes; then
26678 # Not all programs may use this symbol, but it does not hurt to define it.
26679
cristy8b350f62009-11-15 23:12:43 +000026680$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026681
26682 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26683else
26684 if test -n "$x_includes"; then
26685 X_CFLAGS="$X_CFLAGS -I$x_includes"
26686 fi
26687
26688 # It would also be nice to do this for all -L options, not just this one.
26689 if test -n "$x_libraries"; then
26690 X_LIBS="$X_LIBS -L$x_libraries"
26691 # For Solaris; some versions of Sun CC require a space after -R and
26692 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026694$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26695 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26696 ac_xsave_c_werror_flag=$ac_c_werror_flag
26697 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026699/* end confdefs.h. */
26700
26701int
26702main ()
26703{
26704
26705 ;
26706 return 0;
26707}
26708_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026709if ac_fn_c_try_link "$LINENO"; then :
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026711$as_echo "no" >&6; }
26712 X_LIBS="$X_LIBS -R$x_libraries"
26713else
cristy8b350f62009-11-15 23:12:43 +000026714 LIBS="$ac_xsave_LIBS -R $x_libraries"
26715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026716/* end confdefs.h. */
26717
26718int
26719main ()
26720{
26721
26722 ;
26723 return 0;
26724}
26725_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026726if ac_fn_c_try_link "$LINENO"; then :
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026728$as_echo "yes" >&6; }
26729 X_LIBS="$X_LIBS -R $x_libraries"
26730else
cristy8b350f62009-11-15 23:12:43 +000026731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026732$as_echo "neither works" >&6; }
26733fi
cristy8b350f62009-11-15 23:12:43 +000026734rm -f core conftest.err conftest.$ac_objext \
26735 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026736fi
cristy8b350f62009-11-15 23:12:43 +000026737rm -f core conftest.err conftest.$ac_objext \
26738 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026739 ac_c_werror_flag=$ac_xsave_c_werror_flag
26740 LIBS=$ac_xsave_LIBS
26741 fi
26742
26743 # Check for system-dependent libraries X programs must link with.
26744 # Do this before checking for the system-independent R6 libraries
26745 # (-lICE), since we may need -lsocket or whatever for X linking.
26746
26747 if test "$ISC" = yes; then
26748 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26749 else
26750 # Martyn Johnson says this is needed for Ultrix, if the X
26751 # libraries were built with DECnet support. And Karl Berry says
26752 # the Alpha needs dnet_stub (dnet does not exist).
26753 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026755/* end confdefs.h. */
26756
26757/* Override any GCC internal prototype to avoid an error.
26758 Use char because int might match the return type of a GCC
26759 builtin and then its argument prototype would still apply. */
26760#ifdef __cplusplus
26761extern "C"
26762#endif
26763char XOpenDisplay ();
26764int
26765main ()
26766{
26767return XOpenDisplay ();
26768 ;
26769 return 0;
26770}
26771_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026772if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026773
cristy8b350f62009-11-15 23:12:43 +000026774else
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026776$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026777if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026778 $as_echo_n "(cached) " >&6
26779else
26780 ac_check_lib_save_LIBS=$LIBS
26781LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026783/* end confdefs.h. */
26784
26785/* Override any GCC internal prototype to avoid an error.
26786 Use char because int might match the return type of a GCC
26787 builtin and then its argument prototype would still apply. */
26788#ifdef __cplusplus
26789extern "C"
26790#endif
26791char dnet_ntoa ();
26792int
26793main ()
26794{
26795return dnet_ntoa ();
26796 ;
26797 return 0;
26798}
26799_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026800if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026801 ac_cv_lib_dnet_dnet_ntoa=yes
26802else
cristy8b350f62009-11-15 23:12:43 +000026803 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026804fi
cristy8b350f62009-11-15 23:12:43 +000026805rm -f core conftest.err conftest.$ac_objext \
26806 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026807LIBS=$ac_check_lib_save_LIBS
26808fi
cristy8b350f62009-11-15 23:12:43 +000026809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026810$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026811if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026812 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26813fi
26814
26815 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026817$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026818if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026819 $as_echo_n "(cached) " >&6
26820else
26821 ac_check_lib_save_LIBS=$LIBS
26822LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026824/* end confdefs.h. */
26825
26826/* Override any GCC internal prototype to avoid an error.
26827 Use char because int might match the return type of a GCC
26828 builtin and then its argument prototype would still apply. */
26829#ifdef __cplusplus
26830extern "C"
26831#endif
26832char dnet_ntoa ();
26833int
26834main ()
26835{
26836return dnet_ntoa ();
26837 ;
26838 return 0;
26839}
26840_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026841if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026842 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26843else
cristy8b350f62009-11-15 23:12:43 +000026844 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026845fi
cristy8b350f62009-11-15 23:12:43 +000026846rm -f core conftest.err conftest.$ac_objext \
26847 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026848LIBS=$ac_check_lib_save_LIBS
26849fi
cristy8b350f62009-11-15 23:12:43 +000026850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026851$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026852if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026853 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26854fi
26855
26856 fi
26857fi
cristy8b350f62009-11-15 23:12:43 +000026858rm -f core conftest.err conftest.$ac_objext \
26859 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026860 LIBS="$ac_xsave_LIBS"
26861
26862 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26863 # to get the SysV transport functions.
26864 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26865 # needs -lnsl.
26866 # The nsl library prevents programs from opening the X display
26867 # on Irix 5.2, according to T.E. Dickey.
26868 # The functions gethostbyname, getservbyname, and inet_addr are
26869 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026870 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026871if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026872
cristy3ed852e2009-09-05 21:47:34 +000026873fi
26874
cristy3ed852e2009-09-05 21:47:34 +000026875 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026877$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026878if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026879 $as_echo_n "(cached) " >&6
26880else
26881 ac_check_lib_save_LIBS=$LIBS
26882LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026884/* end confdefs.h. */
26885
26886/* Override any GCC internal prototype to avoid an error.
26887 Use char because int might match the return type of a GCC
26888 builtin and then its argument prototype would still apply. */
26889#ifdef __cplusplus
26890extern "C"
26891#endif
26892char gethostbyname ();
26893int
26894main ()
26895{
26896return gethostbyname ();
26897 ;
26898 return 0;
26899}
26900_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026901if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026902 ac_cv_lib_nsl_gethostbyname=yes
26903else
cristy8b350f62009-11-15 23:12:43 +000026904 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026905fi
cristy8b350f62009-11-15 23:12:43 +000026906rm -f core conftest.err conftest.$ac_objext \
26907 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026908LIBS=$ac_check_lib_save_LIBS
26909fi
cristy8b350f62009-11-15 23:12:43 +000026910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026911$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026912if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026913 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26914fi
26915
26916 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026918$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026919if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026920 $as_echo_n "(cached) " >&6
26921else
26922 ac_check_lib_save_LIBS=$LIBS
26923LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026925/* end confdefs.h. */
26926
26927/* Override any GCC internal prototype to avoid an error.
26928 Use char because int might match the return type of a GCC
26929 builtin and then its argument prototype would still apply. */
26930#ifdef __cplusplus
26931extern "C"
26932#endif
26933char gethostbyname ();
26934int
26935main ()
26936{
26937return gethostbyname ();
26938 ;
26939 return 0;
26940}
26941_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026942if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026943 ac_cv_lib_bsd_gethostbyname=yes
26944else
cristy8b350f62009-11-15 23:12:43 +000026945 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026946fi
cristy8b350f62009-11-15 23:12:43 +000026947rm -f core conftest.err conftest.$ac_objext \
26948 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026949LIBS=$ac_check_lib_save_LIBS
26950fi
cristy8b350f62009-11-15 23:12:43 +000026951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026952$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026953if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026954 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26955fi
26956
26957 fi
26958 fi
26959
26960 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26961 # socket/setsockopt and other routines are undefined under SCO ODT
26962 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26963 # on later versions), says Simon Leinen: it contains gethostby*
26964 # variants that don't use the name server (or something). -lsocket
26965 # must be given before -lnsl if both are needed. We assume that
26966 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026967 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026968if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026969
cristy3ed852e2009-09-05 21:47:34 +000026970fi
26971
cristy3ed852e2009-09-05 21:47:34 +000026972 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026974$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026975if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026976 $as_echo_n "(cached) " >&6
26977else
26978 ac_check_lib_save_LIBS=$LIBS
26979LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026981/* end confdefs.h. */
26982
26983/* Override any GCC internal prototype to avoid an error.
26984 Use char because int might match the return type of a GCC
26985 builtin and then its argument prototype would still apply. */
26986#ifdef __cplusplus
26987extern "C"
26988#endif
26989char connect ();
26990int
26991main ()
26992{
26993return connect ();
26994 ;
26995 return 0;
26996}
26997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026998if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026999 ac_cv_lib_socket_connect=yes
27000else
cristy8b350f62009-11-15 23:12:43 +000027001 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027002fi
cristy8b350f62009-11-15 23:12:43 +000027003rm -f core conftest.err conftest.$ac_objext \
27004 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027005LIBS=$ac_check_lib_save_LIBS
27006fi
cristy8b350f62009-11-15 23:12:43 +000027007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027008$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027009if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027010 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27011fi
27012
27013 fi
27014
27015 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027016 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027017if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027018
cristy3ed852e2009-09-05 21:47:34 +000027019fi
27020
cristy3ed852e2009-09-05 21:47:34 +000027021 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027023$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027024if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027025 $as_echo_n "(cached) " >&6
27026else
27027 ac_check_lib_save_LIBS=$LIBS
27028LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027030/* end confdefs.h. */
27031
27032/* Override any GCC internal prototype to avoid an error.
27033 Use char because int might match the return type of a GCC
27034 builtin and then its argument prototype would still apply. */
27035#ifdef __cplusplus
27036extern "C"
27037#endif
27038char remove ();
27039int
27040main ()
27041{
27042return remove ();
27043 ;
27044 return 0;
27045}
27046_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027047if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027048 ac_cv_lib_posix_remove=yes
27049else
cristy8b350f62009-11-15 23:12:43 +000027050 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027051fi
cristy8b350f62009-11-15 23:12:43 +000027052rm -f core conftest.err conftest.$ac_objext \
27053 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027054LIBS=$ac_check_lib_save_LIBS
27055fi
cristy8b350f62009-11-15 23:12:43 +000027056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027057$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027058if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027059 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27060fi
27061
27062 fi
27063
27064 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027065 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027066if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027067
cristy3ed852e2009-09-05 21:47:34 +000027068fi
27069
cristy3ed852e2009-09-05 21:47:34 +000027070 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027072$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027073if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027074 $as_echo_n "(cached) " >&6
27075else
27076 ac_check_lib_save_LIBS=$LIBS
27077LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027079/* end confdefs.h. */
27080
27081/* Override any GCC internal prototype to avoid an error.
27082 Use char because int might match the return type of a GCC
27083 builtin and then its argument prototype would still apply. */
27084#ifdef __cplusplus
27085extern "C"
27086#endif
27087char shmat ();
27088int
27089main ()
27090{
27091return shmat ();
27092 ;
27093 return 0;
27094}
27095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027096if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027097 ac_cv_lib_ipc_shmat=yes
27098else
cristy8b350f62009-11-15 23:12:43 +000027099 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027100fi
cristy8b350f62009-11-15 23:12:43 +000027101rm -f core conftest.err conftest.$ac_objext \
27102 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027103LIBS=$ac_check_lib_save_LIBS
27104fi
cristy8b350f62009-11-15 23:12:43 +000027105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027106$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027107if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027108 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27109fi
27110
27111 fi
27112 fi
27113
27114 # Check for libraries that X11R6 Xt/Xaw programs need.
27115 ac_save_LDFLAGS=$LDFLAGS
27116 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27117 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27118 # check for ICE first), but we must link in the order -lSM -lICE or
27119 # we get undefined symbols. So assume we have SM if we have ICE.
27120 # These have to be linked with before -lX11, unlike the other
27121 # libraries we check for below, so use a different variable.
27122 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027124$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027125if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027126 $as_echo_n "(cached) " >&6
27127else
27128 ac_check_lib_save_LIBS=$LIBS
27129LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027131/* end confdefs.h. */
27132
27133/* Override any GCC internal prototype to avoid an error.
27134 Use char because int might match the return type of a GCC
27135 builtin and then its argument prototype would still apply. */
27136#ifdef __cplusplus
27137extern "C"
27138#endif
27139char IceConnectionNumber ();
27140int
27141main ()
27142{
27143return IceConnectionNumber ();
27144 ;
27145 return 0;
27146}
27147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027148if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027149 ac_cv_lib_ICE_IceConnectionNumber=yes
27150else
cristy8b350f62009-11-15 23:12:43 +000027151 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027152fi
cristy8b350f62009-11-15 23:12:43 +000027153rm -f core conftest.err conftest.$ac_objext \
27154 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027155LIBS=$ac_check_lib_save_LIBS
27156fi
cristy8b350f62009-11-15 23:12:43 +000027157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027158$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027159if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027160 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27161fi
27162
27163 LDFLAGS=$ac_save_LDFLAGS
27164
27165fi
27166
27167if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027168 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27169$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027171$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027172 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27173$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027174 LDFLAGS="$LDFLAGS $X_LIBS"
27175 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27176 LIBS="$X11_LIBS $LIBS"
27177 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27178
27179
cristy8b350f62009-11-15 23:12:43 +000027180$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027181
27182 #
27183 # Check for X11 shared memory extension
27184 #
27185 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027186 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027187if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027188 have_shmctl='yes'
27189fi
27190
27191 if test "$have_shmctl" != 'yes'; then
27192 PERSIST_LIBS=$LIBS
27193 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027195/* end confdefs.h. */
27196
27197/* Override any GCC internal prototype to avoid an error.
27198 Use char because int might match the return type of a GCC
27199 builtin and then its argument prototype would still apply. */
27200#ifdef __cplusplus
27201extern "C"
27202#endif
27203char shmctl ();
27204int
27205main ()
27206{
27207return shmctl ();
27208 ;
27209 return 0;
27210}
27211_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027212if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027213 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027214fi
cristy8b350f62009-11-15 23:12:43 +000027215rm -f core conftest.err conftest.$ac_objext \
27216 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027217 LIBS=$PERSIST_LIBS
27218 fi
27219
27220 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027222$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027223if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027224 $as_echo_n "(cached) " >&6
27225else
27226 ac_check_lib_save_LIBS=$LIBS
27227LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027229/* end confdefs.h. */
27230
27231/* Override any GCC internal prototype to avoid an error.
27232 Use char because int might match the return type of a GCC
27233 builtin and then its argument prototype would still apply. */
27234#ifdef __cplusplus
27235extern "C"
27236#endif
27237char XShmAttach ();
27238int
27239main ()
27240{
27241return XShmAttach ();
27242 ;
27243 return 0;
27244}
27245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027246if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027247 ac_cv_lib_Xext_XShmAttach=yes
27248else
cristy8b350f62009-11-15 23:12:43 +000027249 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027250fi
cristy8b350f62009-11-15 23:12:43 +000027251rm -f core conftest.err conftest.$ac_objext \
27252 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027253LIBS=$ac_check_lib_save_LIBS
27254fi
cristy8b350f62009-11-15 23:12:43 +000027255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027256$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027257if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027258 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027259$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027260
27261fi
27262
27263 fi
27264
27265 #
27266 # Check for X11 shape extension
27267 #
cristy8b350f62009-11-15 23:12:43 +000027268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027269$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027270if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027271 $as_echo_n "(cached) " >&6
27272else
27273 ac_check_lib_save_LIBS=$LIBS
27274LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027276/* end confdefs.h. */
27277
27278/* Override any GCC internal prototype to avoid an error.
27279 Use char because int might match the return type of a GCC
27280 builtin and then its argument prototype would still apply. */
27281#ifdef __cplusplus
27282extern "C"
27283#endif
27284char XShapeCombineMask ();
27285int
27286main ()
27287{
27288return XShapeCombineMask ();
27289 ;
27290 return 0;
27291}
27292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027293if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027294 ac_cv_lib_Xext_XShapeCombineMask=yes
27295else
cristy8b350f62009-11-15 23:12:43 +000027296 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027297fi
cristy8b350f62009-11-15 23:12:43 +000027298rm -f core conftest.err conftest.$ac_objext \
27299 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027300LIBS=$ac_check_lib_save_LIBS
27301fi
cristy8b350f62009-11-15 23:12:43 +000027302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027303$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027304if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027305 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027306$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027307
27308fi
27309
cristy8b350f62009-11-15 23:12:43 +000027310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027311$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027312if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027313 $as_echo_n "(cached) " >&6
27314else
27315 ac_check_lib_save_LIBS=$LIBS
27316LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027318/* end confdefs.h. */
27319
27320/* Override any GCC internal prototype to avoid an error.
27321 Use char because int might match the return type of a GCC
27322 builtin and then its argument prototype would still apply. */
27323#ifdef __cplusplus
27324extern "C"
27325#endif
27326char XtSetEventDispatcher ();
27327int
27328main ()
27329{
27330return XtSetEventDispatcher ();
27331 ;
27332 return 0;
27333}
27334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027335if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027336 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27337else
cristy8b350f62009-11-15 23:12:43 +000027338 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027339fi
cristy8b350f62009-11-15 23:12:43 +000027340rm -f core conftest.err conftest.$ac_objext \
27341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027342LIBS=$ac_check_lib_save_LIBS
27343fi
cristy8b350f62009-11-15 23:12:43 +000027344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027345$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027346if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027347 XT_LIBS='-lXt'
27348fi
27349
27350 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27351fi
27352if test "$no_x" != 'yes'; then
27353 have_x='yes'
27354else
27355 have_x='no'
27356fi
cristy73bd4a52010-10-05 11:24:23 +000027357 if test "$have_x" = 'yes'; then
27358 X11_DELEGATE_TRUE=
27359 X11_DELEGATE_FALSE='#'
27360else
27361 X11_DELEGATE_TRUE='#'
27362 X11_DELEGATE_FALSE=
27363fi
27364
cristy3ed852e2009-09-05 21:47:34 +000027365
27366
27367
27368
27369#
27370# Check for ZLIB
27371#
27372
27373# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027374if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027375 withval=$with_zlib; with_zlib=$withval
27376else
27377 with_zlib='yes'
27378fi
27379
27380
27381if test "$with_zlib" != 'yes'; then
27382 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27383fi
27384
27385have_zlib='no'
27386ZLIB_LIBS=''
27387if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027388 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27389$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027391$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027392 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27393$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027394 ZLIB_LIBS=''
27395 failed=0
27396 passed=0
cristy8b350f62009-11-15 23:12:43 +000027397 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027398if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027399 passed=`expr $passed + 1`
27400else
27401 failed=`expr $failed + 1`
27402fi
27403
27404
cristy8b350f62009-11-15 23:12:43 +000027405 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027406if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027407 passed=`expr $passed + 1`
27408else
27409 failed=`expr $failed + 1`
27410fi
27411
27412
cristy8b350f62009-11-15 23:12:43 +000027413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027414$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027415if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027416 $as_echo_n "(cached) " >&6
27417else
27418 ac_check_lib_save_LIBS=$LIBS
27419LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027421/* end confdefs.h. */
27422
27423/* Override any GCC internal prototype to avoid an error.
27424 Use char because int might match the return type of a GCC
27425 builtin and then its argument prototype would still apply. */
27426#ifdef __cplusplus
27427extern "C"
27428#endif
27429char compress ();
27430int
27431main ()
27432{
27433return compress ();
27434 ;
27435 return 0;
27436}
27437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027438if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027439 ac_cv_lib_z_compress=yes
27440else
cristy8b350f62009-11-15 23:12:43 +000027441 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027442fi
cristy8b350f62009-11-15 23:12:43 +000027443rm -f core conftest.err conftest.$ac_objext \
27444 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027445LIBS=$ac_check_lib_save_LIBS
27446fi
cristy8b350f62009-11-15 23:12:43 +000027447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027448$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027449if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027450 passed=`expr $passed + 1`
27451else
27452 failed=`expr $failed + 1`
27453fi
27454
cristy8b350f62009-11-15 23:12:43 +000027455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027456$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027457if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027458 $as_echo_n "(cached) " >&6
27459else
27460 ac_check_lib_save_LIBS=$LIBS
27461LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027463/* end confdefs.h. */
27464
27465/* Override any GCC internal prototype to avoid an error.
27466 Use char because int might match the return type of a GCC
27467 builtin and then its argument prototype would still apply. */
27468#ifdef __cplusplus
27469extern "C"
27470#endif
27471char uncompress ();
27472int
27473main ()
27474{
27475return uncompress ();
27476 ;
27477 return 0;
27478}
27479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027480if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027481 ac_cv_lib_z_uncompress=yes
27482else
cristy8b350f62009-11-15 23:12:43 +000027483 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027484fi
cristy8b350f62009-11-15 23:12:43 +000027485rm -f core conftest.err conftest.$ac_objext \
27486 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027487LIBS=$ac_check_lib_save_LIBS
27488fi
cristy8b350f62009-11-15 23:12:43 +000027489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027490$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027491if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027492 passed=`expr $passed + 1`
27493else
27494 failed=`expr $failed + 1`
27495fi
27496
cristy8b350f62009-11-15 23:12:43 +000027497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027498$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027499if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027500 $as_echo_n "(cached) " >&6
27501else
27502 ac_check_lib_save_LIBS=$LIBS
27503LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027505/* end confdefs.h. */
27506
27507/* Override any GCC internal prototype to avoid an error.
27508 Use char because int might match the return type of a GCC
27509 builtin and then its argument prototype would still apply. */
27510#ifdef __cplusplus
27511extern "C"
27512#endif
27513char deflate ();
27514int
27515main ()
27516{
27517return deflate ();
27518 ;
27519 return 0;
27520}
27521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027522if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027523 ac_cv_lib_z_deflate=yes
27524else
cristy8b350f62009-11-15 23:12:43 +000027525 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027526fi
cristy8b350f62009-11-15 23:12:43 +000027527rm -f core conftest.err conftest.$ac_objext \
27528 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027529LIBS=$ac_check_lib_save_LIBS
27530fi
cristy8b350f62009-11-15 23:12:43 +000027531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027532$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027533if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027534 passed=`expr $passed + 1`
27535else
27536 failed=`expr $failed + 1`
27537fi
27538
cristy8b350f62009-11-15 23:12:43 +000027539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027540$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027541if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027542 $as_echo_n "(cached) " >&6
27543else
27544 ac_check_lib_save_LIBS=$LIBS
27545LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027547/* end confdefs.h. */
27548
27549/* Override any GCC internal prototype to avoid an error.
27550 Use char because int might match the return type of a GCC
27551 builtin and then its argument prototype would still apply. */
27552#ifdef __cplusplus
27553extern "C"
27554#endif
27555char inflate ();
27556int
27557main ()
27558{
27559return inflate ();
27560 ;
27561 return 0;
27562}
27563_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027564if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027565 ac_cv_lib_z_inflate=yes
27566else
cristy8b350f62009-11-15 23:12:43 +000027567 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027568fi
cristy8b350f62009-11-15 23:12:43 +000027569rm -f core conftest.err conftest.$ac_objext \
27570 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027571LIBS=$ac_check_lib_save_LIBS
27572fi
cristy8b350f62009-11-15 23:12:43 +000027573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027574$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027575if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027576 passed=`expr $passed + 1`
27577else
27578 failed=`expr $failed + 1`
27579fi
27580
cristy8b350f62009-11-15 23:12:43 +000027581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027582$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027583if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027584 $as_echo_n "(cached) " >&6
27585else
27586 ac_check_lib_save_LIBS=$LIBS
27587LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027589/* end confdefs.h. */
27590
27591/* Override any GCC internal prototype to avoid an error.
27592 Use char because int might match the return type of a GCC
27593 builtin and then its argument prototype would still apply. */
27594#ifdef __cplusplus
27595extern "C"
27596#endif
27597char gzseek ();
27598int
27599main ()
27600{
27601return gzseek ();
27602 ;
27603 return 0;
27604}
27605_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027606if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027607 ac_cv_lib_z_gzseek=yes
27608else
cristy8b350f62009-11-15 23:12:43 +000027609 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027610fi
cristy8b350f62009-11-15 23:12:43 +000027611rm -f core conftest.err conftest.$ac_objext \
27612 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027613LIBS=$ac_check_lib_save_LIBS
27614fi
cristy8b350f62009-11-15 23:12:43 +000027615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027616$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027617if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027618 passed=`expr $passed + 1`
27619else
27620 failed=`expr $failed + 1`
27621fi
27622
cristy8b350f62009-11-15 23:12:43 +000027623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027624$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027625if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027626 $as_echo_n "(cached) " >&6
27627else
27628 ac_check_lib_save_LIBS=$LIBS
27629LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027631/* end confdefs.h. */
27632
27633/* Override any GCC internal prototype to avoid an error.
27634 Use char because int might match the return type of a GCC
27635 builtin and then its argument prototype would still apply. */
27636#ifdef __cplusplus
27637extern "C"
27638#endif
27639char gztell ();
27640int
27641main ()
27642{
27643return gztell ();
27644 ;
27645 return 0;
27646}
27647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027648if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027649 ac_cv_lib_z_gztell=yes
27650else
cristy8b350f62009-11-15 23:12:43 +000027651 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027652fi
cristy8b350f62009-11-15 23:12:43 +000027653rm -f core conftest.err conftest.$ac_objext \
27654 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027655LIBS=$ac_check_lib_save_LIBS
27656fi
cristy8b350f62009-11-15 23:12:43 +000027657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027658$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027659if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027660 passed=`expr $passed + 1`
27661else
27662 failed=`expr $failed + 1`
27663fi
27664
cristy8b350f62009-11-15 23:12:43 +000027665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027666$as_echo_n "checking if ZLIB package is complete... " >&6; }
27667 if test $passed -gt 0; then
27668 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027669 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27670$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027671 have_zlib='no (failed tests)'
27672 else
27673 ZLIB_LIBS='-lz'
27674 LIBS="$ZLIB_LIBS $LIBS"
27675
cristy8b350f62009-11-15 23:12:43 +000027676$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027677
cristy09b53e12011-10-14 12:47:22 +000027678 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27679$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027680 have_zlib='yes'
27681 fi
27682 else
cristy09b53e12011-10-14 12:47:22 +000027683 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27684$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027685 fi
27686fi
cristy73bd4a52010-10-05 11:24:23 +000027687 if test "$have_zlib" = 'yes'; then
27688 ZLIB_DELEGATE_TRUE=
27689 ZLIB_DELEGATE_FALSE='#'
27690else
27691 ZLIB_DELEGATE_TRUE='#'
27692 ZLIB_DELEGATE_FALSE=
27693fi
27694
cristy3ed852e2009-09-05 21:47:34 +000027695
27696
cristy5eef09f2012-10-16 12:08:28 +000027697# whether modules are built or not.
27698with_ltdl='yes'
27699have_ltdl='no'
27700LTDL_LIBS=''
27701if test "$build_modules" != 'no' ; then
27702 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27703$as_echo "$as_me: -------------------------------------------------------------" >&6;}
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
27705$as_echo_n "checking for libltdl... " >&6; }
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27707$as_echo "$as_me: " >&6;}
27708 failed=0
27709 passed=0
27710 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
27711if test "x$ac_cv_header_ltdl_h" = xyes; then :
27712 passed=`expr $passed + 1`
27713else
27714 failed=`expr $failed + 1`
27715fi
27716
27717
27718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
27719$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
27720if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
27721 $as_echo_n "(cached) " >&6
27722else
27723 ac_check_lib_save_LIBS=$LIBS
27724LIBS="-lltdl $LIBS"
27725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27726/* end confdefs.h. */
27727
27728/* Override any GCC internal prototype to avoid an error.
27729 Use char because int might match the return type of a GCC
27730 builtin and then its argument prototype would still apply. */
27731#ifdef __cplusplus
27732extern "C"
27733#endif
27734char lt_dlinit ();
27735int
27736main ()
27737{
27738return lt_dlinit ();
27739 ;
27740 return 0;
27741}
27742_ACEOF
27743if ac_fn_c_try_link "$LINENO"; then :
27744 ac_cv_lib_ltdl_lt_dlinit=yes
27745else
27746 ac_cv_lib_ltdl_lt_dlinit=no
27747fi
27748rm -f core conftest.err conftest.$ac_objext \
27749 conftest$ac_exeext conftest.$ac_ext
27750LIBS=$ac_check_lib_save_LIBS
27751fi
27752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
27753$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
27754if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
27755 passed=`expr $passed + 1`
27756else
27757 failed=`expr $failed + 1`
27758fi
27759
27760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
27761$as_echo_n "checking if libltdl package is complete... " >&6; }
27762 if test $passed -gt 0 ; then
27763 if test $failed -gt 0 ; then
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27765$as_echo "no -- some components failed test" >&6; }
27766 have_ltdl='no (failed tests)'
27767 else
27768 LTDL_LIBS='-lltdl'
27769 LIBS="$LTDL_LIBS $LIBS"
27770
27771$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
27772
27773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27774$as_echo "yes" >&6; }
27775 have_ltdl='yes'
27776 fi
27777 else
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27779$as_echo "no" >&6; }
27780 fi
cristyaf4cbf32012-10-16 23:47:41 +000027781 if test "$have_ltdl" != 'yes' ; then
27782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27784as_fn_error 1 "libltdl is required for modules build
27785See \`config.log' for more details" "$LINENO" 5; }
27786 fi
cristy5eef09f2012-10-16 12:08:28 +000027787fi
27788 if test "$have_ltdl" != 'no'; then
27789 WITH_LTDL_TRUE=
27790 WITH_LTDL_FALSE='#'
27791else
27792 WITH_LTDL_TRUE='#'
27793 WITH_LTDL_FALSE=
27794fi
27795
27796
cristy3ed852e2009-09-05 21:47:34 +000027797#
27798# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27799#
27800LIB_DL=''
27801if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027803$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027804if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027805 $as_echo_n "(cached) " >&6
27806else
27807 ac_check_lib_save_LIBS=$LIBS
27808LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027810/* end confdefs.h. */
27811
27812/* Override any GCC internal prototype to avoid an error.
27813 Use char because int might match the return type of a GCC
27814 builtin and then its argument prototype would still apply. */
27815#ifdef __cplusplus
27816extern "C"
27817#endif
27818char dlopen ();
27819int
27820main ()
27821{
27822return dlopen ();
27823 ;
27824 return 0;
27825}
27826_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027827if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027828 ac_cv_lib_dl_dlopen=yes
27829else
cristy8b350f62009-11-15 23:12:43 +000027830 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027831fi
cristy8b350f62009-11-15 23:12:43 +000027832rm -f core conftest.err conftest.$ac_objext \
27833 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027834LIBS=$ac_check_lib_save_LIBS
27835fi
cristy8b350f62009-11-15 23:12:43 +000027836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027837$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027838if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027839 LIB_DL='-ldl'
27840fi
27841
27842 LIBS="$LIB_DL $LIBS"
27843fi
27844
27845
27846
27847#
27848# Check for Autotrace delegate library.
27849#
27850
27851# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027852if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027853 withval=$with_autotrace; with_autotrace=$withval
27854else
27855 with_autotrace='no'
27856fi
27857
27858
27859if test "$with_autotrace" != 'yes'; then
27860 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27861fi
27862
27863have_autotrace='no'
27864AUTOTRACE_CFLAGS=""
27865AUTOTRACE_LIBS=""
27866AUTOTRACE_PKG=""
27867if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027868 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27869$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027870
27871pkg_failed=no
27872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27873$as_echo_n "checking for AUTOTRACE... " >&6; }
27874
27875if test -n "$AUTOTRACE_CFLAGS"; then
27876 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27877 elif test -n "$PKG_CONFIG"; then
27878 if test -n "$PKG_CONFIG" && \
27879 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27880 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27881 ac_status=$?
27882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27883 test $ac_status = 0; }; then
27884 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27885else
27886 pkg_failed=yes
27887fi
27888 else
27889 pkg_failed=untried
27890fi
27891if test -n "$AUTOTRACE_LIBS"; then
27892 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27893 elif test -n "$PKG_CONFIG"; then
27894 if test -n "$PKG_CONFIG" && \
27895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27896 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27897 ac_status=$?
27898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27899 test $ac_status = 0; }; then
27900 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27901else
27902 pkg_failed=yes
27903fi
27904 else
27905 pkg_failed=untried
27906fi
27907
27908
27909
27910if test $pkg_failed = yes; then
27911
27912if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27913 _pkg_short_errors_supported=yes
27914else
27915 _pkg_short_errors_supported=no
27916fi
27917 if test $_pkg_short_errors_supported = yes; then
27918 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27919 else
27920 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27921 fi
27922 # Put the nasty error message in config.log where it belongs
27923 echo "$AUTOTRACE_PKG_ERRORS" >&5
27924
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27926$as_echo "no" >&6; }
27927 have_autotrace=no
27928elif test $pkg_failed = untried; then
27929 have_autotrace=no
27930else
27931 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27932 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27934$as_echo "yes" >&6; }
27935 have_autotrace=yes
27936fi
cristy09b53e12011-10-14 12:47:22 +000027937 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27938$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027939fi
27940
27941if test "$have_autotrace" = 'yes'; then
27942 failed=0
27943
cristy8b350f62009-11-15 23:12:43 +000027944$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027945
cristyc6722092012-10-14 00:19:31 +000027946 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027947 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27948 fi
27949fi
27950
cristy73bd4a52010-10-05 11:24:23 +000027951 if test "$have_autotrace" = 'yes'; then
27952 AUTOTRACE_DELEGATE_TRUE=
27953 AUTOTRACE_DELEGATE_FALSE='#'
27954else
27955 AUTOTRACE_DELEGATE_TRUE='#'
27956 AUTOTRACE_DELEGATE_FALSE=
27957fi
27958
cristy3ed852e2009-09-05 21:47:34 +000027959
27960
27961
27962
27963#
27964# Check for Display Postscript delegate library.
27965#
27966
27967# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027968if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027969 withval=$with_dps; with_dps=$withval
27970else
27971 with_dps='yes'
27972fi
27973
27974
27975if test "$with_dps" != 'yes'; then
27976 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27977fi
27978
27979have_dps='no'
27980DPS_LIBS=''
27981if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027982 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27983$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027985$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027986 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27987$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027988 failed=0
27989 passed=0
27990 PERSIST_CPPFLAGS="$CPPFLAGS"
27991 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027992 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 +000027993if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027994 passed=`expr $passed + 1`
27995else
27996 failed=`expr $failed + 1`
27997fi
27998
27999
28000 # DPS issues:
28001 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28002 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28003 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28004 # ImageMagick itself doesn't use -lXt.
28005 have_libdps='no'
28006 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028008$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028009if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028010 $as_echo_n "(cached) " >&6
28011else
28012 ac_check_lib_save_LIBS=$LIBS
28013LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028015/* end confdefs.h. */
28016
28017/* Override any GCC internal prototype to avoid an error.
28018 Use char because int might match the return type of a GCC
28019 builtin and then its argument prototype would still apply. */
28020#ifdef __cplusplus
28021extern "C"
28022#endif
28023char DPSInitialize ();
28024int
28025main ()
28026{
28027return DPSInitialize ();
28028 ;
28029 return 0;
28030}
28031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028032if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028033 ac_cv_lib_dps_DPSInitialize=yes
28034else
cristy8b350f62009-11-15 23:12:43 +000028035 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028036fi
cristy8b350f62009-11-15 23:12:43 +000028037rm -f core conftest.err conftest.$ac_objext \
28038 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028039LIBS=$ac_check_lib_save_LIBS
28040fi
cristy8b350f62009-11-15 23:12:43 +000028041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028042$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028043if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028044 have_libdps='yes'
28045else
28046 have_libdps='no'
28047fi
28048
28049 if test "$have_libdps" != 'yes'; then
28050 # Unset cache variable so we can try again.
28051 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028053$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028054if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028055 $as_echo_n "(cached) " >&6
28056else
28057 ac_check_lib_save_LIBS=$LIBS
28058LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028060/* end confdefs.h. */
28061
28062/* Override any GCC internal prototype to avoid an error.
28063 Use char because int might match the return type of a GCC
28064 builtin and then its argument prototype would still apply. */
28065#ifdef __cplusplus
28066extern "C"
28067#endif
28068char DPSInitialize ();
28069int
28070main ()
28071{
28072return DPSInitialize ();
28073 ;
28074 return 0;
28075}
28076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028077if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028078 ac_cv_lib_dps_DPSInitialize=yes
28079else
cristy8b350f62009-11-15 23:12:43 +000028080 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028081fi
cristy8b350f62009-11-15 23:12:43 +000028082rm -f core conftest.err conftest.$ac_objext \
28083 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028084LIBS=$ac_check_lib_save_LIBS
28085fi
cristy8b350f62009-11-15 23:12:43 +000028086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028087$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028088if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028089 have_libdps='yes'
28090else
28091 have_libdps='no'
28092fi
28093
28094 if test "$have_libdps" = 'yes'; then
28095 LIBDPS_XT='-lXt'
28096 fi
28097 fi
28098 if test "$have_libdps" = 'yes'; then
28099 passed=`expr $passed + 1`
28100 else
28101 failed=`expr $failed + 1`
28102 fi
cristy8b350f62009-11-15 23:12:43 +000028103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028104$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028105if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028106 $as_echo_n "(cached) " >&6
28107else
28108 ac_check_lib_save_LIBS=$LIBS
28109LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028111/* end confdefs.h. */
28112
28113/* Override any GCC internal prototype to avoid an error.
28114 Use char because int might match the return type of a GCC
28115 builtin and then its argument prototype would still apply. */
28116#ifdef __cplusplus
28117extern "C"
28118#endif
28119char XDPSPixelsPerPoint ();
28120int
28121main ()
28122{
28123return XDPSPixelsPerPoint ();
28124 ;
28125 return 0;
28126}
28127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028128if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028129 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28130else
cristy8b350f62009-11-15 23:12:43 +000028131 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028132fi
cristy8b350f62009-11-15 23:12:43 +000028133rm -f core conftest.err conftest.$ac_objext \
28134 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028135LIBS=$ac_check_lib_save_LIBS
28136fi
cristy8b350f62009-11-15 23:12:43 +000028137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028138$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028139if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028140 passed=`expr $passed + 1`
28141else
28142 failed=`expr $failed + 1`
28143fi
28144
cristy8b350f62009-11-15 23:12:43 +000028145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028146$as_echo_n "checking if DPS package is complete... " >&6; }
28147 if test $passed -gt 0; then
28148 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028149 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28150$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028151 have_dps='no (failed tests)'
28152 CPPFLAGS="$PERSIST_CPPFLAGS"
28153 else
28154 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28155 LIBS="$DPS_LIBS $LIBS"
28156
cristy8b350f62009-11-15 23:12:43 +000028157$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028158
cristy09b53e12011-10-14 12:47:22 +000028159 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28160$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028161 have_dps='yes'
28162 fi
28163 else
cristy09b53e12011-10-14 12:47:22 +000028164 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28165$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028166 CPPFLAGS=$PERSIST_CPPFLAGS
28167 fi
28168fi
cristy73bd4a52010-10-05 11:24:23 +000028169 if test "$have_dps" = 'yes'; then
28170 DPS_DELEGATE_TRUE=
28171 DPS_DELEGATE_FALSE='#'
28172else
28173 DPS_DELEGATE_TRUE='#'
28174 DPS_DELEGATE_FALSE=
28175fi
28176
cristy3ed852e2009-09-05 21:47:34 +000028177
28178
28179
28180#
28181# Check for DJVU delegate library.
28182#
28183
28184# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028185if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028186 withval=$with_djvu; with_djvu=$withval
28187else
28188 with_djvu='yes'
28189fi
28190
28191
28192if test "$with_djvu" != 'yes'; then
28193 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28194fi
28195
28196have_djvu='no'
28197DJVU_LIBS=''
28198if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028199 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28200$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028202$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028203 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28204$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028205 failed=0
28206 passed=0
cristy8b350f62009-11-15 23:12:43 +000028207 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 +000028208if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028209 passed=`expr $passed + 1`
28210else
28211 failed=`expr $failed + 1`
28212fi
28213
28214
cristy8b350f62009-11-15 23:12:43 +000028215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028216$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028217if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028218 $as_echo_n "(cached) " >&6
28219else
28220 ac_check_lib_save_LIBS=$LIBS
28221LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028223/* end confdefs.h. */
28224
28225/* Override any GCC internal prototype to avoid an error.
28226 Use char because int might match the return type of a GCC
28227 builtin and then its argument prototype would still apply. */
28228#ifdef __cplusplus
28229extern "C"
28230#endif
28231char ddjvu_context_create ();
28232int
28233main ()
28234{
28235return ddjvu_context_create ();
28236 ;
28237 return 0;
28238}
28239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028240if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028241 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28242else
cristy8b350f62009-11-15 23:12:43 +000028243 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028244fi
cristy8b350f62009-11-15 23:12:43 +000028245rm -f core conftest.err conftest.$ac_objext \
28246 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028247LIBS=$ac_check_lib_save_LIBS
28248fi
cristy8b350f62009-11-15 23:12:43 +000028249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028250$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028251if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028252 passed=`expr $passed + 1`
28253else
28254 failed=`expr $failed + 1`
28255fi
28256
cristy8b350f62009-11-15 23:12:43 +000028257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028258$as_echo_n "checking if DJVU package is complete... " >&6; }
28259 if test $passed -gt 0; then
28260 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028261 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28262$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028263 have_djvu='no (failed tests)'
28264 else
28265 DJVU_LIBS='-ldjvulibre'
28266 LIBS="$DJVU_LIBS $LIBS"
28267
cristy8b350f62009-11-15 23:12:43 +000028268$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028269
cristy09b53e12011-10-14 12:47:22 +000028270 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28271$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028272 have_djvu='yes'
28273 fi
28274 else
cristy09b53e12011-10-14 12:47:22 +000028275 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28276$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028277 fi
28278fi
cristy73bd4a52010-10-05 11:24:23 +000028279 if test "$have_djvu" = 'yes'; then
28280 DJVU_DELEGATE_TRUE=
28281 DJVU_DELEGATE_FALSE='#'
28282else
28283 DJVU_DELEGATE_TRUE='#'
28284 DJVU_DELEGATE_FALSE=
28285fi
28286
cristy3ed852e2009-09-05 21:47:34 +000028287
28288
28289
28290#
cristy430a7312010-01-21 20:44:04 +000028291# Set DejaVu font directory.
28292#
28293
28294# Check whether --with-dejavu-font-dir was given.
28295if test "${with_dejavu_font_dir+set}" = set; then :
28296 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28297else
28298 with_dejavu_font_dir='default'
28299fi
28300
28301
28302if test "$with_dejavu_font_dir" != 'default'; then
28303 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28304fi
28305
28306
28307#
cristy3ed852e2009-09-05 21:47:34 +000028308# Check for FFTW delegate library.
28309#
28310
28311# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028312if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028313 withval=$with_fftw; with_fftw=$withval
28314else
28315 with_fftw='yes'
28316fi
28317
28318
28319if test "$with_fftw" != 'yes'; then
28320 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28321fi
28322
cristy81beccd2011-10-03 18:17:24 +000028323have_fftw='no'
28324FFTW_LIBS=''
28325if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028326 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28327$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28329$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028330 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28331$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028332 failed=0
28333 passed=0
28334 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28335if test "x$ac_cv_header_fftw3_h" = xyes; then :
28336 passed=`expr $passed + 1`
28337else
28338 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028339fi
28340
cristy81beccd2011-10-03 18:17:24 +000028341
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28343$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28344if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28345 $as_echo_n "(cached) " >&6
28346else
28347 ac_check_lib_save_LIBS=$LIBS
28348LIBS="-lfftw3 $LIBS"
28349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28350/* end confdefs.h. */
28351
28352/* Override any GCC internal prototype to avoid an error.
28353 Use char because int might match the return type of a GCC
28354 builtin and then its argument prototype would still apply. */
28355#ifdef __cplusplus
28356extern "C"
28357#endif
28358char fftw_execute ();
28359int
28360main ()
28361{
28362return fftw_execute ();
28363 ;
28364 return 0;
28365}
28366_ACEOF
28367if ac_fn_c_try_link "$LINENO"; then :
28368 ac_cv_lib_fftw3_fftw_execute=yes
28369else
28370 ac_cv_lib_fftw3_fftw_execute=no
28371fi
28372rm -f core conftest.err conftest.$ac_objext \
28373 conftest$ac_exeext conftest.$ac_ext
28374LIBS=$ac_check_lib_save_LIBS
28375fi
28376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28377$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28378if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28379 passed=`expr $passed + 1`
28380else
28381 failed=`expr $failed + 1`
28382fi
28383
28384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28385$as_echo_n "checking if FFTW package is complete... " >&6; }
28386 if test $passed -gt 0; then
28387 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028388 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28389$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028390 have_fftw='no (failed tests)'
28391 else
28392 FFTW_LIBS='-lfftw3'
28393 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028394
cristy8b350f62009-11-15 23:12:43 +000028395$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028396
cristy09b53e12011-10-14 12:47:22 +000028397 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28398$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028399 have_fftw='yes'
28400 fi
28401 else
cristy09b53e12011-10-14 12:47:22 +000028402 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28403$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028404 fi
28405fi
cristy73bd4a52010-10-05 11:24:23 +000028406 if test "$have_fftw" = 'yes'; then
28407 FFTW_DELEGATE_TRUE=
28408 FFTW_DELEGATE_FALSE='#'
28409else
28410 FFTW_DELEGATE_TRUE='#'
28411 FFTW_DELEGATE_FALSE=
28412fi
28413
cristy3ed852e2009-09-05 21:47:34 +000028414
28415
28416
28417#
28418# Check for FlashPIX delegate library.
28419#
28420
28421# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028422if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028423 withval=$with_fpx; with_fpx=$withval
28424else
28425 with_fpx='yes'
28426fi
28427
28428
28429if test "$with_fpx" != 'yes'; then
28430 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28431fi
28432
28433have_fpx='no'
28434FPX_LIBS=''
28435if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028436 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28437$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028439$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028440 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28441$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028442 failed=0
28443 passed=0
28444 ac_ext=cpp
28445ac_cpp='$CXXCPP $CPPFLAGS'
28446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28449
28450
cristy8b350f62009-11-15 23:12:43 +000028451ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028452if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028453 passed=`expr $passed + 1`
28454else
28455 failed=`expr $failed + 1`
28456fi
28457
28458
cristy8b350f62009-11-15 23:12:43 +000028459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028460$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028461if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028462 $as_echo_n "(cached) " >&6
28463else
28464 ac_check_lib_save_LIBS=$LIBS
28465LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028467/* end confdefs.h. */
28468
28469/* Override any GCC internal prototype to avoid an error.
28470 Use char because int might match the return type of a GCC
28471 builtin and then its argument prototype would still apply. */
28472#ifdef __cplusplus
28473extern "C"
28474#endif
28475char FPX_OpenImageByFilename ();
28476int
28477main ()
28478{
28479return FPX_OpenImageByFilename ();
28480 ;
28481 return 0;
28482}
28483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028484if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028485 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28486else
cristy8b350f62009-11-15 23:12:43 +000028487 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028488fi
cristy8b350f62009-11-15 23:12:43 +000028489rm -f core conftest.err conftest.$ac_objext \
28490 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028491LIBS=$ac_check_lib_save_LIBS
28492fi
cristy8b350f62009-11-15 23:12:43 +000028493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028494$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028495if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028496 passed=`expr $passed + 1`
28497else
28498 failed=`expr $failed + 1`
28499fi
28500
28501 ac_ext=c
28502ac_cpp='$CPP $CPPFLAGS'
28503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28505ac_compiler_gnu=$ac_cv_c_compiler_gnu
28506
cristy8b350f62009-11-15 23:12:43 +000028507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028508$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28509 if test $passed -gt 0; then
28510 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028511 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28512$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028513 have_fpx='no (failed tests)'
28514 else
28515 FPX_LIBS='-lfpx'
28516
cristy8b350f62009-11-15 23:12:43 +000028517$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028518
cristy09b53e12011-10-14 12:47:22 +000028519 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28520$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028521 have_fpx='yes'
28522 PERLMAINCC="$CXX"
28523 fi
28524 else
cristy09b53e12011-10-14 12:47:22 +000028525 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28526$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028527 fi
28528fi
cristy73bd4a52010-10-05 11:24:23 +000028529 if test "$have_fpx" = 'yes'; then
28530 FPX_DELEGATE_TRUE=
28531 FPX_DELEGATE_FALSE='#'
28532else
28533 FPX_DELEGATE_TRUE='#'
28534 FPX_DELEGATE_FALSE=
28535fi
28536
cristy3ed852e2009-09-05 21:47:34 +000028537
28538
28539
28540#
28541# Check for fontconfig delegate library.
28542#
28543
28544# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028545if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028546 withval=$with_fontconfig; with_fontconfig=$withval
28547else
cristyfc3d0222012-02-07 15:05:57 +000028548 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028549fi
28550
28551
28552if test "$with_fontconfig" != 'yes'; then
28553 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28554fi
28555
28556have_fontconfig='no'
28557FONTCONFIG_CFLAGS=""
28558FONTCONFIG_LIBS=""
28559FONTCONFIG_PKG=""
28560if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028561 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28562$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028563
28564pkg_failed=no
28565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28566$as_echo_n "checking for FONTCONFIG... " >&6; }
28567
28568if test -n "$FONTCONFIG_CFLAGS"; then
28569 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28570 elif test -n "$PKG_CONFIG"; then
28571 if test -n "$PKG_CONFIG" && \
28572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28573 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28574 ac_status=$?
28575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28576 test $ac_status = 0; }; then
28577 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28578else
28579 pkg_failed=yes
28580fi
28581 else
28582 pkg_failed=untried
28583fi
28584if test -n "$FONTCONFIG_LIBS"; then
28585 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28586 elif test -n "$PKG_CONFIG"; then
28587 if test -n "$PKG_CONFIG" && \
28588 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28589 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28590 ac_status=$?
28591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28592 test $ac_status = 0; }; then
28593 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28594else
28595 pkg_failed=yes
28596fi
28597 else
28598 pkg_failed=untried
28599fi
28600
28601
28602
28603if test $pkg_failed = yes; then
28604
28605if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28606 _pkg_short_errors_supported=yes
28607else
28608 _pkg_short_errors_supported=no
28609fi
28610 if test $_pkg_short_errors_supported = yes; then
28611 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28612 else
28613 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28614 fi
28615 # Put the nasty error message in config.log where it belongs
28616 echo "$FONTCONFIG_PKG_ERRORS" >&5
28617
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28619$as_echo "no" >&6; }
28620 have_fontconfig=no
28621elif test $pkg_failed = untried; then
28622 have_fontconfig=no
28623else
28624 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28625 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28627$as_echo "yes" >&6; }
28628 have_fontconfig=yes
28629fi
cristy09b53e12011-10-14 12:47:22 +000028630 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28631$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028632fi
28633
28634if test "$have_fontconfig" = 'yes'; then
28635
cristy8b350f62009-11-15 23:12:43 +000028636$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028637
cristyc6722092012-10-14 00:19:31 +000028638 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028639 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028640 fi
cristy3ed852e2009-09-05 21:47:34 +000028641fi
28642
cristy73bd4a52010-10-05 11:24:23 +000028643 if test "$have_fontconfig" = 'yes'; then
28644 FONTCONFIG_DELEGATE_TRUE=
28645 FONTCONFIG_DELEGATE_FALSE='#'
28646else
28647 FONTCONFIG_DELEGATE_TRUE='#'
28648 FONTCONFIG_DELEGATE_FALSE=
28649fi
28650
cristy3ed852e2009-09-05 21:47:34 +000028651
28652
28653
28654
28655#
cristy81beccd2011-10-03 18:17:24 +000028656# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028657#
28658
28659# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028660if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028661 withval=$with_freetype; with_freetype=$withval
28662else
28663 with_freetype='yes'
28664fi
28665
28666
cristy81beccd2011-10-03 18:17:24 +000028667
cristy3ed852e2009-09-05 21:47:34 +000028668if test "$with_freetype" != 'yes'; then
28669 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28670fi
28671
cristy81beccd2011-10-03 18:17:24 +000028672have_freetype='no'
28673FREETYPE_LIBS=''
28674if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028675 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28676$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28678$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028679 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28680$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028681 failed=0
28682 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028683 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028684 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028685 freetype_config=''
28686 # Allow the user to specify the location of freetype.
28687 if test "$with_freetype" != 'yes'; then
28688 if test -x "${with_freetype}/bin/freetype-config"; then
28689 freetype_config="${with_freetype}/bin/freetype-config"
28690 elif test -x "${with_freetype}"; then
28691 freetype_config=${with_freetype}
28692 fi
28693 fi
28694 if test -z "$freetype_config"; then
28695 # Extract the first word of "freetype-config", so it can be a program name with args.
28696set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28698$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028699if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028700 $as_echo_n "(cached) " >&6
28701else
cristy98ca0f52011-10-08 23:19:10 +000028702 case $freetype_config in
28703 [\\/]* | ?:[\\/]*)
28704 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28705 ;;
28706 *)
28707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028708for as_dir in $PATH
28709do
28710 IFS=$as_save_IFS
28711 test -z "$as_dir" && as_dir=.
28712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000028713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000028714 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28716 break 2
28717 fi
28718done
28719 done
28720IFS=$as_save_IFS
28721
cristy98ca0f52011-10-08 23:19:10 +000028722 ;;
28723esac
cristy81beccd2011-10-03 18:17:24 +000028724fi
cristy98ca0f52011-10-08 23:19:10 +000028725freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028726if test -n "$freetype_config"; then
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28728$as_echo "$freetype_config" >&6; }
28729else
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28731$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028732fi
28733
cristy98ca0f52011-10-08 23:19:10 +000028734 fi
28735 if test -n "$freetype_config"; then
28736 freetype_prefix=`${freetype_config} --prefix`
28737 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28738 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28739 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028740 fi
28741
28742 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028744$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28745if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28746 $as_echo_n "(cached) " >&6
28747else
28748 ac_check_lib_save_LIBS=$LIBS
28749LIBS="-lfreetype $LIBS"
28750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28751/* end confdefs.h. */
28752
28753/* Override any GCC internal prototype to avoid an error.
28754 Use char because int might match the return type of a GCC
28755 builtin and then its argument prototype would still apply. */
28756#ifdef __cplusplus
28757extern "C"
28758#endif
28759char FT_Init_FreeType ();
28760int
28761main ()
28762{
28763return FT_Init_FreeType ();
28764 ;
28765 return 0;
28766}
28767_ACEOF
28768if ac_fn_c_try_link "$LINENO"; then :
28769 ac_cv_lib_freetype_FT_Init_FreeType=yes
28770else
28771 ac_cv_lib_freetype_FT_Init_FreeType=no
28772fi
28773rm -f core conftest.err conftest.$ac_objext \
28774 conftest$ac_exeext conftest.$ac_ext
28775LIBS=$ac_check_lib_save_LIBS
28776fi
28777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28778$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28779if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28780 FREETYPE_LIBS='-lfreetype'
28781fi
28782
cristy98ca0f52011-10-08 23:19:10 +000028783 if test "$FREETYPE_LIBS" != ''; then
28784 passed=`expr $passed + 1`
28785 else
28786 failed=`expr $failed + 1`
28787 LDFLAGS="$PERSIST_LDFLAGS"
28788 fi
cristy81beccd2011-10-03 18:17:24 +000028789 fi
28790
28791 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28792if test "x$ac_cv_header_ft2build_h" = xyes; then :
28793 FT2BUILD_H='#include <ft2build.h>'
28794else
28795 ft2build=''
28796fi
28797
28798
28799 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28800"
28801if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28802 have_freetype_h='yes'
28803else
28804 have_freetype_h='no'
28805fi
28806
28807
cristy98ca0f52011-10-08 23:19:10 +000028808 if test "$have_freetype_h" = 'yes'; then
28809 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028810 else
cristy98ca0f52011-10-08 23:19:10 +000028811 failed=`expr $failed + 1`
28812 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028813 fi
28814
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28816$as_echo_n "checking if FreeType package is complete... " >&6; }
28817 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028818 if test $failed -gt 0; then
28819 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028820 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28821$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028822 have_freetype='no (failed tests)'
28823 else
28824 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028825
cristy8b350f62009-11-15 23:12:43 +000028826$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028827
cristy98ca0f52011-10-08 23:19:10 +000028828 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028829
28830$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28831
cristy81beccd2011-10-03 18:17:24 +000028832 fi
cristy09b53e12011-10-14 12:47:22 +000028833 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28834$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028835 have_freetype='yes'
28836 fi
cristy81beccd2011-10-03 18:17:24 +000028837 else
cristy09b53e12011-10-14 12:47:22 +000028838 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28839$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028840 fi
28841fi
cristy73bd4a52010-10-05 11:24:23 +000028842 if test "$have_freetype" = 'yes'; then
28843 FREETYPE_DELEGATE_TRUE=
28844 FREETYPE_DELEGATE_FALSE='#'
28845else
28846 FREETYPE_DELEGATE_TRUE='#'
28847 FREETYPE_DELEGATE_FALSE=
28848fi
28849
cristy3ed852e2009-09-05 21:47:34 +000028850
28851
28852
cristy3ed852e2009-09-05 21:47:34 +000028853#
28854# Check for Ghostscript library or framework.
28855#
28856# Test for iapi.h & test for gsapi_new_instance in -lgs
28857# or -framework Ghostscript
28858
28859
28860# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028861if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028862 withval=$with_gslib; with_gslib=$withval
28863else
28864 with_gslib='no'
28865fi
28866
28867
cristyb7931f12009-09-25 10:22:21 +000028868gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028869if test "$with_gslib" != 'yes'; then
28870 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28871fi
28872
28873have_gslib='no'
28874GS_LIBS=''
28875if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028876 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28877$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028879$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028880 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28881$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028882 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028883 failed=0
28884 passed=0
cristy8b350f62009-11-15 23:12:43 +000028885 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 +000028886if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028887 passed=`expr $passed + 1`
28888else
28889 failed=`expr $failed + 1`
28890fi
28891
28892
cristy8b350f62009-11-15 23:12:43 +000028893 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 +000028894if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028895 passed=`expr $passed + 1`
28896else
28897 failed=`expr $failed + 1`
28898fi
28899
28900
cristy73bd4a52010-10-05 11:24:23 +000028901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28902$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028903if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028904 $as_echo_n "(cached) " >&6
28905else
28906 ac_check_framework_save_LIBS=$LIBS
28907LIBS="-framework Ghostscript $LIBS"
28908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28909/* end confdefs.h. */
28910
28911/* Override any GCC internal prototype to avoid an error.
28912 Use char because int might match the return type of a GCC
28913 builtin and then its argument prototype would still apply. */
28914#ifdef __cplusplus
28915extern "C"
28916#endif
28917char gsapi_new_instance ();
28918int
28919main ()
28920{
28921return gsapi_new_instance ();
28922 ;
28923 return 0;
28924}
28925_ACEOF
28926if ac_fn_c_try_link "$LINENO"; then :
28927 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28928else
28929 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28930fi
28931rm -f core conftest.err conftest.$ac_objext \
28932 conftest$ac_exeext conftest.$ac_ext
28933LIBS=$ac_check_framework_save_LIBS
28934fi
28935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28936$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28937if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28938 framework=`expr $framework + 1`
28939else
28940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028941$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028942if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028943 $as_echo_n "(cached) " >&6
28944else
28945 ac_check_lib_save_LIBS=$LIBS
28946LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028948/* end confdefs.h. */
28949
28950/* Override any GCC internal prototype to avoid an error.
28951 Use char because int might match the return type of a GCC
28952 builtin and then its argument prototype would still apply. */
28953#ifdef __cplusplus
28954extern "C"
28955#endif
28956char gsapi_new_instance ();
28957int
28958main ()
28959{
28960return gsapi_new_instance ();
28961 ;
28962 return 0;
28963}
28964_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028965if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028966 ac_cv_lib_gs_gsapi_new_instance=yes
28967else
cristy8b350f62009-11-15 23:12:43 +000028968 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028969fi
cristy8b350f62009-11-15 23:12:43 +000028970rm -f core conftest.err conftest.$ac_objext \
28971 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028972LIBS=$ac_check_lib_save_LIBS
28973fi
cristy8b350f62009-11-15 23:12:43 +000028974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028975$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028976if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028977 passed=`expr $passed + 1`
28978else
28979 failed=`expr $failed + 1`
28980fi
cristy73bd4a52010-10-05 11:24:23 +000028981
28982fi
cristy8b350f62009-11-15 23:12:43 +000028983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028984$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28985 if test $passed -gt 0; then
28986 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028987 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28988$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028989 have_gslib='no (failed tests)'
28990 else
28991 if test $framework -gt 0; then
28992 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028993 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000028994 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
28995$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028996 else
cristy09b53e12011-10-14 12:47:22 +000028997 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
28998$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028999 GS_LIBS='-lgs'
29000 fi
29001 LIBS="$GS_LIBS $LIBS"
29002
cristy8b350f62009-11-15 23:12:43 +000029003$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029004
29005 have_gslib='yes'
29006 fi
29007 else
cristy09b53e12011-10-14 12:47:22 +000029008 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29009$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029010 fi
29011fi
cristy73bd4a52010-10-05 11:24:23 +000029012 if test "$have_gslib" = 'yes'; then
29013 GS_DELEGATE_TRUE=
29014 GS_DELEGATE_FALSE='#'
29015else
29016 GS_DELEGATE_TRUE='#'
29017 GS_DELEGATE_FALSE=
29018fi
29019
cristy3ed852e2009-09-05 21:47:34 +000029020
29021
29022# Set default font search path
29023
29024# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029025if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029026 withval=$with_fontpath; with_fontpath=$withval
29027else
29028 with_fontpath=''
29029fi
29030
29031
29032if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29033 with_fontpath=''
29034else
29035
29036cat >>confdefs.h <<_ACEOF
29037#define MAGICK_FONT_PATH "$with_fontpath"
29038_ACEOF
29039
29040fi
29041if test "$with_fontpath=" != ''; then
29042 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29043fi
29044
29045# Set Ghostscript font directory
29046
29047# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029048if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029049 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29050else
29051 with_gs_font_dir='default'
29052fi
29053
29054
29055if test "$with_gs_font_dir" != 'default'; then
29056 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29057fi
29058
29059
29060#
29061# Check for GVC delegate library.
29062#
29063
29064# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029065if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029066 withval=$with_gvc; with_gvc=$withval
29067else
cristy1b70dc82012-07-01 23:15:05 +000029068 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029069fi
29070
29071
29072if test "$with_gvc" != 'yes'; then
29073 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29074fi
29075
29076GVC_PKG=""
29077if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029078 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29079$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029080
29081pkg_failed=no
29082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29083$as_echo_n "checking for GVC... " >&6; }
29084
29085if test -n "$GVC_CFLAGS"; then
29086 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29087 elif test -n "$PKG_CONFIG"; then
29088 if test -n "$PKG_CONFIG" && \
29089 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29090 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29091 ac_status=$?
29092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29093 test $ac_status = 0; }; then
29094 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29095else
29096 pkg_failed=yes
29097fi
29098 else
29099 pkg_failed=untried
29100fi
29101if test -n "$GVC_LIBS"; then
29102 pkg_cv_GVC_LIBS="$GVC_LIBS"
29103 elif test -n "$PKG_CONFIG"; then
29104 if test -n "$PKG_CONFIG" && \
29105 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29106 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29107 ac_status=$?
29108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29109 test $ac_status = 0; }; then
29110 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29111else
29112 pkg_failed=yes
29113fi
29114 else
29115 pkg_failed=untried
29116fi
29117
29118
29119
29120if test $pkg_failed = yes; then
29121
29122if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29123 _pkg_short_errors_supported=yes
29124else
29125 _pkg_short_errors_supported=no
29126fi
29127 if test $_pkg_short_errors_supported = yes; then
29128 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29129 else
29130 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29131 fi
29132 # Put the nasty error message in config.log where it belongs
29133 echo "$GVC_PKG_ERRORS" >&5
29134
29135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29136$as_echo "no" >&6; }
29137 have_gvc=no
29138elif test $pkg_failed = untried; then
29139 have_gvc=no
29140else
29141 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29142 GVC_LIBS=$pkg_cv_GVC_LIBS
29143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29144$as_echo "yes" >&6; }
29145 have_gvc=yes
29146fi
cristy09b53e12011-10-14 12:47:22 +000029147 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29148$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029149fi
29150
29151if test "$have_gvc" = 'yes'; then
29152
cristy8b350f62009-11-15 23:12:43 +000029153$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029154
cristyc6722092012-10-14 00:19:31 +000029155 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029156 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29157 fi
29158fi
29159
cristy73bd4a52010-10-05 11:24:23 +000029160 if test "$have_gvc" = 'yes'; then
29161 GVC_DELEGATE_TRUE=
29162 GVC_DELEGATE_FALSE='#'
29163else
29164 GVC_DELEGATE_TRUE='#'
29165 GVC_DELEGATE_FALSE=
29166fi
29167
cristy3ed852e2009-09-05 21:47:34 +000029168
29169
29170
29171
29172#
29173# Check for JBIG delegate library.
29174#
29175
29176
29177# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029178if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029179 withval=$with_jbig; with_jbig=$withval
29180else
29181 with_jbig='yes'
29182fi
29183
29184
29185have_jbig='no'
29186JBIG_LIBS=''
29187if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029188 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29189$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029191$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029192 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29193$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029194 failed=0
29195 passed=0
cristy8b350f62009-11-15 23:12:43 +000029196 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029197if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029198 passed=`expr $passed + 1`
29199else
29200 failed=`expr $failed + 1`
29201fi
29202
29203
cristy8b350f62009-11-15 23:12:43 +000029204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029205$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029206if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029207 $as_echo_n "(cached) " >&6
29208else
29209 ac_check_lib_save_LIBS=$LIBS
29210LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029212/* end confdefs.h. */
29213
29214/* Override any GCC internal prototype to avoid an error.
29215 Use char because int might match the return type of a GCC
29216 builtin and then its argument prototype would still apply. */
29217#ifdef __cplusplus
29218extern "C"
29219#endif
29220char jbg_dec_init ();
29221int
29222main ()
29223{
29224return jbg_dec_init ();
29225 ;
29226 return 0;
29227}
29228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029229if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029230 ac_cv_lib_jbig_jbg_dec_init=yes
29231else
cristy8b350f62009-11-15 23:12:43 +000029232 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029233fi
cristy8b350f62009-11-15 23:12:43 +000029234rm -f core conftest.err conftest.$ac_objext \
29235 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029236LIBS=$ac_check_lib_save_LIBS
29237fi
cristy8b350f62009-11-15 23:12:43 +000029238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029239$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029240if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029241 passed=`expr $passed + 1`
29242else
29243 failed=`expr $failed + 1`
29244fi
29245
cristy8b350f62009-11-15 23:12:43 +000029246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029247$as_echo_n "checking if JBIG package is complete... " >&6; }
29248 if test $passed -gt 0; then
29249 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029250 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29251$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029252 have_jbig='no (failed tests)'
29253 else
29254 JBIG_LIBS='-ljbig'
29255 LIBS="$JBIG_LIBS $LIBS"
29256
cristy8b350f62009-11-15 23:12:43 +000029257$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029258
cristy09b53e12011-10-14 12:47:22 +000029259 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29260$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029261 have_jbig='yes'
29262 fi
29263 else
cristy09b53e12011-10-14 12:47:22 +000029264 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29265$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029266 fi
29267fi
cristy73bd4a52010-10-05 11:24:23 +000029268 if test "$have_jbig" = 'yes'; then
29269 JBIG_DELEGATE_TRUE=
29270 JBIG_DELEGATE_FALSE='#'
29271else
29272 JBIG_DELEGATE_TRUE='#'
29273 JBIG_DELEGATE_FALSE=
29274fi
29275
cristy3ed852e2009-09-05 21:47:34 +000029276
29277
29278
29279#
29280# Check for JPEG delegate library.
29281#
29282
29283# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029284if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029285 withval=$with_jpeg; with_jpeg=$withval
29286else
29287 with_jpeg='yes'
29288fi
29289
29290
29291if test "$with_jpeg" != 'yes'; then
29292 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29293fi
29294
29295have_jpeg='no'
29296JPEG_LIBS=''
29297if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029298 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29299$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029301$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029302 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29303$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029304 failed=0
29305 passed=0
cristy8b350f62009-11-15 23:12:43 +000029306 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029307if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029308 passed=`expr $passed + 1`
29309else
29310 failed=`expr $failed + 1`
29311fi
29312
29313
cristy8b350f62009-11-15 23:12:43 +000029314 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029315if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029316 passed=`expr $passed + 1`
29317else
29318 failed=`expr $failed + 1`
29319fi
29320
29321
cristy8b350f62009-11-15 23:12:43 +000029322 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029323if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029324 passed=`expr $passed + 1`
29325else
29326 failed=`expr $failed + 1`
29327fi
29328
29329
cristy8b350f62009-11-15 23:12:43 +000029330 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029331if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029332 passed=`expr $passed + 1`
29333else
29334 failed=`expr $failed + 1`
29335fi
29336
29337
cristy8b350f62009-11-15 23:12:43 +000029338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029339$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029340if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029341 $as_echo_n "(cached) " >&6
29342else
29343 ac_check_lib_save_LIBS=$LIBS
29344LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029346/* end confdefs.h. */
29347
29348/* Override any GCC internal prototype to avoid an error.
29349 Use char because int might match the return type of a GCC
29350 builtin and then its argument prototype would still apply. */
29351#ifdef __cplusplus
29352extern "C"
29353#endif
29354char jpeg_read_header ();
29355int
29356main ()
29357{
29358return jpeg_read_header ();
29359 ;
29360 return 0;
29361}
29362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029363if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029364 ac_cv_lib_jpeg_jpeg_read_header=yes
29365else
cristy8b350f62009-11-15 23:12:43 +000029366 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029367fi
cristy8b350f62009-11-15 23:12:43 +000029368rm -f core conftest.err conftest.$ac_objext \
29369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029370LIBS=$ac_check_lib_save_LIBS
29371fi
cristy8b350f62009-11-15 23:12:43 +000029372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029373$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029374if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029375 passed=`expr $passed + 1`
29376else
29377 failed=`expr $failed + 1`
29378fi
29379
29380
29381# Test for compatible JPEG library
29382if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029384$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029385if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029386 $as_echo_n "(cached) " >&6
29387else
cristy8b350f62009-11-15 23:12:43 +000029388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029389/* end confdefs.h. */
29390#include <stdio.h>
29391#include <stdlib.h>
29392#include <jpeglib.h>
29393
29394int
29395main ()
29396{
29397
29398#if JPEG_LIB_VERSION < 62
29399#error IJG JPEG library must be version 6b or newer!
29400#endif
29401return 0;
29402
29403 ;
29404 return 0;
29405}
29406_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029407if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029408 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29409else
cristy8b350f62009-11-15 23:12:43 +000029410 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029411fi
cristy3ed852e2009-09-05 21:47:34 +000029412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29413fi
cristy8b350f62009-11-15 23:12:43 +000029414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029415$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29416fi
cristy8b350f62009-11-15 23:12:43 +000029417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029418$as_echo_n "checking if JPEG package is complete... " >&6; }
29419 if test $passed -gt 0; then
29420 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029421 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29422$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029423 have_jpeg='no (failed tests)'
29424 else
29425 JPEG_LIBS='-ljpeg'
29426 LIBS="$JPEG_LIBS $LIBS"
29427
cristy8b350f62009-11-15 23:12:43 +000029428$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029429
cristy09b53e12011-10-14 12:47:22 +000029430 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29431$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029432 have_jpeg='yes'
29433 fi
29434 else
cristy09b53e12011-10-14 12:47:22 +000029435 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29436$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029437 fi
29438fi
cristy73bd4a52010-10-05 11:24:23 +000029439 if test "$have_jpeg" = 'yes'; then
29440 JPEG_DELEGATE_TRUE=
29441 JPEG_DELEGATE_FALSE='#'
29442else
29443 JPEG_DELEGATE_TRUE='#'
29444 JPEG_DELEGATE_FALSE=
29445fi
29446
cristy3ed852e2009-09-05 21:47:34 +000029447
29448
29449
29450#
29451# Check for JPEG Version 2 delegate library.
29452#
29453
29454# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029455if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029456 withval=$with_jp2; with_jp2=$withval
29457else
29458 with_jp2='yes'
29459fi
29460
29461
29462if test "$with_jp2" != 'yes'; then
29463 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29464fi
29465
29466have_jp2='no'
29467JP2_LIBS=''
29468if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029469 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29470$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029472$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029473 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29474$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029475 failed=0
29476 passed=0
cristy8b350f62009-11-15 23:12:43 +000029477 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 +000029478if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029479 passed=`expr $passed + 1`
29480else
29481 failed=`expr $failed + 1`
29482fi
29483
29484
cristy8b350f62009-11-15 23:12:43 +000029485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029486$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029487if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029488 $as_echo_n "(cached) " >&6
29489else
29490 ac_check_lib_save_LIBS=$LIBS
29491LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029493/* end confdefs.h. */
29494
29495/* Override any GCC internal prototype to avoid an error.
29496 Use char because int might match the return type of a GCC
29497 builtin and then its argument prototype would still apply. */
29498#ifdef __cplusplus
29499extern "C"
29500#endif
29501char jas_stream_fopen ();
29502int
29503main ()
29504{
29505return jas_stream_fopen ();
29506 ;
29507 return 0;
29508}
29509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029510if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029511 ac_cv_lib_jasper_jas_stream_fopen=yes
29512else
cristy8b350f62009-11-15 23:12:43 +000029513 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029514fi
cristy8b350f62009-11-15 23:12:43 +000029515rm -f core conftest.err conftest.$ac_objext \
29516 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029517LIBS=$ac_check_lib_save_LIBS
29518fi
cristy8b350f62009-11-15 23:12:43 +000029519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029520$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029521if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029522 passed=`expr $passed + 1`
29523else
29524 failed=`expr $failed + 1`
29525fi
29526
cristy8b350f62009-11-15 23:12:43 +000029527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029528$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29529 if test $passed -gt 0; then
29530 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029531 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29532$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029533 have_jp2='no (failed tests)'
29534 else
29535 JP2_LIBS='-ljasper'
29536 LIBS="$JP2_LIBS $LIBS"
29537
cristy8b350f62009-11-15 23:12:43 +000029538$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029539
cristy09b53e12011-10-14 12:47:22 +000029540 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29541$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029542 have_jp2='yes'
29543 fi
29544 else
cristy09b53e12011-10-14 12:47:22 +000029545 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29546$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029547 fi
29548fi
cristy73bd4a52010-10-05 11:24:23 +000029549 if test "$have_jp2" = 'yes'; then
29550 JP2_DELEGATE_TRUE=
29551 JP2_DELEGATE_FALSE='#'
29552else
29553 JP2_DELEGATE_TRUE='#'
29554 JP2_DELEGATE_FALSE=
29555fi
29556
cristy3ed852e2009-09-05 21:47:34 +000029557
29558
29559
29560#
29561# Check for LCMS delegate library.
29562#
cristy71203402010-06-18 13:12:03 +000029563# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029564
29565# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029566if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029567 withval=$with_lcms; with_lcms=$withval
29568else
29569 with_lcms='yes'
29570fi
29571
cristy71203402010-06-18 13:12:03 +000029572if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029573 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29574fi
29575
cristy71203402010-06-18 13:12:03 +000029576# Disable LCMS2.
29577
29578# Check whether --with-lcms2 was given.
29579if test "${with_lcms2+set}" = set; then :
29580 withval=$with_lcms2; with_lcms2=$withval
29581else
29582 with_lcms2='yes'
29583fi
29584
29585if test "$with_lcms2" != 'yes' ; then
29586 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29587fi
29588
29589have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029590LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029591if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029592 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29593$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29595$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029596 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29597$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029598 failed=0
29599 passed=0
29600 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029601
29602 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029603 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029604if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029605 have_lcms_header='yes'
29606fi
29607
29608
29609 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029610
29611$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29612
cristy71203402010-06-18 13:12:03 +000029613 passed=`expr $passed + 1`
29614 fi
29615
29616 # Check for <lcms2/lcms2.h)
29617 if test "$have_lcms_header" != 'yes'; then
29618 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 +000029619if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029620 have_lcms_header='yes'
29621fi
29622
29623
cristy71203402010-06-18 13:12:03 +000029624 if test "$have_lcms_header" = 'yes'; then
29625 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029626
cristy71203402010-06-18 13:12:03 +000029627$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029628
cristy71203402010-06-18 13:12:03 +000029629 fi
cristyd09bcf92010-03-25 03:04:45 +000029630 fi
cristy71203402010-06-18 13:12:03 +000029631
29632 # Failed to find lcms header?
29633 if test "$have_lcms_header" != 'yes'; then
29634 failed=`expr $failed + 1`
29635 fi
29636
29637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29638$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029639if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029640 $as_echo_n "(cached) " >&6
29641else
29642 ac_check_lib_save_LIBS=$LIBS
29643LIBS="-llcms2 $LIBS"
29644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29645/* end confdefs.h. */
29646
29647/* Override any GCC internal prototype to avoid an error.
29648 Use char because int might match the return type of a GCC
29649 builtin and then its argument prototype would still apply. */
29650#ifdef __cplusplus
29651extern "C"
29652#endif
cristy71203402010-06-18 13:12:03 +000029653char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029654int
29655main ()
29656{
cristy71203402010-06-18 13:12:03 +000029657return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029658 ;
29659 return 0;
29660}
29661_ACEOF
29662if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029663 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029664else
cristy71203402010-06-18 13:12:03 +000029665 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029666fi
29667rm -f core conftest.err conftest.$ac_objext \
29668 conftest$ac_exeext conftest.$ac_ext
29669LIBS=$ac_check_lib_save_LIBS
29670fi
cristy71203402010-06-18 13:12:03 +000029671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29672$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029673if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029674 passed=`expr $passed + 1`
29675else
29676 failed=`expr $failed + 1`
29677fi
29678
cristy71203402010-06-18 13:12:03 +000029679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29680$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029681 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029682 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029683 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29684$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029685 have_lcms2='no (failed tests)'
29686 else
29687 LCMS_LIBS='-llcms2'
29688 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029689 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29690$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029691 have_lcms2='yes'
29692 fi
cristyd09bcf92010-03-25 03:04:45 +000029693 else
cristy09b53e12011-10-14 12:47:22 +000029694 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29695$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029696 fi
29697fi
29698
cristy71203402010-06-18 13:12:03 +000029699#
29700# Check for LCMS v1 (1.11 or later)
29701#
29702if test $have_lcms2 = 'yes'; then
29703 with_lcms='no'
29704fi
29705
29706have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029707if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029708 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29709$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29711$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029712 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29713$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029714 failed=0
29715 passed=0
29716 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029717
29718 # Check for <lcms.h>
29719 if test "$have_lcms_header" != 'yes'; then
29720 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029721if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029722 have_lcms_header='yes'
29723fi
29724
29725
cristy71203402010-06-18 13:12:03 +000029726 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029727 passed=`expr $passed + 1`
29728
cristy8b350f62009-11-15 23:12:43 +000029729$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029730
cristy71203402010-06-18 13:12:03 +000029731 fi
29732 fi
29733
29734 # Check for <lcms/lcms.h>
29735 if test "$have_lcms_header" != 'yes'; then
29736 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 +000029737if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029738 have_lcms_header='yes'
29739fi
29740
29741
cristy71203402010-06-18 13:12:03 +000029742 if test "$have_lcms_header" = 'yes'; then
29743 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029744
cristy8b350f62009-11-15 23:12:43 +000029745$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029746
cristy71203402010-06-18 13:12:03 +000029747 fi
cristy3ed852e2009-09-05 21:47:34 +000029748 fi
cristy71203402010-06-18 13:12:03 +000029749
29750 # Failed to find lcms header?
29751 if test "$have_lcms_header" != 'yes'; then
29752 failed=`expr $failed + 1`
29753 fi
29754
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29756$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029757if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029758 $as_echo_n "(cached) " >&6
29759else
29760 ac_check_lib_save_LIBS=$LIBS
29761LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029763/* end confdefs.h. */
29764
29765/* Override any GCC internal prototype to avoid an error.
29766 Use char because int might match the return type of a GCC
29767 builtin and then its argument prototype would still apply. */
29768#ifdef __cplusplus
29769extern "C"
29770#endif
cristy71203402010-06-18 13:12:03 +000029771char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029772int
29773main ()
29774{
cristy71203402010-06-18 13:12:03 +000029775return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029776 ;
29777 return 0;
29778}
29779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029780if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029781 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029782else
cristy71203402010-06-18 13:12:03 +000029783 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029784fi
cristy8b350f62009-11-15 23:12:43 +000029785rm -f core conftest.err conftest.$ac_objext \
29786 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029787LIBS=$ac_check_lib_save_LIBS
29788fi
cristy71203402010-06-18 13:12:03 +000029789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29790$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029791if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029792 passed=`expr $passed + 1`
29793else
29794 failed=`expr $failed + 1`
29795fi
29796
cristy8b350f62009-11-15 23:12:43 +000029797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029798$as_echo_n "checking if LCMS package is complete... " >&6; }
29799 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029800 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029801 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29802$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029803 have_lcms='no (failed tests)'
29804 else
29805 LCMS_LIBS='-llcms'
29806 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029807 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29808$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029809 have_lcms='yes'
29810 fi
cristy3ed852e2009-09-05 21:47:34 +000029811 else
cristy09b53e12011-10-14 12:47:22 +000029812 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29813$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029814 fi
29815fi
cristy71203402010-06-18 13:12:03 +000029816
cristy73bd4a52010-10-05 11:24:23 +000029817 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29818 LCMS_DELEGATE_TRUE=
29819 LCMS_DELEGATE_FALSE='#'
29820else
29821 LCMS_DELEGATE_TRUE='#'
29822 LCMS_DELEGATE_FALSE=
29823fi
29824
cristy71203402010-06-18 13:12:03 +000029825if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29826
29827$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29828
29829fi
29830
cristy3ed852e2009-09-05 21:47:34 +000029831
29832
29833
29834#
29835# Check for the LQR (Liquid Rescale) delegate library.
29836#
29837
29838# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029839if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029840 withval=$with_lqr; with_lqr=$withval
29841else
29842 with_lqr='yes'
29843fi
29844
29845
29846if test "$with_lqr" != 'yes'; then
29847 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29848fi
29849
29850have_lqr='no'
29851LQR_CFLAGS=""
29852LQR_LIBS=""
29853LQR_PKG=""
29854if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029855 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29856$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029857
29858pkg_failed=no
29859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29860$as_echo_n "checking for LQR... " >&6; }
29861
29862if test -n "$LQR_CFLAGS"; then
29863 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29864 elif test -n "$PKG_CONFIG"; then
29865 if test -n "$PKG_CONFIG" && \
29866 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29867 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29868 ac_status=$?
29869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29870 test $ac_status = 0; }; then
29871 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29872else
29873 pkg_failed=yes
29874fi
29875 else
29876 pkg_failed=untried
29877fi
29878if test -n "$LQR_LIBS"; then
29879 pkg_cv_LQR_LIBS="$LQR_LIBS"
29880 elif test -n "$PKG_CONFIG"; then
29881 if test -n "$PKG_CONFIG" && \
29882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29883 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29884 ac_status=$?
29885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29886 test $ac_status = 0; }; then
29887 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29888else
29889 pkg_failed=yes
29890fi
29891 else
29892 pkg_failed=untried
29893fi
29894
29895
29896
29897if test $pkg_failed = yes; then
29898
29899if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29900 _pkg_short_errors_supported=yes
29901else
29902 _pkg_short_errors_supported=no
29903fi
29904 if test $_pkg_short_errors_supported = yes; then
29905 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29906 else
29907 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29908 fi
29909 # Put the nasty error message in config.log where it belongs
29910 echo "$LQR_PKG_ERRORS" >&5
29911
29912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29913$as_echo "no" >&6; }
29914 have_lqr=no
29915elif test $pkg_failed = untried; then
29916 have_lqr=no
29917else
29918 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29919 LQR_LIBS=$pkg_cv_LQR_LIBS
29920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29921$as_echo "yes" >&6; }
29922 have_lqr=yes
29923fi
cristy09b53e12011-10-14 12:47:22 +000029924 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29925$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029926fi
29927
29928if test "$have_lqr" = 'yes'; then
29929
cristy8b350f62009-11-15 23:12:43 +000029930$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029931
29932 CFLAGS="$LQR_CFLAGS $CFLAGS"
29933fi
29934
cristy73bd4a52010-10-05 11:24:23 +000029935 if test "$have_lqr" = 'yes'; then
29936 LQR_DELEGATE_TRUE=
29937 LQR_DELEGATE_FALSE='#'
29938else
29939 LQR_DELEGATE_TRUE='#'
29940 LQR_DELEGATE_FALSE=
29941fi
29942
cristy3ed852e2009-09-05 21:47:34 +000029943
29944
29945
29946
cristy81beccd2011-10-03 18:17:24 +000029947# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000029948
29949# Check whether --with-lzma was given.
29950if test "${with_lzma+set}" = set; then :
29951 withval=$with_lzma; with_lzma=$withval
29952else
29953 with_lzma='yes'
29954fi
29955
cristy81beccd2011-10-03 18:17:24 +000029956if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000029957 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29958fi
29959
cristyb94e5002011-11-14 13:20:10 +000029960LZMA_PKG=""
29961if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029962 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29963$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000029964
29965pkg_failed=no
29966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000029967$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000029968
29969if test -n "$LZMA_CFLAGS"; then
29970 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
29971 elif test -n "$PKG_CONFIG"; then
29972 if test -n "$PKG_CONFIG" && \
29973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
29974 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
29975 ac_status=$?
29976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29977 test $ac_status = 0; }; then
29978 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
29979else
29980 pkg_failed=yes
29981fi
29982 else
29983 pkg_failed=untried
29984fi
29985if test -n "$LZMA_LIBS"; then
29986 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
29987 elif test -n "$PKG_CONFIG"; then
29988 if test -n "$PKG_CONFIG" && \
29989 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
29990 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
29991 ac_status=$?
29992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29993 test $ac_status = 0; }; then
29994 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
29995else
29996 pkg_failed=yes
29997fi
29998 else
29999 pkg_failed=untried
30000fi
30001
30002
30003
30004if test $pkg_failed = yes; then
30005
30006if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30007 _pkg_short_errors_supported=yes
30008else
30009 _pkg_short_errors_supported=no
30010fi
30011 if test $_pkg_short_errors_supported = yes; then
30012 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30013 else
30014 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30015 fi
30016 # Put the nasty error message in config.log where it belongs
30017 echo "$LZMA_PKG_ERRORS" >&5
30018
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30020$as_echo "no" >&6; }
30021 have_lzma=no
30022elif test $pkg_failed = untried; then
30023 have_lzma=no
30024else
30025 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30026 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30028$as_echo "yes" >&6; }
30029 have_lzma=yes
30030fi
30031 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030032$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030033fi
30034
cristyb94e5002011-11-14 13:20:10 +000030035if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030036
30037$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30038
cristyc6722092012-10-14 00:19:31 +000030039 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030040 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030041 fi
cristyfbb0ef02010-12-19 02:32:11 +000030042fi
cristyb94e5002011-11-14 13:20:10 +000030043
cristyfbb0ef02010-12-19 02:32:11 +000030044 if test "$have_lzma" = 'yes'; then
30045 LZMA_DELEGATE_TRUE=
30046 LZMA_DELEGATE_FALSE='#'
30047else
30048 LZMA_DELEGATE_TRUE='#'
30049 LZMA_DELEGATE_FALSE=
30050fi
30051
30052
30053
30054
cristyb94e5002011-11-14 13:20:10 +000030055
cristy3ed852e2009-09-05 21:47:34 +000030056#
30057# Check for the OpenEXR delegate library.
30058#
30059
30060# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030061if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030062 withval=$with_openexr; with_openexr=$withval
30063else
30064 with_openexr='yes'
30065fi
30066
30067
30068if test "$with_openexr" != 'yes'; then
30069 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30070fi
30071
30072have_openexr='no'
30073OPENEXR_CFLAGS=""
30074OPENEXR_LIBS=""
30075OPENEXR_PKG=""
30076if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030077 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30078$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030079
30080pkg_failed=no
30081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30082$as_echo_n "checking for OPENEXR... " >&6; }
30083
30084if test -n "$OPENEXR_CFLAGS"; then
30085 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30086 elif test -n "$PKG_CONFIG"; then
30087 if test -n "$PKG_CONFIG" && \
30088 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30089 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30090 ac_status=$?
30091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30092 test $ac_status = 0; }; then
30093 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30094else
30095 pkg_failed=yes
30096fi
30097 else
30098 pkg_failed=untried
30099fi
30100if test -n "$OPENEXR_LIBS"; then
30101 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30102 elif test -n "$PKG_CONFIG"; then
30103 if test -n "$PKG_CONFIG" && \
30104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30105 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30106 ac_status=$?
30107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30108 test $ac_status = 0; }; then
30109 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30110else
30111 pkg_failed=yes
30112fi
30113 else
30114 pkg_failed=untried
30115fi
30116
30117
30118
30119if test $pkg_failed = yes; then
30120
30121if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30122 _pkg_short_errors_supported=yes
30123else
30124 _pkg_short_errors_supported=no
30125fi
30126 if test $_pkg_short_errors_supported = yes; then
30127 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30128 else
30129 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30130 fi
30131 # Put the nasty error message in config.log where it belongs
30132 echo "$OPENEXR_PKG_ERRORS" >&5
30133
30134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30135$as_echo "no" >&6; }
30136 have_openexr=no
30137elif test $pkg_failed = untried; then
30138 have_openexr=no
30139else
30140 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30141 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30143$as_echo "yes" >&6; }
30144 have_openexr=yes
30145fi
cristy09b53e12011-10-14 12:47:22 +000030146 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30147$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030148fi
30149
30150if test "$have_openexr" = 'yes'; then
30151
cristy8b350f62009-11-15 23:12:43 +000030152$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030153
cristyc6722092012-10-14 00:19:31 +000030154 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030155 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30156 fi
30157fi
30158
cristy73bd4a52010-10-05 11:24:23 +000030159 if test "$have_openexr" = 'yes'; then
30160 OPENEXR_DELEGATE_TRUE=
30161 OPENEXR_DELEGATE_FALSE='#'
30162else
30163 OPENEXR_DELEGATE_TRUE='#'
30164 OPENEXR_DELEGATE_FALSE=
30165fi
30166
cristy3ed852e2009-09-05 21:47:34 +000030167
30168
30169
30170
30171#
cristy41cbe8a2011-10-27 01:35:18 +000030172# Check for PANGO delegate library.
30173#
30174
30175# Check whether --with-pango was given.
30176if test "${with_pango+set}" = set; then :
30177 withval=$with_pango; with_pango=$withval
30178else
cristyfc3d0222012-02-07 15:05:57 +000030179 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030180fi
30181
30182
30183if test "$with_pango" != 'yes'; then
30184 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30185fi
30186
30187have_pango='no'
cristya054b762012-03-26 23:16:00 +000030188have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030189PANGO_CFLAGS=""
30190PANGO_LIBS=""
30191PANGO_PKG=""
30192if test "x$with_pango" = "xyes"; then
30193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30194$as_echo "-------------------------------------------------------------" >&6; }
30195
30196pkg_failed=no
30197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30198$as_echo_n "checking for PANGO... " >&6; }
30199
30200if test -n "$PANGO_CFLAGS"; then
30201 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30202 elif test -n "$PKG_CONFIG"; then
30203 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30205 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030206 ac_status=$?
30207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30208 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030209 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030210else
30211 pkg_failed=yes
30212fi
30213 else
30214 pkg_failed=untried
30215fi
30216if test -n "$PANGO_LIBS"; then
30217 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30218 elif test -n "$PKG_CONFIG"; then
30219 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030220 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30221 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030222 ac_status=$?
30223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30224 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030225 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030226else
30227 pkg_failed=yes
30228fi
30229 else
30230 pkg_failed=untried
30231fi
30232
30233
30234
30235if test $pkg_failed = yes; then
30236
30237if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30238 _pkg_short_errors_supported=yes
30239else
30240 _pkg_short_errors_supported=no
30241fi
30242 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030243 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030244 else
cristya054b762012-03-26 23:16:00 +000030245 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030246 fi
30247 # Put the nasty error message in config.log where it belongs
30248 echo "$PANGO_PKG_ERRORS" >&5
30249
30250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30251$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030252 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030253elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030254 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030255else
30256 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30257 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30259$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030260 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030261fi
30262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30263$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030264
30265pkg_failed=no
30266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30267$as_echo_n "checking for PANGO... " >&6; }
30268
30269if test -n "$PANGO_CFLAGS"; then
30270 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30271 elif test -n "$PKG_CONFIG"; then
30272 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030273 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30274 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030275 ac_status=$?
30276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30277 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030278 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030279else
30280 pkg_failed=yes
30281fi
30282 else
30283 pkg_failed=untried
30284fi
30285if test -n "$PANGO_LIBS"; then
30286 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30287 elif test -n "$PKG_CONFIG"; then
30288 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030289 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30290 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030291 ac_status=$?
30292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30293 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030294 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030295else
30296 pkg_failed=yes
30297fi
30298 else
30299 pkg_failed=untried
30300fi
30301
30302
30303
30304if test $pkg_failed = yes; then
30305
30306if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30307 _pkg_short_errors_supported=yes
30308else
30309 _pkg_short_errors_supported=no
30310fi
30311 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030312 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030313 else
cristy2542fc62011-12-06 17:50:25 +000030314 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030315 fi
30316 # Put the nasty error message in config.log where it belongs
30317 echo "$PANGO_PKG_ERRORS" >&5
30318
30319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30320$as_echo "no" >&6; }
30321 have_pango=no
30322elif test $pkg_failed = untried; then
30323 have_pango=no
30324else
30325 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30326 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30328$as_echo "yes" >&6; }
30329 have_pango=yes
30330fi
30331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30332$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030333fi
30334
30335if test "$have_pango" = 'yes'; then
30336
30337$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30338
cristyc6722092012-10-14 00:19:31 +000030339 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030340 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30341 fi
30342fi
30343
cristya054b762012-03-26 23:16:00 +000030344if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030345
cristya054b762012-03-26 23:16:00 +000030346$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030347
cristyc6722092012-10-14 00:19:31 +000030348 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030349 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030350 fi
30351fi
30352
30353 if test "$have_pango" = 'yes'; then
30354 PANGO_DELEGATE_TRUE=
30355 PANGO_DELEGATE_FALSE='#'
30356else
30357 PANGO_DELEGATE_TRUE='#'
30358 PANGO_DELEGATE_FALSE=
30359fi
30360
cristya054b762012-03-26 23:16:00 +000030361 if test "$have_pangocairo" = 'yes'; then
30362 PANGOCAIRO_DELEGATE_TRUE=
30363 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030364else
cristya054b762012-03-26 23:16:00 +000030365 PANGOCAIRO_DELEGATE_TRUE='#'
30366 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030367fi
30368
30369
30370
30371
30372
30373#
cristy3ed852e2009-09-05 21:47:34 +000030374# Check for PNG delegate library.
30375#
30376
30377# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030378if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030379 withval=$with_png; with_png=$withval
30380else
30381 with_png='yes'
30382fi
30383
30384
30385if test "$with_png" != 'yes'; then
30386 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30387fi
30388
cristy81beccd2011-10-03 18:17:24 +000030389have_png='no'
30390PNG_LIBS=''
30391
30392if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030393 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30394$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30396$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030397 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30398$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030399 failed=0
30400 passed=0
30401 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30402if test "x$ac_cv_header_png_h" = xyes; then :
30403 passed=`expr $passed + 1`
30404else
30405 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030406fi
30407
cristy81beccd2011-10-03 18:17:24 +000030408
30409
30410 if test $passed -gt 0; then
30411 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030412 if test "$have_png" = 'no' ; then
30413 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030414 pnglib='png'
30415 else
30416 pnglib="png1${var}"
30417 fi
30418
30419# Test for compatible LIBPNG library
30420 failed=0
30421 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030422 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030423 if test "${pnglib}" != 'png' ; then
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30425$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30427/* end confdefs.h. */
30428#include <stdio.h>
30429#include <stdlib.h>
30430#include <png.h>
30431
30432int
30433main ()
30434{
30435
30436#if PNG_LIBPNG_VER_MINOR != ${var}
30437#error LIBPNG library must be version 1${var}!
30438Kaboom, Kaboom
30439#endif
30440return 0;
30441
30442 ;
30443 return 0;
30444}
30445_ACEOF
30446if ac_fn_c_try_compile "$LINENO"; then :
30447 ac_cv_libpng_ok='yes'
30448else
30449 ac_cv_libpng_ok='no'
30450fi
30451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30452 if test "$ac_cv_libpng_ok" = 'yes' ; then
30453 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030454 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30455$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030456 else
30457 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030458 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30459$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030460 fi
30461 else
30462 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030463 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30464$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030465 fi
30466 fi
30467
30468 if test $passed -gt 0 -a $failed -le 0; then
30469 if test "1${var}" = '15' ; then
30470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30471$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30472if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30473 $as_echo_n "(cached) " >&6
30474else
30475 ac_check_lib_save_LIBS=$LIBS
30476LIBS="-lpng15 $LIBS"
30477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30478/* end confdefs.h. */
30479
30480/* Override any GCC internal prototype to avoid an error.
30481 Use char because int might match the return type of a GCC
30482 builtin and then its argument prototype would still apply. */
30483#ifdef __cplusplus
30484extern "C"
30485#endif
30486char png_get_io_ptr ();
30487int
30488main ()
30489{
30490return png_get_io_ptr ();
30491 ;
30492 return 0;
30493}
30494_ACEOF
30495if ac_fn_c_try_link "$LINENO"; then :
30496 ac_cv_lib_png15_png_get_io_ptr=yes
30497else
30498 ac_cv_lib_png15_png_get_io_ptr=no
30499fi
30500rm -f core conftest.err conftest.$ac_objext \
30501 conftest$ac_exeext conftest.$ac_ext
30502LIBS=$ac_check_lib_save_LIBS
30503fi
30504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30505$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30506if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30507 passed=`expr $passed + 1`
30508else
30509 failed=`expr $failed + 1`
30510fi
30511
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30513$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30514if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30515 $as_echo_n "(cached) " >&6
30516else
30517 ac_check_lib_save_LIBS=$LIBS
30518LIBS="-lpng15 $LIBS"
30519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30520/* end confdefs.h. */
30521
30522/* Override any GCC internal prototype to avoid an error.
30523 Use char because int might match the return type of a GCC
30524 builtin and then its argument prototype would still apply. */
30525#ifdef __cplusplus
30526extern "C"
30527#endif
30528char png_longjmp ();
30529int
30530main ()
30531{
30532return png_longjmp ();
30533 ;
30534 return 0;
30535}
30536_ACEOF
30537if ac_fn_c_try_link "$LINENO"; then :
30538 ac_cv_lib_png15_png_longjmp=yes
30539else
30540 ac_cv_lib_png15_png_longjmp=no
30541fi
30542rm -f core conftest.err conftest.$ac_objext \
30543 conftest$ac_exeext conftest.$ac_ext
30544LIBS=$ac_check_lib_save_LIBS
30545fi
30546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30547$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30548if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30549 passed=`expr $passed + 1`
30550else
30551 failed=`expr $failed + 1`
30552fi
30553
30554 fi
30555 if test "1${var}" = '14' ; then
30556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30557$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30558if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30559 $as_echo_n "(cached) " >&6
30560else
30561 ac_check_lib_save_LIBS=$LIBS
30562LIBS="-lpng14 $LIBS"
30563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30564/* end confdefs.h. */
30565
30566/* Override any GCC internal prototype to avoid an error.
30567 Use char because int might match the return type of a GCC
30568 builtin and then its argument prototype would still apply. */
30569#ifdef __cplusplus
30570extern "C"
30571#endif
30572char png_get_io_ptr ();
30573int
30574main ()
30575{
30576return png_get_io_ptr ();
30577 ;
30578 return 0;
30579}
30580_ACEOF
30581if ac_fn_c_try_link "$LINENO"; then :
30582 ac_cv_lib_png14_png_get_io_ptr=yes
30583else
30584 ac_cv_lib_png14_png_get_io_ptr=no
30585fi
30586rm -f core conftest.err conftest.$ac_objext \
30587 conftest$ac_exeext conftest.$ac_ext
30588LIBS=$ac_check_lib_save_LIBS
30589fi
30590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30591$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30592if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30593 passed=`expr $passed + 1`
30594else
30595 failed=`expr $failed + 1`
30596fi
30597
30598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30599$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30600if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30601 $as_echo_n "(cached) " >&6
30602else
30603 ac_check_lib_save_LIBS=$LIBS
30604LIBS="-lpng14 $LIBS"
30605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30606/* end confdefs.h. */
30607
30608/* Override any GCC internal prototype to avoid an error.
30609 Use char because int might match the return type of a GCC
30610 builtin and then its argument prototype would still apply. */
30611#ifdef __cplusplus
30612extern "C"
30613#endif
30614char png_get_io_state ();
30615int
30616main ()
30617{
30618return png_get_io_state ();
30619 ;
30620 return 0;
30621}
30622_ACEOF
30623if ac_fn_c_try_link "$LINENO"; then :
30624 ac_cv_lib_png14_png_get_io_state=yes
30625else
30626 ac_cv_lib_png14_png_get_io_state=no
30627fi
30628rm -f core conftest.err conftest.$ac_objext \
30629 conftest$ac_exeext conftest.$ac_ext
30630LIBS=$ac_check_lib_save_LIBS
30631fi
30632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30633$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30634if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30635 passed=`expr $passed + 1`
30636else
30637 failed=`expr $failed + 1`
30638fi
30639
30640 fi
30641 if test "1${var}" = '12' ; then
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30643$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30644if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30645 $as_echo_n "(cached) " >&6
30646else
30647 ac_check_lib_save_LIBS=$LIBS
30648LIBS="-lpng12 $LIBS"
30649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30650/* end confdefs.h. */
30651
30652/* Override any GCC internal prototype to avoid an error.
30653 Use char because int might match the return type of a GCC
30654 builtin and then its argument prototype would still apply. */
30655#ifdef __cplusplus
30656extern "C"
30657#endif
30658char png_get_io_ptr ();
30659int
30660main ()
30661{
30662return png_get_io_ptr ();
30663 ;
30664 return 0;
30665}
30666_ACEOF
30667if ac_fn_c_try_link "$LINENO"; then :
30668 ac_cv_lib_png12_png_get_io_ptr=yes
30669else
30670 ac_cv_lib_png12_png_get_io_ptr=no
30671fi
30672rm -f core conftest.err conftest.$ac_objext \
30673 conftest$ac_exeext conftest.$ac_ext
30674LIBS=$ac_check_lib_save_LIBS
30675fi
30676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30677$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30678if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30679 passed=`expr $passed + 1`
30680else
30681 failed=`expr $failed + 1`
30682fi
30683
30684 fi
30685 if test "1${var}" = '1' ; then
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30687$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30688if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30689 $as_echo_n "(cached) " >&6
30690else
30691 ac_check_lib_save_LIBS=$LIBS
30692LIBS="-lpng $LIBS"
30693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30694/* end confdefs.h. */
30695
30696/* Override any GCC internal prototype to avoid an error.
30697 Use char because int might match the return type of a GCC
30698 builtin and then its argument prototype would still apply. */
30699#ifdef __cplusplus
30700extern "C"
30701#endif
30702char png_get_io_ptr ();
30703int
30704main ()
30705{
30706return png_get_io_ptr ();
30707 ;
30708 return 0;
30709}
30710_ACEOF
30711if ac_fn_c_try_link "$LINENO"; then :
30712 ac_cv_lib_png_png_get_io_ptr=yes
30713else
30714 ac_cv_lib_png_png_get_io_ptr=no
30715fi
30716rm -f core conftest.err conftest.$ac_objext \
30717 conftest$ac_exeext conftest.$ac_ext
30718LIBS=$ac_check_lib_save_LIBS
30719fi
30720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30721$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30722if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30723 passed=`expr $passed + 1`
30724else
30725 failed=`expr $failed + 1`
30726fi
30727
30728 fi
30729 if test $passed -gt 0 -a $failed -le 0 ; then
30730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30731$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30732 if test $passed -gt 0 ; then
30733 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030734 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30735$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030736 have_png='no (failed tests)'
30737 else
30738 PNG_LIBS="-l${pnglib}"
30739 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030740
cristy8b350f62009-11-15 23:12:43 +000030741$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030742
cristy09b53e12011-10-14 12:47:22 +000030743 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30744$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030745 have_png='yes'
30746 fi
30747 fi
30748 fi
30749 fi
30750 fi
30751 done
30752 fi
cristy3ed852e2009-09-05 21:47:34 +000030753fi
cristy64877302011-08-23 19:10:31 +000030754
cristy73bd4a52010-10-05 11:24:23 +000030755 if test "$have_png" = 'yes'; then
30756 PNG_DELEGATE_TRUE=
30757 PNG_DELEGATE_FALSE='#'
30758else
30759 PNG_DELEGATE_TRUE='#'
30760 PNG_DELEGATE_FALSE=
30761fi
30762
cristy3ed852e2009-09-05 21:47:34 +000030763
cristy50d3f5c2011-09-10 20:09:06 +000030764
cristy3ed852e2009-09-05 21:47:34 +000030765
30766
30767#
30768# Check for RSVG delegate library.
30769#
30770
30771# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030772if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030773 withval=$with_rsvg; with_rsvg=$withval
30774else
cristy1164d5f2012-08-15 00:58:25 +000030775 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000030776fi
30777
30778
30779if test "$with_rsvg" != 'yes'; then
30780 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30781fi
30782
30783have_rsvg='no'
30784have_cairo='no'
30785RSVG_CFLAGS=""
30786RSVG_LIBS=""
30787RSVG_PKG=""
30788if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030789 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30790$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030791
30792pkg_failed=no
30793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30794$as_echo_n "checking for RSVG... " >&6; }
30795
30796if test -n "$RSVG_CFLAGS"; then
30797 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30798 elif test -n "$PKG_CONFIG"; then
30799 if test -n "$PKG_CONFIG" && \
30800 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30801 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30802 ac_status=$?
30803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30804 test $ac_status = 0; }; then
30805 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30806else
30807 pkg_failed=yes
30808fi
30809 else
30810 pkg_failed=untried
30811fi
30812if test -n "$RSVG_LIBS"; then
30813 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30814 elif test -n "$PKG_CONFIG"; then
30815 if test -n "$PKG_CONFIG" && \
30816 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30817 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30818 ac_status=$?
30819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30820 test $ac_status = 0; }; then
30821 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30822else
30823 pkg_failed=yes
30824fi
30825 else
30826 pkg_failed=untried
30827fi
30828
30829
30830
30831if test $pkg_failed = yes; then
30832
30833if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30834 _pkg_short_errors_supported=yes
30835else
30836 _pkg_short_errors_supported=no
30837fi
30838 if test $_pkg_short_errors_supported = yes; then
30839 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30840 else
30841 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30842 fi
30843 # Put the nasty error message in config.log where it belongs
30844 echo "$RSVG_PKG_ERRORS" >&5
30845
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30847$as_echo "no" >&6; }
30848 have_rsvg=no
30849elif test $pkg_failed = untried; then
30850 have_rsvg=no
30851else
30852 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30853 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30855$as_echo "yes" >&6; }
30856 have_rsvg=yes
30857fi
cristy09b53e12011-10-14 12:47:22 +000030858 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30859$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030860
30861pkg_failed=no
30862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30863$as_echo_n "checking for CAIRO_SVG... " >&6; }
30864
30865if test -n "$CAIRO_SVG_CFLAGS"; then
30866 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30867 elif test -n "$PKG_CONFIG"; then
30868 if test -n "$PKG_CONFIG" && \
30869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30870 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30871 ac_status=$?
30872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30873 test $ac_status = 0; }; then
30874 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30875else
30876 pkg_failed=yes
30877fi
30878 else
30879 pkg_failed=untried
30880fi
30881if test -n "$CAIRO_SVG_LIBS"; then
30882 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30883 elif test -n "$PKG_CONFIG"; then
30884 if test -n "$PKG_CONFIG" && \
30885 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30886 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30887 ac_status=$?
30888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30889 test $ac_status = 0; }; then
30890 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30891else
30892 pkg_failed=yes
30893fi
30894 else
30895 pkg_failed=untried
30896fi
30897
30898
30899
30900if test $pkg_failed = yes; then
30901
30902if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30903 _pkg_short_errors_supported=yes
30904else
30905 _pkg_short_errors_supported=no
30906fi
30907 if test $_pkg_short_errors_supported = yes; then
30908 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30909 else
30910 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30911 fi
30912 # Put the nasty error message in config.log where it belongs
30913 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30914
30915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30916$as_echo "no" >&6; }
30917 have_cairo=no
30918elif test $pkg_failed = untried; then
30919 have_cairo=no
30920else
30921 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30922 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30924$as_echo "yes" >&6; }
30925 have_cairo=yes
30926fi
cristy09b53e12011-10-14 12:47:22 +000030927 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30928$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030929fi
30930
30931if test "$have_rsvg" = 'yes'; then
30932
cristy8b350f62009-11-15 23:12:43 +000030933$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030934
cristyc6722092012-10-14 00:19:31 +000030935 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030936 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30937 fi
30938fi
30939
30940if test "$have_cairo" = 'yes'; then
30941
cristy8b350f62009-11-15 23:12:43 +000030942$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030943
cristyc6722092012-10-14 00:19:31 +000030944 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030945 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30946 fi
30947fi
30948
cristy73bd4a52010-10-05 11:24:23 +000030949 if test "$have_rsvg" = 'yes'; then
30950 RSVG_DELEGATE_TRUE=
30951 RSVG_DELEGATE_FALSE='#'
30952else
30953 RSVG_DELEGATE_TRUE='#'
30954 RSVG_DELEGATE_FALSE=
30955fi
30956
30957 if test "$have_cairo" = 'yes'; then
30958 CAIRO_DELEGATE_TRUE=
30959 CAIRO_DELEGATE_FALSE='#'
30960else
30961 CAIRO_DELEGATE_TRUE='#'
30962 CAIRO_DELEGATE_FALSE=
30963fi
30964
cristy3ed852e2009-09-05 21:47:34 +000030965
30966
30967
30968
30969#
30970# Check for TIFF delegate library.
30971#
30972
30973# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000030974if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030975 withval=$with_tiff; with_tiff=$withval
30976else
30977 with_tiff='yes'
30978fi
30979
30980
30981if test "$with_tiff" != 'yes'; then
30982 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30983fi
30984
30985have_tiff='no'
30986TIFF_LIBS=''
30987if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030988 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30989$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030991$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030992 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30993$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030994 failed=0
30995 passed=0
cristy8b350f62009-11-15 23:12:43 +000030996 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030997if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030998 passed=`expr $passed + 1`
30999else
31000 failed=`expr $failed + 1`
31001fi
31002
31003
cristy8b350f62009-11-15 23:12:43 +000031004 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031005if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031006 passed=`expr $passed + 1`
31007else
31008 failed=`expr $failed + 1`
31009fi
31010
31011
cristy8b350f62009-11-15 23:12:43 +000031012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031013$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031014if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031015 $as_echo_n "(cached) " >&6
31016else
31017 ac_check_lib_save_LIBS=$LIBS
31018LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031020/* end confdefs.h. */
31021
31022/* Override any GCC internal prototype to avoid an error.
31023 Use char because int might match the return type of a GCC
31024 builtin and then its argument prototype would still apply. */
31025#ifdef __cplusplus
31026extern "C"
31027#endif
31028char TIFFOpen ();
31029int
31030main ()
31031{
31032return TIFFOpen ();
31033 ;
31034 return 0;
31035}
31036_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031037if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031038 ac_cv_lib_tiff_TIFFOpen=yes
31039else
cristy8b350f62009-11-15 23:12:43 +000031040 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031041fi
cristy8b350f62009-11-15 23:12:43 +000031042rm -f core conftest.err conftest.$ac_objext \
31043 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031044LIBS=$ac_check_lib_save_LIBS
31045fi
cristy8b350f62009-11-15 23:12:43 +000031046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031047$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031048if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031049 passed=`expr $passed + 1`
31050else
31051 failed=`expr $failed + 1`
31052fi
31053
cristy8b350f62009-11-15 23:12:43 +000031054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031055$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031056if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031057 $as_echo_n "(cached) " >&6
31058else
31059 ac_check_lib_save_LIBS=$LIBS
31060LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031062/* end confdefs.h. */
31063
31064/* Override any GCC internal prototype to avoid an error.
31065 Use char because int might match the return type of a GCC
31066 builtin and then its argument prototype would still apply. */
31067#ifdef __cplusplus
31068extern "C"
31069#endif
31070char TIFFClientOpen ();
31071int
31072main ()
31073{
31074return TIFFClientOpen ();
31075 ;
31076 return 0;
31077}
31078_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031079if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031080 ac_cv_lib_tiff_TIFFClientOpen=yes
31081else
cristy8b350f62009-11-15 23:12:43 +000031082 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031083fi
cristy8b350f62009-11-15 23:12:43 +000031084rm -f core conftest.err conftest.$ac_objext \
31085 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031086LIBS=$ac_check_lib_save_LIBS
31087fi
cristy8b350f62009-11-15 23:12:43 +000031088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031089$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031090if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031091 passed=`expr $passed + 1`
31092else
31093 failed=`expr $failed + 1`
31094fi
31095
cristy8b350f62009-11-15 23:12:43 +000031096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031097$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031098if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031099 $as_echo_n "(cached) " >&6
31100else
31101 ac_check_lib_save_LIBS=$LIBS
31102LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031104/* end confdefs.h. */
31105
31106/* Override any GCC internal prototype to avoid an error.
31107 Use char because int might match the return type of a GCC
31108 builtin and then its argument prototype would still apply. */
31109#ifdef __cplusplus
31110extern "C"
31111#endif
31112char TIFFIsByteSwapped ();
31113int
31114main ()
31115{
31116return TIFFIsByteSwapped ();
31117 ;
31118 return 0;
31119}
31120_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031121if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031122 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31123else
cristy8b350f62009-11-15 23:12:43 +000031124 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031125fi
cristy8b350f62009-11-15 23:12:43 +000031126rm -f core conftest.err conftest.$ac_objext \
31127 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031128LIBS=$ac_check_lib_save_LIBS
31129fi
cristy8b350f62009-11-15 23:12:43 +000031130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031131$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031132if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031133 passed=`expr $passed + 1`
31134else
31135 failed=`expr $failed + 1`
31136fi
31137
cristy8b350f62009-11-15 23:12:43 +000031138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031139$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031140if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031141 $as_echo_n "(cached) " >&6
31142else
31143 ac_check_lib_save_LIBS=$LIBS
31144LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031146/* end confdefs.h. */
31147
31148/* Override any GCC internal prototype to avoid an error.
31149 Use char because int might match the return type of a GCC
31150 builtin and then its argument prototype would still apply. */
31151#ifdef __cplusplus
31152extern "C"
31153#endif
31154char TIFFReadRGBATile ();
31155int
31156main ()
31157{
31158return TIFFReadRGBATile ();
31159 ;
31160 return 0;
31161}
31162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031163if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031164 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31165else
cristy8b350f62009-11-15 23:12:43 +000031166 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031167fi
cristy8b350f62009-11-15 23:12:43 +000031168rm -f core conftest.err conftest.$ac_objext \
31169 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031170LIBS=$ac_check_lib_save_LIBS
31171fi
cristy8b350f62009-11-15 23:12:43 +000031172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031173$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031174if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031175 passed=`expr $passed + 1`
31176else
31177 failed=`expr $failed + 1`
31178fi
31179
cristy8b350f62009-11-15 23:12:43 +000031180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031181$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031182if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031183 $as_echo_n "(cached) " >&6
31184else
31185 ac_check_lib_save_LIBS=$LIBS
31186LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031188/* end confdefs.h. */
31189
31190/* Override any GCC internal prototype to avoid an error.
31191 Use char because int might match the return type of a GCC
31192 builtin and then its argument prototype would still apply. */
31193#ifdef __cplusplus
31194extern "C"
31195#endif
31196char TIFFReadRGBAStrip ();
31197int
31198main ()
31199{
31200return TIFFReadRGBAStrip ();
31201 ;
31202 return 0;
31203}
31204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031205if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031206 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31207else
cristy8b350f62009-11-15 23:12:43 +000031208 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031209fi
cristy8b350f62009-11-15 23:12:43 +000031210rm -f core conftest.err conftest.$ac_objext \
31211 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031212LIBS=$ac_check_lib_save_LIBS
31213fi
cristy8b350f62009-11-15 23:12:43 +000031214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031215$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031216if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031217 passed=`expr $passed + 1`
31218else
31219 failed=`expr $failed + 1`
31220fi
31221
cristy8b350f62009-11-15 23:12:43 +000031222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031223$as_echo_n "checking if TIFF package is complete... " >&6; }
31224 if test $passed -gt 0; then
31225 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031226 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31227$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031228 have_tiff='no (failed tests)'
31229 else
31230 TIFF_LIBS='-ltiff'
31231 LIBS="$TIFF_LIBS $LIBS"
31232
cristy8b350f62009-11-15 23:12:43 +000031233$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031234
cristy09b53e12011-10-14 12:47:22 +000031235 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31236$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031237 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031238 for ac_header in tiffconf.h
31239do :
31240 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031241if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031242 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031243#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031244_ACEOF
31245
31246fi
31247
31248done
31249
cristy8b350f62009-11-15 23:12:43 +000031250 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031251 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31252 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31253 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031254do :
31255 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31256ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031257if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031258 cat >>confdefs.h <<_ACEOF
31259#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31260_ACEOF
31261
31262fi
31263done
31264
31265 fi
31266 else
cristy09b53e12011-10-14 12:47:22 +000031267 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31268$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031269 fi
31270fi
cristy73bd4a52010-10-05 11:24:23 +000031271 if test "$have_tiff" = 'yes'; then
31272 TIFF_DELEGATE_TRUE=
31273 TIFF_DELEGATE_FALSE='#'
31274else
31275 TIFF_DELEGATE_TRUE='#'
31276 TIFF_DELEGATE_FALSE=
31277fi
31278
cristy3ed852e2009-09-05 21:47:34 +000031279
31280
31281
31282#
cristyb1860752011-03-14 00:27:46 +000031283# Check for WEBP delegate library.
31284#
31285
31286# Check whether --with-webp was given.
31287if test "${with_webp+set}" = set; then :
31288 withval=$with_webp; with_webp=$withval
31289else
31290 with_webp='yes'
31291fi
31292
31293
31294if test "$with_webp" != 'yes'; then
31295 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31296fi
31297
31298have_webp='no'
31299WEBP_LIBS=''
31300if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031301 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31302$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31304$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031305 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31306$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031307 failed=0
31308 passed=0
31309 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31310if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31311 passed=`expr $passed + 1`
31312else
31313 failed=`expr $failed + 1`
31314fi
31315
31316
31317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31318$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31319if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31320 $as_echo_n "(cached) " >&6
31321else
31322 ac_check_lib_save_LIBS=$LIBS
31323LIBS="-lwebp $LIBS"
31324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31325/* end confdefs.h. */
31326
31327/* Override any GCC internal prototype to avoid an error.
31328 Use char because int might match the return type of a GCC
31329 builtin and then its argument prototype would still apply. */
31330#ifdef __cplusplus
31331extern "C"
31332#endif
31333char WebPDecodeRGB ();
31334int
31335main ()
31336{
31337return WebPDecodeRGB ();
31338 ;
31339 return 0;
31340}
31341_ACEOF
31342if ac_fn_c_try_link "$LINENO"; then :
31343 ac_cv_lib_webp_WebPDecodeRGB=yes
31344else
31345 ac_cv_lib_webp_WebPDecodeRGB=no
31346fi
31347rm -f core conftest.err conftest.$ac_objext \
31348 conftest$ac_exeext conftest.$ac_ext
31349LIBS=$ac_check_lib_save_LIBS
31350fi
31351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31352$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31353if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31354 passed=`expr $passed + 1`
31355else
31356 failed=`expr $failed + 1`
31357fi
31358
31359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31360$as_echo_n "checking if WEBP package is complete... " >&6; }
31361 if test $passed -gt 0; then
31362 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031363 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31364$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031365 have_webp='no (failed tests)'
31366 else
31367 WEBP_LIBS='-lwebp'
31368 LIBS="$WEBP_LIBS $LIBS"
31369
31370$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31371
cristy09b53e12011-10-14 12:47:22 +000031372 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31373$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031374 have_webp='yes'
31375 fi
31376 else
cristy09b53e12011-10-14 12:47:22 +000031377 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31378$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031379 fi
31380fi
31381 if test "$have_webp" = 'yes'; then
31382 WEBP_DELEGATE_TRUE=
31383 WEBP_DELEGATE_FALSE='#'
31384else
31385 WEBP_DELEGATE_TRUE='#'
31386 WEBP_DELEGATE_FALSE=
31387fi
31388
31389
31390
31391
31392#
cristy3ed852e2009-09-05 21:47:34 +000031393# Set Windows font directory.
31394#
31395
31396# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031397if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031398 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31399else
31400 with_windows_font_dir=''
31401fi
31402
31403if test "$with_windows_font_dir" != '' ; then
31404 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31405fi
31406
31407
31408#
31409# Check for WMF delegate library.
31410#
31411
31412# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031413if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031414 withval=$with_wmf; with_wmf=$withval
31415else
cristyfc3d0222012-02-07 15:05:57 +000031416 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031417fi
31418
31419
31420if test "$with_wmf" != 'yes'; then
31421 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31422fi
31423
31424have_wmf='no'
31425WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031426WMF_LIBS_DEPS=''
31427OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031428if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31430$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031432$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31434$as_echo "" >&6; }
31435 have_libwmf='no'
31436 have_libwmflite='no'
31437 have_libwmf_ipa_h='no'
31438
31439 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31440"
31441if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31442 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031443fi
31444
31445
cristy03f7cf92011-12-15 01:40:41 +000031446 if test "$have_libwmf_ipa_h" = 'yes'; then
31447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31448$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31449if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031450 $as_echo_n "(cached) " >&6
31451else
31452 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031453LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031455/* end confdefs.h. */
31456
31457/* Override any GCC internal prototype to avoid an error.
31458 Use char because int might match the return type of a GCC
31459 builtin and then its argument prototype would still apply. */
31460#ifdef __cplusplus
31461extern "C"
31462#endif
cristy03f7cf92011-12-15 01:40:41 +000031463char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031464int
31465main ()
31466{
cristy03f7cf92011-12-15 01:40:41 +000031467return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031468 ;
31469 return 0;
31470}
31471_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031472if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031473 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031474else
cristy03f7cf92011-12-15 01:40:41 +000031475 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031476fi
cristy8b350f62009-11-15 23:12:43 +000031477rm -f core conftest.err conftest.$ac_objext \
31478 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031479LIBS=$ac_check_lib_save_LIBS
31480fi
cristy03f7cf92011-12-15 01:40:41 +000031481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31482$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31483if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31484 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031485fi
31486
cristy03f7cf92011-12-15 01:40:41 +000031487 if test "$have_libwmflite" = 'yes'; then
31488
31489$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31490
31491 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031492 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031493 have_wmf='yes'
31494 else
31495 WMF_LIBS_DEPS=''
31496 WMF_CONFIG_LIBS=`libwmf-config --libs`
31497 for lib in xml2 expat freetype jpeg png z; do
31498 testlib="-l${lib}"
31499 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31500 done
31501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31502$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31503if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31504 $as_echo_n "(cached) " >&6
31505else
31506 ac_check_lib_save_LIBS=$LIBS
31507LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31509/* end confdefs.h. */
31510
31511/* Override any GCC internal prototype to avoid an error.
31512 Use char because int might match the return type of a GCC
31513 builtin and then its argument prototype would still apply. */
31514#ifdef __cplusplus
31515extern "C"
31516#endif
31517char wmf_api_create ();
31518int
31519main ()
31520{
31521return wmf_api_create ();
31522 ;
31523 return 0;
31524}
31525_ACEOF
31526if ac_fn_c_try_link "$LINENO"; then :
31527 ac_cv_lib_wmf_wmf_api_create=yes
31528else
31529 ac_cv_lib_wmf_wmf_api_create=no
31530fi
31531rm -f core conftest.err conftest.$ac_objext \
31532 conftest$ac_exeext conftest.$ac_ext
31533LIBS=$ac_check_lib_save_LIBS
31534fi
31535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31536$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31537if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31538 have_libwmf='yes'
31539fi
31540
31541 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031542
cristy8b350f62009-11-15 23:12:43 +000031543$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031544
cristy03f7cf92011-12-15 01:40:41 +000031545 WMF_LIBS='-lwmf'
31546 LIBS="$WMF_LIBS $LIBS"
31547 have_wmf='yes'
31548 else
31549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31550$as_echo "no -- some components failed test" >&6; }
31551 have_wmf='no (failed tests)'
31552 have_wmflite='no (failed tests)'
31553 LIBS="$OLIBS"
31554 WMF_LIBS=''
31555 fi
glennrp33e524b2011-08-24 17:41:57 +000031556 fi
cristy03f7cf92011-12-15 01:40:41 +000031557 fi
31558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31559$as_echo_n "checking if WMF package is complete... " >&6; }
31560 if test "$have_wmf" = 'yes'; then
31561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31562$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031563 else
cristy03f7cf92011-12-15 01:40:41 +000031564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31565$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031566 fi
cristy3ed852e2009-09-05 21:47:34 +000031567fi
cristy73bd4a52010-10-05 11:24:23 +000031568 if test "$have_wmf" = 'yes'; then
31569 WMF_DELEGATE_TRUE=
31570 WMF_DELEGATE_FALSE='#'
31571else
31572 WMF_DELEGATE_TRUE='#'
31573 WMF_DELEGATE_FALSE=
31574fi
31575
cristy3ed852e2009-09-05 21:47:34 +000031576
31577
31578
cristy81beccd2011-10-03 18:17:24 +000031579
31580
cristy3ed852e2009-09-05 21:47:34 +000031581#
31582# Check for XML delegate library.
31583#
31584
31585# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031586if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031587 withval=$with_xml; with_xml=$withval
31588else
cristyfc3d0222012-02-07 15:05:57 +000031589 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031590fi
31591
31592
cristy81beccd2011-10-03 18:17:24 +000031593if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031594 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31595fi
31596
cristy81beccd2011-10-03 18:17:24 +000031597have_xml='no'
31598XML_LIBS=''
31599if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031600 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31601$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31603$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031604 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31605$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031606 PERSIST_LDFLAGS=$LDFLAGS
31607 PERSIST_CPPFLAGS=$CPPFLAGS
31608 xml2_config=''
31609 # Extract the first word of "xml2-config", so it can be a program name with args.
31610set dummy xml2-config; ac_word=$2
31611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31612$as_echo_n "checking for $ac_word... " >&6; }
31613if ${ac_cv_path_xml2_config+:} false; then :
31614 $as_echo_n "(cached) " >&6
31615else
31616 case $xml2_config in
31617 [\\/]* | ?:[\\/]*)
31618 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31619 ;;
31620 *)
31621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31622for as_dir in $PATH
31623do
31624 IFS=$as_save_IFS
31625 test -z "$as_dir" && as_dir=.
31626 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000031628 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31630 break 2
31631 fi
31632done
31633 done
31634IFS=$as_save_IFS
31635
31636 ;;
31637esac
31638fi
31639xml2_config=$ac_cv_path_xml2_config
31640if test -n "$xml2_config"; then
31641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31642$as_echo "$xml2_config" >&6; }
31643else
31644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31645$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031646fi
31647
cristy81beccd2011-10-03 18:17:24 +000031648 if test -n "$xml2_config"; then
31649 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31650 # the shared library installed under /usr/lib, whereas the package
31651 # installs itself under $prefix/libxml and $prefix/lib.
31652 xml2_prefix=`xml2-config --prefix`
31653 if test -d "${xml2_prefix}/include/libxml2"; then
31654 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31655 fi
31656 if test "${xml2_prefix}" != '/usr'; then
31657 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31658 fi
31659 fi
31660 failed=0
31661 passed=0
31662 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31663if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31664 passed=`expr $passed + 1`
31665else
31666 failed=`expr $failed + 1`
31667fi
31668
31669
31670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31671$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31672if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31673 $as_echo_n "(cached) " >&6
31674else
31675 ac_check_lib_save_LIBS=$LIBS
31676LIBS="-lxml2 $LIBS"
31677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31678/* end confdefs.h. */
31679
31680/* Override any GCC internal prototype to avoid an error.
31681 Use char because int might match the return type of a GCC
31682 builtin and then its argument prototype would still apply. */
31683#ifdef __cplusplus
31684extern "C"
31685#endif
31686char xmlSAXVersion ();
31687int
31688main ()
31689{
31690return xmlSAXVersion ();
31691 ;
31692 return 0;
31693}
31694_ACEOF
31695if ac_fn_c_try_link "$LINENO"; then :
31696 ac_cv_lib_xml2_xmlSAXVersion=yes
31697else
31698 ac_cv_lib_xml2_xmlSAXVersion=no
31699fi
31700rm -f core conftest.err conftest.$ac_objext \
31701 conftest$ac_exeext conftest.$ac_ext
31702LIBS=$ac_check_lib_save_LIBS
31703fi
31704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31705$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31706if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31707 passed=`expr $passed + 1`
31708else
31709 failed=`expr $failed + 1`
31710fi
31711
31712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31713$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31714if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31715 $as_echo_n "(cached) " >&6
31716else
31717 ac_check_lib_save_LIBS=$LIBS
31718LIBS="-lxml2 $LIBS"
31719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31720/* end confdefs.h. */
31721
31722/* Override any GCC internal prototype to avoid an error.
31723 Use char because int might match the return type of a GCC
31724 builtin and then its argument prototype would still apply. */
31725#ifdef __cplusplus
31726extern "C"
31727#endif
31728char xmlParseChunk ();
31729int
31730main ()
31731{
31732return xmlParseChunk ();
31733 ;
31734 return 0;
31735}
31736_ACEOF
31737if ac_fn_c_try_link "$LINENO"; then :
31738 ac_cv_lib_xml2_xmlParseChunk=yes
31739else
31740 ac_cv_lib_xml2_xmlParseChunk=no
31741fi
31742rm -f core conftest.err conftest.$ac_objext \
31743 conftest$ac_exeext conftest.$ac_ext
31744LIBS=$ac_check_lib_save_LIBS
31745fi
31746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31747$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31748if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31749 passed=`expr $passed + 1`
31750else
31751 failed=`expr $failed + 1`
31752fi
31753
31754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31755$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31756if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31757 $as_echo_n "(cached) " >&6
31758else
31759 ac_check_lib_save_LIBS=$LIBS
31760LIBS="-lxml2 $LIBS"
31761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31762/* end confdefs.h. */
31763
31764/* Override any GCC internal prototype to avoid an error.
31765 Use char because int might match the return type of a GCC
31766 builtin and then its argument prototype would still apply. */
31767#ifdef __cplusplus
31768extern "C"
31769#endif
31770char xmlCreatePushParserCtxt ();
31771int
31772main ()
31773{
31774return xmlCreatePushParserCtxt ();
31775 ;
31776 return 0;
31777}
31778_ACEOF
31779if ac_fn_c_try_link "$LINENO"; then :
31780 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31781else
31782 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31783fi
31784rm -f core conftest.err conftest.$ac_objext \
31785 conftest$ac_exeext conftest.$ac_ext
31786LIBS=$ac_check_lib_save_LIBS
31787fi
31788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31789$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31790if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31791 passed=`expr $passed + 1`
31792else
31793 failed=`expr $failed + 1`
31794fi
31795
31796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31797$as_echo_n "checking if XML package is complete... " >&6; }
31798 if test $passed -gt 0; then
31799 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031800 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31801$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031802 have_xml='no (failed tests)'
31803 LDFLAGS="$PERSIST_LDFLAGS"
31804 CPPFLAGS="$PERSIST_CPPFLAGS"
31805 else
31806 XML_LIBS='-lxml2'
31807 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031808
cristy8b350f62009-11-15 23:12:43 +000031809$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031810
cristy09b53e12011-10-14 12:47:22 +000031811 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31812$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031813 have_xml='yes'
31814 fi
31815 else
cristy09b53e12011-10-14 12:47:22 +000031816 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31817$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031818 fi
31819fi
cristy73bd4a52010-10-05 11:24:23 +000031820 if test "$have_xml" = 'yes'; then
31821 XML_DELEGATE_TRUE=
31822 XML_DELEGATE_FALSE='#'
31823else
31824 XML_DELEGATE_TRUE='#'
31825 XML_DELEGATE_FALSE=
31826fi
31827
cristy3ed852e2009-09-05 21:47:34 +000031828
31829
31830
31831# Substitute compiler name to build/link PerlMagick
31832#
31833
31834
31835#
31836# Configure install Paths
31837#
cristy7def36a2011-10-28 19:04:41 +000031838
cristy2a11bef2011-10-28 18:33:11 +000031839# Path to ImageMagick header files
31840INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000031841INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
31842DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000031843case "${build_os}" in
31844 mingw* )
31845 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
31846 ;;
31847esac
31848
31849cat >>confdefs.h <<_ACEOF
31850#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
31851_ACEOF
31852
31853
cristy3ed852e2009-09-05 21:47:34 +000031854
31855# Subdirectory under lib to place ImageMagick lib files
31856LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31857
31858cat >>confdefs.h <<_ACEOF
31859#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31860_ACEOF
31861
31862
31863# Path to ImageMagick bin directory
31864EXECUTABLE_PATH="${BIN_DIR}"
31865DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31866case "${build_os}" in
31867 mingw* )
31868 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31869 ;;
31870esac
31871
31872cat >>confdefs.h <<_ACEOF
31873#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31874_ACEOF
31875
31876
31877
31878# Path to ImageMagick lib
31879LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31880DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31881case "${build_os}" in
31882 mingw* )
31883 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31884 ;;
31885esac
31886
31887cat >>confdefs.h <<_ACEOF
31888#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31889_ACEOF
31890
31891
31892
cristy3ed852e2009-09-05 21:47:34 +000031893#
cristy01ff9f32012-12-01 18:15:29 +000031894# path to modules lib
31895if test "x$MODULES_BASEDIRNAME" = "x"; then
31896 MODULES_BASEDIRNAME="modules"
31897fi
cristy3ed852e2009-09-05 21:47:34 +000031898
31899cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000031900#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000031901_ACEOF
31902
cristy01ff9f32012-12-01 18:15:29 +000031903
31904
31905if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000031906 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
31907else
cristy3ed852e2009-09-05 21:47:34 +000031908
31909cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000031910#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000031911_ACEOF
31912
cristycf4a3c22012-12-02 21:47:25 +000031913fi
cristy01ff9f32012-12-01 18:15:29 +000031914
31915
cristy371d4812012-12-01 19:48:10 +000031916MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000031917
31918MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
31919
31920
31921#
31922# path to coders lib
31923if test "x$CODER_DIRNAME" = "x"; then
31924 CODER_DIRNAME="coders"
31925fi
31926
31927cat >>confdefs.h <<_ACEOF
31928#define CODER_DIRNAME "$CODER_DIRNAME"
31929_ACEOF
31930
31931
31932
cristy371d4812012-12-01 19:48:10 +000031933CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000031934CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000031935
31936
31937#
31938# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000031939#
31940# path to coders lib
31941if test "x$FILTER_DIRNAME" = "x"; then
31942 FILTER_DIRNAME="filters"
31943fi
cristy3ed852e2009-09-05 21:47:34 +000031944
31945cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000031946#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000031947_ACEOF
31948
cristy3ed852e2009-09-05 21:47:34 +000031949
cristy3ed852e2009-09-05 21:47:34 +000031950
cristy371d4812012-12-01 19:48:10 +000031951FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000031952FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000031953
31954
31955#
31956# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000031957DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000031958DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31959DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031960case "${build_os}" in
31961 mingw* )
31962 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31963 ;;
31964esac
31965
31966cat >>confdefs.h <<_ACEOF
31967#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31968_ACEOF
31969
31970
31971
cristy2a11bef2011-10-28 18:33:11 +000031972# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000031973CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031974
31975cat >>confdefs.h <<_ACEOF
31976#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31977_ACEOF
31978
cristy7def36a2011-10-28 19:04:41 +000031979CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000031980DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31981case "${build_os}" in
31982 mingw* )
31983 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31984 ;;
31985esac
31986
31987cat >>confdefs.h <<_ACEOF
31988#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31989_ACEOF
31990
31991
31992
cristy2a11bef2011-10-28 18:33:11 +000031993# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000031994SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031995
31996cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031997#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031998_ACEOF
31999
cristy670aa3c2011-11-03 00:54:00 +000032000SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032001DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032002case "${build_os}" in
32003 mingw* )
cristy4f820712011-04-01 12:35:43 +000032004 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032005 ;;
32006esac
32007
32008cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032009#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032010_ACEOF
32011
32012
32013
cristy54378032012-12-04 15:52:20 +000032014#
32015# Subdirectory to place architecture-dependent configuration files.
32016if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32017 SHAREARCH_BASEDIRNAME="config"
32018fi
cristy670aa3c2011-11-03 00:54:00 +000032019
32020cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032021#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032022_ACEOF
32023
cristy54378032012-12-04 15:52:20 +000032024
32025
32026if test "x$SHAREARCH_DIRNAME" = "x"; then
32027 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32028else
cristy670aa3c2011-11-03 00:54:00 +000032029
32030cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032031#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032032_ACEOF
32033
cristy54378032012-12-04 15:52:20 +000032034fi
32035
32036
32037SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32038
32039SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032040
32041
cristy3ed852e2009-09-05 21:47:34 +000032042#
32043# program_transform_name is formed for use in a Makefile, so create a
32044# modified version for use in a shell script.
32045configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32046
32047# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032048{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32049$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032051$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032052{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32053$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032054AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032055BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032056BZIPDelegateDefault='bzip2'
32057BrowseDelegateDefault='xdg-open'
32058CGMDecodeDelegateDefault='ralcgm'
32059CatDelegateDefault='cat'
32060DNGDecodeDelegateDefault='ufraw-batch'
32061GVCDecodeDelegateDefault='dot'
32062DVIDecodeDelegateDefault='dvips'
32063EchoDelegateDefault='echo'
32064EditorDelegateDefault='xterm'
32065FIGDecodeDelegateDefault='fig2dev'
32066ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32067DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32068MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32069GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032070HPGLDecodeDelegateDefault='hp2xx'
32071HTMLDecodeDelegateDefault='html2ps'
32072ILBMDecodeDelegateDefault='ilbmtoppm'
32073ILBMEncodeDelegateDefault='ppmtoilbm'
32074LPDelegateDefault='lp'
32075LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032076LaunchDelegateDefault='gimp'
32077MANDelegateDefault='groff'
32078MPEGDecodeDelegateDefault='ffmpeg'
32079MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032080MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032081MVDelegateDefault='mv'
32082PCLDelegateDefault='pcl6'
32083PGPDecodeDelegateDefault='pgpv'
32084POVDelegateDefault='povray'
32085if test "$native_win32_build" = 'yes'; then
32086 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032087elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032088 PSDelegateDefault='gsc'
32089else
32090 PSDelegateDefault='gs'
32091fi
32092RLEEncodeDelegateDefault='rawtorle'
32093RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032094RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032095SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032096SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032097TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032098UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032099WMFDecodeDelegateDefault='wmf2eps'
32100WWWDecodeDelegateDefault='curl'
32101XPSDelegateDefault='gxps'
32102ZipDelegateDefault='gzip'
32103
32104# Search for delegates
32105# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32106set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032108$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032109if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032110 $as_echo_n "(cached) " >&6
32111else
32112 case $AutotraceDecodeDelegate in
32113 [\\/]* | ?:[\\/]*)
32114 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32115 ;;
32116 *)
32117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32118for as_dir in $PATH
32119do
32120 IFS=$as_save_IFS
32121 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032122 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032124 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032126 break 2
32127 fi
32128done
cristy8b350f62009-11-15 23:12:43 +000032129 done
cristy3ed852e2009-09-05 21:47:34 +000032130IFS=$as_save_IFS
32131
32132 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32133 ;;
32134esac
32135fi
32136AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32137if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032139$as_echo "$AutotraceDecodeDelegate" >&6; }
32140else
cristy8b350f62009-11-15 23:12:43 +000032141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032142$as_echo "no" >&6; }
32143fi
32144
32145
cristy3ed852e2009-09-05 21:47:34 +000032146# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32147set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032149$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032150if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032151 $as_echo_n "(cached) " >&6
32152else
32153 case $BlenderDecodeDelegate in
32154 [\\/]* | ?:[\\/]*)
32155 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32156 ;;
32157 *)
32158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32159for as_dir in $PATH
32160do
32161 IFS=$as_save_IFS
32162 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032163 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032165 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032167 break 2
32168 fi
32169done
cristy8b350f62009-11-15 23:12:43 +000032170 done
cristy3ed852e2009-09-05 21:47:34 +000032171IFS=$as_save_IFS
32172
32173 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32174 ;;
32175esac
32176fi
32177BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32178if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032180$as_echo "$BlenderDecodeDelegate" >&6; }
32181else
cristy8b350f62009-11-15 23:12:43 +000032182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032183$as_echo "no" >&6; }
32184fi
32185
32186
32187# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32188set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032190$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032191if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032192 $as_echo_n "(cached) " >&6
32193else
32194 case $BZIPDelegate in
32195 [\\/]* | ?:[\\/]*)
32196 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32197 ;;
32198 *)
32199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32200for as_dir in $PATH
32201do
32202 IFS=$as_save_IFS
32203 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032204 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032206 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032208 break 2
32209 fi
32210done
cristy8b350f62009-11-15 23:12:43 +000032211 done
cristy3ed852e2009-09-05 21:47:34 +000032212IFS=$as_save_IFS
32213
32214 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32215 ;;
32216esac
32217fi
32218BZIPDelegate=$ac_cv_path_BZIPDelegate
32219if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032221$as_echo "$BZIPDelegate" >&6; }
32222else
cristy8b350f62009-11-15 23:12:43 +000032223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032224$as_echo "no" >&6; }
32225fi
32226
32227
cristyc59f0e72012-08-27 12:59:33 +000032228for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32229do
32230 # Extract the first word of "$ac_prog", so it can be a program name with args.
32231set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032233$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032234if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032235 $as_echo_n "(cached) " >&6
32236else
32237 case $BrowseDelegate in
32238 [\\/]* | ?:[\\/]*)
32239 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32240 ;;
32241 *)
32242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32243for as_dir in $PATH
32244do
32245 IFS=$as_save_IFS
32246 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032249 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032251 break 2
32252 fi
32253done
cristy8b350f62009-11-15 23:12:43 +000032254 done
cristy3ed852e2009-09-05 21:47:34 +000032255IFS=$as_save_IFS
32256
cristy3ed852e2009-09-05 21:47:34 +000032257 ;;
32258esac
32259fi
32260BrowseDelegate=$ac_cv_path_BrowseDelegate
32261if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032263$as_echo "$BrowseDelegate" >&6; }
32264else
cristy8b350f62009-11-15 23:12:43 +000032265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032266$as_echo "no" >&6; }
32267fi
32268
32269
cristyc59f0e72012-08-27 12:59:33 +000032270 test -n "$BrowseDelegate" && break
32271done
32272test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32273
cristy3ed852e2009-09-05 21:47:34 +000032274# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32275set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032277$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032278if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032279 $as_echo_n "(cached) " >&6
32280else
32281 case $CGMDecodeDelegate in
32282 [\\/]* | ?:[\\/]*)
32283 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32284 ;;
32285 *)
32286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32287for as_dir in $PATH
32288do
32289 IFS=$as_save_IFS
32290 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032291 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032293 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032295 break 2
32296 fi
32297done
cristy8b350f62009-11-15 23:12:43 +000032298 done
cristy3ed852e2009-09-05 21:47:34 +000032299IFS=$as_save_IFS
32300
32301 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32302 ;;
32303esac
32304fi
32305CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32306if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032308$as_echo "$CGMDecodeDelegate" >&6; }
32309else
cristy8b350f62009-11-15 23:12:43 +000032310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032311$as_echo "no" >&6; }
32312fi
32313
32314
32315# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32316set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032318$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032319if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032320 $as_echo_n "(cached) " >&6
32321else
32322 case $CatDelegate in
32323 [\\/]* | ?:[\\/]*)
32324 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32325 ;;
32326 *)
32327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32328for as_dir in $PATH
32329do
32330 IFS=$as_save_IFS
32331 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032334 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032336 break 2
32337 fi
32338done
cristy8b350f62009-11-15 23:12:43 +000032339 done
cristy3ed852e2009-09-05 21:47:34 +000032340IFS=$as_save_IFS
32341
32342 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32343 ;;
32344esac
32345fi
32346CatDelegate=$ac_cv_path_CatDelegate
32347if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032349$as_echo "$CatDelegate" >&6; }
32350else
cristy8b350f62009-11-15 23:12:43 +000032351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032352$as_echo "no" >&6; }
32353fi
32354
32355
32356# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32357set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032359$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032360if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032361 $as_echo_n "(cached) " >&6
32362else
32363 case $DNGDecodeDelegate in
32364 [\\/]* | ?:[\\/]*)
32365 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32366 ;;
32367 *)
32368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32369for as_dir in $PATH
32370do
32371 IFS=$as_save_IFS
32372 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032373 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032375 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032377 break 2
32378 fi
32379done
cristy8b350f62009-11-15 23:12:43 +000032380 done
cristy3ed852e2009-09-05 21:47:34 +000032381IFS=$as_save_IFS
32382
32383 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32384 ;;
32385esac
32386fi
32387DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32388if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032390$as_echo "$DNGDecodeDelegate" >&6; }
32391else
cristy8b350f62009-11-15 23:12:43 +000032392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032393$as_echo "no" >&6; }
32394fi
32395
32396
32397# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32398set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032400$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032401if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032402 $as_echo_n "(cached) " >&6
32403else
32404 case $GVCDecodeDelegate in
32405 [\\/]* | ?:[\\/]*)
32406 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32407 ;;
32408 *)
32409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32410for as_dir in $PATH
32411do
32412 IFS=$as_save_IFS
32413 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032414 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032416 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032418 break 2
32419 fi
32420done
cristy8b350f62009-11-15 23:12:43 +000032421 done
cristy3ed852e2009-09-05 21:47:34 +000032422IFS=$as_save_IFS
32423
32424 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32425 ;;
32426esac
32427fi
32428GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32429if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032431$as_echo "$GVCDecodeDelegate" >&6; }
32432else
cristy8b350f62009-11-15 23:12:43 +000032433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032434$as_echo "no" >&6; }
32435fi
32436
32437
32438# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32439set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032441$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032442if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032443 $as_echo_n "(cached) " >&6
32444else
32445 case $DVIDecodeDelegate in
32446 [\\/]* | ?:[\\/]*)
32447 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32448 ;;
32449 *)
32450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32451for as_dir in $PATH
32452do
32453 IFS=$as_save_IFS
32454 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032457 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032459 break 2
32460 fi
32461done
cristy8b350f62009-11-15 23:12:43 +000032462 done
cristy3ed852e2009-09-05 21:47:34 +000032463IFS=$as_save_IFS
32464
32465 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32466 ;;
32467esac
32468fi
32469DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32470if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032472$as_echo "$DVIDecodeDelegate" >&6; }
32473else
cristy8b350f62009-11-15 23:12:43 +000032474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032475$as_echo "no" >&6; }
32476fi
32477
32478
32479# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32480set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032482$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032483if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032484 $as_echo_n "(cached) " >&6
32485else
32486 case $EchoDelegate in
32487 [\\/]* | ?:[\\/]*)
32488 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32489 ;;
32490 *)
32491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32492for as_dir in $PATH
32493do
32494 IFS=$as_save_IFS
32495 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032496 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032498 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032500 break 2
32501 fi
32502done
cristy8b350f62009-11-15 23:12:43 +000032503 done
cristy3ed852e2009-09-05 21:47:34 +000032504IFS=$as_save_IFS
32505
32506 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32507 ;;
32508esac
32509fi
32510EchoDelegate=$ac_cv_path_EchoDelegate
32511if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032513$as_echo "$EchoDelegate" >&6; }
32514else
cristy8b350f62009-11-15 23:12:43 +000032515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032516$as_echo "no" >&6; }
32517fi
32518
32519
32520# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32521set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032523$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032524if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032525 $as_echo_n "(cached) " >&6
32526else
32527 case $EditorDelegate in
32528 [\\/]* | ?:[\\/]*)
32529 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32530 ;;
32531 *)
32532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32533for as_dir in $PATH
32534do
32535 IFS=$as_save_IFS
32536 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032537 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032539 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032541 break 2
32542 fi
32543done
cristy8b350f62009-11-15 23:12:43 +000032544 done
cristy3ed852e2009-09-05 21:47:34 +000032545IFS=$as_save_IFS
32546
32547 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32548 ;;
32549esac
32550fi
32551EditorDelegate=$ac_cv_path_EditorDelegate
32552if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032554$as_echo "$EditorDelegate" >&6; }
32555else
cristy8b350f62009-11-15 23:12:43 +000032556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032557$as_echo "no" >&6; }
32558fi
32559
32560
32561# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32562set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032564$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032565if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032566 $as_echo_n "(cached) " >&6
32567else
32568 case $FIGDecodeDelegate in
32569 [\\/]* | ?:[\\/]*)
32570 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32571 ;;
32572 *)
32573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32574for as_dir in $PATH
32575do
32576 IFS=$as_save_IFS
32577 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032578 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032580 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032582 break 2
32583 fi
32584done
cristy8b350f62009-11-15 23:12:43 +000032585 done
cristy3ed852e2009-09-05 21:47:34 +000032586IFS=$as_save_IFS
32587
32588 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32589 ;;
32590esac
32591fi
32592FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32593if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032595$as_echo "$FIGDecodeDelegate" >&6; }
32596else
cristy8b350f62009-11-15 23:12:43 +000032597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032598$as_echo "no" >&6; }
32599fi
32600
32601
32602# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32603set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032605$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032606if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032607 $as_echo_n "(cached) " >&6
32608else
32609 case $ConvertDelegate in
32610 [\\/]* | ?:[\\/]*)
32611 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32612 ;;
32613 *)
32614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32615for as_dir in $PATH
32616do
32617 IFS=$as_save_IFS
32618 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032619 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032621 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032623 break 2
32624 fi
32625done
cristy8b350f62009-11-15 23:12:43 +000032626 done
cristy3ed852e2009-09-05 21:47:34 +000032627IFS=$as_save_IFS
32628
32629 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32630 ;;
32631esac
32632fi
32633ConvertDelegate=$ac_cv_path_ConvertDelegate
32634if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032636$as_echo "$ConvertDelegate" >&6; }
32637else
cristy8b350f62009-11-15 23:12:43 +000032638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032639$as_echo "no" >&6; }
32640fi
32641
32642
32643# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32644set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032646$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032647if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032648 $as_echo_n "(cached) " >&6
32649else
32650 case $DisplayDelegate in
32651 [\\/]* | ?:[\\/]*)
32652 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32653 ;;
32654 *)
32655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32656for as_dir in $PATH
32657do
32658 IFS=$as_save_IFS
32659 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032662 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032664 break 2
32665 fi
32666done
cristy8b350f62009-11-15 23:12:43 +000032667 done
cristy3ed852e2009-09-05 21:47:34 +000032668IFS=$as_save_IFS
32669
32670 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32671 ;;
32672esac
32673fi
32674DisplayDelegate=$ac_cv_path_DisplayDelegate
32675if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032677$as_echo "$DisplayDelegate" >&6; }
32678else
cristy8b350f62009-11-15 23:12:43 +000032679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032680$as_echo "no" >&6; }
32681fi
32682
32683
32684# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32685set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032688if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032689 $as_echo_n "(cached) " >&6
32690else
32691 case $MogrifyDelegate in
32692 [\\/]* | ?:[\\/]*)
32693 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32694 ;;
32695 *)
32696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32697for as_dir in $PATH
32698do
32699 IFS=$as_save_IFS
32700 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032703 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032705 break 2
32706 fi
32707done
cristy8b350f62009-11-15 23:12:43 +000032708 done
cristy3ed852e2009-09-05 21:47:34 +000032709IFS=$as_save_IFS
32710
32711 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32712 ;;
32713esac
32714fi
32715MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32716if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032718$as_echo "$MogrifyDelegate" >&6; }
32719else
cristy8b350f62009-11-15 23:12:43 +000032720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032721$as_echo "no" >&6; }
32722fi
32723
32724
32725# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32726set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032728$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032729if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032730 $as_echo_n "(cached) " >&6
32731else
32732 case $GnuplotDecodeDelegate in
32733 [\\/]* | ?:[\\/]*)
32734 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32735 ;;
32736 *)
32737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32738for as_dir in $PATH
32739do
32740 IFS=$as_save_IFS
32741 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032742 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032744 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032746 break 2
32747 fi
32748done
cristy8b350f62009-11-15 23:12:43 +000032749 done
cristy3ed852e2009-09-05 21:47:34 +000032750IFS=$as_save_IFS
32751
32752 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32753 ;;
32754esac
32755fi
32756GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32757if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032759$as_echo "$GnuplotDecodeDelegate" >&6; }
32760else
cristy8b350f62009-11-15 23:12:43 +000032761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032762$as_echo "no" >&6; }
32763fi
32764
32765
cristy3ed852e2009-09-05 21:47:34 +000032766# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32767set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032769$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032770if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032771 $as_echo_n "(cached) " >&6
32772else
32773 case $HPGLDecodeDelegate in
32774 [\\/]* | ?:[\\/]*)
32775 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32776 ;;
32777 *)
32778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32779for as_dir in $PATH
32780do
32781 IFS=$as_save_IFS
32782 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032785 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032787 break 2
32788 fi
32789done
cristy8b350f62009-11-15 23:12:43 +000032790 done
cristy3ed852e2009-09-05 21:47:34 +000032791IFS=$as_save_IFS
32792
32793 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32794 ;;
32795esac
32796fi
32797HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32798if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032800$as_echo "$HPGLDecodeDelegate" >&6; }
32801else
cristy8b350f62009-11-15 23:12:43 +000032802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032803$as_echo "no" >&6; }
32804fi
32805
32806
32807# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32808set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032810$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032811if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032812 $as_echo_n "(cached) " >&6
32813else
32814 case $HTMLDecodeDelegate in
32815 [\\/]* | ?:[\\/]*)
32816 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32817 ;;
32818 *)
32819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32820for as_dir in $PATH
32821do
32822 IFS=$as_save_IFS
32823 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032824 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032826 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032828 break 2
32829 fi
32830done
cristy8b350f62009-11-15 23:12:43 +000032831 done
cristy3ed852e2009-09-05 21:47:34 +000032832IFS=$as_save_IFS
32833
32834 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32835 ;;
32836esac
32837fi
32838HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32839if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032841$as_echo "$HTMLDecodeDelegate" >&6; }
32842else
cristy8b350f62009-11-15 23:12:43 +000032843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032844$as_echo "no" >&6; }
32845fi
32846
32847
32848# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32849set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032852if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032853 $as_echo_n "(cached) " >&6
32854else
32855 case $ILBMDecodeDelegate in
32856 [\\/]* | ?:[\\/]*)
32857 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32858 ;;
32859 *)
32860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32861for as_dir in $PATH
32862do
32863 IFS=$as_save_IFS
32864 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032865 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032867 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032869 break 2
32870 fi
32871done
cristy8b350f62009-11-15 23:12:43 +000032872 done
cristy3ed852e2009-09-05 21:47:34 +000032873IFS=$as_save_IFS
32874
32875 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32876 ;;
32877esac
32878fi
32879ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32880if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032882$as_echo "$ILBMDecodeDelegate" >&6; }
32883else
cristy8b350f62009-11-15 23:12:43 +000032884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032885$as_echo "no" >&6; }
32886fi
32887
32888
32889# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32890set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032892$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032893if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032894 $as_echo_n "(cached) " >&6
32895else
32896 case $ILBMEncodeDelegate in
32897 [\\/]* | ?:[\\/]*)
32898 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32899 ;;
32900 *)
32901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32902for as_dir in $PATH
32903do
32904 IFS=$as_save_IFS
32905 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032906 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032908 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032910 break 2
32911 fi
32912done
cristy8b350f62009-11-15 23:12:43 +000032913 done
cristy3ed852e2009-09-05 21:47:34 +000032914IFS=$as_save_IFS
32915
32916 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32917 ;;
32918esac
32919fi
32920ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32921if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032923$as_echo "$ILBMEncodeDelegate" >&6; }
32924else
cristy8b350f62009-11-15 23:12:43 +000032925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032926$as_echo "no" >&6; }
32927fi
32928
32929
32930# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32931set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032934if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032935 $as_echo_n "(cached) " >&6
32936else
32937 case $LPDelegate in
32938 [\\/]* | ?:[\\/]*)
32939 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32940 ;;
32941 *)
32942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32943for as_dir in $PATH
32944do
32945 IFS=$as_save_IFS
32946 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032947 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032949 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032951 break 2
32952 fi
32953done
cristy8b350f62009-11-15 23:12:43 +000032954 done
cristy3ed852e2009-09-05 21:47:34 +000032955IFS=$as_save_IFS
32956
32957 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32958 ;;
32959esac
32960fi
32961LPDelegate=$ac_cv_path_LPDelegate
32962if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032964$as_echo "$LPDelegate" >&6; }
32965else
cristy8b350f62009-11-15 23:12:43 +000032966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032967$as_echo "no" >&6; }
32968fi
32969
32970
32971# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32972set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032974$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032975if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032976 $as_echo_n "(cached) " >&6
32977else
32978 case $LPRDelegate in
32979 [\\/]* | ?:[\\/]*)
32980 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32981 ;;
32982 *)
32983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32984for as_dir in $PATH
32985do
32986 IFS=$as_save_IFS
32987 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032988 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032990 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032992 break 2
32993 fi
32994done
cristy8b350f62009-11-15 23:12:43 +000032995 done
cristy3ed852e2009-09-05 21:47:34 +000032996IFS=$as_save_IFS
32997
32998 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32999 ;;
33000esac
33001fi
33002LPRDelegate=$ac_cv_path_LPRDelegate
33003if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033005$as_echo "$LPRDelegate" >&6; }
33006else
cristy8b350f62009-11-15 23:12:43 +000033007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033008$as_echo "no" >&6; }
33009fi
33010
33011
cristy3ed852e2009-09-05 21:47:34 +000033012# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33013set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033015$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033016if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033017 $as_echo_n "(cached) " >&6
33018else
33019 case $LaunchDelegate in
33020 [\\/]* | ?:[\\/]*)
33021 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33022 ;;
33023 *)
33024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33025for as_dir in $PATH
33026do
33027 IFS=$as_save_IFS
33028 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033029 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033031 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033 break 2
33034 fi
33035done
cristy8b350f62009-11-15 23:12:43 +000033036 done
cristy3ed852e2009-09-05 21:47:34 +000033037IFS=$as_save_IFS
33038
33039 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33040 ;;
33041esac
33042fi
33043LaunchDelegate=$ac_cv_path_LaunchDelegate
33044if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033046$as_echo "$LaunchDelegate" >&6; }
33047else
cristy8b350f62009-11-15 23:12:43 +000033048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033049$as_echo "no" >&6; }
33050fi
33051
33052
33053# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33054set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033056$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033057if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033058 $as_echo_n "(cached) " >&6
33059else
33060 case $MANDelegate in
33061 [\\/]* | ?:[\\/]*)
33062 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33063 ;;
33064 *)
33065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33066for as_dir in $PATH
33067do
33068 IFS=$as_save_IFS
33069 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033070 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033072 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033074 break 2
33075 fi
33076done
cristy8b350f62009-11-15 23:12:43 +000033077 done
cristy3ed852e2009-09-05 21:47:34 +000033078IFS=$as_save_IFS
33079
33080 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33081 ;;
33082esac
33083fi
33084MANDelegate=$ac_cv_path_MANDelegate
33085if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033087$as_echo "$MANDelegate" >&6; }
33088else
cristy8b350f62009-11-15 23:12:43 +000033089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033090$as_echo "no" >&6; }
33091fi
33092
33093
33094# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33095set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033097$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033098if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033099 $as_echo_n "(cached) " >&6
33100else
33101 case $MPEGDecodeDelegate in
33102 [\\/]* | ?:[\\/]*)
33103 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33104 ;;
33105 *)
33106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33107for as_dir in $PATH
33108do
33109 IFS=$as_save_IFS
33110 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033111 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033113 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033115 break 2
33116 fi
33117done
cristy8b350f62009-11-15 23:12:43 +000033118 done
cristy3ed852e2009-09-05 21:47:34 +000033119IFS=$as_save_IFS
33120
33121 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33122 ;;
33123esac
33124fi
33125MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33126if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033128$as_echo "$MPEGDecodeDelegate" >&6; }
33129else
cristy8b350f62009-11-15 23:12:43 +000033130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033131$as_echo "no" >&6; }
33132fi
33133
33134
33135# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33136set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033138$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033139if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033140 $as_echo_n "(cached) " >&6
33141else
33142 case $MPEGEncodeDelegate in
33143 [\\/]* | ?:[\\/]*)
33144 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33145 ;;
33146 *)
33147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33148for as_dir in $PATH
33149do
33150 IFS=$as_save_IFS
33151 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033152 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033154 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033156 break 2
33157 fi
33158done
cristy8b350f62009-11-15 23:12:43 +000033159 done
cristy3ed852e2009-09-05 21:47:34 +000033160IFS=$as_save_IFS
33161
33162 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33163 ;;
33164esac
33165fi
33166MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33167if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033169$as_echo "$MPEGEncodeDelegate" >&6; }
33170else
cristy8b350f62009-11-15 23:12:43 +000033171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033172$as_echo "no" >&6; }
33173fi
33174
33175
cristy935c86e2010-06-05 23:50:07 +000033176# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33177set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33179$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033180if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033181 $as_echo_n "(cached) " >&6
33182else
33183 case $MrSIDDecodeDelegate in
33184 [\\/]* | ?:[\\/]*)
33185 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33186 ;;
33187 *)
33188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33189for as_dir in $PATH
33190do
33191 IFS=$as_save_IFS
33192 test -z "$as_dir" && as_dir=.
33193 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033195 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33197 break 2
33198 fi
33199done
33200 done
33201IFS=$as_save_IFS
33202
33203 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33204 ;;
33205esac
33206fi
33207MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33208if test -n "$MrSIDDecodeDelegate"; then
33209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33210$as_echo "$MrSIDDecodeDelegate" >&6; }
33211else
33212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33213$as_echo "no" >&6; }
33214fi
33215
33216
cristy3ed852e2009-09-05 21:47:34 +000033217# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33218set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033220$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033221if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033222 $as_echo_n "(cached) " >&6
33223else
33224 case $MVDelegate in
33225 [\\/]* | ?:[\\/]*)
33226 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33227 ;;
33228 *)
33229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33230for as_dir in $PATH
33231do
33232 IFS=$as_save_IFS
33233 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033234 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033236 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033238 break 2
33239 fi
33240done
cristy8b350f62009-11-15 23:12:43 +000033241 done
cristy3ed852e2009-09-05 21:47:34 +000033242IFS=$as_save_IFS
33243
33244 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33245 ;;
33246esac
33247fi
33248MVDelegate=$ac_cv_path_MVDelegate
33249if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033251$as_echo "$MVDelegate" >&6; }
33252else
cristy8b350f62009-11-15 23:12:43 +000033253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033254$as_echo "no" >&6; }
33255fi
33256
33257
33258# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33259set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033261$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033262if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033263 $as_echo_n "(cached) " >&6
33264else
33265 case $PCLDelegate in
33266 [\\/]* | ?:[\\/]*)
33267 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33268 ;;
33269 *)
33270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33271for as_dir in $PATH
33272do
33273 IFS=$as_save_IFS
33274 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033275 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033277 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033279 break 2
33280 fi
33281done
cristy8b350f62009-11-15 23:12:43 +000033282 done
cristy3ed852e2009-09-05 21:47:34 +000033283IFS=$as_save_IFS
33284
33285 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33286 ;;
33287esac
33288fi
33289PCLDelegate=$ac_cv_path_PCLDelegate
33290if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033292$as_echo "$PCLDelegate" >&6; }
33293else
cristy8b350f62009-11-15 23:12:43 +000033294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033295$as_echo "no" >&6; }
33296fi
33297
33298
33299# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33300set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033302$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033303if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033304 $as_echo_n "(cached) " >&6
33305else
33306 case $PGPDecodeDelegate in
33307 [\\/]* | ?:[\\/]*)
33308 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33309 ;;
33310 *)
33311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33312for as_dir in $PATH
33313do
33314 IFS=$as_save_IFS
33315 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033316 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033318 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033320 break 2
33321 fi
33322done
cristy8b350f62009-11-15 23:12:43 +000033323 done
cristy3ed852e2009-09-05 21:47:34 +000033324IFS=$as_save_IFS
33325
33326 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33327 ;;
33328esac
33329fi
33330PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33331if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033333$as_echo "$PGPDecodeDelegate" >&6; }
33334else
cristy8b350f62009-11-15 23:12:43 +000033335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033336$as_echo "no" >&6; }
33337fi
33338
33339
33340# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33341set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033343$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033344if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033345 $as_echo_n "(cached) " >&6
33346else
33347 case $POVDelegate in
33348 [\\/]* | ?:[\\/]*)
33349 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33350 ;;
33351 *)
33352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33353for as_dir in $PATH
33354do
33355 IFS=$as_save_IFS
33356 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033359 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033361 break 2
33362 fi
33363done
cristy8b350f62009-11-15 23:12:43 +000033364 done
cristy3ed852e2009-09-05 21:47:34 +000033365IFS=$as_save_IFS
33366
33367 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33368 ;;
33369esac
33370fi
33371POVDelegate=$ac_cv_path_POVDelegate
33372if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033374$as_echo "$POVDelegate" >&6; }
33375else
cristy8b350f62009-11-15 23:12:43 +000033376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033377$as_echo "no" >&6; }
33378fi
33379
33380
33381for ac_prog in gsx gsc "$PSDelegateDefault"
33382do
33383 # Extract the first word of "$ac_prog", so it can be a program name with args.
33384set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033386$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033387if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033388 $as_echo_n "(cached) " >&6
33389else
33390 case $PSDelegate in
33391 [\\/]* | ?:[\\/]*)
33392 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33393 ;;
33394 *)
33395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33396for as_dir in $PATH
33397do
33398 IFS=$as_save_IFS
33399 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033402 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033404 break 2
33405 fi
33406done
cristy8b350f62009-11-15 23:12:43 +000033407 done
cristy3ed852e2009-09-05 21:47:34 +000033408IFS=$as_save_IFS
33409
33410 ;;
33411esac
33412fi
33413PSDelegate=$ac_cv_path_PSDelegate
33414if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033416$as_echo "$PSDelegate" >&6; }
33417else
cristy8b350f62009-11-15 23:12:43 +000033418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033419$as_echo "no" >&6; }
33420fi
33421
33422
33423 test -n "$PSDelegate" && break
33424done
33425test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33426
33427# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33428set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033430$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033431if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033432 $as_echo_n "(cached) " >&6
33433else
33434 case $RLEEncodeDelegate in
33435 [\\/]* | ?:[\\/]*)
33436 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33437 ;;
33438 *)
33439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33440for as_dir in $PATH
33441do
33442 IFS=$as_save_IFS
33443 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033444 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033446 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033448 break 2
33449 fi
33450done
cristy8b350f62009-11-15 23:12:43 +000033451 done
cristy3ed852e2009-09-05 21:47:34 +000033452IFS=$as_save_IFS
33453
33454 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33455 ;;
33456esac
33457fi
33458RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33459if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033461$as_echo "$RLEEncodeDelegate" >&6; }
33462else
cristy8b350f62009-11-15 23:12:43 +000033463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033464$as_echo "no" >&6; }
33465fi
33466
33467
33468# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33469set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033471$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033472if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033473 $as_echo_n "(cached) " >&6
33474else
33475 case $RMDelegate in
33476 [\\/]* | ?:[\\/]*)
33477 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33478 ;;
33479 *)
33480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33481for as_dir in $PATH
33482do
33483 IFS=$as_save_IFS
33484 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033485 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033487 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033489 break 2
33490 fi
33491done
cristy8b350f62009-11-15 23:12:43 +000033492 done
cristy3ed852e2009-09-05 21:47:34 +000033493IFS=$as_save_IFS
33494
33495 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33496 ;;
33497esac
33498fi
33499RMDelegate=$ac_cv_path_RMDelegate
33500if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033502$as_echo "$RMDelegate" >&6; }
33503else
cristy8b350f62009-11-15 23:12:43 +000033504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033505$as_echo "no" >&6; }
33506fi
33507
33508
cristy4689cf02010-02-17 21:15:45 +000033509# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33510set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33512$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033513if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033514 $as_echo_n "(cached) " >&6
33515else
33516 case $RSVGDecodeDelegate in
33517 [\\/]* | ?:[\\/]*)
33518 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33519 ;;
33520 *)
33521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33522for as_dir in $PATH
33523do
33524 IFS=$as_save_IFS
33525 test -z "$as_dir" && as_dir=.
33526 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033528 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33530 break 2
33531 fi
33532done
33533 done
33534IFS=$as_save_IFS
33535
33536 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33537 ;;
33538esac
33539fi
33540RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33541if test -n "$RSVGDecodeDelegate"; then
33542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33543$as_echo "$RSVGDecodeDelegate" >&6; }
33544else
33545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33546$as_echo "no" >&6; }
33547fi
33548
33549
cristy3ed852e2009-09-05 21:47:34 +000033550# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33551set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033553$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033554if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033555 $as_echo_n "(cached) " >&6
33556else
33557 case $SCANDecodeDelegate in
33558 [\\/]* | ?:[\\/]*)
33559 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33560 ;;
33561 *)
33562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33563for as_dir in $PATH
33564do
33565 IFS=$as_save_IFS
33566 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033567 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033569 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033571 break 2
33572 fi
33573done
cristy8b350f62009-11-15 23:12:43 +000033574 done
cristy3ed852e2009-09-05 21:47:34 +000033575IFS=$as_save_IFS
33576
33577 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33578 ;;
33579esac
33580fi
33581SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33582if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584$as_echo "$SCANDecodeDelegate" >&6; }
33585else
cristy8b350f62009-11-15 23:12:43 +000033586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033587$as_echo "no" >&6; }
33588fi
33589
33590
cristyec6934f2012-08-14 18:38:40 +000033591# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
33592set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
33593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33594$as_echo_n "checking for $ac_word... " >&6; }
33595if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
33596 $as_echo_n "(cached) " >&6
33597else
33598 case $SVGDecodeDelegate in
33599 [\\/]* | ?:[\\/]*)
33600 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
33601 ;;
33602 *)
33603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33604for as_dir in $PATH
33605do
33606 IFS=$as_save_IFS
33607 test -z "$as_dir" && as_dir=.
33608 for ac_exec_ext in '' $ac_executable_extensions; do
33609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33610 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33612 break 2
33613 fi
33614done
33615 done
33616IFS=$as_save_IFS
33617
33618 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
33619 ;;
33620esac
33621fi
33622SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
33623if test -n "$SVGDecodeDelegate"; then
33624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
33625$as_echo "$SVGDecodeDelegate" >&6; }
33626else
33627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33628$as_echo "no" >&6; }
33629fi
33630
33631
cristy3ed852e2009-09-05 21:47:34 +000033632# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33633set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033635$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033636if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033637 $as_echo_n "(cached) " >&6
33638else
33639 case $TXTDelegate in
33640 [\\/]* | ?:[\\/]*)
33641 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33642 ;;
33643 *)
33644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33645for as_dir in $PATH
33646do
33647 IFS=$as_save_IFS
33648 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033649 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033651 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033653 break 2
33654 fi
33655done
cristy8b350f62009-11-15 23:12:43 +000033656 done
cristy3ed852e2009-09-05 21:47:34 +000033657IFS=$as_save_IFS
33658
33659 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33660 ;;
33661esac
33662fi
33663TXTDelegate=$ac_cv_path_TXTDelegate
33664if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033666$as_echo "$TXTDelegate" >&6; }
33667else
cristy8b350f62009-11-15 23:12:43 +000033668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033669$as_echo "no" >&6; }
33670fi
33671
33672
cristy5ac9ac82010-07-29 13:24:24 +000033673# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33674set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33676$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033677if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033678 $as_echo_n "(cached) " >&6
33679else
33680 case $UniconvertorDelegate in
33681 [\\/]* | ?:[\\/]*)
33682 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33683 ;;
33684 *)
33685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33686for as_dir in $PATH
33687do
33688 IFS=$as_save_IFS
33689 test -z "$as_dir" && as_dir=.
33690 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000033692 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33694 break 2
33695 fi
33696done
33697 done
33698IFS=$as_save_IFS
33699
33700 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33701 ;;
33702esac
33703fi
33704UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33705if test -n "$UniconvertorDelegate"; then
33706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33707$as_echo "$UniconvertorDelegate" >&6; }
33708else
33709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33710$as_echo "no" >&6; }
33711fi
33712
33713
cristy3ed852e2009-09-05 21:47:34 +000033714# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33715set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033717$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033718if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033719 $as_echo_n "(cached) " >&6
33720else
33721 case $WMFDecodeDelegate in
33722 [\\/]* | ?:[\\/]*)
33723 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33724 ;;
33725 *)
33726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33727for as_dir in $PATH
33728do
33729 IFS=$as_save_IFS
33730 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033731 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033733 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033735 break 2
33736 fi
33737done
cristy8b350f62009-11-15 23:12:43 +000033738 done
cristy3ed852e2009-09-05 21:47:34 +000033739IFS=$as_save_IFS
33740
33741 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33742 ;;
33743esac
33744fi
33745WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33746if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033748$as_echo "$WMFDecodeDelegate" >&6; }
33749else
cristy8b350f62009-11-15 23:12:43 +000033750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033751$as_echo "no" >&6; }
33752fi
33753
33754
33755# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33756set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033759if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033760 $as_echo_n "(cached) " >&6
33761else
33762 case $WWWDecodeDelegate in
33763 [\\/]* | ?:[\\/]*)
33764 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33765 ;;
33766 *)
33767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33768for as_dir in $PATH
33769do
33770 IFS=$as_save_IFS
33771 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033772 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033774 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033776 break 2
33777 fi
33778done
cristy8b350f62009-11-15 23:12:43 +000033779 done
cristy3ed852e2009-09-05 21:47:34 +000033780IFS=$as_save_IFS
33781
33782 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33783 ;;
33784esac
33785fi
33786WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33787if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033789$as_echo "$WWWDecodeDelegate" >&6; }
33790else
cristy8b350f62009-11-15 23:12:43 +000033791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033792$as_echo "no" >&6; }
33793fi
33794
33795
33796# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33797set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033799$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033800if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033801 $as_echo_n "(cached) " >&6
33802else
33803 case $XPSDelegate in
33804 [\\/]* | ?:[\\/]*)
33805 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33806 ;;
33807 *)
33808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33809for as_dir in $PATH
33810do
33811 IFS=$as_save_IFS
33812 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033813 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033815 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033817 break 2
33818 fi
33819done
cristy8b350f62009-11-15 23:12:43 +000033820 done
cristy3ed852e2009-09-05 21:47:34 +000033821IFS=$as_save_IFS
33822
33823 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33824 ;;
33825esac
33826fi
33827XPSDelegate=$ac_cv_path_XPSDelegate
33828if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033830$as_echo "$XPSDelegate" >&6; }
33831else
cristy8b350f62009-11-15 23:12:43 +000033832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033833$as_echo "no" >&6; }
33834fi
33835
33836
33837# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33838set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033841if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033842 $as_echo_n "(cached) " >&6
33843else
33844 case $ZipDelegate in
33845 [\\/]* | ?:[\\/]*)
33846 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33847 ;;
33848 *)
33849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33850for as_dir in $PATH
33851do
33852 IFS=$as_save_IFS
33853 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033854 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033856 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033858 break 2
33859 fi
33860done
cristy8b350f62009-11-15 23:12:43 +000033861 done
cristy3ed852e2009-09-05 21:47:34 +000033862IFS=$as_save_IFS
33863
33864 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33865 ;;
33866esac
33867fi
33868ZipDelegate=$ac_cv_path_ZipDelegate
33869if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033871$as_echo "$ZipDelegate" >&6; }
33872else
cristy8b350f62009-11-15 23:12:43 +000033873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033874$as_echo "no" >&6; }
33875fi
33876
33877
33878
33879# Prefer lpr to lp; lp needs options tacked on.
33880if test "$LPRDelegate" != no; then
33881 PrintDelegate="$LPRDelegate"
33882else
33883 PrintDelegate="$LPDelegate -c -s"
33884fi
33885
33886
33887# Installed ImageMagick utiltity paths
33888ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33889DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33890MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33891
33892# Set delegate booleans
33893have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33894have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33895have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33896have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33897have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033898have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033899have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33900have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033901have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33902have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33903
33904#
33905# Test for font directories
33906#
33907type_include_files=''
33908
cristy430a7312010-01-21 20:44:04 +000033909# Dejavu fonts.
33910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33911$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33912dejavu_font_dir=''
33913if test "${with_dejavu_font_dir}" != 'default'; then
33914 dejavu_font_dir="${with_dejavu_font_dir}/"
33915else
33916 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33917 if test -f "${font_dir}DejaVuSerif.ttf"; then
33918 dejavu_font_dir="${font_dir}"
33919 break 1
33920 fi
33921 done
33922fi
33923if test "${dejavu_font_dir}x" != 'x'; then
33924 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033925 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33926$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000033927else
cristy09b53e12011-10-14 12:47:22 +000033928 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33929$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000033930fi
33931
33932
cristy3ed852e2009-09-05 21:47:34 +000033933# Windows
33934windows_font_dir=''
33935if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33936 windows_font_dir="${with_windows_font_dir}/"
33937fi
cristy430a7312010-01-21 20:44:04 +000033938if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033939 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33940 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33941 fi
33942 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33943 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33944 fi
33945 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33946 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33947 fi
33948fi
cristy430a7312010-01-21 20:44:04 +000033949if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033950 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33951fi
33952
33953
33954# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033956$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33957ghostscript_font_dir=''
33958if test "${with_gs_font_dir}" != 'default'; then
33959 ghostscript_font_dir="${with_gs_font_dir}/"
33960else
33961 if test "${native_win32_build}" = 'yes'; then
33962 # Native Windows Build
33963 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33964 if test -f "${font_dir}a010013l.pfb"; then
33965 ghostscript_font_dir="$font_dir"
33966 break 1
33967 fi
33968 done
33969 if test "${PSDelegate}" != 'gswin32c'; then
33970 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33971 fi
33972 else
33973 # Linux / Mac OS X / Unix Build
33974 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
33975 if test -f "${font_dir}a010013l.pfb"; then
33976 ghostscript_font_dir="${font_dir}"
33977 break 1
33978 fi
33979 done
33980 if test "${ghostscript_font_dir}x" = 'x'; then
33981 if test "$PSDelegate" != 'gs'; then
33982 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33983 fi
33984 fi
33985 fi
33986fi
33987if test "${ghostscript_font_dir}x" != 'x'; then
33988 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033989 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
33990$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000033991else
cristy09b53e12011-10-14 12:47:22 +000033992 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33993$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000033994fi
33995
33996case "${build_os}" in
33997 mingw* )
33998 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33999 ;;
34000esac
34001
34002
34003
34004#
34005# Handle case where user doesn't want frozen paths
34006#
34007if test "$with_frozenpaths" != 'yes'; then
34008 # Re-set delegate definitions to default (no paths)
34009 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034010 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34011 BZIPDelegate="$BZIPDelegateDefault"
34012 BrowseDelegate="$BrowseDelegateDefault"
34013 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34014 CatDelegate="$CatDelegateDefault"
34015 ConvertDelegate="$ConvertDelegateDefault"
34016 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34017 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34018 EchoDelegate="$EchoDelegateDefault"
34019 EditorDelegate="$EditorDelegateDefault"
34020 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34021 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34022 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34023 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34024 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34025 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34026 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034027 LaunchDelegate="$LaunchDelegateDefault"
34028 MANDelegate="$MANDelegateDefault"
34029 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34030 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034031 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034032 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34033 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034034 PCLDelegate="$PCLDelegateDefault"
34035 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34036 POVDelegate="$POVDelegateDefault"
34037 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034038 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34039 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034040 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034041 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034042 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034043 ShowImageDelegate="$ShowImageDelegateDefault"
34044 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034045 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034046 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34047 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34048 XPSDelegate="$XPSDelegateDefault"
34049 ZipDelegate="$ZipDelegateDefault"
34050fi
34051
34052# Delegate substitutions
34053
34054
34055
34056
34057
34058
34059
34060
34061
34062
34063
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
34075
34076
34077
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092
cristy3ed852e2009-09-05 21:47:34 +000034093#
34094# RPM support.
34095#
34096RPM=''
34097for ac_prog in gnutar gtar tar
34098do
34099 # Extract the first word of "$ac_prog", so it can be a program name with args.
34100set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034102$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034103if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034104 $as_echo_n "(cached) " >&6
34105else
34106 if test -n "$TAR"; then
34107 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34108else
34109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34110for as_dir in $PATH
34111do
34112 IFS=$as_save_IFS
34113 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034114 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034116 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034118 break 2
34119 fi
34120done
cristy8b350f62009-11-15 23:12:43 +000034121 done
cristy3ed852e2009-09-05 21:47:34 +000034122IFS=$as_save_IFS
34123
34124fi
34125fi
34126TAR=$ac_cv_prog_TAR
34127if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034129$as_echo "$TAR" >&6; }
34130else
cristy8b350f62009-11-15 23:12:43 +000034131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034132$as_echo "no" >&6; }
34133fi
34134
34135
34136 test -n "$TAR" && break
34137done
34138
34139for ac_prog in perl
34140do
34141 # Extract the first word of "$ac_prog", so it can be a program name with args.
34142set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034144$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034145if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034146 $as_echo_n "(cached) " >&6
34147else
34148 if test -n "$PERL"; then
34149 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34150else
34151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34152for as_dir in $PATH
34153do
34154 IFS=$as_save_IFS
34155 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034156 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034158 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034160 break 2
34161 fi
34162done
cristy8b350f62009-11-15 23:12:43 +000034163 done
cristy3ed852e2009-09-05 21:47:34 +000034164IFS=$as_save_IFS
34165
34166fi
34167fi
34168PERL=$ac_cv_prog_PERL
34169if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034171$as_echo "$PERL" >&6; }
34172else
cristy8b350f62009-11-15 23:12:43 +000034173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034174$as_echo "no" >&6; }
34175fi
34176
34177
34178 test -n "$PERL" && break
34179done
34180
34181for ac_prog in rpmbuild rpm
34182do
34183 # Extract the first word of "$ac_prog", so it can be a program name with args.
34184set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034186$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034187if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034188 $as_echo_n "(cached) " >&6
34189else
34190 if test -n "$RPM"; then
34191 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34192else
34193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34194for as_dir in $PATH
34195do
34196 IFS=$as_save_IFS
34197 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034200 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034202 break 2
34203 fi
34204done
cristy8b350f62009-11-15 23:12:43 +000034205 done
cristy3ed852e2009-09-05 21:47:34 +000034206IFS=$as_save_IFS
34207
34208fi
34209fi
34210RPM=$ac_cv_prog_RPM
34211if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034213$as_echo "$RPM" >&6; }
34214else
cristy8b350f62009-11-15 23:12:43 +000034215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034216$as_echo "no" >&6; }
34217fi
34218
34219
34220 test -n "$RPM" && break
34221done
34222
34223
cristy73bd4a52010-10-05 11:24:23 +000034224ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34225
34226
34227AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34228
34229
34230AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34231
34232
34233AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34234
34235
34236 if test "x$RPM" != "x" ; then
34237 RPM_DELEGATE_TRUE=
34238 RPM_DELEGATE_FALSE='#'
34239else
34240 RPM_DELEGATE_TRUE='#'
34241 RPM_DELEGATE_FALSE=
34242fi
34243
cristy3ed852e2009-09-05 21:47:34 +000034244
34245#
34246# 7ZIP support (http://p7zip.sourceforge.net/)
34247#
34248P7ZIP=''
34249for ac_prog in 7za
34250do
34251 # Extract the first word of "$ac_prog", so it can be a program name with args.
34252set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034254$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034255if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034256 $as_echo_n "(cached) " >&6
34257else
34258 if test -n "$P7ZIP"; then
34259 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34260else
34261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34262for as_dir in $PATH
34263do
34264 IFS=$as_save_IFS
34265 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034266 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034268 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034270 break 2
34271 fi
34272done
cristy8b350f62009-11-15 23:12:43 +000034273 done
cristy3ed852e2009-09-05 21:47:34 +000034274IFS=$as_save_IFS
34275
34276fi
34277fi
34278P7ZIP=$ac_cv_prog_P7ZIP
34279if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034281$as_echo "$P7ZIP" >&6; }
34282else
cristy8b350f62009-11-15 23:12:43 +000034283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034284$as_echo "no" >&6; }
34285fi
34286
34287
34288 test -n "$P7ZIP" && break
34289done
34290
34291
cristy73bd4a52010-10-05 11:24:23 +000034292 if test "x$P7ZIP" != "x" ; then
34293 P7ZIP_DELEGATE_TRUE=
34294 P7ZIP_DELEGATE_FALSE='#'
34295else
34296 P7ZIP_DELEGATE_TRUE='#'
34297 P7ZIP_DELEGATE_FALSE=
34298fi
34299
cristy3ed852e2009-09-05 21:47:34 +000034300
34301#
34302# ZIP support (http://www.info-zip.org/Zip.html)
34303#
34304ZIP=''
34305for ac_prog in zip
34306do
34307 # Extract the first word of "$ac_prog", so it can be a program name with args.
34308set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034310$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034311if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034312 $as_echo_n "(cached) " >&6
34313else
34314 if test -n "$ZIP"; then
34315 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34316else
34317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34318for as_dir in $PATH
34319do
34320 IFS=$as_save_IFS
34321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034324 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034326 break 2
34327 fi
34328done
cristy8b350f62009-11-15 23:12:43 +000034329 done
cristy3ed852e2009-09-05 21:47:34 +000034330IFS=$as_save_IFS
34331
34332fi
34333fi
34334ZIP=$ac_cv_prog_ZIP
34335if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034337$as_echo "$ZIP" >&6; }
34338else
cristy8b350f62009-11-15 23:12:43 +000034339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034340$as_echo "no" >&6; }
34341fi
34342
34343
34344 test -n "$ZIP" && break
34345done
34346
34347
cristy73bd4a52010-10-05 11:24:23 +000034348 if test "x$ZIP" != "x" ; then
34349 ZIP_DELEGATE_TRUE=
34350 ZIP_DELEGATE_FALSE='#'
34351else
34352 ZIP_DELEGATE_TRUE='#'
34353 ZIP_DELEGATE_FALSE=
34354fi
34355
cristy3ed852e2009-09-05 21:47:34 +000034356
34357#
34358# GhostPCL related configuration.
34359#
34360PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034361PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034362PCLMonoDevice=pbmraw
34363if test -z "$PCLVersion"; then
34364 PCLVersion='unknown'
34365fi
34366if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034367 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34368$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034370$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034371 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34372$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034373 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034375$as_echo_n "checking for pcl color device... " >&6; }
34376 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34377 :
34378 else
34379 PCLColorDevice=ppmraw
34380 fi
cristy09b53e12011-10-14 12:47:22 +000034381 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34382$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034383
34384 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034386$as_echo_n "checking for pcl CMYK device... " >&6; }
34387 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34388 :
34389 else
34390 PCLCMYKDevice=$PCLColorDevice
34391 fi
cristy09b53e12011-10-14 12:47:22 +000034392 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34393$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034394
34395 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034397$as_echo_n "checking for pcl mono device... " >&6; }
34398 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34399 :
34400 else
34401 PCLMonoDevice=$PCLColorDevice
34402 fi
cristy09b53e12011-10-14 12:47:22 +000034403 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34404$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034405fi
34406
34407
34408
34409
34410
34411
34412#
34413# GhostXPS related configuration.
34414#
34415XPSColorDevice=ppmraw
34416XPSCMYKDevice=bmpsep8
34417XPSMonoDevice=pbmraw
34418if test -z "$XPSVersion"; then
34419 XPSVersion='unknown'
34420fi
34421if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034422 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34423$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034425$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034426 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34427$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034428 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034430$as_echo_n "checking for xps color device... " >&6; }
34431 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34432 :
34433 else
34434 XPSColorDevice=ppmraw
34435 fi
cristy09b53e12011-10-14 12:47:22 +000034436 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34437$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034438
34439 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034441$as_echo_n "checking for xps CMYK device... " >&6; }
34442 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34443 :
34444 else
34445 XPSCMYKDevice=$XPSColorDevice
34446 fi
cristy09b53e12011-10-14 12:47:22 +000034447 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34448$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034449
34450 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034452$as_echo_n "checking for xps mono device... " >&6; }
34453 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34454 :
34455 else
34456 XPSMonoDevice=$XPSColorDevice
34457 fi
cristy09b53e12011-10-14 12:47:22 +000034458 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34459$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034460fi
34461
34462
34463
34464
34465
34466
34467#
34468# Ghostscript related configuration.
34469#
cristya97426c2011-02-04 01:41:27 +000034470GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034471GSColorDevice=pnmraw
34472GSCMYKDevice=pam
34473GSMonoDevice=pbmraw
34474GSPDFDevice=pdfwrite
34475GSPSDevice=pswrite
34476GSEPSDevice=epswrite
34477GSVersion='unknown'
34478if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034479 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34480$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034482$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034483 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34484$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034486$as_echo_n "checking for Ghostscript version... " >&6; }
34487 if GSVersion=`$PSDelegate --version`; then
34488 :
34489 else
34490 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34491 fi
cristy09b53e12011-10-14 12:47:22 +000034492 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34493$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034494
34495 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034497$as_echo_n "checking for gs alpha device... " >&6; }
34498 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34499 :
34500 else
34501 GSAlphaDevice=pnmraw
34502 fi
cristy09b53e12011-10-14 12:47:22 +000034503 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34504$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034505
34506 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034508$as_echo_n "checking for gs color device... " >&6; }
34509 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34510 :
34511 else
34512 GSColorDevice=pnmraw
34513 fi
cristy09b53e12011-10-14 12:47:22 +000034514 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34515$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034516
34517 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034519$as_echo_n "checking for gs CMYK device... " >&6; }
34520 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34521 :
34522 else
34523 GSCMYKDevice=bmpsep8
34524 fi
cristy09b53e12011-10-14 12:47:22 +000034525 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34526$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034527
34528 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034530$as_echo_n "checking for gs mono device... " >&6; }
34531 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34532 :
34533 else
34534 GSMonoDevice=$GSColorDevice
34535 fi
cristy09b53e12011-10-14 12:47:22 +000034536 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34537$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034538
34539 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034541$as_echo_n "checking for gs PDF writing device... " >&6; }
34542 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34543 :
34544 else
34545 GSPDFDevice=nodevice
34546 fi
cristy09b53e12011-10-14 12:47:22 +000034547 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34548$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034549
34550 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034552$as_echo_n "checking for gs PS writing device... " >&6; }
34553 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34554 :
34555 else
34556 GSPSDevice=nodevice
34557 fi
cristy09b53e12011-10-14 12:47:22 +000034558 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34559$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034560
34561 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034563$as_echo_n "checking for gs EPS writing device... " >&6; }
34564 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34565 :
34566 else
34567 GSEPSDevice=nodevice
34568 fi
cristy09b53e12011-10-14 12:47:22 +000034569 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34570$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034571fi
34572
34573
34574
34575
34576
34577
34578
34579
34580
34581
34582#
34583# PerlMagick-related configuration
34584#
34585
34586# Look for PERL if PerlMagick requested
34587# If name/path of desired PERL interpreter is specified, look for that one first
34588have_perl='no'
34589if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034590 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34591$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034593$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034594 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34595$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034596 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034598$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034599if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034600 $as_echo_n "(cached) " >&6
34601else
34602 ac_cv_path_PERL="$with_perl"
34603fi
cristy8b350f62009-11-15 23:12:43 +000034604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034605$as_echo "$ac_cv_path_PERL" >&6; };
34606 PERL=$ac_cv_path_PERL
34607 have_perl="$ac_cv_path_PERL"
34608 else
34609 for ac_prog in perl perl5
34610do
34611 # Extract the first word of "$ac_prog", so it can be a program name with args.
34612set dummy $ac_prog; 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_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034616 $as_echo_n "(cached) " >&6
34617else
34618 case $PERL in
34619 [\\/]* | ?:[\\/]*)
34620 ac_cv_path_PERL="$PERL" # 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_PERL="$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 ;;
34639esac
34640fi
34641PERL=$ac_cv_path_PERL
34642if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034644$as_echo "$PERL" >&6; }
34645else
cristy8b350f62009-11-15 23:12:43 +000034646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034647$as_echo "no" >&6; }
34648fi
34649
34650
34651 test -n "$PERL" && break
34652done
34653 if test "$ac_cv_path_PERL"; then
34654 have_perl="$ac_cv_path_PERL"
34655 fi
34656 fi
34657fi
34658
cristy949301e2010-01-06 01:38:40 +000034659if test "$with_perl" != 'yes' ; then
34660 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34661fi
34662
34663PERL_SUPPORTS_DESTDIR='no'
34664
cristy3ed852e2009-09-05 21:47:34 +000034665with_perl_static='no'
34666with_perl_dynamic='no'
34667if test "$have_perl" != 'no'; then
34668 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34669 with_perl_static='yes'
34670 fi
34671 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34672 with_perl_dynamic='yes'
34673 fi
34674 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034675
34676
34677
34678
34679 if test -n "$PERL"; then :
34680
34681 ax_perl_version="5.8.1"
34682
34683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34684$as_echo_n "checking for perl version... " >&6; }
34685
34686 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34687
34688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34689$as_echo "$perl_version" >&6; }
34690
34691 PERL_VERSION=$perl_version
34692
34693
34694
34695
34696
34697 # Used to indicate true or false condition
34698 ax_compare_version=false
34699
34700 # Convert the two version strings to be compared into a format that
34701 # allows a simple string comparison. The end result is that a version
34702 # string of the form 1.12.5-r617 will be converted to the form
34703 # 0001001200050617. In other words, each number is zero padded to four
34704 # digits, and non digits are removed.
34705
34706 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34707 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34708 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34709 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34710 -e 's/[^0-9]//g'`
34711
34712
34713 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34714 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34715 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34716 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34717 -e 's/[^0-9]//g'`
34718
34719
34720 ax_compare_version=`echo "x$ax_compare_version_A
34721x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34722
34723
34724
34725 if test "$ax_compare_version" = "true" ; then
34726
34727 :
34728 PERL_SUPPORTS_DESTDIR='yes'
34729
34730 else
34731 :
34732 PERL_SUPPORTS_DESTDIR='no'
34733
34734 fi
34735
34736
34737else
34738
34739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34740$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34741 PERL_SUPPORTS_DESTDIR='no'
34742
cristy3ed852e2009-09-05 21:47:34 +000034743fi
cristy73bd4a52010-10-05 11:24:23 +000034744
34745fi
34746 if test "$have_perl" != 'no'; then
34747 WITH_PERL_TRUE=
34748 WITH_PERL_FALSE='#'
34749else
34750 WITH_PERL_TRUE='#'
34751 WITH_PERL_FALSE=
34752fi
34753
34754 if test $with_perl_static = 'yes'; then
34755 WITH_PERL_STATIC_TRUE=
34756 WITH_PERL_STATIC_FALSE='#'
34757else
34758 WITH_PERL_STATIC_TRUE='#'
34759 WITH_PERL_STATIC_FALSE=
34760fi
34761
34762 if test $with_perl_dynamic = 'yes'; then
34763 WITH_PERL_DYNAMIC_TRUE=
34764 WITH_PERL_DYNAMIC_FALSE='#'
34765else
34766 WITH_PERL_DYNAMIC_TRUE='#'
34767 WITH_PERL_DYNAMIC_FALSE=
34768fi
34769
cristy3ed852e2009-09-05 21:47:34 +000034770
34771
34772# Determine path to pick up MagickCore library from for use with building PerlMagick
34773MAGICKCORE_PATH="${LIB_DIR}"
34774if test $with_perl_static = 'yes'; then
34775 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34776 libtool_objdir=$objdir
34777
34778 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034779 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034780fi
34781
34782
cristy2a3eb392012-12-17 13:39:20 +000034783# Create a simple string containing format names for all delegate libraries.
cristy3ed852e2009-09-05 21:47:34 +000034784DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000034785if test "$have_autotrace" = 'yes' ; then
34786 DELEGATES="$DELEGATES autotrace"
34787 MAGICK_FEATURES="$MAGICK_FEATURES Autotrace"
cristy3ed852e2009-09-05 21:47:34 +000034788fi
cristy2a3eb392012-12-17 13:39:20 +000034789if test "$have_bzlib" = 'yes' ; then
34790 DELEGATES="$DELEGATES bzlib"
34791 MAGICK_FEATURES="$MAGICK_FEATURES BZLIB"
34792fi
34793if test "$have_dps" = 'yes' ; then
34794 DELEGATES="$DELEGATES dps"
34795 MAGICK_FEATURES="$MAGICK_FEATURES DPS"
34796fi
34797if test "$have_djvu" = 'yes' ; then
34798 DELEGATES="$DELEGATES djvu"
34799 MAGICK_FEATURES="$MAGICK_FEATURES DJVU"
34800fi
34801if test "$have_ffmpeg" = 'yes' ; then
34802 DELEGATES="$DELEGATES mpeg"
34803 MAGICK_FEATURES="$MAGICK_FEATURES MPEG"
34804fi
34805if test "$have_fftw" = 'yes' ; then
34806 DELEGATES="$DELEGATES fftw"
34807 MAGICK_FEATURES="$MAGICK_FEATURES FFTW"
34808fi
34809if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
34810 DELEGATES="$DELEGATES xfig"
34811 MAGICK_FEATURES="$MAGICK_FEATURES XFIG"
34812fi
34813if test "$have_fpx" = 'yes' ; then
34814 DELEGATES="$DELEGATES fpx"
34815 MAGICK_FEATURES="$MAGICK_FEATURES FPX"
34816fi
34817if test "$have_fontconfig" = 'yes' ; then
34818 DELEGATES="$DELEGATES fontconfig"
34819 MAGICK_FEATURES="$MAGICK_FEATURES Fontconfig"
34820fi
34821if test "$have_freetype" = 'yes' ; then
34822 DELEGATES="$DELEGATES freetype"
34823 MAGICK_FEATURES="$MAGICK_FEATURES Freetype"
34824fi
34825if test "$have_gslib" = 'yes' ; then
34826 DELEGATES="$DELEGATES gslib"
34827 MAGICK_FEATURES="$MAGICK_FEATURES Ghostscript"
34828fi
34829if test "$have_jbig" = 'yes' ; then
34830 DELEGATES="$DELEGATES jbig"
34831 MAGICK_FEATURES="$MAGICK_FEATURES JBIG"
34832fi
34833if test "$have_png$have_jpeg" = 'yesyes' ; then
34834 DELEGATES="$DELEGATES jng"
34835 MAGICK_FEATURES="$MAGICK_FEATURES JNG"
34836fi
34837if test "$have_jp2" = 'yes' ; then
34838 DELEGATES="$DELEGATES jp2"
34839 MAGICK_FEATURES="$MAGICK_FEATURES JP2"
34840fi
34841if test "$have_jpeg" = 'yes' ; then
34842 DELEGATES="$DELEGATES jpeg"
34843 MAGICK_FEATURES="$MAGICK_FEATURES JPEG"
34844fi
34845if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
34846 DELEGATES="$DELEGATES lcms"
34847 MAGICK_FEATURES="$MAGICK_FEATURES LCMS"
34848fi
34849if test "$have_lqr" = 'yes' ; then
34850 DELEGATES="$DELEGATES lqr"
34851 MAGICK_FEATURES="$MAGICK_FEATURES LQR"
34852fi
34853if test "$have_lzma" = 'yes' ; then
34854 DELEGATES="$DELEGATES lzma"
34855 MAGICK_FEATURES="$MAGICK_FEATURES LZMA"
34856fi
34857if test "$have_openexr" = 'yes' ; then
34858 DELEGATES="$DELEGATES openexr"
34859 MAGICK_FEATURES="$MAGICK_FEATURES OpenEXR"
34860fi
34861if test "$have_pango" = 'yes' ; then
34862 DELEGATES="$DELEGATES pango"
34863 MAGICK_FEATURES="$MAGICK_FEATURES Pango"
34864fi
34865if test "$have_png" = 'yes' ; then
34866 DELEGATES="$DELEGATES png"
34867 MAGICK_FEATURES="$MAGICK_FEATURES PNG"
34868fi
34869have_ps='no'
34870if test "$have_dps" = 'yes' || \
34871 test "$have_gs" = 'yes' || \
34872 test "${native_win32_build}" = 'yes' ; then
34873 have_ps='yes'
34874fi
34875if test "$have_ps" = 'yes' ; then
34876 DELEGATES="$DELEGATES ps"
34877 MAGICK_FEATURES="$MAGICK_FEATURES PS"
34878fi
34879if test "$have_ralcgm" = 'yes' ; then
34880 DELEGATES="$DELEGATES cgm"
34881 MAGICK_FEATURES="$MAGICK_FEATURES CGM"
34882fi
34883if test "$have_ra_ppm" = 'yes' ; then
34884 DELEGATES="$DELEGATES rad"
34885 MAGICK_FEATURES="$MAGICK_FEATURES RAD"
34886fi
34887if test "$have_rsvg" = 'yes' ; then
34888 DELEGATES="$DELEGATES rsvg"
34889 MAGICK_FEATURES="$MAGICK_FEATURES RSVG"
34890fi
34891if test "$have_tiff" = 'yes' ; then
34892 DELEGATES="$DELEGATES tiff"
34893 MAGICK_FEATURES="$MAGICK_FEATURES TIFF"
34894fi
34895if test "$have_ttf" = 'yes' ; then
34896 DELEGATES="$DELEGATES ttf"
34897 MAGICK_FEATURES="$MAGICK_FEATURES TTF"
34898fi
34899if test "$have_wmf" = 'yes' ; then
34900 DELEGATES="$DELEGATES wmf"
34901 MAGICK_FEATURES="$MAGICK_FEATURES WMF"
34902fi
34903if test "$have_x" = 'yes' ; then
34904 DELEGATES="$DELEGATES x"
34905 MAGICK_FEATURES="$MAGICK_FEATURES X"
34906fi
34907if test "$have_xml" = 'yes' ; then
34908 DELEGATES="$DELEGATES xml"
34909 MAGICK_FEATURES="$MAGICK_FEATURES XML"
34910fi
34911if test "$have_zlib" = 'yes' ; then
34912 DELEGATES="$DELEGATES zlib"
34913 MAGICK_FEATURES="$MAGICK_FEATURES ZLIB"
34914fi
34915if test "$build_modules" != 'no' || \
34916 test "${native_win32_build}" = 'yes' ; then
34917 MAGICK_FEATURES="$MAGICK_FEATURES MODULES"
34918fi
34919# Remove extraneous spaces from output variables (asthetic)
34920DELEGATES=`echo $DELEGATES | sed -e 's/ */ /g'`
34921MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000034922
34923
34924#
34925# Handle special compiler flags
34926#
34927
34928# Add '-p' if prof source profiling support enabled
34929if test "$enable_prof" = 'yes'; then
34930 CFLAGS="-p $CFLAGS"
34931 CXXFLAGS="-p $CXXFLAGS"
34932 LDFLAGS="-p $LDFLAGS"
34933fi
34934
34935# Add '-pg' if gprof source profiling support enabled
34936if test "$enable_gprof" = 'yes'; then
34937 CFLAGS="-pg $CFLAGS"
34938 CXXFLAGS="-pg $CXXFLAGS"
34939 LDFLAGS="-pg $LDFLAGS"
34940fi
34941
34942# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34943# This is a gcc-specific feature
34944if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034946$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034947if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034948 $as_echo_n "(cached) " >&6
34949else
34950 ac_check_lib_save_LIBS=$LIBS
34951LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034953/* end confdefs.h. */
34954
34955/* Override any GCC internal prototype to avoid an error.
34956 Use char because int might match the return type of a GCC
34957 builtin and then its argument prototype would still apply. */
34958#ifdef __cplusplus
34959extern "C"
34960#endif
34961char _gcov_init ();
34962int
34963main ()
34964{
34965return _gcov_init ();
34966 ;
34967 return 0;
34968}
34969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034970if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034971 ac_cv_lib_gcov__gcov_init=yes
34972else
cristy8b350f62009-11-15 23:12:43 +000034973 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034974fi
cristy8b350f62009-11-15 23:12:43 +000034975rm -f core conftest.err conftest.$ac_objext \
34976 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034977LIBS=$ac_check_lib_save_LIBS
34978fi
cristy8b350f62009-11-15 23:12:43 +000034979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034980$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034981if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034982 cat >>confdefs.h <<_ACEOF
34983#define HAVE_LIBGCOV 1
34984_ACEOF
34985
34986 LIBS="-lgcov $LIBS"
34987
34988fi
34989
cristy8b350f62009-11-15 23:12:43 +000034990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034991$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034992if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034993 $as_echo_n "(cached) " >&6
34994else
34995 ac_check_lib_save_LIBS=$LIBS
34996LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034998/* end confdefs.h. */
34999
35000/* Override any GCC internal prototype to avoid an error.
35001 Use char because int might match the return type of a GCC
35002 builtin and then its argument prototype would still apply. */
35003#ifdef __cplusplus
35004extern "C"
35005#endif
35006char __gcov_init ();
35007int
35008main ()
35009{
35010return __gcov_init ();
35011 ;
35012 return 0;
35013}
35014_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035015if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035016 ac_cv_lib_gcov___gcov_init=yes
35017else
cristy8b350f62009-11-15 23:12:43 +000035018 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035019fi
cristy8b350f62009-11-15 23:12:43 +000035020rm -f core conftest.err conftest.$ac_objext \
35021 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035022LIBS=$ac_check_lib_save_LIBS
35023fi
cristy8b350f62009-11-15 23:12:43 +000035024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035025$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035026if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035027 cat >>confdefs.h <<_ACEOF
35028#define HAVE_LIBGCOV 1
35029_ACEOF
35030
35031 LIBS="-lgcov $LIBS"
35032
35033fi
35034
35035 case "$target_os" in
35036 darwin*)
35037 OSX_GCOV_LDFLAG="-Wl,-single_module"
35038 ;;
35039 *)
35040 OSX_GCOV_LDFLAG=""
35041 ;;
35042 esac
35043
35044 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35045 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35046 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35047fi
35048
35049#
35050# Build library dependency list for libMagickCore
35051#
35052
cristyc6722092012-10-14 00:19:31 +000035053if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035054 MAGICK_DEP_LIBS="$LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035055else
cristy3a75f062012-09-08 23:29:40 +000035056 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035057fi
35058
35059
35060#
35061# Remove extraneous spaces from output variables (asthetic)
35062#
35063X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35064X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35065X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35066X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35067
35068CC=`echo $CC | sed -e 's/ */ /g'`
35069CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35070CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35071CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35072DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35073DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35074LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35075TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35076MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35077#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35078
35079# Pass only user-provided LIBS as "global" libraries
35080LIBS=$USER_LIBS
35081
35082#AC_SUBST(CPPFLAGS)
35083
35084#AC_SUBST(LDFLAGS)
35085#AC_SUBST(X_PRE_LIBS)
35086#AC_SUBST(X_LIBS)
35087#AC_SUBST(X_EXTRA_LIBS)
35088
35089MAGICK_CFLAGS=$CFLAGS
35090MAGICK_CXXFLAGS="$CXXFLAGS"
35091MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35092MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35093MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035094MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035095
35096
35097
35098
35099
35100
35101
35102
35103# Set configured scripts to executable.
35104ac_config_commands="$ac_config_commands default"
35105
cristy2bd4b6e2012-07-22 15:29:11 +000035106ac_config_commands="$ac_config_commands magick.sh.in"
35107
cristy3ed852e2009-09-05 21:47:34 +000035108ac_config_commands="$ac_config_commands MagickCore-config.in"
35109
cristy3ed852e2009-09-05 21:47:34 +000035110ac_config_commands="$ac_config_commands MagickWand-config.in"
35111
cristy3ed852e2009-09-05 21:47:34 +000035112ac_config_commands="$ac_config_commands Magick++-config.in"
35113
35114ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35115
35116
cristy09b53e12011-10-14 12:47:22 +000035117{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35118$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35119{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35120$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035121cat >confcache <<\_ACEOF
35122# This file is a shell script that caches the results of configure
35123# tests run on this system so they can be shared between configure
35124# scripts and configure runs, see configure's option --config-cache.
35125# It is not useful on other systems. If it contains results you don't
35126# want to keep, you may remove or edit it.
35127#
35128# config.status only pays attention to the cache file if you give it
35129# the --recheck option to rerun configure.
35130#
35131# `ac_cv_env_foo' variables (set or unset) will be overridden when
35132# loading this file, other *unset* `ac_cv_foo' will be assigned the
35133# following values.
35134
35135_ACEOF
35136
35137# The following way of writing the cache mishandles newlines in values,
35138# but we know of no workaround that is simple, portable, and efficient.
35139# So, we kill variables containing newlines.
35140# Ultrix sh set writes to stderr and can't be redirected directly,
35141# and sets the high bit in the cache file unless we assign to the vars.
35142(
35143 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35144 eval ac_val=\$$ac_var
35145 case $ac_val in #(
35146 *${as_nl}*)
35147 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035149$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35150 esac
35151 case $ac_var in #(
35152 _ | IFS | as_nl) ;; #(
35153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035154 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035155 esac ;;
35156 esac
35157 done
35158
35159 (set) 2>&1 |
35160 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35161 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035162 # `set' does not quote correctly, so add quotes: double-quote
35163 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035164 sed -n \
35165 "s/'/'\\\\''/g;
35166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35167 ;; #(
35168 *)
35169 # `set' quotes correctly as required by POSIX, so do not add quotes.
35170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35171 ;;
35172 esac |
35173 sort
35174) |
35175 sed '
35176 /^ac_cv_env_/b end
35177 t clear
35178 :clear
35179 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35180 t end
35181 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35182 :end' >>confcache
35183if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35184 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035185 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035186 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035187$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035188 if test ! -f "$cache_file" || test -h "$cache_file"; then
35189 cat confcache >"$cache_file"
35190 else
35191 case $cache_file in #(
35192 */* | ?:*)
35193 mv -f confcache "$cache_file"$$ &&
35194 mv -f "$cache_file"$$ "$cache_file" ;; #(
35195 *)
35196 mv -f confcache "$cache_file" ;;
35197 esac
35198 fi
35199 fi
cristy3ed852e2009-09-05 21:47:34 +000035200 else
cristy8b350f62009-11-15 23:12:43 +000035201 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035202$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35203 fi
35204fi
35205rm -f confcache
35206
35207test "x$prefix" = xNONE && prefix=$ac_default_prefix
35208# Let make expand exec_prefix.
35209test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35210
35211DEFS=-DHAVE_CONFIG_H
35212
35213ac_libobjs=
35214ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035215U=
cristy3ed852e2009-09-05 21:47:34 +000035216for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35217 # 1. Remove the extension, and $U if already installed.
35218 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35219 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35220 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35221 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035222 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35223 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035224done
35225LIBOBJS=$ac_libobjs
35226
35227LTLIBOBJS=$ac_ltlibobjs
35228
35229
cristyc0890a62012-07-19 00:18:20 +000035230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35231$as_echo_n "checking that generated files are newer than configure... " >&6; }
35232 if test -n "$am_sleep_pid"; then
35233 # Hide warnings about reused PIDs.
35234 wait $am_sleep_pid 2>/dev/null
35235 fi
35236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35237$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035238 if test -n "$EXEEXT"; then
35239 am__EXEEXT_TRUE=
35240 am__EXEEXT_FALSE='#'
35241else
35242 am__EXEEXT_TRUE='#'
35243 am__EXEEXT_FALSE=
35244fi
cristy3ed852e2009-09-05 21:47:34 +000035245
cristy73bd4a52010-10-05 11:24:23 +000035246if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035247 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035248Usually this means the macro was only invoked conditionally." "$LINENO" 5
35249fi
35250if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035251 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035252Usually this means the macro was only invoked conditionally." "$LINENO" 5
35253fi
35254if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035255 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035256Usually this means the macro was only invoked conditionally." "$LINENO" 5
35257fi
35258if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035259 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035260Usually this means the macro was only invoked conditionally." "$LINENO" 5
35261fi
cristy9b86f202012-11-28 21:55:35 +000035262if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35263 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35264Usually this means the macro was only invoked conditionally." "$LINENO" 5
35265fi
cristy73bd4a52010-10-05 11:24:23 +000035266if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035267 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035268Usually this means the macro was only invoked conditionally." "$LINENO" 5
35269fi
35270if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035271 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035272Usually this means the macro was only invoked conditionally." "$LINENO" 5
35273fi
35274if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035275 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035276Usually this means the macro was only invoked conditionally." "$LINENO" 5
35277fi
35278if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035279 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035280Usually this means the macro was only invoked conditionally." "$LINENO" 5
35281fi
cristy73bd4a52010-10-05 11:24:23 +000035282if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035283 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035284Usually this means the macro was only invoked conditionally." "$LINENO" 5
35285fi
35286if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035287 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035288Usually this means the macro was only invoked conditionally." "$LINENO" 5
35289fi
cristy73bd4a52010-10-05 11:24:23 +000035290if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035291 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035292Usually this means the macro was only invoked conditionally." "$LINENO" 5
35293fi
cristy71d8c202012-03-20 17:05:01 +000035294if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35295 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35296Usually this means the macro was only invoked conditionally." "$LINENO" 5
35297fi
cristy73bd4a52010-10-05 11:24:23 +000035298
35299if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035300 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035301Usually this means the macro was only invoked conditionally." "$LINENO" 5
35302fi
35303if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035304 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035305Usually this means the macro was only invoked conditionally." "$LINENO" 5
35306fi
35307if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035308 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035309Usually this means the macro was only invoked conditionally." "$LINENO" 5
35310fi
35311if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035312 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035313Usually this means the macro was only invoked conditionally." "$LINENO" 5
35314fi
35315if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035316 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035317Usually this means the macro was only invoked conditionally." "$LINENO" 5
35318fi
35319if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035320 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035321Usually this means the macro was only invoked conditionally." "$LINENO" 5
35322fi
cristy5eef09f2012-10-16 12:08:28 +000035323if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35324 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35325Usually this means the macro was only invoked conditionally." "$LINENO" 5
35326fi
cristy73bd4a52010-10-05 11:24:23 +000035327if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035328 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035329Usually this means the macro was only invoked conditionally." "$LINENO" 5
35330fi
35331if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035332 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035333Usually this means the macro was only invoked conditionally." "$LINENO" 5
35334fi
35335if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035336 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035337Usually this means the macro was only invoked conditionally." "$LINENO" 5
35338fi
35339if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035340 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035341Usually this means the macro was only invoked conditionally." "$LINENO" 5
35342fi
35343if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035344 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035345Usually this means the macro was only invoked conditionally." "$LINENO" 5
35346fi
35347if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035348 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035349Usually this means the macro was only invoked conditionally." "$LINENO" 5
35350fi
35351if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035352 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035353Usually this means the macro was only invoked conditionally." "$LINENO" 5
35354fi
35355if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035356 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035357Usually this means the macro was only invoked conditionally." "$LINENO" 5
35358fi
35359if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035360 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035361Usually this means the macro was only invoked conditionally." "$LINENO" 5
35362fi
35363if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035364 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035365Usually this means the macro was only invoked conditionally." "$LINENO" 5
35366fi
35367if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035368 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035369Usually this means the macro was only invoked conditionally." "$LINENO" 5
35370fi
35371if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035372 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035373Usually this means the macro was only invoked conditionally." "$LINENO" 5
35374fi
35375if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035376 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035377Usually this means the macro was only invoked conditionally." "$LINENO" 5
35378fi
35379if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035380 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035381Usually this means the macro was only invoked conditionally." "$LINENO" 5
35382fi
cristyfbb0ef02010-12-19 02:32:11 +000035383if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35384 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35385Usually this means the macro was only invoked conditionally." "$LINENO" 5
35386fi
cristy73bd4a52010-10-05 11:24:23 +000035387if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035388 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035389Usually this means the macro was only invoked conditionally." "$LINENO" 5
35390fi
cristy41cbe8a2011-10-27 01:35:18 +000035391if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35392 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35393Usually this means the macro was only invoked conditionally." "$LINENO" 5
35394fi
cristya054b762012-03-26 23:16:00 +000035395if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35396 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035397Usually this means the macro was only invoked conditionally." "$LINENO" 5
35398fi
cristy73bd4a52010-10-05 11:24:23 +000035399if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035400 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035401Usually this means the macro was only invoked conditionally." "$LINENO" 5
35402fi
35403if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035404 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035405Usually this means the macro was only invoked conditionally." "$LINENO" 5
35406fi
35407if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035408 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035409Usually this means the macro was only invoked conditionally." "$LINENO" 5
35410fi
35411if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035412 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035413Usually this means the macro was only invoked conditionally." "$LINENO" 5
35414fi
cristyb1860752011-03-14 00:27:46 +000035415if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35416 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35417Usually this means the macro was only invoked conditionally." "$LINENO" 5
35418fi
cristy73bd4a52010-10-05 11:24:23 +000035419if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035420 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035421Usually this means the macro was only invoked conditionally." "$LINENO" 5
35422fi
35423if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035424 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035425Usually this means the macro was only invoked conditionally." "$LINENO" 5
35426fi
35427if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035428 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035429Usually this means the macro was only invoked conditionally." "$LINENO" 5
35430fi
35431if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035432 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035433Usually this means the macro was only invoked conditionally." "$LINENO" 5
35434fi
35435if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035436 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035437Usually this means the macro was only invoked conditionally." "$LINENO" 5
35438fi
35439if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035440 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035441Usually this means the macro was only invoked conditionally." "$LINENO" 5
35442fi
35443if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035444 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035445Usually this means the macro was only invoked conditionally." "$LINENO" 5
35446fi
35447if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035448 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035449Usually this means the macro was only invoked conditionally." "$LINENO" 5
35450fi
cristy3ed852e2009-09-05 21:47:34 +000035451
cristyda16f162011-02-19 23:52:17 +000035452: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035453ac_write_fail=0
35454ac_clean_files_save=$ac_clean_files
35455ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035456{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035457$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035458as_write_fail=0
35459cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035460#! $SHELL
35461# Generated by $as_me.
35462# Run this file to recreate the current configuration.
35463# Compiler output produced by configure, useful for debugging
35464# configure, is in config.log if it exists.
35465
35466debug=false
35467ac_cs_recheck=false
35468ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035469
cristy8b350f62009-11-15 23:12:43 +000035470SHELL=\${CONFIG_SHELL-$SHELL}
35471export SHELL
35472_ASEOF
35473cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35474## -------------------- ##
35475## M4sh Initialization. ##
35476## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035477
35478# Be more Bourne compatible
35479DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035480if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035481 emulate sh
35482 NULLCMD=:
35483 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35484 # is contrary to our usage. Disable this feature.
35485 alias -g '${1+"$@"}'='"$@"'
35486 setopt NO_GLOB_SUBST
35487else
cristy8b350f62009-11-15 23:12:43 +000035488 case `(set -o) 2>/dev/null` in #(
35489 *posix*) :
35490 set -o posix ;; #(
35491 *) :
35492 ;;
cristy3ed852e2009-09-05 21:47:34 +000035493esac
cristy3ed852e2009-09-05 21:47:34 +000035494fi
35495
35496
cristy3ed852e2009-09-05 21:47:34 +000035497as_nl='
35498'
35499export as_nl
35500# Printing a long string crashes Solaris 7 /usr/bin/printf.
35501as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35502as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35503as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035504# Prefer a ksh shell builtin over an external printf program on Solaris,
35505# but without wasting forks for bash or zsh.
35506if test -z "$BASH_VERSION$ZSH_VERSION" \
35507 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35508 as_echo='print -r --'
35509 as_echo_n='print -rn --'
35510elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035511 as_echo='printf %s\n'
35512 as_echo_n='printf %s'
35513else
35514 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35515 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35516 as_echo_n='/usr/ucb/echo -n'
35517 else
35518 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35519 as_echo_n_body='eval
35520 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035521 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035522 *"$as_nl"*)
35523 expr "X$arg" : "X\\(.*\\)$as_nl";
35524 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35525 esac;
35526 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35527 '
35528 export as_echo_n_body
35529 as_echo_n='sh -c $as_echo_n_body as_echo'
35530 fi
35531 export as_echo_body
35532 as_echo='sh -c $as_echo_body as_echo'
35533fi
35534
35535# The user is always right.
35536if test "${PATH_SEPARATOR+set}" != set; then
35537 PATH_SEPARATOR=:
35538 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35539 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35540 PATH_SEPARATOR=';'
35541 }
35542fi
35543
cristy3ed852e2009-09-05 21:47:34 +000035544
35545# IFS
35546# We need space, tab and new line, in precisely that order. Quoting is
35547# there to prevent editors from complaining about space-tab.
35548# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35549# splitting by setting IFS to empty value.)
35550IFS=" "" $as_nl"
35551
35552# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035553as_myself=
cristy8b350f62009-11-15 23:12:43 +000035554case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035555 *[\\/]* ) as_myself=$0 ;;
35556 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35557for as_dir in $PATH
35558do
35559 IFS=$as_save_IFS
35560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035561 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35562 done
cristy3ed852e2009-09-05 21:47:34 +000035563IFS=$as_save_IFS
35564
35565 ;;
35566esac
35567# We did not find ourselves, most probably we were run as `sh COMMAND'
35568# in which case we are not to be found in the path.
35569if test "x$as_myself" = x; then
35570 as_myself=$0
35571fi
35572if test ! -f "$as_myself"; then
35573 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035574 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035575fi
35576
cristy8b350f62009-11-15 23:12:43 +000035577# Unset variables that we do not need and which cause bugs (e.g. in
35578# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35579# suppresses any "Segmentation fault" message there. '((' could
35580# trigger a bug in pdksh 5.2.14.
35581for as_var in BASH_ENV ENV MAIL MAILPATH
35582do eval test x\${$as_var+set} = xset \
35583 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035584done
35585PS1='$ '
35586PS2='> '
35587PS4='+ '
35588
35589# NLS nuisances.
35590LC_ALL=C
35591export LC_ALL
35592LANGUAGE=C
35593export LANGUAGE
35594
cristy8b350f62009-11-15 23:12:43 +000035595# CDPATH.
35596(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35597
35598
cristy98dddb52010-11-04 00:30:15 +000035599# as_fn_error STATUS ERROR [LINENO LOG_FD]
35600# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035601# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35602# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035603# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035604as_fn_error ()
35605{
cristy98dddb52010-11-04 00:30:15 +000035606 as_status=$1; test $as_status -eq 0 && as_status=1
35607 if test "$4"; then
35608 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35609 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035610 fi
cristy98dddb52010-11-04 00:30:15 +000035611 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035612 as_fn_exit $as_status
35613} # as_fn_error
35614
35615
35616# as_fn_set_status STATUS
35617# -----------------------
35618# Set $? to STATUS, without forking.
35619as_fn_set_status ()
35620{
35621 return $1
35622} # as_fn_set_status
35623
35624# as_fn_exit STATUS
35625# -----------------
35626# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35627as_fn_exit ()
35628{
35629 set +e
35630 as_fn_set_status $1
35631 exit $1
35632} # as_fn_exit
35633
35634# as_fn_unset VAR
35635# ---------------
35636# Portably unset VAR.
35637as_fn_unset ()
35638{
35639 { eval $1=; unset $1;}
35640}
35641as_unset=as_fn_unset
35642# as_fn_append VAR VALUE
35643# ----------------------
35644# Append the text in VALUE to the end of the definition contained in VAR. Take
35645# advantage of any shell optimizations that allow amortized linear growth over
35646# repeated appends, instead of the typical quadratic growth present in naive
35647# implementations.
35648if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35649 eval 'as_fn_append ()
35650 {
35651 eval $1+=\$2
35652 }'
35653else
35654 as_fn_append ()
35655 {
35656 eval $1=\$$1\$2
35657 }
35658fi # as_fn_append
35659
35660# as_fn_arith ARG...
35661# ------------------
35662# Perform arithmetic evaluation on the ARGs, and store the result in the
35663# global $as_val. Take advantage of shells that can avoid forks. The arguments
35664# must be portable across $(()) and expr.
35665if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35666 eval 'as_fn_arith ()
35667 {
35668 as_val=$(( $* ))
35669 }'
35670else
35671 as_fn_arith ()
35672 {
35673 as_val=`expr "$@" || test $? -eq 1`
35674 }
35675fi # as_fn_arith
35676
35677
cristy3ed852e2009-09-05 21:47:34 +000035678if expr a : '\(a\)' >/dev/null 2>&1 &&
35679 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35680 as_expr=expr
35681else
35682 as_expr=false
35683fi
35684
35685if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35686 as_basename=basename
35687else
35688 as_basename=false
35689fi
35690
cristy8b350f62009-11-15 23:12:43 +000035691if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35692 as_dirname=dirname
35693else
35694 as_dirname=false
35695fi
cristy3ed852e2009-09-05 21:47:34 +000035696
cristy3ed852e2009-09-05 21:47:34 +000035697as_me=`$as_basename -- "$0" ||
35698$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35699 X"$0" : 'X\(//\)$' \| \
35700 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35701$as_echo X/"$0" |
35702 sed '/^.*\/\([^/][^/]*\)\/*$/{
35703 s//\1/
35704 q
35705 }
35706 /^X\/\(\/\/\)$/{
35707 s//\1/
35708 q
35709 }
35710 /^X\/\(\/\).*/{
35711 s//\1/
35712 q
35713 }
35714 s/.*/./; q'`
35715
cristy8b350f62009-11-15 23:12:43 +000035716# Avoid depending upon Character Ranges.
35717as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35718as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35719as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35720as_cr_digits='0123456789'
35721as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035722
35723ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035724case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035725-n*)
cristy8b350f62009-11-15 23:12:43 +000035726 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035727 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035728 xy) ECHO_C='\c';;
35729 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35730 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035731 esac;;
35732*)
35733 ECHO_N='-n';;
35734esac
cristy3ed852e2009-09-05 21:47:34 +000035735
35736rm -f conf$$ conf$$.exe conf$$.file
35737if test -d conf$$.dir; then
35738 rm -f conf$$.dir/conf$$.file
35739else
35740 rm -f conf$$.dir
35741 mkdir conf$$.dir 2>/dev/null
35742fi
35743if (echo >conf$$.file) 2>/dev/null; then
35744 if ln -s conf$$.file conf$$ 2>/dev/null; then
35745 as_ln_s='ln -s'
35746 # ... but there are two gotchas:
35747 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35748 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000035749 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000035750 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000035751 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035752 elif ln conf$$.file conf$$ 2>/dev/null; then
35753 as_ln_s=ln
35754 else
cristy14fefe52012-05-21 00:59:18 +000035755 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035756 fi
35757else
cristy14fefe52012-05-21 00:59:18 +000035758 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035759fi
35760rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35761rmdir conf$$.dir 2>/dev/null
35762
cristy8b350f62009-11-15 23:12:43 +000035763
35764# as_fn_mkdir_p
35765# -------------
35766# Create "$as_dir" as a directory, including parents if necessary.
35767as_fn_mkdir_p ()
35768{
35769
35770 case $as_dir in #(
35771 -*) as_dir=./$as_dir;;
35772 esac
35773 test -d "$as_dir" || eval $as_mkdir_p || {
35774 as_dirs=
35775 while :; do
35776 case $as_dir in #(
35777 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35778 *) as_qdir=$as_dir;;
35779 esac
35780 as_dirs="'$as_qdir' $as_dirs"
35781 as_dir=`$as_dirname -- "$as_dir" ||
35782$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35783 X"$as_dir" : 'X\(//\)[^/]' \| \
35784 X"$as_dir" : 'X\(//\)$' \| \
35785 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35786$as_echo X"$as_dir" |
35787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35788 s//\1/
35789 q
35790 }
35791 /^X\(\/\/\)[^/].*/{
35792 s//\1/
35793 q
35794 }
35795 /^X\(\/\/\)$/{
35796 s//\1/
35797 q
35798 }
35799 /^X\(\/\).*/{
35800 s//\1/
35801 q
35802 }
35803 s/.*/./; q'`
35804 test -d "$as_dir" && break
35805 done
35806 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035807 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035808
35809
35810} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035811if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035812 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035813else
35814 test -d ./-p && rmdir ./-p
35815 as_mkdir_p=false
35816fi
35817
cristy14fefe52012-05-21 00:59:18 +000035818
35819# as_fn_executable_p FILE
35820# -----------------------
35821# Test if FILE is an executable regular file.
35822as_fn_executable_p ()
35823{
35824 test -f "$1" && test -x "$1"
35825} # as_fn_executable_p
35826as_test_x='test -x'
35827as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000035828
35829# Sed expression to map a string onto a valid CPP name.
35830as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35831
35832# Sed expression to map a string onto a valid variable name.
35833as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35834
35835
35836exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035837## ----------------------------------- ##
35838## Main body of $CONFIG_STATUS script. ##
35839## ----------------------------------- ##
35840_ASEOF
35841test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035842
cristy8b350f62009-11-15 23:12:43 +000035843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35844# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035845# report actual input values of CONFIG_FILES etc. instead of their
35846# values after options handling.
35847ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035848This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000035849generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035850
35851 CONFIG_FILES = $CONFIG_FILES
35852 CONFIG_HEADERS = $CONFIG_HEADERS
35853 CONFIG_LINKS = $CONFIG_LINKS
35854 CONFIG_COMMANDS = $CONFIG_COMMANDS
35855 $ $0 $@
35856
35857on `(hostname || uname -n) 2>/dev/null | sed 1q`
35858"
35859
35860_ACEOF
35861
35862case $ac_config_files in *"
35863"*) set x $ac_config_files; shift; ac_config_files=$*;;
35864esac
35865
35866case $ac_config_headers in *"
35867"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35868esac
35869
35870
35871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35872# Files that config.status was made for.
35873config_files="$ac_config_files"
35874config_headers="$ac_config_headers"
35875config_commands="$ac_config_commands"
35876
35877_ACEOF
35878
35879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35880ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035881\`$as_me' instantiates files and other configuration actions
35882from templates according to the current configuration. Unless the files
35883and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035884
cristy8b350f62009-11-15 23:12:43 +000035885Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035886
35887 -h, --help print this help, then exit
35888 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035889 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035890 -q, --quiet, --silent
35891 do not print progress messages
35892 -d, --debug don't remove temporary files
35893 --recheck update $as_me by reconfiguring in the same conditions
35894 --file=FILE[:TEMPLATE]
35895 instantiate the configuration file FILE
35896 --header=FILE[:TEMPLATE]
35897 instantiate the configuration header FILE
35898
35899Configuration files:
35900$config_files
35901
35902Configuration headers:
35903$config_headers
35904
35905Configuration commands:
35906$config_commands
35907
cristy8b350f62009-11-15 23:12:43 +000035908Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035909
35910_ACEOF
35911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035912ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035913ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035914ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000035915configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000035916 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035917
cristy14fefe52012-05-21 00:59:18 +000035918Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035919This config.status script is free software; the Free Software Foundation
35920gives unlimited permission to copy, distribute and modify it."
35921
35922ac_pwd='$ac_pwd'
35923srcdir='$srcdir'
35924INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035925MKDIR_P='$MKDIR_P'
35926AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035927test -n "\$AWK" || AWK=awk
35928_ACEOF
35929
35930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35931# The default lists apply if the user does not specify any file.
35932ac_need_defaults=:
35933while test $# != 0
35934do
35935 case $1 in
cristyda16f162011-02-19 23:52:17 +000035936 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035937 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35938 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35939 ac_shift=:
35940 ;;
cristyda16f162011-02-19 23:52:17 +000035941 --*=)
35942 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35943 ac_optarg=
35944 ac_shift=:
35945 ;;
cristy3ed852e2009-09-05 21:47:34 +000035946 *)
35947 ac_option=$1
35948 ac_optarg=$2
35949 ac_shift=shift
35950 ;;
35951 esac
35952
35953 case $ac_option in
35954 # Handling of the options.
35955 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35956 ac_cs_recheck=: ;;
35957 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35958 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035959 --config | --confi | --conf | --con | --co | --c )
35960 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035961 --debug | --debu | --deb | --de | --d | -d )
35962 debug=: ;;
35963 --file | --fil | --fi | --f )
35964 $ac_shift
35965 case $ac_optarg in
35966 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035967 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035968 esac
cristy8b350f62009-11-15 23:12:43 +000035969 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035970 ac_need_defaults=false;;
35971 --header | --heade | --head | --hea )
35972 $ac_shift
35973 case $ac_optarg in
35974 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35975 esac
cristy8b350f62009-11-15 23:12:43 +000035976 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035977 ac_need_defaults=false;;
35978 --he | --h)
35979 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035980 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035981Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035982 --help | --hel | -h )
35983 $as_echo "$ac_cs_usage"; exit ;;
35984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35985 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35986 ac_cs_silent=: ;;
35987
35988 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035989 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035990Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035991
cristy8b350f62009-11-15 23:12:43 +000035992 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035993 ac_need_defaults=false ;;
35994
35995 esac
35996 shift
35997done
35998
35999ac_configure_extra_args=
36000
36001if $ac_cs_silent; then
36002 exec 6>/dev/null
36003 ac_configure_extra_args="$ac_configure_extra_args --silent"
36004fi
36005
36006_ACEOF
36007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36008if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036009 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036010 shift
36011 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36012 CONFIG_SHELL='$SHELL'
36013 export CONFIG_SHELL
36014 exec "\$@"
36015fi
36016
36017_ACEOF
36018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36019exec 5>>config.log
36020{
36021 echo
36022 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36023## Running $as_me. ##
36024_ASBOX
36025 $as_echo "$ac_log"
36026} >&5
36027
36028_ACEOF
36029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036030#
36031# INIT-COMMANDS
36032#
36033PACKAGE="$PACKAGE"
36034AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36035
36036
36037# The HP-UX ksh and POSIX shell print the target directory to stdout
36038# if CDPATH is set.
36039(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36040
36041sed_quote_subst='$sed_quote_subst'
36042double_quote_subst='$double_quote_subst'
36043delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036044SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36045Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36046GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36047EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36048FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36049SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36050ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36051LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36052macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36053macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36054AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36055DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36056OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36057enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36058enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36059pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36060enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036061PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036062host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36063host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36064host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36065build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36066build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36067build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36068NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36069LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36070max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36071ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36072exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36073lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36074lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36075lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036076lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36077lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036078reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36079reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36080deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36081file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036082file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36083want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36084sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036085AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36086AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036087archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036088STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36089RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36090old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36091old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36092old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36093lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36094CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36095CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36096compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36097GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36098lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36099lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36100lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36101lt_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 +000036102nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36103lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036104objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36105MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36106lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036107lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036108lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036109lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36110lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36111need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036112MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036113DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36114NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36115LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36116OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36117OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36118libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36119shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36120extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36121archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36122enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36123export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36124whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36125compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36126old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36127old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36128archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36129archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36130module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36131module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36132with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36133allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36134no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36135hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036136hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36137hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36138hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36139hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36140hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36141hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36142inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36143link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036144always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36145export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36146exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36147include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36148prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036149postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036150file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36151variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36152need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36153need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36154version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36155runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36156shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36157shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36158libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36159library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36160soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36161install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36162postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36163postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36164finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36165finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36166hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36167sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36168sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36169hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36170enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36171enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36172enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36173old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36174striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36175compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36176predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36177postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36178predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36179postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36180compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36181LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36182reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36183reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36184old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36185compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36186GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36187lt_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 +000036188lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036189lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036190lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36191lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36192archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36193enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36194export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36195whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36196compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36197old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36198old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36199archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36200archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36201module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36202module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36203with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36204allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36205no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36206hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036207hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36208hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36209hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36210hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36211hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36212hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36213inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36214link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036215always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36216export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36217exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36218include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36219prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036220postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036221file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36222hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36223compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36224predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36225postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36226predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36227postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36228compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036229
36230LTCC='$LTCC'
36231LTCFLAGS='$LTCFLAGS'
36232compiler='$compiler_DEFAULT'
36233
cristy0c60a692010-11-04 01:09:47 +000036234# A function that is used when there is no print builtin or printf.
36235func_fallback_echo ()
36236{
36237 eval 'cat <<_LTECHO_EOF
36238\$1
36239_LTECHO_EOF'
36240}
36241
cristy73bd4a52010-10-05 11:24:23 +000036242# Quote evaled strings.
36243for var in SED \
36244GREP \
36245EGREP \
36246FGREP \
cristy0c60a692010-11-04 01:09:47 +000036247SHELL \
36248ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036249LD \
cristy0c60a692010-11-04 01:09:47 +000036250AS \
36251DLLTOOL \
36252OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036253PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036254NM \
36255LN_S \
36256lt_SP2NL \
36257lt_NL2SP \
36258reload_flag \
36259deplibs_check_method \
36260file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036261file_magic_glob \
36262want_nocaseglob \
36263sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036264AR \
36265AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036266archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036267STRIP \
36268RANLIB \
36269CC \
36270CFLAGS \
36271compiler \
36272lt_cv_sys_global_symbol_pipe \
36273lt_cv_sys_global_symbol_to_cdecl \
36274lt_cv_sys_global_symbol_to_c_name_address \
36275lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036276nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036277lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036278lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036279lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036280lt_prog_compiler_static \
36281lt_cv_prog_compiler_c_o \
36282need_locks \
cristyda16f162011-02-19 23:52:17 +000036283MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036284DSYMUTIL \
36285NMEDIT \
36286LIPO \
36287OTOOL \
36288OTOOL64 \
36289shrext_cmds \
36290export_dynamic_flag_spec \
36291whole_archive_flag_spec \
36292compiler_needs_object \
36293with_gnu_ld \
36294allow_undefined_flag \
36295no_undefined_flag \
36296hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036297hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036298exclude_expsyms \
36299include_expsyms \
36300file_list_spec \
36301variables_saved_for_relink \
36302libname_spec \
36303library_names_spec \
36304soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036305install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036306finish_eval \
36307old_striplib \
36308striplib \
36309compiler_lib_search_dirs \
36310predep_objects \
36311postdep_objects \
36312predeps \
36313postdeps \
36314compiler_lib_search_path \
36315LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036316reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036317compiler_CXX \
36318lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036319lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036320lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036321lt_prog_compiler_static_CXX \
36322lt_cv_prog_compiler_c_o_CXX \
36323export_dynamic_flag_spec_CXX \
36324whole_archive_flag_spec_CXX \
36325compiler_needs_object_CXX \
36326with_gnu_ld_CXX \
36327allow_undefined_flag_CXX \
36328no_undefined_flag_CXX \
36329hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036330hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036331exclude_expsyms_CXX \
36332include_expsyms_CXX \
36333file_list_spec_CXX \
36334compiler_lib_search_dirs_CXX \
36335predep_objects_CXX \
36336postdep_objects_CXX \
36337predeps_CXX \
36338postdeps_CXX \
36339compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036340 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036341 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036342 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036343 ;;
36344 *)
36345 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36346 ;;
36347 esac
36348done
36349
36350# Double-quote double-evaled strings.
36351for var in reload_cmds \
36352old_postinstall_cmds \
36353old_postuninstall_cmds \
36354old_archive_cmds \
36355extract_expsyms_cmds \
36356old_archive_from_new_cmds \
36357old_archive_from_expsyms_cmds \
36358archive_cmds \
36359archive_expsym_cmds \
36360module_cmds \
36361module_expsym_cmds \
36362export_symbols_cmds \
36363prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036364postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036365postinstall_cmds \
36366postuninstall_cmds \
36367finish_cmds \
36368sys_lib_search_path_spec \
36369sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036370reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036371old_archive_cmds_CXX \
36372old_archive_from_new_cmds_CXX \
36373old_archive_from_expsyms_cmds_CXX \
36374archive_cmds_CXX \
36375archive_expsym_cmds_CXX \
36376module_cmds_CXX \
36377module_expsym_cmds_CXX \
36378export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036379prelink_cmds_CXX \
36380postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036381 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036382 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036383 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036384 ;;
36385 *)
36386 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36387 ;;
36388 esac
36389done
36390
cristy73bd4a52010-10-05 11:24:23 +000036391ac_aux_dir='$ac_aux_dir'
36392xsi_shell='$xsi_shell'
36393lt_shell_append='$lt_shell_append'
36394
36395# See if we are running on zsh, and set the options which allow our
36396# commands through without removal of \ escapes INIT.
36397if test -n "\${ZSH_VERSION+set}" ; then
36398 setopt NO_GLOB_SUBST
36399fi
36400
36401
36402 PACKAGE='$PACKAGE'
36403 VERSION='$VERSION'
36404 TIMESTAMP='$TIMESTAMP'
36405 RM='$RM'
36406 ofile='$ofile'
36407
36408
36409
36410
36411
36412
cristy3ed852e2009-09-05 21:47:34 +000036413_ACEOF
36414
36415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36416
36417# Handling of arguments.
36418for ac_config_target in $ac_config_targets
36419do
36420 case $ac_config_target in
36421 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036422 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036423 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036424 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36425 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36426 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36427 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36428 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036429 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036430 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036431 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36432 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36433 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36434 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36435 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036436 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036437 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36438 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036439 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36440 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36441 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036442 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36443 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36444 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36445 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36446 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36447 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36448 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36449 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36450 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36451 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36452 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36453 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36454 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36455 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36456 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36457 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36458 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036459 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36460 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036461 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36462 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036463 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036464 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036465 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036466 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036467 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36468 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36469
cristy98dddb52010-11-04 00:30:15 +000036470 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036471 esac
36472done
36473
36474
36475# If the user did not use the arguments to specify the items to instantiate,
36476# then the envvar interface is used. Set only those that are not.
36477# We use the long form for the default assignment because of an extremely
36478# bizarre bug on SunOS 4.1.3.
36479if $ac_need_defaults; then
36480 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36481 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36482 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36483fi
36484
36485# Have a temporary directory for convenience. Make it in the build tree
36486# simply because there is no reason against having it here, and in addition,
36487# creating and moving files from /tmp can sometimes cause problems.
36488# Hook for its removal unless debugging.
36489# Note that there is a small window in which the directory will not be cleaned:
36490# after its creation but before its name has been assigned to `$tmp'.
36491$debug ||
36492{
cristyda16f162011-02-19 23:52:17 +000036493 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036494 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036495 : "${ac_tmp:=$tmp}"
36496 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036497' 0
cristy8b350f62009-11-15 23:12:43 +000036498 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036499}
36500# Create a (secure) tmp directory for tmp files.
36501
36502{
36503 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036504 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036505} ||
36506{
36507 tmp=./conf$$-$RANDOM
36508 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036509} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036510ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036511
36512# Set up the scripts for CONFIG_FILES section.
36513# No need to generate them if there are no CONFIG_FILES.
36514# This happens for instance with `./config.status config.h'.
36515if test -n "$CONFIG_FILES"; then
36516
36517
cristy8b350f62009-11-15 23:12:43 +000036518ac_cr=`echo X | tr X '\015'`
36519# On cygwin, bash can eat \r inside `` if the user requested igncr.
36520# But we know of no other shell where ac_cr would be empty at this
36521# point, so we can use a bashism as a fallback.
36522if test "x$ac_cr" = x; then
36523 eval ac_cr=\$\'\\r\'
36524fi
cristy3ed852e2009-09-05 21:47:34 +000036525ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36526if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036527 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036528else
36529 ac_cs_awk_cr=$ac_cr
36530fi
36531
cristyda16f162011-02-19 23:52:17 +000036532echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036533_ACEOF
36534
36535
36536{
36537 echo "cat >conf$$subs.awk <<_ACEOF" &&
36538 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36539 echo "_ACEOF"
36540} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36542ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036543ac_delim='%!_!# '
36544for ac_last_try in false false false false false :; do
36545 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036546 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036547
36548 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36549 if test $ac_delim_n = $ac_delim_num; then
36550 break
36551 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036552 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036553 else
36554 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36555 fi
36556done
36557rm -f conf$$subs.sh
36558
36559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036560cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036561_ACEOF
36562sed -n '
36563h
36564s/^/S["/; s/!.*/"]=/
36565p
36566g
36567s/^[^!]*!//
36568:repl
36569t repl
36570s/'"$ac_delim"'$//
36571t delim
36572:nl
36573h
cristycd4c5312009-11-22 01:19:08 +000036574s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036575t more1
36576s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36577p
36578n
36579b repl
36580:more1
36581s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36582p
36583g
36584s/.\{148\}//
36585t nl
36586:delim
36587h
cristycd4c5312009-11-22 01:19:08 +000036588s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036589t more2
36590s/["\\]/\\&/g; s/^/"/; s/$/"/
36591p
36592b
36593:more2
36594s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36595p
36596g
36597s/.\{148\}//
36598t delim
36599' <conf$$subs.awk | sed '
36600/^[^""]/{
36601 N
36602 s/\n//
36603}
36604' >>$CONFIG_STATUS || ac_write_fail=1
36605rm -f conf$$subs.awk
36606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36607_ACAWK
cristyda16f162011-02-19 23:52:17 +000036608cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036609 for (key in S) S_is_set[key] = 1
36610 FS = ""
36611
36612}
36613{
36614 line = $ 0
36615 nfields = split(line, field, "@")
36616 substed = 0
36617 len = length(field[1])
36618 for (i = 2; i < nfields; i++) {
36619 key = field[i]
36620 keylen = length(key)
36621 if (S_is_set[key]) {
36622 value = S[key]
36623 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36624 len += length(value) + length(field[++i])
36625 substed = 1
36626 } else
36627 len += 1 + keylen
36628 }
36629
36630 print line
36631}
36632
36633_ACAWK
36634_ACEOF
36635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36636if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36637 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36638else
36639 cat
cristyda16f162011-02-19 23:52:17 +000036640fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036641 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036642_ACEOF
36643
cristy98dddb52010-11-04 00:30:15 +000036644# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36645# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036646# trailing colons and then remove the whole line if VPATH becomes empty
36647# (actually we leave an empty line to preserve line numbers).
36648if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036649 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36650h
36651s///
36652s/^/:/
36653s/[ ]*$/:/
36654s/:\$(srcdir):/:/g
36655s/:\${srcdir}:/:/g
36656s/:@srcdir@:/:/g
36657s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036658s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036659x
36660s/\(=[ ]*\).*/\1/
36661G
36662s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036663s/^[^=]*=[ ]*$//
36664}'
36665fi
36666
36667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36668fi # test -n "$CONFIG_FILES"
36669
36670# Set up the scripts for CONFIG_HEADERS section.
36671# No need to generate them if there are no CONFIG_HEADERS.
36672# This happens for instance with `./config.status Makefile'.
36673if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036674cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036675BEGIN {
36676_ACEOF
36677
36678# Transform confdefs.h into an awk script `defines.awk', embedded as
36679# here-document in config.status, that substitutes the proper values into
36680# config.h.in to produce config.h.
36681
36682# Create a delimiter string that does not exist in confdefs.h, to ease
36683# handling of long lines.
36684ac_delim='%!_!# '
36685for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036686 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36687 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036688 break
36689 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036690 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036691 else
36692 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36693 fi
36694done
36695
36696# For the awk script, D is an array of macro values keyed by name,
36697# likewise P contains macro parameters if any. Preserve backslash
36698# newline sequences.
36699
36700ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36701sed -n '
36702s/.\{148\}/&'"$ac_delim"'/g
36703t rset
36704:rset
36705s/^[ ]*#[ ]*define[ ][ ]*/ /
36706t def
36707d
36708:def
36709s/\\$//
36710t bsnl
36711s/["\\]/\\&/g
36712s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36713D["\1"]=" \3"/p
36714s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36715d
36716:bsnl
36717s/["\\]/\\&/g
36718s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36719D["\1"]=" \3\\\\\\n"\\/p
36720t cont
36721s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36722t cont
36723d
36724:cont
36725n
36726s/.\{148\}/&'"$ac_delim"'/g
36727t clear
36728:clear
36729s/\\$//
36730t bsnlc
36731s/["\\]/\\&/g; s/^/"/; s/$/"/p
36732d
36733:bsnlc
36734s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36735b cont
36736' <confdefs.h | sed '
36737s/'"$ac_delim"'/"\\\
36738"/g' >>$CONFIG_STATUS || ac_write_fail=1
36739
36740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36741 for (key in D) D_is_set[key] = 1
36742 FS = ""
36743}
36744/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36745 line = \$ 0
36746 split(line, arg, " ")
36747 if (arg[1] == "#") {
36748 defundef = arg[2]
36749 mac1 = arg[3]
36750 } else {
36751 defundef = substr(arg[1], 2)
36752 mac1 = arg[2]
36753 }
36754 split(mac1, mac2, "(") #)
36755 macro = mac2[1]
36756 prefix = substr(line, 1, index(line, defundef) - 1)
36757 if (D_is_set[macro]) {
36758 # Preserve the white space surrounding the "#".
36759 print prefix "define", macro P[macro] D[macro]
36760 next
36761 } else {
36762 # Replace #undef with comments. This is necessary, for example,
36763 # in the case of _POSIX_SOURCE, which is predefined and required
36764 # on some systems where configure will not decide to define it.
36765 if (defundef == "undef") {
36766 print "/*", prefix defundef, macro, "*/"
36767 next
36768 }
36769 }
36770}
36771{ print }
36772_ACAWK
36773_ACEOF
36774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036775 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036776fi # test -n "$CONFIG_HEADERS"
36777
36778
36779eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36780shift
36781for ac_tag
36782do
36783 case $ac_tag in
36784 :[FHLC]) ac_mode=$ac_tag; continue;;
36785 esac
36786 case $ac_mode$ac_tag in
36787 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036788 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036789 :[FH]-) ac_tag=-:-;;
36790 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36791 esac
36792 ac_save_IFS=$IFS
36793 IFS=:
36794 set x $ac_tag
36795 IFS=$ac_save_IFS
36796 shift
36797 ac_file=$1
36798 shift
36799
36800 case $ac_mode in
36801 :L) ac_source=$1;;
36802 :[FH])
36803 ac_file_inputs=
36804 for ac_f
36805 do
36806 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036807 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036808 *) # Look for the file first in the build tree, then in the source tree
36809 # (if the path is not absolute). The absolute path cannot be DOS-style,
36810 # because $ac_f cannot contain `:'.
36811 test -f "$ac_f" ||
36812 case $ac_f in
36813 [\\/$]*) false;;
36814 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36815 esac ||
cristy98dddb52010-11-04 00:30:15 +000036816 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036817 esac
36818 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036819 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036820 done
36821
36822 # Let's still pretend it is `configure' which instantiates (i.e., don't
36823 # use $as_me), people would be surprised to read:
36824 # /* config.h. Generated by config.status. */
36825 configure_input='Generated from '`
36826 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36827 `' by configure.'
36828 if test x"$ac_file" != x-; then
36829 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036830 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036831$as_echo "$as_me: creating $ac_file" >&6;}
36832 fi
36833 # Neutralize special characters interpreted by sed in replacement strings.
36834 case $configure_input in #(
36835 *\&* | *\|* | *\\* )
36836 ac_sed_conf_input=`$as_echo "$configure_input" |
36837 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36838 *) ac_sed_conf_input=$configure_input;;
36839 esac
36840
36841 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036842 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036843 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036844 esac
36845 ;;
36846 esac
36847
36848 ac_dir=`$as_dirname -- "$ac_file" ||
36849$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36850 X"$ac_file" : 'X\(//\)[^/]' \| \
36851 X"$ac_file" : 'X\(//\)$' \| \
36852 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36853$as_echo X"$ac_file" |
36854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36855 s//\1/
36856 q
36857 }
36858 /^X\(\/\/\)[^/].*/{
36859 s//\1/
36860 q
36861 }
36862 /^X\(\/\/\)$/{
36863 s//\1/
36864 q
36865 }
36866 /^X\(\/\).*/{
36867 s//\1/
36868 q
36869 }
36870 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036871 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036872 ac_builddir=.
36873
36874case "$ac_dir" in
36875.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36876*)
36877 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36878 # A ".." for each directory in $ac_dir_suffix.
36879 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36880 case $ac_top_builddir_sub in
36881 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36882 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36883 esac ;;
36884esac
36885ac_abs_top_builddir=$ac_pwd
36886ac_abs_builddir=$ac_pwd$ac_dir_suffix
36887# for backward compatibility:
36888ac_top_builddir=$ac_top_build_prefix
36889
36890case $srcdir in
36891 .) # We are building in place.
36892 ac_srcdir=.
36893 ac_top_srcdir=$ac_top_builddir_sub
36894 ac_abs_top_srcdir=$ac_pwd ;;
36895 [\\/]* | ?:[\\/]* ) # Absolute name.
36896 ac_srcdir=$srcdir$ac_dir_suffix;
36897 ac_top_srcdir=$srcdir
36898 ac_abs_top_srcdir=$srcdir ;;
36899 *) # Relative name.
36900 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36901 ac_top_srcdir=$ac_top_build_prefix$srcdir
36902 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36903esac
36904ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36905
36906
36907 case $ac_mode in
36908 :F)
36909 #
36910 # CONFIG_FILE
36911 #
36912
36913 case $INSTALL in
36914 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36915 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36916 esac
cristy73bd4a52010-10-05 11:24:23 +000036917 ac_MKDIR_P=$MKDIR_P
36918 case $MKDIR_P in
36919 [\\/$]* | ?:[\\/]* ) ;;
36920 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36921 esac
cristy3ed852e2009-09-05 21:47:34 +000036922_ACEOF
36923
36924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36925# If the template does not know about datarootdir, expand it.
36926# FIXME: This hack should be removed a few years after 2.60.
36927ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036928ac_sed_dataroot='
36929/datarootdir/ {
36930 p
36931 q
36932}
36933/@datadir@/p
36934/@docdir@/p
36935/@infodir@/p
36936/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036937/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036938case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36939*datarootdir*) ac_datarootdir_seen=yes;;
36940*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036942$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36943_ACEOF
36944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36945 ac_datarootdir_hack='
36946 s&@datadir@&$datadir&g
36947 s&@docdir@&$docdir&g
36948 s&@infodir@&$infodir&g
36949 s&@localedir@&$localedir&g
36950 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036951 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036952esac
36953_ACEOF
36954
36955# Neutralize VPATH when `$srcdir' = `.'.
36956# Shell code in configure.ac might set extrasub.
36957# FIXME: do we really want to maintain this feature?
36958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36959ac_sed_extra="$ac_vpsub
36960$extrasub
36961_ACEOF
36962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36963:t
36964/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36965s|@configure_input@|$ac_sed_conf_input|;t t
36966s&@top_builddir@&$ac_top_builddir_sub&;t t
36967s&@top_build_prefix@&$ac_top_build_prefix&;t t
36968s&@srcdir@&$ac_srcdir&;t t
36969s&@abs_srcdir@&$ac_abs_srcdir&;t t
36970s&@top_srcdir@&$ac_top_srcdir&;t t
36971s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36972s&@builddir@&$ac_builddir&;t t
36973s&@abs_builddir@&$ac_abs_builddir&;t t
36974s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36975s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036976s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036977$ac_datarootdir_hack
36978"
cristyda16f162011-02-19 23:52:17 +000036979eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36980 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036981
36982test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036983 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36984 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36985 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036987which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036988$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036989which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036990
cristyda16f162011-02-19 23:52:17 +000036991 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036992 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036993 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36994 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036995 esac \
cristy98dddb52010-11-04 00:30:15 +000036996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036997 ;;
36998 :H)
36999 #
37000 # CONFIG_HEADER
37001 #
37002 if test x"$ac_file" != x-; then
37003 {
37004 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037005 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37006 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037007 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037008 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037009 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037010$as_echo "$as_me: $ac_file is unchanged" >&6;}
37011 else
37012 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037013 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037015 fi
37016 else
37017 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037018 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037019 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037020 fi
cristy73bd4a52010-10-05 11:24:23 +000037021# Compute "$ac_file"'s index in $config_headers.
37022_am_arg="$ac_file"
37023_am_stamp_count=1
37024for _am_header in $config_headers :; do
37025 case $_am_header in
37026 $_am_arg | $_am_arg:* )
37027 break ;;
37028 * )
37029 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37030 esac
37031done
37032echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37033$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37034 X"$_am_arg" : 'X\(//\)[^/]' \| \
37035 X"$_am_arg" : 'X\(//\)$' \| \
37036 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37037$as_echo X"$_am_arg" |
37038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37039 s//\1/
37040 q
37041 }
37042 /^X\(\/\/\)[^/].*/{
37043 s//\1/
37044 q
37045 }
37046 /^X\(\/\/\)$/{
37047 s//\1/
37048 q
37049 }
37050 /^X\(\/\).*/{
37051 s//\1/
37052 q
37053 }
37054 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037055 ;;
37056
cristy8b350f62009-11-15 23:12:43 +000037057 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037058$as_echo "$as_me: executing $ac_file commands" >&6;}
37059 ;;
37060 esac
37061
37062
37063 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037064 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037065ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37066ac_prefix_conf_PKG=`echo MagickCore`
37067ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37068ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37069ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37070if test ".$ac_prefix_conf_INP" = "."; then
37071 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37072 case "$ac_file" in
37073 *.h) ac_prefix_conf_INP=$ac_file ;;
37074 *)
37075 esac
37076 test ".$ac_prefix_conf_INP" != "." && break
37077 done
37078fi
37079if test ".$ac_prefix_conf_INP" = "."; then
37080 case "$ac_prefix_conf_OUT" in
37081 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37082 ;;
37083 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37084 ;;
37085 *) ac_prefix_conf_INP=config.h
37086 ;;
37087 esac
37088fi
37089if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037090 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037091else
37092 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37093 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37094 fi fi
37095 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37096$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37097 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037098 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37099 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37100 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37101 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37102 $as_echo "#endif/" >> conftest.prefix
37103 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37104 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37105 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037106 # now executing _script on _DEF input to create _OUT output file
37107 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37108 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37109 echo ' ' >>$tmp/pconfig.h
37110 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37111
37112 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37113 echo ' ' >>$tmp/pconfig.h
37114 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37115 echo "#endif" >>$tmp/pconfig.h
37116 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37117 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37118$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37119 else
37120 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37121$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37122 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37123 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37124 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37125$as_echo X"$ac_prefix_conf_OUT" |
37126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37127 s//\1/
37128 q
37129 }
37130 /^X\(\/\/\)[^/].*/{
37131 s//\1/
37132 q
37133 }
37134 /^X\(\/\/\)$/{
37135 s//\1/
37136 q
37137 }
37138 /^X\(\/\).*/{
37139 s//\1/
37140 q
37141 }
37142 s/.*/./; q'`
37143 as_dir="$ac_dir"; as_fn_mkdir_p
37144 rm -f "$ac_prefix_conf_OUT"
37145 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37146 fi
37147 cp conftest.prefix _configs.sed
37148 else
cristy98dddb52010-11-04 00:30:15 +000037149 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 +000037150 fi
37151 rm -f conftest.*
37152fi
37153 ;;
37154 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37155 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37156 # are listed without --file. Let's play safe and only enable the eval
37157 # if we detect the quoting.
37158 case $CONFIG_FILES in
37159 *\'*) eval set x "$CONFIG_FILES" ;;
37160 *) set x $CONFIG_FILES ;;
37161 esac
37162 shift
37163 for mf
37164 do
37165 # Strip MF so we end up with the name of the file.
37166 mf=`echo "$mf" | sed -e 's/:.*$//'`
37167 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037168 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037169 # some people rename them; so instead we look at the file content.
37170 # Grep'ing the first line is not enough: some people post-process
37171 # each Makefile.in and add a new line on top of each file to say so.
37172 # Grep'ing the whole file is not good either: AIX grep has a line
37173 # limit of 2048, but all sed's we know have understand at least 4000.
37174 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37175 dirpart=`$as_dirname -- "$mf" ||
37176$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37177 X"$mf" : 'X\(//\)[^/]' \| \
37178 X"$mf" : 'X\(//\)$' \| \
37179 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37180$as_echo X"$mf" |
37181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37182 s//\1/
37183 q
37184 }
37185 /^X\(\/\/\)[^/].*/{
37186 s//\1/
37187 q
37188 }
37189 /^X\(\/\/\)$/{
37190 s//\1/
37191 q
37192 }
37193 /^X\(\/\).*/{
37194 s//\1/
37195 q
37196 }
37197 s/.*/./; q'`
37198 else
37199 continue
37200 fi
37201 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037202 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037203 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37204 test -z "$DEPDIR" && continue
37205 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37206 test -z "am__include" && continue
37207 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037208 # Find all dependency output files, they are included files with
37209 # $(DEPDIR) in their names. We invoke sed twice because it is the
37210 # simplest approach to changing $(DEPDIR) to its actual value in the
37211 # expansion.
37212 for file in `sed -n "
37213 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037214 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037215 # Make sure the directory exists.
37216 test -f "$dirpart/$file" && continue
37217 fdir=`$as_dirname -- "$file" ||
37218$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37219 X"$file" : 'X\(//\)[^/]' \| \
37220 X"$file" : 'X\(//\)$' \| \
37221 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37222$as_echo X"$file" |
37223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37224 s//\1/
37225 q
37226 }
37227 /^X\(\/\/\)[^/].*/{
37228 s//\1/
37229 q
37230 }
37231 /^X\(\/\/\)$/{
37232 s//\1/
37233 q
37234 }
37235 /^X\(\/\).*/{
37236 s//\1/
37237 q
37238 }
37239 s/.*/./; q'`
37240 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37241 # echo "creating $dirpart/$file"
37242 echo '# dummy' > "$dirpart/$file"
37243 done
37244 done
37245}
37246 ;;
37247 "libtool":C)
37248
37249 # See if we are running on zsh, and set the options which allow our
37250 # commands through without removal of \ escapes.
37251 if test -n "${ZSH_VERSION+set}" ; then
37252 setopt NO_GLOB_SUBST
37253 fi
37254
37255 cfgfile="${ofile}T"
37256 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37257 $RM "$cfgfile"
37258
37259 cat <<_LT_EOF >> "$cfgfile"
37260#! $SHELL
37261
37262# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37263# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37264# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37265# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37266#
37267# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037268# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37269# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037270# Written by Gordon Matzigkeit, 1996
37271#
37272# This file is part of GNU Libtool.
37273#
37274# GNU Libtool is free software; you can redistribute it and/or
37275# modify it under the terms of the GNU General Public License as
37276# published by the Free Software Foundation; either version 2 of
37277# the License, or (at your option) any later version.
37278#
37279# As a special exception to the GNU General Public License,
37280# if you distribute this file as part of a program or library that
37281# is built using GNU Libtool, you may include this file under the
37282# same distribution terms that you use for the rest of that program.
37283#
37284# GNU Libtool is distributed in the hope that it will be useful,
37285# but WITHOUT ANY WARRANTY; without even the implied warranty of
37286# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37287# GNU General Public License for more details.
37288#
37289# You should have received a copy of the GNU General Public License
37290# along with GNU Libtool; see the file COPYING. If not, a copy
37291# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37292# obtained by writing to the Free Software Foundation, Inc.,
37293# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37294
37295
37296# The names of the tagged configurations supported by this script.
37297available_tags="CXX "
37298
37299# ### BEGIN LIBTOOL CONFIG
37300
37301# A sed program that does not truncate output.
37302SED=$lt_SED
37303
37304# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37305Xsed="\$SED -e 1s/^X//"
37306
37307# A grep program that handles long lines.
37308GREP=$lt_GREP
37309
37310# An ERE matcher.
37311EGREP=$lt_EGREP
37312
37313# A literal string matcher.
37314FGREP=$lt_FGREP
37315
cristy0c60a692010-11-04 01:09:47 +000037316# Shell to use when invoking shell scripts.
37317SHELL=$lt_SHELL
37318
37319# An echo program that protects backslashes.
37320ECHO=$lt_ECHO
37321
cristy73bd4a52010-10-05 11:24:23 +000037322# Which release of libtool.m4 was used?
37323macro_version=$macro_version
37324macro_revision=$macro_revision
37325
37326# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037327AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037328
37329# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037330DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037331
37332# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037333OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037334
37335# Whether or not to build shared libraries.
37336build_libtool_libs=$enable_shared
37337
37338# Whether or not to build static libraries.
37339build_old_libs=$enable_static
37340
37341# What type of objects to build.
37342pic_mode=$pic_mode
37343
37344# Whether or not to optimize for fast installation.
37345fast_install=$enable_fast_install
37346
cristy99bd5232011-12-07 14:38:20 +000037347# The PATH separator for the build system.
37348PATH_SEPARATOR=$lt_PATH_SEPARATOR
37349
cristy73bd4a52010-10-05 11:24:23 +000037350# The host system.
37351host_alias=$host_alias
37352host=$host
37353host_os=$host_os
37354
37355# The build system.
37356build_alias=$build_alias
37357build=$build
37358build_os=$build_os
37359
37360# A BSD- or MS-compatible name lister.
37361NM=$lt_NM
37362
37363# Whether we need soft or hard links.
37364LN_S=$lt_LN_S
37365
37366# What is the maximum length of a command?
37367max_cmd_len=$max_cmd_len
37368
37369# Object file suffix (normally "o").
37370objext=$ac_objext
37371
37372# Executable file suffix (normally "").
37373exeext=$exeext
37374
37375# whether the shell understands "unset".
37376lt_unset=$lt_unset
37377
37378# turn spaces into newlines.
37379SP2NL=$lt_lt_SP2NL
37380
37381# turn newlines into spaces.
37382NL2SP=$lt_lt_NL2SP
37383
cristyda16f162011-02-19 23:52:17 +000037384# convert \$build file names to \$host format.
37385to_host_file_cmd=$lt_cv_to_host_file_cmd
37386
37387# convert \$build files to toolchain format.
37388to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37389
cristy73bd4a52010-10-05 11:24:23 +000037390# Method to check whether dependent libraries are shared objects.
37391deplibs_check_method=$lt_deplibs_check_method
37392
cristyda16f162011-02-19 23:52:17 +000037393# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037394file_magic_cmd=$lt_file_magic_cmd
37395
cristyda16f162011-02-19 23:52:17 +000037396# How to find potential files when deplibs_check_method = "file_magic".
37397file_magic_glob=$lt_file_magic_glob
37398
37399# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37400want_nocaseglob=$lt_want_nocaseglob
37401
37402# Command to associate shared and link libraries.
37403sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37404
cristy73bd4a52010-10-05 11:24:23 +000037405# The archiver.
37406AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037407
37408# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037409AR_FLAGS=$lt_AR_FLAGS
37410
cristyda16f162011-02-19 23:52:17 +000037411# How to feed a file listing to the archiver.
37412archiver_list_spec=$lt_archiver_list_spec
37413
cristy73bd4a52010-10-05 11:24:23 +000037414# A symbol stripping program.
37415STRIP=$lt_STRIP
37416
37417# Commands used to install an old-style archive.
37418RANLIB=$lt_RANLIB
37419old_postinstall_cmds=$lt_old_postinstall_cmds
37420old_postuninstall_cmds=$lt_old_postuninstall_cmds
37421
cristy0c60a692010-11-04 01:09:47 +000037422# Whether to use a lock for old archive extraction.
37423lock_old_archive_extraction=$lock_old_archive_extraction
37424
cristy73bd4a52010-10-05 11:24:23 +000037425# A C compiler.
37426LTCC=$lt_CC
37427
37428# LTCC compiler flags.
37429LTCFLAGS=$lt_CFLAGS
37430
37431# Take the output of nm and produce a listing of raw symbols and C names.
37432global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37433
37434# Transform the output of nm in a proper C declaration.
37435global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37436
37437# Transform the output of nm in a C name address pair.
37438global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37439
37440# Transform the output of nm in a C name address pair when lib prefix is needed.
37441global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37442
cristyda16f162011-02-19 23:52:17 +000037443# Specify filename containing input files for \$NM.
37444nm_file_list_spec=$lt_nm_file_list_spec
37445
37446# The root where to search for dependent libraries,and in which our libraries should be installed.
37447lt_sysroot=$lt_sysroot
37448
cristy73bd4a52010-10-05 11:24:23 +000037449# The name of the directory that contains temporary libtool files.
37450objdir=$objdir
37451
cristy73bd4a52010-10-05 11:24:23 +000037452# Used to examine libraries when file_magic_cmd begins with "file".
37453MAGIC_CMD=$MAGIC_CMD
37454
37455# Must we lock files when doing compilation?
37456need_locks=$lt_need_locks
37457
cristyda16f162011-02-19 23:52:17 +000037458# Manifest tool.
37459MANIFEST_TOOL=$lt_MANIFEST_TOOL
37460
cristy73bd4a52010-10-05 11:24:23 +000037461# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37462DSYMUTIL=$lt_DSYMUTIL
37463
37464# Tool to change global to local symbols on Mac OS X.
37465NMEDIT=$lt_NMEDIT
37466
37467# Tool to manipulate fat objects and archives on Mac OS X.
37468LIPO=$lt_LIPO
37469
37470# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37471OTOOL=$lt_OTOOL
37472
37473# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37474OTOOL64=$lt_OTOOL64
37475
37476# Old archive suffix (normally "a").
37477libext=$libext
37478
37479# Shared library suffix (normally ".so").
37480shrext_cmds=$lt_shrext_cmds
37481
37482# The commands to extract the exported symbol list from a shared archive.
37483extract_expsyms_cmds=$lt_extract_expsyms_cmds
37484
37485# Variables whose values should be saved in libtool wrapper scripts and
37486# restored at link time.
37487variables_saved_for_relink=$lt_variables_saved_for_relink
37488
37489# Do we need the "lib" prefix for modules?
37490need_lib_prefix=$need_lib_prefix
37491
37492# Do we need a version for libraries?
37493need_version=$need_version
37494
37495# Library versioning type.
37496version_type=$version_type
37497
37498# Shared library runtime path variable.
37499runpath_var=$runpath_var
37500
37501# Shared library path variable.
37502shlibpath_var=$shlibpath_var
37503
37504# Is shlibpath searched before the hard-coded library search path?
37505shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37506
37507# Format of library name prefix.
37508libname_spec=$lt_libname_spec
37509
37510# List of archive names. First name is the real one, the rest are links.
37511# The last name is the one that the linker finds with -lNAME
37512library_names_spec=$lt_library_names_spec
37513
37514# The coded name of the library, if different from the real name.
37515soname_spec=$lt_soname_spec
37516
cristy0c60a692010-11-04 01:09:47 +000037517# Permission mode override for installation of shared libraries.
37518install_override_mode=$lt_install_override_mode
37519
cristy73bd4a52010-10-05 11:24:23 +000037520# Command to use after installation of a shared archive.
37521postinstall_cmds=$lt_postinstall_cmds
37522
37523# Command to use after uninstallation of a shared archive.
37524postuninstall_cmds=$lt_postuninstall_cmds
37525
37526# Commands used to finish a libtool library installation in a directory.
37527finish_cmds=$lt_finish_cmds
37528
37529# As "finish_cmds", except a single script fragment to be evaled but
37530# not shown.
37531finish_eval=$lt_finish_eval
37532
37533# Whether we should hardcode library paths into libraries.
37534hardcode_into_libs=$hardcode_into_libs
37535
37536# Compile-time system search path for libraries.
37537sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37538
37539# Run-time system search path for libraries.
37540sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37541
37542# Whether dlopen is supported.
37543dlopen_support=$enable_dlopen
37544
37545# Whether dlopen of programs is supported.
37546dlopen_self=$enable_dlopen_self
37547
37548# Whether dlopen of statically linked programs is supported.
37549dlopen_self_static=$enable_dlopen_self_static
37550
37551# Commands to strip libraries.
37552old_striplib=$lt_old_striplib
37553striplib=$lt_striplib
37554
37555
37556# The linker used to build libraries.
37557LD=$lt_LD
37558
cristy0c60a692010-11-04 01:09:47 +000037559# How to create reloadable object files.
37560reload_flag=$lt_reload_flag
37561reload_cmds=$lt_reload_cmds
37562
cristy73bd4a52010-10-05 11:24:23 +000037563# Commands used to build an old-style archive.
37564old_archive_cmds=$lt_old_archive_cmds
37565
37566# A language specific compiler.
37567CC=$lt_compiler
37568
37569# Is the compiler the GNU compiler?
37570with_gcc=$GCC
37571
37572# Compiler flag to turn off builtin functions.
37573no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37574
cristy73bd4a52010-10-05 11:24:23 +000037575# Additional compiler flags for building library objects.
37576pic_flag=$lt_lt_prog_compiler_pic
37577
cristyda16f162011-02-19 23:52:17 +000037578# How to pass a linker flag through the compiler.
37579wl=$lt_lt_prog_compiler_wl
37580
cristy73bd4a52010-10-05 11:24:23 +000037581# Compiler flag to prevent dynamic linking.
37582link_static_flag=$lt_lt_prog_compiler_static
37583
37584# Does compiler simultaneously support -c and -o options?
37585compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37586
37587# Whether or not to add -lc for building shared libraries.
37588build_libtool_need_lc=$archive_cmds_need_lc
37589
37590# Whether or not to disallow shared libs when runtime libs are static.
37591allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37592
37593# Compiler flag to allow reflexive dlopens.
37594export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37595
37596# Compiler flag to generate shared objects directly from archives.
37597whole_archive_flag_spec=$lt_whole_archive_flag_spec
37598
37599# Whether the compiler copes with passing no objects directly.
37600compiler_needs_object=$lt_compiler_needs_object
37601
37602# Create an old-style archive from a shared archive.
37603old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37604
37605# Create a temporary old-style archive to link instead of a shared archive.
37606old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37607
37608# Commands used to build a shared archive.
37609archive_cmds=$lt_archive_cmds
37610archive_expsym_cmds=$lt_archive_expsym_cmds
37611
37612# Commands used to build a loadable module if different from building
37613# a shared archive.
37614module_cmds=$lt_module_cmds
37615module_expsym_cmds=$lt_module_expsym_cmds
37616
37617# Whether we are building with GNU ld or not.
37618with_gnu_ld=$lt_with_gnu_ld
37619
37620# Flag that allows shared libraries with undefined symbols to be built.
37621allow_undefined_flag=$lt_allow_undefined_flag
37622
37623# Flag that enforces no undefined symbols.
37624no_undefined_flag=$lt_no_undefined_flag
37625
37626# Flag to hardcode \$libdir into a binary during linking.
37627# This must work even if \$libdir does not exist
37628hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37629
cristy73bd4a52010-10-05 11:24:23 +000037630# Whether we need a single "-rpath" flag with a separated argument.
37631hardcode_libdir_separator=$lt_hardcode_libdir_separator
37632
37633# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37634# DIR into the resulting binary.
37635hardcode_direct=$hardcode_direct
37636
37637# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37638# DIR into the resulting binary and the resulting library dependency is
37639# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37640# library is relocated.
37641hardcode_direct_absolute=$hardcode_direct_absolute
37642
37643# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37644# into the resulting binary.
37645hardcode_minus_L=$hardcode_minus_L
37646
37647# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37648# into the resulting binary.
37649hardcode_shlibpath_var=$hardcode_shlibpath_var
37650
37651# Set to "yes" if building a shared library automatically hardcodes DIR
37652# into the library and all subsequent libraries and executables linked
37653# against it.
37654hardcode_automatic=$hardcode_automatic
37655
37656# Set to yes if linker adds runtime paths of dependent libraries
37657# to runtime path list.
37658inherit_rpath=$inherit_rpath
37659
37660# Whether libtool must link a program against all its dependency libraries.
37661link_all_deplibs=$link_all_deplibs
37662
cristy73bd4a52010-10-05 11:24:23 +000037663# Set to "yes" if exported symbols are required.
37664always_export_symbols=$always_export_symbols
37665
37666# The commands to list exported symbols.
37667export_symbols_cmds=$lt_export_symbols_cmds
37668
37669# Symbols that should not be listed in the preloaded symbols.
37670exclude_expsyms=$lt_exclude_expsyms
37671
37672# Symbols that must always be exported.
37673include_expsyms=$lt_include_expsyms
37674
37675# Commands necessary for linking programs (against libraries) with templates.
37676prelink_cmds=$lt_prelink_cmds
37677
cristyda16f162011-02-19 23:52:17 +000037678# Commands necessary for finishing linking programs.
37679postlink_cmds=$lt_postlink_cmds
37680
cristy73bd4a52010-10-05 11:24:23 +000037681# Specify filename containing input files.
37682file_list_spec=$lt_file_list_spec
37683
37684# How to hardcode a shared library path into an executable.
37685hardcode_action=$hardcode_action
37686
37687# The directories searched by this compiler when creating a shared library.
37688compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37689
37690# Dependencies to place before and after the objects being linked to
37691# create a shared library.
37692predep_objects=$lt_predep_objects
37693postdep_objects=$lt_postdep_objects
37694predeps=$lt_predeps
37695postdeps=$lt_postdeps
37696
37697# The library search path used internally by the compiler when linking
37698# a shared library.
37699compiler_lib_search_path=$lt_compiler_lib_search_path
37700
37701# ### END LIBTOOL CONFIG
37702
37703_LT_EOF
37704
37705 case $host_os in
37706 aix3*)
37707 cat <<\_LT_EOF >> "$cfgfile"
37708# AIX sometimes has problems with the GCC collect2 program. For some
37709# reason, if we set the COLLECT_NAMES environment variable, the problems
37710# vanish in a puff of smoke.
37711if test "X${COLLECT_NAMES+set}" != Xset; then
37712 COLLECT_NAMES=
37713 export COLLECT_NAMES
37714fi
37715_LT_EOF
37716 ;;
37717 esac
37718
37719
37720ltmain="$ac_aux_dir/ltmain.sh"
37721
37722
37723 # We use sed instead of cat because bash on DJGPP gets confused if
37724 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37725 # text mode, it properly converts lines to CR/LF. This bash problem
37726 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037727 sed '$q' "$ltmain" >> "$cfgfile" \
37728 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037729
cristyda16f162011-02-19 23:52:17 +000037730 if test x"$xsi_shell" = xyes; then
37731 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37732func_dirname ()\
37733{\
37734\ case ${1} in\
37735\ */*) func_dirname_result="${1%/*}${2}" ;;\
37736\ * ) func_dirname_result="${3}" ;;\
37737\ esac\
37738} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37739 && mv -f "$cfgfile.tmp" "$cfgfile" \
37740 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37741test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037742
37743
cristyda16f162011-02-19 23:52:17 +000037744 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37745func_basename ()\
37746{\
37747\ func_basename_result="${1##*/}"\
37748} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37749 && mv -f "$cfgfile.tmp" "$cfgfile" \
37750 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37751test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037752
37753
cristyda16f162011-02-19 23:52:17 +000037754 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37755func_dirname_and_basename ()\
37756{\
37757\ case ${1} in\
37758\ */*) func_dirname_result="${1%/*}${2}" ;;\
37759\ * ) func_dirname_result="${3}" ;;\
37760\ esac\
37761\ func_basename_result="${1##*/}"\
37762} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37763 && mv -f "$cfgfile.tmp" "$cfgfile" \
37764 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37765test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037766
cristyda16f162011-02-19 23:52:17 +000037767
37768 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37769func_stripname ()\
37770{\
37771\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37772\ # positional parameters, so assign one to ordinary parameter first.\
37773\ func_stripname_result=${3}\
37774\ func_stripname_result=${func_stripname_result#"${1}"}\
37775\ func_stripname_result=${func_stripname_result%"${2}"}\
37776} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37777 && mv -f "$cfgfile.tmp" "$cfgfile" \
37778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37779test 0 -eq $? || _lt_function_replace_fail=:
37780
37781
37782 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37783func_split_long_opt ()\
37784{\
37785\ func_split_long_opt_name=${1%%=*}\
37786\ func_split_long_opt_arg=${1#*=}\
37787} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37788 && mv -f "$cfgfile.tmp" "$cfgfile" \
37789 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37790test 0 -eq $? || _lt_function_replace_fail=:
37791
37792
37793 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37794func_split_short_opt ()\
37795{\
37796\ func_split_short_opt_arg=${1#??}\
37797\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37798} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37799 && mv -f "$cfgfile.tmp" "$cfgfile" \
37800 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37801test 0 -eq $? || _lt_function_replace_fail=:
37802
37803
37804 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37805func_lo2o ()\
37806{\
37807\ case ${1} in\
37808\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37809\ *) func_lo2o_result=${1} ;;\
37810\ esac\
37811} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37812 && mv -f "$cfgfile.tmp" "$cfgfile" \
37813 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37814test 0 -eq $? || _lt_function_replace_fail=:
37815
37816
37817 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37818func_xform ()\
37819{\
37820 func_xform_result=${1%.*}.lo\
37821} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37822 && mv -f "$cfgfile.tmp" "$cfgfile" \
37823 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37824test 0 -eq $? || _lt_function_replace_fail=:
37825
37826
37827 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37828func_arith ()\
37829{\
37830 func_arith_result=$(( $* ))\
37831} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37832 && mv -f "$cfgfile.tmp" "$cfgfile" \
37833 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37834test 0 -eq $? || _lt_function_replace_fail=:
37835
37836
37837 sed -e '/^func_len ()$/,/^} # func_len /c\
37838func_len ()\
37839{\
37840 func_len_result=${#1}\
37841} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37842 && mv -f "$cfgfile.tmp" "$cfgfile" \
37843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37844test 0 -eq $? || _lt_function_replace_fail=:
37845
37846fi
37847
37848if test x"$lt_shell_append" = xyes; then
37849 sed -e '/^func_append ()$/,/^} # func_append /c\
37850func_append ()\
37851{\
37852 eval "${1}+=\\${2}"\
37853} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37854 && mv -f "$cfgfile.tmp" "$cfgfile" \
37855 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37856test 0 -eq $? || _lt_function_replace_fail=:
37857
37858
37859 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37860func_append_quoted ()\
37861{\
37862\ func_quote_for_eval "${2}"\
37863\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37864} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37865 && mv -f "$cfgfile.tmp" "$cfgfile" \
37866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37867test 0 -eq $? || _lt_function_replace_fail=:
37868
37869
37870 # Save a `func_append' function call where possible by direct use of '+='
37871 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37872 && mv -f "$cfgfile.tmp" "$cfgfile" \
37873 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37874 test 0 -eq $? || _lt_function_replace_fail=:
37875else
37876 # Save a `func_append' function call even when '+=' is not available
37877 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37878 && mv -f "$cfgfile.tmp" "$cfgfile" \
37879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37880 test 0 -eq $? || _lt_function_replace_fail=:
37881fi
37882
37883if test x"$_lt_function_replace_fail" = x":"; then
37884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37885$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37886fi
37887
37888
37889 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037890 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37891 chmod +x "$ofile"
37892
37893
37894 cat <<_LT_EOF >> "$ofile"
37895
37896# ### BEGIN LIBTOOL TAG CONFIG: CXX
37897
37898# The linker used to build libraries.
37899LD=$lt_LD_CXX
37900
cristy0c60a692010-11-04 01:09:47 +000037901# How to create reloadable object files.
37902reload_flag=$lt_reload_flag_CXX
37903reload_cmds=$lt_reload_cmds_CXX
37904
cristy73bd4a52010-10-05 11:24:23 +000037905# Commands used to build an old-style archive.
37906old_archive_cmds=$lt_old_archive_cmds_CXX
37907
37908# A language specific compiler.
37909CC=$lt_compiler_CXX
37910
37911# Is the compiler the GNU compiler?
37912with_gcc=$GCC_CXX
37913
37914# Compiler flag to turn off builtin functions.
37915no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37916
cristy73bd4a52010-10-05 11:24:23 +000037917# Additional compiler flags for building library objects.
37918pic_flag=$lt_lt_prog_compiler_pic_CXX
37919
cristyda16f162011-02-19 23:52:17 +000037920# How to pass a linker flag through the compiler.
37921wl=$lt_lt_prog_compiler_wl_CXX
37922
cristy73bd4a52010-10-05 11:24:23 +000037923# Compiler flag to prevent dynamic linking.
37924link_static_flag=$lt_lt_prog_compiler_static_CXX
37925
37926# Does compiler simultaneously support -c and -o options?
37927compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37928
37929# Whether or not to add -lc for building shared libraries.
37930build_libtool_need_lc=$archive_cmds_need_lc_CXX
37931
37932# Whether or not to disallow shared libs when runtime libs are static.
37933allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37934
37935# Compiler flag to allow reflexive dlopens.
37936export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37937
37938# Compiler flag to generate shared objects directly from archives.
37939whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37940
37941# Whether the compiler copes with passing no objects directly.
37942compiler_needs_object=$lt_compiler_needs_object_CXX
37943
37944# Create an old-style archive from a shared archive.
37945old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37946
37947# Create a temporary old-style archive to link instead of a shared archive.
37948old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37949
37950# Commands used to build a shared archive.
37951archive_cmds=$lt_archive_cmds_CXX
37952archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37953
37954# Commands used to build a loadable module if different from building
37955# a shared archive.
37956module_cmds=$lt_module_cmds_CXX
37957module_expsym_cmds=$lt_module_expsym_cmds_CXX
37958
37959# Whether we are building with GNU ld or not.
37960with_gnu_ld=$lt_with_gnu_ld_CXX
37961
37962# Flag that allows shared libraries with undefined symbols to be built.
37963allow_undefined_flag=$lt_allow_undefined_flag_CXX
37964
37965# Flag that enforces no undefined symbols.
37966no_undefined_flag=$lt_no_undefined_flag_CXX
37967
37968# Flag to hardcode \$libdir into a binary during linking.
37969# This must work even if \$libdir does not exist
37970hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37971
cristy73bd4a52010-10-05 11:24:23 +000037972# Whether we need a single "-rpath" flag with a separated argument.
37973hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37974
37975# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37976# DIR into the resulting binary.
37977hardcode_direct=$hardcode_direct_CXX
37978
37979# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37980# DIR into the resulting binary and the resulting library dependency is
37981# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37982# library is relocated.
37983hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37984
37985# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37986# into the resulting binary.
37987hardcode_minus_L=$hardcode_minus_L_CXX
37988
37989# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37990# into the resulting binary.
37991hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37992
37993# Set to "yes" if building a shared library automatically hardcodes DIR
37994# into the library and all subsequent libraries and executables linked
37995# against it.
37996hardcode_automatic=$hardcode_automatic_CXX
37997
37998# Set to yes if linker adds runtime paths of dependent libraries
37999# to runtime path list.
38000inherit_rpath=$inherit_rpath_CXX
38001
38002# Whether libtool must link a program against all its dependency libraries.
38003link_all_deplibs=$link_all_deplibs_CXX
38004
cristy73bd4a52010-10-05 11:24:23 +000038005# Set to "yes" if exported symbols are required.
38006always_export_symbols=$always_export_symbols_CXX
38007
38008# The commands to list exported symbols.
38009export_symbols_cmds=$lt_export_symbols_cmds_CXX
38010
38011# Symbols that should not be listed in the preloaded symbols.
38012exclude_expsyms=$lt_exclude_expsyms_CXX
38013
38014# Symbols that must always be exported.
38015include_expsyms=$lt_include_expsyms_CXX
38016
38017# Commands necessary for linking programs (against libraries) with templates.
38018prelink_cmds=$lt_prelink_cmds_CXX
38019
cristyda16f162011-02-19 23:52:17 +000038020# Commands necessary for finishing linking programs.
38021postlink_cmds=$lt_postlink_cmds_CXX
38022
cristy73bd4a52010-10-05 11:24:23 +000038023# Specify filename containing input files.
38024file_list_spec=$lt_file_list_spec_CXX
38025
38026# How to hardcode a shared library path into an executable.
38027hardcode_action=$hardcode_action_CXX
38028
38029# The directories searched by this compiler when creating a shared library.
38030compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38031
38032# Dependencies to place before and after the objects being linked to
38033# create a shared library.
38034predep_objects=$lt_predep_objects_CXX
38035postdep_objects=$lt_postdep_objects_CXX
38036predeps=$lt_predeps_CXX
38037postdeps=$lt_postdeps_CXX
38038
38039# The library search path used internally by the compiler when linking
38040# a shared library.
38041compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38042
38043# ### END LIBTOOL TAG CONFIG: CXX
38044_LT_EOF
38045
38046 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038047 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038048 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038049 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038050 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38051 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38052
38053 esac
38054done # for ac_tag
38055
38056
cristy8b350f62009-11-15 23:12:43 +000038057as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038058_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038059ac_clean_files=$ac_clean_files_save
38060
38061test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038062 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038063
38064
38065# configure is writing to config.log, and then calls config.status.
38066# config.status does its own redirection, appending to config.log.
38067# Unfortunately, on DOS this fails, as config.log is still kept open
38068# by configure, so config.status won't be able to write to it; its
38069# output is simply discarded. So we exec the FD to /dev/null,
38070# effectively closing config.log, so it can be properly (re)opened and
38071# appended to by config.status. When coming back to configure, we
38072# need to make the FD available again.
38073if test "$no_create" != yes; then
38074 ac_cs_success=:
38075 ac_config_status_args=
38076 test "$silent" = yes &&
38077 ac_config_status_args="$ac_config_status_args --quiet"
38078 exec 5>/dev/null
38079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38080 exec 5>>config.log
38081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38082 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038083 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038084fi
38085if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038087$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38088fi
38089
38090
38091rm -f magick-version
38092
cristy430a7312010-01-21 20:44:04 +000038093result_dejavu_font_dir='none'
38094if test "${dejavu_font_dir}x" != 'x'; then
38095 result_dejavu_font_dir=$dejavu_font_dir
38096fi
38097
cristy3ed852e2009-09-05 21:47:34 +000038098result_ghostscript_font_dir='none'
38099if test "${ghostscript_font_dir}x" != 'x'; then
38100 result_ghostscript_font_dir=$ghostscript_font_dir
38101fi
38102
38103result_windows_font_dir='none'
38104if test "${windows_font_dir}x" != 'x'; then
38105 result_windows_font_dir=${windows_font_dir}
38106fi
38107
cristy09b53e12011-10-14 12:47:22 +000038108{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038109ImageMagick is configured as follows. Please verify that this configuration
38110matches your expectations.
38111
38112Host system type: $host
38113Build system type: $build
38114
38115 Option Value
38116-------------------------------------------------------------------------------
38117Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38118Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038119Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038120GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38121Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38122High Dynamic Range Imagery
38123 --enable-hdri=$enable_hdri $enable_hdri
38124
38125Delegate Configuration:
38126BZLIB --with-bzlib=$with_bzlib $have_bzlib
38127Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038128Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038129DJVU --with-djvu=$with_djvu $have_djvu
38130DPS --with-dps=$with_dps $have_dps
38131FFTW --with-fftw=$with_fftw $have_fftw
38132FlashPIX --with-fpx=$with_fpx $have_fpx
38133FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38134FreeType --with-freetype=$with_freetype $have_freetype
38135GhostPCL None $PCLDelegate ($PCLVersion)
38136GhostXPS None $XPSDelegate ($XPSVersion)
38137Ghostscript None $PSDelegate ($GSVersion)
38138Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38139Ghostscript lib --with-gslib=$with_gslib $have_gslib
38140Graphviz --with-gvc=$with_gvc $have_gvc
38141JBIG --with-jbig=$with_jbig $have_jbig
38142JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38143JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038144LCMS v1 --with-lcms=$with_lcms $have_lcms
38145LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038146LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038147LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038148LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038149Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38150OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038151PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038152PERL --with-perl=$with_perl $have_perl
38153PNG --with-png=$with_png $have_png
38154RSVG --with-rsvg=$with_rsvg $have_rsvg
38155TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038156WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038157Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038158WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038159X11 --with-x=$with_x $have_x
38160XML --with-xml=$with_xml $have_xml
38161ZLIB --with-zlib=$with_zlib $have_zlib
38162
38163X11 Configuration:
38164 X_CFLAGS = $X_CFLAGS
38165 X_PRE_LIBS = $X_PRE_LIBS
38166 X_LIBS = $X_LIBS
38167 X_EXTRA_LIBS = $X_EXTRA_LIBS
38168
38169Options used to compile and link:
38170 PREFIX = $PREFIX_DIR
38171 EXEC-PREFIX = $EXEC_PREFIX_DIR
38172 VERSION = $PACKAGE_VERSION
38173 CC = $CC
38174 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038175 CPPFLAGS = $MAGICK_CPPFLAGS
38176 PCFLAGS = $MAGICK_PCFLAGS
38177 DEFS = $DEFS
38178 LDFLAGS = $LDFLAGS
38179 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38180 LIBS = $MAGICK_LIBS
38181 CXX = $CXX
38182 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038183 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038184" >&5
cristy09b53e12011-10-14 12:47:22 +000038185$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038186ImageMagick is configured as follows. Please verify that this configuration
38187matches your expectations.
38188
38189Host system type: $host
38190Build system type: $build
38191
38192 Option Value
38193-------------------------------------------------------------------------------
38194Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38195Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038196Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038197GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38198Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38199High Dynamic Range Imagery
38200 --enable-hdri=$enable_hdri $enable_hdri
38201
38202Delegate Configuration:
38203BZLIB --with-bzlib=$with_bzlib $have_bzlib
38204Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038205Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038206DJVU --with-djvu=$with_djvu $have_djvu
38207DPS --with-dps=$with_dps $have_dps
38208FFTW --with-fftw=$with_fftw $have_fftw
38209FlashPIX --with-fpx=$with_fpx $have_fpx
38210FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38211FreeType --with-freetype=$with_freetype $have_freetype
38212GhostPCL None $PCLDelegate ($PCLVersion)
38213GhostXPS None $XPSDelegate ($XPSVersion)
38214Ghostscript None $PSDelegate ($GSVersion)
38215Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38216Ghostscript lib --with-gslib=$with_gslib $have_gslib
38217Graphviz --with-gvc=$with_gvc $have_gvc
38218JBIG --with-jbig=$with_jbig $have_jbig
38219JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38220JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038221LCMS v1 --with-lcms=$with_lcms $have_lcms
38222LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038223LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038224LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038225LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038226Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38227OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038228PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038229PERL --with-perl=$with_perl $have_perl
38230PNG --with-png=$with_png $have_png
38231RSVG --with-rsvg=$with_rsvg $have_rsvg
38232TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038233WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038234Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038235WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038236X11 --with-x=$with_x $have_x
38237XML --with-xml=$with_xml $have_xml
38238ZLIB --with-zlib=$with_zlib $have_zlib
38239
38240X11 Configuration:
38241 X_CFLAGS = $X_CFLAGS
38242 X_PRE_LIBS = $X_PRE_LIBS
38243 X_LIBS = $X_LIBS
38244 X_EXTRA_LIBS = $X_EXTRA_LIBS
38245
38246Options used to compile and link:
38247 PREFIX = $PREFIX_DIR
38248 EXEC-PREFIX = $EXEC_PREFIX_DIR
38249 VERSION = $PACKAGE_VERSION
38250 CC = $CC
38251 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038252 CPPFLAGS = $MAGICK_CPPFLAGS
38253 PCFLAGS = $MAGICK_PCFLAGS
38254 DEFS = $DEFS
38255 LDFLAGS = $LDFLAGS
38256 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38257 LIBS = $MAGICK_LIBS
38258 CXX = $CXX
38259 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038260 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038261" >&6;}